@Doddy, This can be solved by a trivial solution something like -
a=0,b=0,c=1,d=1. The test suite will accept the solution, however, this is not something you want (only using non-zero integers as mentioned in the problem statement).
I have edited the test suite accordingly, and will do so wherever I face the same issue in the Number puzzle series.
19692 Solvers
2218 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
819 Solvers
152 Solvers
301 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!