4 ms·
A real Google interview question I got asked: "What's 2 to the power of 64?" .. I wasn't expecting it and it totally threw me. I worked it out though.
by dhotson 18y ago
A real Google interview question I got asked: "What's 2 to the power of 64?"
.. I wasn't expecting it and it totally threw me. I worked it out though.
- tlrobinson 18y ago10000000000000000000000000000000000000000000000000000000000000000 ... in binary. Seriously though, I think a lot of times questions like that are trick questions. Unless it's something totally idiotic, it probably can't hurt to give the simple answer first before working out the more complicated answer, especially if you make it clear you know it's the simpler of two answers.
- dhotson 18y agoActually, it's a pretty good test I think. To work it out in your head (in decimal you cheater! :D ) you need to know a bit about dealing with powers of two. <Spoiler alert!> So for example, if you happen to know that 2^32 is roughly 4 billion, then you can figure out that 2^64 is 2^32 squared. 4 billion is 4x10^9 .. so 2^64 is roughly 16x10^18.
- qqq 18y agoJust know that 2^10 is about 1000, so you do 2^4 followed by 1000^6, ie 6*3 zeros.