msramachandran
BAN USER
- 0of 0 votes
AnswersHow to merge K sorted arrays into one array.
- msramachandran in India
I explained the second part of external sort and said its in O(N logK). I don't think he understood the time complexity I explained.| Report Duplicate | Flag | PURGE
Flipkart Software Engineer / Developer Algorithm - 0of 0 votes
AnswersSimple questions were asked.
- msramachandran in India
1. Get the number of employees from every department given employee and dept tables.
2. How would you optimize a query considering that it is performing very bad.
3. What happens behind the scene when you hit any website URL in the web browser.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Data Structures - 0of 0 votes
AnswersVisualize holding an N-ary tree by its root in your left hand. Now hold any node in the tree with your right hand and release the left hand. How the tree would transform and give an algorithm to do it programatically.
- msramachandran in India| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven an array such that ever number differ from its adjacent number by at max 1. Find a number in this array efficiently.
- msramachandran in India
I told him i knew this question already and explained the answer real quick.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow would you do check valid parenthesis in less than O(n) time. He was looking for divide and conquer.
- msramachandran in India
We had a debate about it being in O(n) and he asked me to think about it in threaded environment.| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm
the challenge is to do this in one function without using global variables :)
- msramachandran November 01, 2011I dont think this would work. why are you finding the right most node first of all ?
- msramachandran November 01, 2011
how would you find the point of rotation ?
- msramachandran November 01, 2011If its linear search. then it defeats the purpose of binary search.