Cody

Problem 44554. The maximum sum of squares (testing)

Solution 2889152

Submitted on 29 Aug 2020 by Rafael S.T. Vieira
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y_correct = 1; assert(isequal(Max_of_square_sum(x),y_correct))

2   Pass
x=111111 y_correct = 68; assert(isequal(Max_of_square_sum(x),y_correct))

x = 111111

3   Pass
x=6548191 y_correct = 269; assert(isequal(Max_of_square_sum(x),y_correct))

x = 6548191

4   Pass
x=789861684 y_correct = 1332; assert(isequal(Max_of_square_sum(x),y_correct))

x = 789861684

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!