Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(bit_reverse(1,1) == 1)
i =
1
temp =
'1'
temp =
'1'
y =
1
|
2 | Pass |
assert(bit_reverse(4,3) == 1)
i =
1
temp =
'100'
temp =
'001'
y =
1
|
3 | Pass |
assert(bit_reverse(2,3) == 2)
i =
1
temp =
'10'
a =
'0'
temp =
'010'
temp =
'010'
y =
2
|
4 | Pass |
assert(bit_reverse(6,3) == 3)
i =
1
temp =
'110'
temp =
'011'
y =
3
|
5 | Pass |
assert(bit_reverse(5,3) == 5)
i =
1
temp =
'101'
temp =
'101'
y =
5
|
6 | Pass |
assert(bit_reverse(7,3) == 7)
i =
1
temp =
'111'
temp =
'111'
y =
7
|
Find the longest sequence of 1's in a binary sequence.
3370 Solvers
1263 Solvers
Solve the set of simultaneous linear equations
273 Solvers
Set the array elements whose value is 13 to 0
939 Solvers
The sum of the numbers in the vector
426 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!