Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Cody Solutions

What is Size?

Size refers to the number of nodes in a parse tree. Generally speaking, you can think of size as code length.

24Size
0 Comments
Problem 1035. Generate a vector like 1,2,2,3,3,3,4,4,4,4
Solution 606759 Submitted 51 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
35Size
0 Comments
Problem 60. The Goldbach Conjecture
Solution 606758 Submitted 1 hour and 25 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606757 Submitted 1 hour and 40 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606756 Submitted 1 hour and 43 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606755 Submitted 1 hour and 51 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606754 Submitted 1 hour and 53 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
24Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606753 Submitted 1 hour and 56 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606752 Submitted 1 hour and 57 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
32Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606751 Submitted 2 hours and 1 minute ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 606750 Submitted 2 hours and 16 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 1578. Volume and area of a sphere
Solution 606749 Submitted 2 hours and 22 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
11Size
0 Comments
Problem 1578. Volume and area of a sphere
Solution 606748 Submitted 2 hours and 24 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
15Size
0 Comments
Problem 26. Determine if input is odd
Solution 606747 Submitted 2 hours and 25 minutes ago by Tyler Pawlaczyk
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 606746 Submitted 2 hours and 27 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 606745 Submitted 2 hours and 28 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 606744 Submitted 2 hours and 30 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 149. Is my wife right?
Solution 606743 Submitted 2 hours and 34 minutes ago by Tyler Pawlaczyk
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
11Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 606742 Submitted 2 hours and 36 minutes ago by Tyler Pawlaczyk
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 730. How many trades represent all the profit?
Solution 606741 Submitted 2 hours and 36 minutes ago by Eric Kim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 730. How many trades represent all the profit?
Solution 606740 Submitted 2 hours and 36 minutes ago by Eric Kim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 606739 Submitted 2 hours and 37 minutes ago by Tyler Pawlaczyk
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
58Size
0 Comments
Problem 69. Find the peak 3n+1 sequence value
Solution 606738 Submitted 2 hours and 40 minutes ago by Eric Kim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 69. Find the peak 3n+1 sequence value
Solution 606737 Submitted 2 hours and 41 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
15Size
0 Comments
Problem 3091. Replace values under a limit
Solution 606736 Submitted 2 hours and 42 minutes ago by Michael C.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
14Size
0 Comments
Problem 3103. Find out Harmonic mean.
Solution 606735 Submitted 2 hours and 44 minutes ago by Michael C.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 3103. Find out Harmonic mean.
Solution 606734 Submitted 2 hours and 45 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 606733 Submitted 2 hours and 45 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 26. Determine if input is odd
Solution 606732 Submitted 2 hours and 46 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 30. Sort a list of complex numbers based on far they are from the origin.
Solution 606731 Submitted 2 hours and 46 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
8Size
0 Comments
Problem 7244. Times 3 problem
Solution 606730 Submitted 2 hours and 47 minutes ago by Michael C.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 36. Find relatively common elements in matrix rows
Solution 606727 Submitted 2 hours and 53 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1. Times 2 - START HERE
Solution 606726 Submitted 2 hours and 55 minutes ago by Tyler Pawlaczyk
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 8. Add two numbers
Solution 606725 Submitted 2 hours and 57 minutes ago by Speed Biscuit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 606724 Submitted 2 hours and 58 minutes ago by Speed Biscuit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 606723 Submitted 2 hours and 59 minutes ago by Speed Biscuit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
11Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 606722 Submitted 3 hours and 1 minute ago by Speed Biscuit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 7244. Times 3 problem
Solution 606721 Submitted 3 hours and 1 minute ago by Paul Berglund
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
40Size
0 Comments
Problem 20. Summing digits
Solution 606720 Submitted 3 hours and 1 minute ago by Marc Savoie
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 20. Summing digits
Solution 606719 Submitted 3 hours and 1 minute ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1. Times 2 - START HERE
Solution 606718 Submitted 3 hours and 2 minutes ago by Speed Biscuit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 20. Summing digits
Solution 606717 Submitted 3 hours and 2 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1. Times 2 - START HERE
Solution 606716 Submitted 3 hours and 3 minutes ago by Speed Biscuit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
62Size
0 Comments
Problem 9. Who Has the Most Change?
Solution 606715 Submitted 3 hours and 8 minutes ago by Marc Savoie
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 9. Who Has the Most Change?
Solution 606714 Submitted 3 hours and 8 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 9. Who Has the Most Change?
Solution 606713 Submitted 3 hours and 20 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 9. Who Has the Most Change?
Solution 606712 Submitted 3 hours and 40 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 9. Who Has the Most Change?
Solution 606711 Submitted 3 hours and 40 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
168Size
0 Comments
Problem 93. Calculate the Levenshtein distance between two strings
Solution 606701 Submitted 3 hours and 48 minutes ago by Eric Kim
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
8Size
0 Comments
Problem 1774. Free passes for everyone!
Solution 606690 Submitted 3 hours and 51 minutes ago by Peng Liu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 1774. Free passes for everyone!
Solution 606682 Submitted 3 hours and 53 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.