|
|
|
|
|
by fictioncircle
3339 days ago
|
|
> Their tech screen was so ludicrously easy it made me wonder what the current standard is for developers. Just fyi, its probably because many developers don't touch binary. I work with numbers all day but they are currency transactions and accounting data. I haven't cared about transforming something to/from binary in 10+ years and couldn't do it without googling. However, the number of devs (and accountants) who can't figure out a 4-4-5 calendar reliably is quite impressive. |
|
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.