Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB 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.

30Size
0 Comments
Problem 145. Increment a number, given its digits
Solution 929713 Submitted just now by Gabor Bekes
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
25Size
0 Comments
Problem 751. Implement simple rotation cypher
Solution 929711 Submitted 11 minutes ago by TurqoiseInt
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 105. How to find the position of an element in a vector without using the find function
Solution 929710 Submitted 14 minutes ago by wu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 2019. Dimensions of a rectangle
Solution 929694 Submitted 48 minutes ago by TurqoiseInt
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 129. All capital?
Solution 929693 Submitted 53 minutes ago by TurqoiseInt
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 195. Program an exclusive OR operation with logical operators
Solution 929689 Submitted 1 hour and 1 minute ago by TurqoiseInt
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 157. The Hitchhiker's Guide to MATLAB
Solution 929683 Submitted 1 hour and 35 minutes ago by wu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 54. Maximum running product for a string of numbers
Solution 929679 Submitted 1 hour and 40 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 15. Find the longest sequence of 1's in a binary sequence.
Solution 929677 Submitted 1 hour and 47 minutes ago by Kai Xiang
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 37. Pascal's Triangle
Solution 929660 Submitted 2 hours and 35 minutes ago by Kai Xiang
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 7. Column Removal
Solution 929647 Submitted 2 hours and 49 minutes ago by aman
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 7. Column Removal
Solution 929645 Submitted 2 hours and 50 minutes ago by aman
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 37. Pascal's Triangle
Solution 929644 Submitted 2 hours and 55 minutes ago by Nicholas Lombardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 1663. Pizza value using expression with parentheses
Solution 929643 Submitted 2 hours and 57 minutes ago by Nicholas Lombardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
20Size
0 Comments
Problem 2746. Integer indexing array: Weekend box office
Solution 929640 Submitted 3 hours and 7 minutes ago by Ben Petschel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 2712. Fahrenheit to Celsius using multiple statements
Solution 929639 Submitted 3 hours and 9 minutes ago by Ben Petschel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
25Size
0 Comments
Problem 2715. Compute total cost
Solution 929638 Submitted 3 hours and 10 minutes ago by Ben Petschel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 2714. Write an expression
Solution 929637 Submitted 3 hours and 11 minutes ago by Ben Petschel
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 929636 Submitted 3 hours and 11 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 2711. Assigning a sum
Solution 929629 Submitted 3 hours and 18 minutes ago by Ben Petschel
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 65. Word Counting and Indexing
Solution 929617 Submitted 3 hours and 49 minutes ago by Atsushi Ueno
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 65. Word Counting and Indexing
Solution 929616 Submitted 3 hours and 50 minutes ago by Atsushi Ueno
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 94. Target sorting
Solution 929613 Submitted 3 hours and 52 minutes ago by Nicholas Lombardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 94. Target sorting
Solution 929612 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.
23Size
0 Comments
Problem 105. How to find the position of an element in a vector without using the find function
Solution 929611 Submitted 3 hours and 56 minutes ago by Nicholas Lombardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 105. How to find the position of an element in a vector without using the find function
Solution 929610 Submitted 3 hours and 58 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 157. The Hitchhiker's Guide to MATLAB
Solution 929605 Submitted 4 hours and 20 minutes ago by Nicholas Lombardo
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 30. Sort a list of complex numbers based on far they are from the origin.
Solution 929598 Submitted 4 hours and 36 minutes ago by Nicholas Lombardo
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 929597 Submitted 4 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 30. Sort a list of complex numbers based on far they are from the origin.
Solution 929596 Submitted 4 hours and 38 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 1661. Circle area using pi
Solution 929575 Submitted 6 hours and 18 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 109. Check if sorted
Solution 929562 Submitted 6 hours and 55 minutes ago by wu
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 14. Find the numeric mean of the prime numbers in a matrix.
Solution 929543 Submitted 8 hours and 25 minutes ago by pilotchute
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 262. Swap the input arguments
Solution 929527 Submitted 8 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.
22Size
0 Comments
Problem 32. Most nonzero elements in row
Solution 929497 Submitted 11 hours and 39 minutes ago by K
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
25Size
0 Comments
Problem 26. Determine if input is odd
Solution 929493 Submitted 11 hours and 47 minutes ago by Dawid Zawrotny
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 929483 Submitted 12 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.
30Size
0 Comments
Problem 7. Column Removal
Solution 929474 Submitted 12 hours and 40 minutes ago by Carolyn Honeycutt
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 929471 Submitted 12 hours and 49 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 929470 Submitted 12 hours and 49 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 929468 Submitted 12 hours and 49 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 929467 Submitted 12 hours and 50 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 19. Swap the first and last columns
Solution 929466 Submitted 12 hours and 51 minutes ago by Adr Paw
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 929456 Submitted 12 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.
Incorrect
0 Comments
Problem 6. Select every other element of a vector
Solution 929452 Submitted 12 hours and 56 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 929428 Submitted 13 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.
23Size
0 Comments
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 929421 Submitted 13 hours and 31 minutes ago by Adr Paw
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 1664. Lightning strike distance: Writing a function
Solution 929406 Submitted 14 hours and 10 minutes ago by Kamil Lopuszanski
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 1664. Lightning strike distance: Writing a function
Solution 929405 Submitted 14 hours and 11 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 106. Weighted average
Solution 929404 Submitted 14 hours and 14 minutes ago by Kamil Lopuszanski
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.