I would like to submit the following question I was asked recently during my technical interview at Google. I'm rephrasing the question to make it clear for everyone to understand: - You are going on a one-way flight trip that includes billions of layovers. - You have 1 ticket for each part of your trip (i.e: if your trip is from city A to city C with a layover in city B, then you will have 1 flight ticket from city A to city B, and 1 flight ticket from city B to city C. - Each layover is unique. You are not stopping twice in the same city. - You forgot the original departure city. - You forgot the final destination city. - All the tickets you have are randomly sorted. Question are: - Design an algorithm to reconstruct your trip with minimum complexity. - How would you improve your algorithm. Example: - randomly sorted: New York->London San Francisco-> Hong Kong Paris->New York London->San Francisco - sorted: Paris->New York New York->London London->San Francisco San Francisco-> Hong Kong
3 6334Post New Google Software Design AllOther Interview Questions
Explain exception filter?
What are the disadvantages of bluestacks?
What is shutdown of electrical sub station?
How to identify the difference between the kernel object and user object?
Define ad-hoc reports?
How do you separate zeros from non-zeros in an array?
A user identifies that a huge data download is occurring on his instance. He has already set the auto scaling policy to increase the instance count. When the network input output increase beyond a threshold limits how can the user ensure that this temporary event does not result in scaling?
my english is not too good then what we apply for a php programer post
What is a collect statement?
Can pages replace word?
What is the default font used in ms word document?
What’s the difference between htmlentities() and htmlspecialchars()?
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
What is the difference between Global and External Variables?
How to create a new tablespace in oracle?