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.

47Size
0 Comments
Problem 12. Fibonacci sequence
Solution 519113 Submitted 13 minutes ago by Suvan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 95. Given two strings, find the maximum overlap
Solution 519111 Submitted 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 23. Finding Perfect Squares
Solution 519110 Submitted 57 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 519109 Submitted 1 hour and 1 minute ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
41Size
0 Comments
Problem 106. Weighted average
Solution 519108 Submitted 1 hour and 7 minutes ago by Suvan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
9Size
0 Comments
Problem 1774. Free passes for everyone!
Solution 519107 Submitted 1 hour and 9 minutes ago by Edward
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
9Size
0 Comments
Problem 1774. Free passes for everyone!
Solution 519106 Submitted 1 hour and 9 minutes ago by Edward
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
9Size
0 Comments
Problem 1774. Free passes for everyone!
Solution 519105 Submitted 1 hour and 9 minutes ago by Edward
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
9Size
0 Comments
Problem 1774. Free passes for everyone!
Solution 519104 Submitted 1 hour and 9 minutes ago by Edward
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
9Size
0 Comments
Problem 1774. Free passes for everyone!
Solution 519103 Submitted 1 hour and 9 minutes ago by Edward
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 519102 Submitted 2 hours and 14 minutes ago by Brett
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 2021. Is this triangle right-angled?
Solution 519101 Submitted 2 hours and 20 minutes ago by Jani
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 44. Trimming Spaces
Solution 519098 Submitted 2 hours and 28 minutes ago by Jani
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
31Size
0 Comments
Problem 38. Return a list sorted by number of occurrences
Solution 519095 Submitted 2 hours and 34 minutes ago by Jani
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 519094 Submitted 2 hours and 44 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 519093 Submitted 2 hours and 48 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 519092 Submitted 2 hours and 52 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 519091 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.
55Size
0 Comments
Problem 46. Which doors are open?
Solution 519090 Submitted 2 hours and 56 minutes ago by Jani
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 519089 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.
17Size
0 Comments
Problem 6. Select every other element of a vector
Solution 519088 Submitted 3 hours and 9 minutes ago by Jimmy
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 1658. Simple equation: Annual salary
Solution 519087 Submitted 3 hours and 9 minutes ago by Jani
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
38Size
0 Comments
Problem 40. Reverse Run-Length Encoder
Solution 519086 Submitted 3 hours and 12 minutes ago by Jani
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 40. Reverse Run-Length Encoder
Solution 519085 Submitted 3 hours and 13 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 6. Select every other element of a vector
Solution 519084 Submitted 3 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.
15Size
0 Comments
Problem 1661. Circle area using pi
Solution 519083 Submitted 3 hours and 17 minutes ago by Jani
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
69Size
0 Comments
Problem 48. Making change
Solution 519082 Submitted 3 hours and 18 minutes ago by Jani
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
61Size
0 Comments
Problem 10. Determine whether a vector is monotonically increasing
Solution 519081 Submitted 3 hours and 19 minutes ago by Vineel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 10. Determine whether a vector is monotonically increasing
Solution 519080 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 10. Determine whether a vector is monotonically increasing
Solution 519079 Submitted 3 hours and 23 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 519078 Submitted 3 hours and 24 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 519077 Submitted 3 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.
18Size
0 Comments
Problem 167. Pizza!
Solution 519076 Submitted 3 hours and 28 minutes ago by Vineel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
36Size
0 Comments
Problem 19. Swap the first and last columns
Solution 519075 Submitted 3 hours and 29 minutes ago by Vineel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 19. Swap the first and last columns
Solution 519074 Submitted 3 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 48. Making change
Solution 519073 Submitted 3 hours and 31 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
14Size
0 Comments
Problem 4. Make a checkerboard matrix
Solution 519072 Submitted 3 hours and 32 minutes ago by Vineel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
13Size
0 Comments
Problem 26. Determine if input is odd
Solution 519071 Submitted 3 hours and 32 minutes ago by Jimmy
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
41Size
0 Comments
Problem 64. The Goldbach Conjecture, Part 2
Solution 519070 Submitted 3 hours and 32 minutes ago by Alex Waters
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 519069 Submitted 3 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 4. Make a checkerboard matrix
Solution 519068 Submitted 3 hours and 33 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 64. The Goldbach Conjecture, Part 2
Solution 519067 Submitted 3 hours and 35 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 519066 Submitted 3 hours and 36 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 64. The Goldbach Conjecture, Part 2
Solution 519065 Submitted 3 hours and 36 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
51Size
0 Comments
Problem 60. The Goldbach Conjecture
Solution 519064 Submitted 3 hours and 43 minutes ago by Alex Waters
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
55Size
0 Comments
Problem 60. The Goldbach Conjecture
Solution 519063 Submitted 3 hours and 43 minutes ago by Alex Waters
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 30. Sort a list of complex numbers based on far they are from the origin.
Solution 519062 Submitted 4 hours and 8 minutes ago by Alex Waters
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
19Size
0 Comments
Problem 32. Most nonzero elements in row
Solution 519061 Submitted 4 hours and 21 minutes ago by Alex Waters
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 25. Remove any row in which a NaN appears
Solution 519060 Submitted 4 hours and 25 minutes ago by Alex Waters
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 519059 Submitted 4 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.