3 ms·
For the first puzzle, code that determines if a value has one bit high, without any if/while/for, here's what I got: !(x & (x-1)) && x Was there a "best" solu
by flyingcircus3 4y ago
For the first puzzle, code that determines if a value has one bit high, without any if/while/for, here's what I got:
!(x & (x-1)) && x
Was there a "best" solution somewhere? I couldnt get the code window to work.
- amenghra 4y ago-1 is not an allowed operator in my puzzle.