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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Search 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?

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?

12Size

0 Comments

Problem 304. Bottles of beer

Incorrect

0 Comments

24Size

0 Comments

Problem 189. Sum all integers from 1 to 2^n

Incorrect

0 Comments

19Size

0 Comments

Problem 167. Pizza!

Incorrect

0 Comments

10Size

0 Comments

Problem 149. Is my wife right?

13Size

0 Comments

Problem 8. Add two numbers

29Size

0 Comments

Problem 838. Check if number exists in vector

Incorrect

0 Comments

Problem 39. Which values occur exactly three times?

10Size

0 Comments

Problem 42312. Find the sum of all the numbers of the input vector

Incorrect

0 Comments

Incorrect

0 Comments

15Size

0 Comments

Problem 42313. A quadrant matrix

16Size

0 Comments

Problem 1661. Circle area using pi

207Size

0 Comments

Problem 729. Flag largest magnitude swings as they occur

207Size

0 Comments

28Size

0 Comments

Problem 233. Reverse the vector

84Size

0 Comments

Problem 20. Summing digits

52Size

0 Comments

Problem 42323. With apologies to William Blake

15Size

0 Comments

Problem 2712. Fahrenheit to Celsius using multiple statements

60Size

0 Comments

Incorrect

0 Comments

15Size

0 Comments

Problem 2740. Arithmetic array operations

16Size

0 Comments

Incorrect

0 Comments

68Size

0 Comments

Problem 9. Who Has the Most Change?

50Size

1 Comment

Problem 42323. With apologies to William Blake

1 Comment

Jan Orwat
17 minutes ago

This one fails when only last digit is incorrect. James, could you add some cases to eliminate it, please? 2, 819 or 889 should be enough.

Incorrect

0 Comments

19Size

0 Comments

Problem 33. Create times-tables

16Size

0 Comments

Incorrect

0 Comments

14Size

0 Comments

Problem 5. Triangle Numbers

51Size

0 Comments

Problem 12. Fibonacci sequence

76Size

0 Comments

Problem 11. Back and Forth Rows

76Size

0 Comments

Incorrect

0 Comments

34Size

0 Comments

Problem 173. Minefield Sonar

Incorrect

0 Comments

Incorrect

0 Comments

42Size

0 Comments

Problem 10. Determine whether a vector is monotonically increasing

Incorrect

0 Comments

Incorrect

0 Comments

36Size

0 Comments

Problem 19. Swap the first and last columns

40Size

0 Comments

Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN

47Size

0 Comments

Problem 4. Make a checkerboard matrix

Incorrect

0 Comments

Incorrect

0 Comments