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

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.

Incorrect
0 Comments
Problem 23. Finding Perfect Squares
Solution 434793 Submitted 1 minute 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 23. Finding Perfect Squares
Solution 434792 Submitted 2 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 23. Finding Perfect Squares
Solution 434791 Submitted 2 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
59Size
0 Comments
Problem 40. Reverse Run-Length Encoder
Solution 434790 Submitted 1 hour and 35 minutes ago by Colleen Berg
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
59Size
0 Comments
Problem 2022. Find a Pythagorean triple
Solution 434789 Submitted 1 hour and 57 minutes ago by Colleen Berg
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
76Size
0 Comments
Problem 2024. Triangle sequence
Solution 434788 Submitted 2 hours and 8 minutes ago by Colleen Berg
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
24Size
0 Comments
Problem 30. Sort a list of complex numbers based on far they are from the origin.
Solution 434787 Submitted 2 hours and 21 minutes ago by Colleen Berg
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 434786 Submitted 2 hours and 26 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 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 434785 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 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 434784 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 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 434783 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.
Incorrect
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 434782 Submitted 2 hours and 32 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
6Size
0 Comments
Problem 2295. Resampling matrices construction and Zero Mask Derivation
Solution 434781 Submitted 3 hours and 6 minutes ago by Marco Castelli
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
40Size
0 Comments
Problem 171. Reverse the Words (not letters) of a String
Solution 434780 Submitted 3 hours and 13 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1458. Is it a number?
Solution 434779 Submitted 3 hours and 24 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 1225. Output any real number that is neither positive nor negative
Solution 434778 Submitted 3 hours and 25 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
32Size
0 Comments
Problem 19. Swap the first and last columns
Solution 434777 Submitted 3 hours and 52 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
56Size
0 Comments
Problem 4. Make a checkerboard matrix
Solution 434776 Submitted 3 hours and 56 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
79Size
0 Comments
Problem 48. Making change
Solution 434775 Submitted 4 hours and 3 minutes ago by Colleen Berg
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 48. Making change
Solution 434774 Submitted 4 hours and 4 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 48. Making change
Solution 434773 Submitted 4 hours and 4 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 4. Make a checkerboard matrix
Solution 434772 Submitted 4 hours and 7 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
18Size
0 Comments
Problem 1168. Return 'on' or 'off'
Solution 434771 Submitted 4 hours and 28 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 434770 Submitted 4 hours and 29 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
17Size
0 Comments
Problem 5. Triangle Numbers
Solution 434769 Submitted 4 hours and 31 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 25. Remove any row in which a NaN appears
Solution 434768 Submitted 4 hours and 32 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 5. Triangle Numbers
Solution 434767 Submitted 4 hours and 32 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 434765 Submitted 4 hours and 33 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
27Size
0 Comments
Problem 1172. Wheat on a chessboard pt 1
Solution 434764 Submitted 4 hours and 34 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
19Size
0 Comments
Problem 7. Column Removal
Solution 434763 Submitted 4 hours and 36 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
17Size
0 Comments
Problem 6. Select every other element of a vector
Solution 434762 Submitted 4 hours and 40 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
10Size
0 Comments
Problem 1529. Sum the numbers on the main diagonal
Solution 434761 Submitted 4 hours and 47 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 7. Column Removal
Solution 434759 Submitted 5 hours and 29 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 7. Column Removal
Solution 434758 Submitted 5 hours and 29 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
24Size
0 Comments
Problem 26. Determine if input is odd
Solution 434757 Submitted 5 hours and 30 minutes ago by Steven Feingold
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 434756 Submitted 5 hours and 34 minutes ago by Steven Feingold
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 434755 Submitted 5 hours and 35 minutes ago by Steven Feingold
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 434754 Submitted 5 hours and 37 minutes ago by Steven Feingold
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 434753 Submitted 5 hours and 38 minutes ago by Steven Feingold
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 434752 Submitted 5 hours and 39 minutes ago by Steven Feingold
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
32Size
0 Comments
Problem 2021. Is this triangle right-angled?
Solution 434751 Submitted 5 hours and 43 minutes ago by Erin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 304. Bottles of beer
Solution 434748 Submitted 6 hours and 3 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 304. Bottles of beer
Solution 434747 Submitted 6 hours and 3 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 304. Bottles of beer
Solution 434746 Submitted 6 hours and 4 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 304. Bottles of beer
Solution 434745 Submitted 6 hours and 5 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 304. Bottles of beer
Solution 434744 Submitted 6 hours and 7 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 304. Bottles of beer
Solution 434743 Submitted 6 hours and 7 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 1443. Edges of a n-dimensional Hypercube
Solution 434742 Submitted 6 hours and 7 minutes ago by Andrew Newell
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 304. Bottles of beer
Solution 434741 Submitted 6 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 304. Bottles of beer
Solution 434740 Submitted 6 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.