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.

Incorrect
0 Comments
Problem 129. All capital?
Solution 673666 Submitted just now
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 42321. given number is power of n or not?
Solution 673665 Submitted 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 304. Bottles of beer
Solution 673664 Submitted 2 minutes ago by SRUJANAV
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 42321. given number is power of n or not?
Solution 673663 Submitted 2 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 673662 Submitted 2 minutes ago by SRUJANAV
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 129. All capital?
Solution 673661 Submitted 3 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
19Size
0 Comments
Problem 167. Pizza!
Solution 673660 Submitted 4 minutes ago by SRUJANAV
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 129. All capital?
Solution 673659 Submitted 6 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 673658 Submitted 6 minutes ago by SRUJANAV
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 673657 Submitted 7 minutes ago by SRUJANAV
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 838. Check if number exists in vector
Solution 673656 Submitted 9 minutes ago by M_Morelock
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 39. Which values occur exactly three times?
Solution 673655 Submitted 10 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 42312. Find the sum of all the numbers of the input vector
Solution 673653 Submitted 12 minutes ago by Guillaume
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 838. Check if number exists in vector
Solution 673652 Submitted 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 838. Check if number exists in vector
Solution 673651 Submitted 13 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 42313. A quadrant matrix
Solution 673649 Submitted 15 minutes ago by Guillaume
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
16Size
0 Comments
Problem 1661. Circle area using pi
Solution 673648 Submitted 17 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
207Size
0 Comments
Problem 729. Flag largest magnitude swings as they occur
Solution 673647 Submitted 17 minutes ago by Riazul Arefin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
207Size
0 Comments
Problem 729. Flag largest magnitude swings as they occur
Solution 673646 Submitted 18 minutes ago by Riazul Arefin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 233. Reverse the vector
Solution 673645 Submitted 18 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
84Size
0 Comments
Problem 20. Summing digits
Solution 673644 Submitted 20 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
52Size
0 Comments
Problem 42323. With apologies to William Blake
Solution 673643 Submitted 25 minutes ago by Jan Orwat
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
15Size
0 Comments
Problem 2712. Fahrenheit to Celsius using multiple statements
Solution 673642 Submitted 33 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
60Size
0 Comments
Problem 42323. With apologies to William Blake
Solution 673641 Submitted 34 minutes ago by Jan Orwat
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 42323. With apologies to William Blake
Solution 673640 Submitted 35 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 2740. Arithmetic array operations
Solution 673639 Submitted 37 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
16Size
0 Comments
Problem 2740. Arithmetic array operations
Solution 673638 Submitted 37 minutes ago by Nicolas Hagen
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 2740. Arithmetic array operations
Solution 673637 Submitted 38 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
68Size
0 Comments
Problem 9. Who Has the Most Change?
Solution 673636 Submitted 38 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
50Size
1 Comment
Problem 42323. With apologies to William Blake
Solution 673635 Submitted 38 minutes ago by Jan Orwat
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 673634 Submitted 44 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
19Size
0 Comments
Problem 33. Create times-tables
Solution 673633 Submitted 52 minutes ago by gpa
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
16Size
0 Comments
Problem 189. Sum all integers from 1 to 2^n
Solution 673632 Submitted 53 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 189. Sum all integers from 1 to 2^n
Solution 673631 Submitted 53 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 5. Triangle Numbers
Solution 673630 Submitted 55 minutes ago by Ne Gu
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 673629 Submitted 56 minutes ago by gpa
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
76Size
0 Comments
Problem 11. Back and Forth Rows
Solution 673628 Submitted 57 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
76Size
0 Comments
Problem 11. Back and Forth Rows
Solution 673627 Submitted 57 minutes ago by Ne Gu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 11. Back and Forth Rows
Solution 673626 Submitted 59 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
34Size
0 Comments
Problem 173. Minefield Sonar
Solution 673625 Submitted 1 hour and 1 minute ago by bainhome
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 11. Back and Forth Rows
Solution 673624 Submitted 1 hour and 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 11. Back and Forth Rows
Solution 673623 Submitted 1 hour and 11 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
42Size
0 Comments
Problem 10. Determine whether a vector is monotonically increasing
Solution 673622 Submitted 1 hour and 12 minutes ago by gpa
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 11. Back and Forth Rows
Solution 673621 Submitted 1 hour 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 11. Back and Forth Rows
Solution 673620 Submitted 1 hour and 16 minutes ago
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 673619 Submitted 1 hour and 17 minutes ago by gpa
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
40Size
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 673618 Submitted 1 hour and 21 minutes ago by gpa
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
47Size
0 Comments
Problem 4. Make a checkerboard matrix
Solution 673617 Submitted 1 hour and 29 minutes ago by gpa
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 673616 Submitted 1 hour and 34 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 673615 Submitted 1 hour and 37 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.