Cody

# Problem 42493. Pancakes for everyone!

Solution 1442062

Submitted on 16 Feb 2018 by cokakola
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))

### Community Treasure Hunt

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

Start Hunting!