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 6620array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}
12 17728How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)
1 7461Hi Friends..Can anybody tell me how much Salary u'll be getting for Manual Tester(1+ years of Experience)Position in the Companies like Wipro & Infosys????
6 10938write a c program to print the values in words eg:- 143 written it has (one hundred and forty three)& 104, 114 are also written words
5 16661There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?
8 12946Post New Google Interview Questions
What are various ways to write la oop in r?
Mention what do you mean by one-time vendors?
Dear Sir, i need previous technical question papers, if possible so please tell from where i got these papers.
Where are payment terms for vendor master maintained?
Explain wow to claim the policy? : insurance sales
There are 2 int type array data type. One is containing 50 elements, and another one is containing 30 elements. Can we assign the array of 50 elements to an array of 30 elements?
We are a UK company selling electronic s/w licenses to customer in India. We have a PAN Number. Why is TDS being deducted on a product? Why is TDS calculated on the invoice value - surely it is supposed to be on Income and not Turnover? What is the correct TDS % deduction?
How do you write a function that can reverse a linked-list in C++?
What is action methods in web api?
What do you understand by Eigenvectors and Eigenvalues?
What is error 0x0000142?
How do I use conditional formatting in excel?
What is collective processing of gl accounts? : fi- general ledger accounting
What is data structure and why we need it?
What is difference between LINQ AND PLINQ?