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.

30Size
0 Comments
Problem 42335. Min by mean
Solution 677104 Submitted 4 minutes ago by Paul Berglund
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
29Size
0 Comments
Problem 37. Pascal's Triangle
Solution 677093 Submitted 33 minutes ago by Tony Davis
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 677082 Submitted 50 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 677081 Submitted 51 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 677076 Submitted 54 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 3. Find the sum of all the numbers of the input vector
Solution 677075 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.
Incorrect
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 677072 Submitted 1 hour and 3 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
25Size
0 Comments
Problem 106. Weighted average
Solution 677068 Submitted 1 hour and 19 minutes ago by Sarah McDonald
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 677064 Submitted 1 hour 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 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 677062 Submitted 1 hour 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 17. Find all elements less than 0 or greater than 10 and replace them with NaN
Solution 677060 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.
Incorrect
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 677052 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.
20Size
0 Comments
Problem 5. Triangle Numbers
Solution 677045 Submitted 1 hour and 48 minutes ago by Sarah McDonald
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 2748. Integer indexing array: Reverse subsets
Solution 677034 Submitted 1 hour and 57 minutes ago by Shishir Dwivedi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 2574. Replacing a row
Solution 677028 Submitted 2 hours and 14 minutes ago by Shishir Dwivedi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 877. What is Title of Cody Challenge 42?
Solution 676994 Submitted 3 hours and 49 minutes ago by Gergely Patay
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 877. What is Title of Cody Challenge 42?
Solution 676993 Submitted 3 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 1951. Better Index Number
Solution 676990 Submitted 4 hours and 19 minutes ago by Gergely Patay
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 676971 Submitted 4 hours and 43 minutes ago by Juan Gallego
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 94. Target sorting
Solution 676970 Submitted 4 hours and 44 minutes ago by Juan Gallego
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 751. Implement simple rotation cypher
Solution 676963 Submitted 5 hours and 9 minutes ago by Jose Fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 157. The Hitchhiker's Guide to MATLAB
Solution 676947 Submitted 5 hours and 28 minutes ago by dhanashree shirodkar
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 676931 Submitted 5 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 1899. Convert a Cell Array into an Array
Solution 676921 Submitted 5 hours and 46 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 120. radius of a spherical planet
Solution 676919 Submitted 5 hours and 49 minutes ago by Zachary Hammond
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 1899. Convert a Cell Array into an Array
Solution 676917 Submitted 5 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.
Incorrect
0 Comments
Problem 1899. Convert a Cell Array into an Array
Solution 676914 Submitted 5 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 1899. Convert a Cell Array into an Array
Solution 676910 Submitted 5 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 1899. Convert a Cell Array into an Array
Solution 676908 Submitted 5 hours and 54 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 1548. Vector of numbers divisible by 3
Solution 676903 Submitted 5 hours and 59 minutes ago by Shishir Dwivedi
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 676902 Submitted 5 hours and 59 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 1548. Vector of numbers divisible by 3
Solution 676900 Submitted 6 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 1548. Vector of numbers divisible by 3
Solution 676898 Submitted 6 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 751. Implement simple rotation cypher
Solution 676896 Submitted 6 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 547. Create One Large Eye of size N x N Quickly?
Solution 676893 Submitted 6 hours and 14 minutes ago
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
27Size
0 Comments
Problem 2018. Side of a rhombus
Solution 676881 Submitted 6 hours and 58 minutes ago by Jose Fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 2018. Side of a rhombus
Solution 676880 Submitted 6 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.
20Size
0 Comments
Problem 2016. Area of an equilateral triangle
Solution 676876 Submitted 7 hours and 7 minutes ago by Jose Fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 2016. Area of an equilateral triangle
Solution 676874 Submitted 7 hours and 10 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 1315. Volume of a sphere given its surface area
Solution 676867 Submitted 7 hours and 21 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 1315. Volume of a sphere given its surface area
Solution 676866 Submitted 7 hours and 25 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 2202. Flip the bit
Solution 676864 Submitted 7 hours and 30 minutes ago by Shishir Dwivedi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 2202. Flip the bit
Solution 676863 Submitted 7 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.
26Size
0 Comments
Problem 94. Target sorting
Solution 676856 Submitted 7 hours and 41 minutes ago by Jose Fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 1786. Create an index-powered vector
Solution 676844 Submitted 8 hours and 7 minutes ago by Shishir Dwivedi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 1786. Create an index-powered vector
Solution 676843 Submitted 8 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.
23Size
0 Comments
Problem 105. How to find the position of an element in a vector without using the find function
Solution 676842 Submitted 8 hours and 9 minutes ago by Jose Fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
22Size
0 Comments
Problem 157. The Hitchhiker's Guide to MATLAB
Solution 676841 Submitted 8 hours and 12 minutes ago by Jose Fernandez
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 157. The Hitchhiker's Guide to MATLAB
Solution 676840 Submitted 8 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 157. The Hitchhiker's Guide to MATLAB
Solution 676838 Submitted 8 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.