|
|
|
|
|
by MrLeap
3339 days ago
|
|
I haven't messed with binary since college. (Well, some bitmask stuff happens every half decade I guess.) If you remember binary is just base2 I bet you could do it. Since you do accounting stuff, could you split a number into each base 10 component? 462 = (400,60,2). A bit of thinking leads me to 10^i, a for loop and some conditional subtraction / modulo. Binary is just 2^i. |
|
So, no, I'm going to refuse a screen that prevents me from solving it the way I'd solve other problems I don't do regularly.