Google Interview Report
- 2of 4 votes
AnswersHow do you find the greatest 1000 elements in a list of a million elements? No other information given. What would be the runtime? Hint: You can do better than O(n log n). I didn't realize but it could be possible with Tree or Heaps.
- Ana April 23, 2013 in United States| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Algorithm - 0of 0 votes
AnswersFlatten a List<List<Integer>> in Java and implement the hasNext() and next() methods.
- Ana April 23, 2013 in United States
e.g. [[6,8],4] should return true when at 6, 8 and false at 4.| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Coding
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.