Google Interview Question
1,227 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:
you have a file which contains no. from 100 to 999999999, but some nos. are missing. how would you find the missing nos.? - loading the whole file or keeping the file open for long time isn't desirable.
| Tags: | functional See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (5)
0 of 1 people found this helpful
Helpful Answer?
Yes |
No
Inappropriate?
2 of 2 people found this helpful
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
1 of 3 people found this helpful
by Anonymous:
If the numbers are not sorted then it is a all different story ! I would use the same technique but first I would use multiple Thread or process to sort the file (maybe merge sort since it would work well in parallel because of its divide and conquer methodology) and then apply the above method. just some thought...