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.

48Size
0 Comments
Problem 794. Matrix with different incremental runs
Solution 103488 Submitted on 27 Jun 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 240. Project Euler: Problem 6, Natural numbers, squares and sums.
Solution 101918 Submitted on 22 Jun 2012 by Ned Gulley
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 97232 Submitted on 10 Jun 2012
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 96286 Submitted on 6 Jun 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
30Size
0 Comments
Problem 742. Symmetric matrix
Solution 95391 Submitted on 4 Jun 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
66Size
0 Comments
Problem 723. QWERTY Shift Encoder
Solution 93623 Submitted on 29 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 723. QWERTY Shift Encoder
Solution 93616 Submitted on 29 May 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 723. QWERTY Shift Encoder
Solution 93615 Submitted on 29 May 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
32Size
0 Comments
Problem 171. Reverse the Words (not letters) of a String
Solution 93230 Submitted on 29 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
31Size
0 Comments
Problem 690. Remove the two elements next to NaN value
Solution 89471 Submitted on 16 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
38Size
0 Comments
Problem 690. Remove the two elements next to NaN value
Solution 89445 Submitted on 16 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
19Size
0 Comments
Problem 676. Reindex a vector
Solution 88020 Submitted on 11 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
21Size
0 Comments
Problem 676. Reindex a vector
Solution 88018 Submitted on 11 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
56Size
0 Comments
Problem 672. Longest run of consecutive numbers
Solution 87343 Submitted on 9 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 672. Longest run of consecutive numbers
Solution 87341 Submitted on 9 May 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
42Size
0 Comments
Problem 672. Longest run of consecutive numbers
Solution 87340 Submitted on 9 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 672. Longest run of consecutive numbers
Solution 87335 Submitted on 9 May 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 672. Longest run of consecutive numbers
Solution 87333 Submitted on 9 May 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
66Size
0 Comments
Problem 652. Put two time series onto the same time basis
Solution 87330 Submitted on 9 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 3. Find the sum of all the numbers of the input vector
Solution 87294 Submitted on 9 May 2012 by Ned Gulley
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 86296 Submitted on 7 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
60Size
0 Comments
Problem 652. Put two time series onto the same time basis
Solution 85366 Submitted on 3 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 652. Put two time series onto the same time basis
Solution 85365 Submitted on 3 May 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
16Size
0 Comments
Problem 649. Return the first and last character of a string
Solution 84724 Submitted on 2 May 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
25Size
0 Comments
Problem 589. Matrix indexing with two vectors of indices
Solution 82900 Submitted on 26 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
86Size
0 Comments
Problem 594. "Look and say" sequence
Solution 79978 Submitted on 21 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
23Size
0 Comments
Problem 584. middleAsColumn: Return all but first and last element as a column vector
Solution 76398 Submitted on 14 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 584. middleAsColumn: Return all but first and last element as a column vector
Solution 76397 Submitted on 14 Apr 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
19Size
0 Comments
Problem 576. Return elements unique to either input
Solution 75430 Submitted on 12 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 576. Return elements unique to either input
Solution 75429 Submitted on 12 Apr 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 576. Return elements unique to either input
Solution 75426 Submitted on 12 Apr 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
14Size
0 Comments
Problem 568. Number of 1s in a binary string
Solution 73691 Submitted on 10 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
93Size
0 Comments
Problem 563. How to add?
Solution 73210 Submitted on 9 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
99Size
0 Comments
Problem 563. How to add?
Solution 73208 Submitted on 9 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
24Size
0 Comments
Problem 545. Flip the main diagonal of a matrix
Solution 72144 Submitted on 6 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
28Size
0 Comments
Problem 545. Flip the main diagonal of a matrix
Solution 72142 Submitted on 6 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
26Size
0 Comments
Problem 545. Flip the main diagonal of a matrix
Solution 72129 Submitted on 6 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
37Size
0 Comments
Problem 545. Flip the main diagonal of a matrix
Solution 72126 Submitted on 6 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
61Size
0 Comments
Problem 560. Set defaults
Solution 71633 Submitted on 5 Apr 2012 by Ned Gulley
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 69395 Submitted on 2 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
14Size
0 Comments
Problem 542. Vectorizing, too easy or too hard?
Solution 68597 Submitted on 1 Apr 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Incorrect
0 Comments
Problem 542. Vectorizing, too easy or too hard?
Solution 68595 Submitted on 1 Apr 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
17Size
0 Comments
Problem 522. Cody Computer Part 1 - Guess the system font used by uipanel
Solution 65219 Submitted on 23 Mar 2012 by Ned Gulley
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 61948 Submitted on 16 Mar 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
12Size
0 Comments
Problem 497. Make an awesome ramp for a tiny motorcycle stuntman
Solution 61533 Submitted on 15 Mar 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
73Size
0 Comments
Problem 495. Formatting currency numbers
Solution 60746 Submitted on 14 Mar 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
72Size
0 Comments
Problem 495. Formatting currency numbers
Solution 60741 Submitted on 14 Mar 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
38Size
1 Comment
Problem 495. Formatting currency numbers
Solution 60659 Submitted on 13 Mar 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
24Size
0 Comments
Problem 164. Right and wrong
Solution 44440 Submitted on 17 Feb 2012 by Ned Gulley
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 42341 Submitted on 15 Feb 2012 by Ned Gulley
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.