Problem 51813. Sum the elements in rows of the Levine triangle
Solution Stats
Problem Comments
-
4 Comments
I submitted one solution, and it did return the sum as a string, but complained of insufficient memory. Because of the order of operations, it was creating the n=12 array while evaluating n=11, and that array was apparently too large for Cody. Fixed now, but it is apparently going to be a problem for n=12 and above.
My code choked on n = 12 on my laptop. That was the motivation for the three optional tests, as well as for one of the tags.
Disallowing 'if' seems to disallow 'circshift' also, which I assume was not your intent.
Correct. I changed the test to look for 'if '.
Solution Comments
Show commentsProblem Recent Solvers11
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
2968 Solvers
-
Are all the three given point in the same line?
413 Solvers
-
Side of an equilateral triangle
6006 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1855 Solvers
-
78 Solvers
More from this Author271
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!