Cody

Solution 1855177

Submitted on 21 Jun 2019 by syed rahim
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
assert(bit_reverse(1,1) == 1)

x_bin = '1' x_rep = '0000000001' x_fin = '1' y = 1

2   Pass
assert(bit_reverse(4,3) == 1)

x_bin = '100' x_rep = '0000000100' x_fin = '001' y = 1

3   Pass
assert(bit_reverse(2,3) == 2)

x_bin = '10' x_rep = '0000000010' x_fin = '010' y = 2

4   Pass
assert(bit_reverse(6,3) == 3)

x_bin = '110' x_rep = '0000000110' x_fin = '011' y = 3

5   Pass
assert(bit_reverse(5,3) == 5)

x_bin = '101' x_rep = '0000000101' x_fin = '101' y = 5

6   Pass
assert(bit_reverse(7,3) == 7)

x_bin = '111' x_rep = '0000000111' x_fin = '111' y = 7