Cody

Solution 2083090

Submitted on 7 Jan 2020 by Tim
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
n = 5; y_correct = 17; assert(isequal(seq_find(n),y_correct))

2   Pass
n = 7; y_correct = 65; assert(isequal(seq_find(n),y_correct))

3   Pass
n = 10; y_correct = 511; assert(isequal(seq_find(n),y_correct))

4   Pass
n = 14; y_correct = 8191; assert(isequal(seq_find(n),y_correct))

5   Pass
n = 2; y_correct = 1; assert(isequal(seq_find(n),y_correct))

6   Pass
n = 22; y_correct =2097151; assert(isequal(seq_find(n),y_correct))

7   Pass
n = 27; y_correct =67108865; assert(isequal(seq_find(n),y_correct))

Suggested Problems

More from this Author145