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.

96Size
0 Comments
Problem 4. Make a checkerboard matrix
Solution 495248 Submitted 16 minutes ago by ahsan
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 495247 Submitted 21 minutes ago by NIT CALICUT
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 8. Add two numbers
Solution 495246 Submitted 21 minutes ago by NIT CALICUT
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
44Size
0 Comments
Problem 9. Who Has the Most Change?
Solution 495245 Submitted 25 minutes ago by LK Kee
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 495244 Submitted 27 minutes ago by Austin
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 495243 Submitted 37 minutes ago by Austin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
65Size
0 Comments
Problem 32. Most nonzero elements in row
Solution 495242 Submitted 1 hour and 4 minutes ago by ahsan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 32. Most nonzero elements in row
Solution 495241 Submitted 1 hour and 18 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 495240 Submitted 1 hour and 19 minutes ago by Ramon Tummers
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 495238 Submitted 1 hour and 23 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 7. Column Removal
Solution 495237 Submitted 1 hour and 25 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 32. Most nonzero elements in row
Solution 495236 Submitted 1 hour 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 32. Most nonzero elements in row
Solution 495235 Submitted 1 hour and 28 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 6. Select every other element of a vector
Solution 495233 Submitted 1 hour and 32 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
37Size
0 Comments
Problem 459. Sum of diagonal of a square matrix
Solution 495232 Submitted 1 hour and 34 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 459. Sum of diagonal of a square matrix
Solution 495231 Submitted 1 hour 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 6. Select every other element of a vector
Solution 495230 Submitted 1 hour and 39 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
73Size
0 Comments
Problem 21. Return the 3n+1 sequence for n
Solution 495229 Submitted 1 hour and 40 minutes ago by ahsan
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 495228 Submitted 1 hour and 40 minutes ago by LK Kee
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 495227 Submitted 1 hour and 41 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 495225 Submitted 1 hour and 42 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
36Size
0 Comments
Problem 115. Distance walked 1D
Solution 495223 Submitted 1 hour and 44 minutes ago by sunny d
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 495222 Submitted 1 hour and 45 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
50Size
0 Comments
Problem 233. Reverse the vector
Solution 495221 Submitted 1 hour and 47 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 495220 Submitted 1 hour and 47 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
31Size
0 Comments
Problem 105. How to find the position of an element in a vector without using the find function
Solution 495219 Submitted 1 hour and 51 minutes ago by sunny d
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 495218 Submitted 1 hour and 51 minutes ago by LK Kee
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
37Size
0 Comments
Problem 109. Check if sorted
Solution 495217 Submitted 1 hour and 53 minutes ago by sunny d
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 495215 Submitted 1 hour and 56 minutes ago by sunny d
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 495214 Submitted 1 hour and 58 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
45Size
0 Comments
Problem 25. Remove any row in which a NaN appears
Solution 495213 Submitted 1 hour and 59 minutes ago by ahsan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 233. Reverse the vector
Solution 495212 Submitted 2 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.
Incorrect
0 Comments
Problem 25. Remove any row in which a NaN appears
Solution 495211 Submitted 2 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 25. Remove any row in which a NaN appears
Solution 495210 Submitted 2 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 233. Reverse the vector
Solution 495209 Submitted 2 hours and 6 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 189. Sum all integers from 1 to 2^n
Solution 495208 Submitted 2 hours and 9 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 189. Sum all integers from 1 to 2^n
Solution 495207 Submitted 2 hours and 10 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
37Size
0 Comments
Problem 1106. I've got the power! (Inspired by Project Euler problem 29)
Solution 495206 Submitted 2 hours and 10 minutes ago by Peter Cook
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
39Size
0 Comments
Problem 1106. I've got the power! (Inspired by Project Euler problem 29)
Solution 495204 Submitted 2 hours and 12 minutes ago by Peter Cook
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 1106. I've got the power! (Inspired by Project Euler problem 29)
Solution 495202 Submitted 2 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.
26Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 495200 Submitted 2 hours and 17 minutes ago by sunny d
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
109Size
0 Comments
Problem 23. Finding Perfect Squares
Solution 495199 Submitted 2 hours and 30 minutes ago by ahsan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
17Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 495198 Submitted 2 hours and 36 minutes ago by Pramod Gurudatt
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
24Size
0 Comments
Problem 2. Make the vector [1 2 3 4 5 6 7 8 9 10]
Solution 495197 Submitted 2 hours and 37 minutes ago by Pramod Gurudatt
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 495196 Submitted 2 hours and 40 minutes ago by Pramod Gurudatt
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 495195 Submitted 2 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.
56Size
0 Comments
Problem 18. Bullseye Matrix
Solution 495194 Submitted 2 hours and 53 minutes ago by M
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
27Size
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 495193 Submitted 3 hours and 5 minutes ago by Elza
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 495192 Submitted 3 hours and 6 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 12. Fibonacci sequence
Solution 495191 Submitted 5 hours and 4 minutes ago by Keith
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.