Google Interview Question
1,228 Interview Reviews |
Back to all Google Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Google:
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (5)
2 of 2 people found this helpful
2^64=(2^10)^6 * 2^4
=> (10^3)^6*16
=> 10^18*16
=> 1.6 * 10 ^ 19
= 16,000,000,000,000,000,000
Calculator says: 18,446,744,073,709,551,616
Helpful Answer?
Yes |
No
Inappropriate?
2 of 2 people found this helpful
2 ^ 60 = (1.024 ^ 6) * (10 ^ 18)
2 ^ 64 = (16 * (1.024 ^ 6) * (10 ^ 18) )
All, we need to solve is 1.024 ^ 6. using binomial expansion, ignoring the smaller terms we get : (1 + 0.024) ^ 6 = 1 + 6 * 0.024 = 1.144 = 1.15 (approx)
Hence the answer is : (16 * 1.15) * (10 ^ 18) = 18.4 * (10 ^ 18)
It is much closer to the actual answer and very fast to calculate.
Helpful Answer?
Yes |
No
Inappropriate?
I would say 18,446,.... so on
He ll ask how i get that..
Say "calculator"
The question was about without using pen/paper
Helpful Answer?
Yes |
No
Inappropriate?
1 of 1 people found this helpful
2^64 = 4bil * 4 bil
= 16 bil bil
each bil 9 0's, so 16 with 18 0's.
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
0 of 1 people found this helpful
by justaguye:
If I square it again, I should have double those digits, and again if I square it again..
So I'm looking for something in the neighborhood of 1x10^20, or approx
10,000,000,000,000,000,000.
Calculator says: 18,446,744,073,709,551,616--> I'm in the ballpark.