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 5302Post New Google Software Design AllOther Interview Questions
Explain what are the different types of transformation available in informatica.
What is the use of ienumerable?
Which is fastest implementation of python?
What does (*) mean in sql?
What is a pixel url?
What is polymorphism in oops?
What are the advantages of angular 2 over angular 1?
I need to fetch all rows from the table based one field value in the table and later do a condition check if the condition is true I will have to move all the rows present in the data base to output file one else if the condition is not satisfied then move all the records of that field value into another file .Please let me know how to do that
What is habutae?
What are jsp el implicit objects and how it’s different from jsp implicit objects?
What is difference between insulating medium and fault current interruption medium in a switching device.
What is the use of HColumnDescriptor class?
What exactly is search engine optimization?
What is the best free alternative to outlook?
How do you install chrome extension for uipath studio?