Problem 2027. Consecutive Powers

Solution 3859063

Submitted on 26 Nov 2020
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   Fail
x=conpow(); d = x(1)^x(2)-x(3)^x(4); y_correct = 1; assert(isequal(d,y_correct))

Index exceeds the number of array elements (1). Error in Test1 (line 2) d = x(1)^x(2)-x(3)^x(4);

Suggested Problems

More from this Author11

Community Treasure Hunt

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

Start Hunting!