Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
assert(same_digits(1234,4321))
ans =
1
|
2 | Pass |
%%
assert(same_digits(1134,4311))
ans =
1
|
3 | Pass |
%%
assert(same_digits(1111,1111))
ans =
1
|
4 | Pass |
%%
assert(~same_digits(11,1111))
ans =
0
|
5 | Pass |
%%
assert(~same_digits(11,1234))
ans =
0
|
6 | Pass |
%%
assert(~same_digits(1234,234))
ans =
0
|
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
217 Solvers
343 Solvers
147 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!