#Probably should be changed to failed to explain it properly
1 messages · Page 1 of 1 (latest)
maybe
I explained it as repeated division, as well as bit manipulation, and then coded it
and the interviewer still didn't exactly understand
so idk if my brain just wasn't working that day
Static hash table with 0-15 values. Go left to right multiplying each digit by the relevant power of ten
I don't totally get how that works .-.
my approach was to repeatedly take lower four bits of the number, then convert 0-15 in decimal to 0-F in hex, then shift the original number >> 4
which is just dividing by 16 and taking the mod each time
That works btw, your interviewer was tired or not prepared
If you communicated fairly then this sounds like bad luck
R u sure its because of this u got rejected ?