2 to the power what = 2 gigs ?

Body

I've been asked this question a few months ago when I was interviewed by Google, She wanted a smart way so I told her that I can use the calculator but probably that's not the answer that you want. I decided not to answer.

My idea was to multiply 2 by 2 by 2 by 2 ....... until I reach 2 gigs.

Yesterday I was going home and I don't know why did I remember this again.
I tried to solve it using binary shift and so but it didn't work.

Guess what ? An idea popped into my head, What if we take the logarithm of 2 gigs to the base 2 ?

Now that's a damn smart answer, It takes a bit of concentration to get it and when you realize that it's a simple answer you might get mad at yourself.

That's why I'm sure that I'll fail in IQ tests although I'm sure that I'm smart :-)

Looks like I failed and they didn't contact me again!

Add new comment

The content of this field is kept private and will not be shown publicly.