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 5253Post New Google Software Design AllOther Interview Questions
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is the difference between the web server and application server?
___________ and ____________ properity to be used to create localized version of a form
i have pcb and i am all set to do biotech so i wanted to know is this a successful option which has its perks??
List the logical databases that exist in hr.
How to provide values to stored procedure parameters in ms sql server?
What's the newest windows operating system?
What is the use of tokenizer?
What is main/res/ directory?
What are the differences between ae and sqr?
What is the use force:hasrecordID?
What is the component in ember.js? How is it defined?
How do you manage information for end users in web dynpro application?
How to update angular 6 to 7?
What are some of the components of Business Process Management in WorkFusion you are familiar with?