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 6510Post New Google Software Design AllOther Interview Questions
What is a strategy cascade?
Give an example of a combined addressing mode instruction?
Why dtsi is used in motor bikes?
what is the difference between apex:datatable and apex:pageblocktable components in visualforce?
WE know that for Inductor X=2pifL,In DC f=0,then X=0 so,V=IX=0;But In the DC excitation of rotor of AC generator,DC motor field coil which coils are inductor so why does not applying DC voltage short the rotor coil of AC generator and field coil of motor?If it would then DC source might be damaged but it is not happened. Why does the strand conductor of Electrical power transmission line make twist?
What are different types of control structures?
i have a csv file as source and need to sink as csv. But i have to create a sequence number in source(surrogate key) without using surrogate key function. kindly help me out on this .
What is static resistance of a diode?
What is the purpose of normalisation?
I am Simrat Kaur. I am persuing graduation from P.U. I have an experience of 14 months as a CSA. But i hav an experience letter of 6 months.But I can show my joinin letter of the other job. I hav knowledge of basics of computer & internet. Actually, m findin job in chandigarh. I am findin the right opportunity. so, Can u plz help me in findin the right job?? Can u plz tel me abt where interviews r goin on?
What are the biggest drawbacks of node.js?
What is the biological term for programmed cell death?
what are the types of electromagnetic forces developed in practical transformer?
Write Competitors of PEGA RPA?
How long is a 5 minute presentation?