Cody

Solution 2171001

Submitted on 23 Mar 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
assert(lastpowb(2,9) == 3)

Assertion failed.

2   Fail
assert(lastpowb(3,242) == 4)

Assertion failed.

3   Fail
assert(lastpowb(4,259) == 4)

Assertion failed.

4   Fail
assert(lastpowb(5,26) == 2)

Assertion failed.

5   Fail
assert(lastpowb(6,1) == 0)

Error using assert The condition input argument must be a scalar logical. Error in Test5 (line 1) assert(lastpowb(6,1) == 0)

6   Fail
assert(lastpowb(7,347) == 3)

Assertion failed.

7   Fail
assert(lastpowb(8,32763) == 4)

Assertion failed.

8   Fail
assert(lastpowb(9,729) == 3)

Assertion failed.

9   Fail
assert(lastpowb(10,7) == 0)

Error using assert The condition input argument must be a scalar logical. Error in Test9 (line 1) assert(lastpowb(10,7) == 0)

10   Pass
assert(lastpowb(11,18) == 1)

11   Fail
assert(lastpowb(12,145) == 2)

Assertion failed.

12   Pass
assert(lastpowb(13,16) == 1)

13   Fail
assert(lastpowb(14,201) == 2)

Assertion failed.

14   Fail
assert(lastpowb(15,50633) == 4)

Assertion failed.

15   Fail
assert(lastpowb(16,4083) == 2)

Assertion failed.

16   Fail
assert(lastpowb(17,304) == 2)

Assertion failed.

17   Pass
assert(lastpowb(18,30) == 1)

18   Fail
assert(lastpowb(19,6878) == 3)

Assertion failed.

19   Fail
assert(lastpowb(20,18) == 0)

Error using assert The condition input argument must be a scalar logical. Error in Test19 (line 1) assert(lastpowb(20,18) == 0)

20   Pass
assert(lastpowb(21,41) == 1)

21   Pass
assert(lastpowb(22,35) == 1)

22   Fail
assert(lastpowb(23,6436360) == 5)

Assertion failed.

23   Fail
assert(lastpowb(24,20) == 0)

Error using assert The condition input argument must be a scalar logical. Error in Test23 (line 1) assert(lastpowb(24,20) == 0)

24   Fail
assert(lastpowb(25,641) == 2)

Assertion failed.

Suggested Problems

More from this Author56