Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 1;
y_correct = 0;
assert(isequal(pol_angle(x),y_correct))
y =
-180
|
2 | Pass |
x = 2;
y_correct = 0;
assert(isequal(pol_angle(x),y_correct))
y =
0
|
3 | Fail |
x = 3;
y_correct = 60;
assert(isequal(pol_angle(x),y_correct))
y =
540
|
4 | Fail |
x = 4;
y_correct = 90;
assert(isequal(pol_angle(x),y_correct))
y =
1440
|
5 | Fail |
x = 5;
y_correct = 108;
assert(isequal(pol_angle(x),y_correct))
y =
2700
|
6 | Fail |
x = 6;
y_correct = 120;
assert(isequal(pol_angle(x),y_correct))
y =
4320
|
2183 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
1424 Solvers
302 Solvers
1221 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!