Cody

Solution 712025

Submitted on 7 Aug 2015 by Peng Liu
  • Size: 18
  • This is the leading solution.
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 = 0; assert(isequal(pancake(x),y_correct))

2   Pass
%% x = 2;y_correct = 1; assert(isequal(pancake(x),y_correct))

3   Pass
%% x = 4;y_correct = 2; assert(isequal(pancake(x),y_correct))

4   Pass
%% x = 7;y_correct = 3; assert(isequal(pancake(x),y_correct))

5   Pass
%% x = 12;y_correct = 5; assert(isequal(pancake(x),y_correct))

6   Pass
%% x = 27;y_correct = 7; assert(isequal(pancake(x),y_correct))

7   Pass
%% x = 127;y_correct = 16; assert(isequal(pancake(x),y_correct))

8   Pass
%% x = 2015;y_correct = 63; assert(isequal(pancake(x),y_correct))

9   Pass
%% x = 4060225;y_correct = 2850; assert(isequal(pancake(x),y_correct))

10   Pass
%% x = 1234567890;y_correct = 49690; assert(isequal(pancake(x),y_correct))

11   Pass
%% x = 1362067890;y_correct = 52193; assert(isequal(pancake(x),y_correct))

12   Pass
%% x = 2030000;y_correct = 2015; assert(isequal(pancake(x),y_correct))

13   Pass
%% x = 11581428900;y_correct = 152193; assert(isequal(pancake(x),y_correct))

14   Pass
%% x = 9007199187632129; y_correct = 134217727; assert(isequal(pancake(x),y_correct))