You only asked to solve the specific problem given, not a general problem, so the answer is x =4 and y=5. Rephrase your question please.
Solves the example only, but not the general case.
I have introduced a few more tests so this non-general solution is no longer valid. Thanks.
Well, this works here, but numerically this is a bad idea of solving a linear equation system.
5704 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
Getting the indices from a matrice
360 Solvers
531 Solvers
Check that number is whole number
1070 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!