vineetsetia009
BAN USERYou can add me on vineetsetia009@gmail.com and we can talk on this.Also if you have contacts to admin then you can suggest that idea to him/her too..
- vineetsetia009 June 30, 2012First of all, I dont have privilege to do that... and I have some cool idea to do that.. If admin wants then i can share with him.
- vineetsetia009 June 30, 2012but if we delete redundant questions...then we can revise all questions in a small span of time..
- vineetsetia009 June 30, 2012can you post a main function for this?..thanks in advance
- vineetsetia009 June 21, 2012Can anyone explain the test cases?...Thanks in advance.
- vineetsetia009 June 05, 2012We can take a global variable instead of storing each computation.
And the nodes can also be stored in some global variable.
got similar mail from Amazon few days ago..I appeared for intern hiring test, wrote good code...but still got rejected..dont know what the reason behind rejection...
- vineetsetia009 May 11, 2012extern is used outside.It should be used inside code.
- vineetsetia009 May 11, 2012dude for which position are you applying at Amazon??..Was that telephonic interview or inperson?
- vineetsetia009 April 28, 2012How will you mark the traversal as you are not supposed to do any change in the structure of list...and secondly if you store the lists'node address somewhere, then it will consume a lot of space..
- vineetsetia009 March 26, 2012Will someone explain answer of this question?
- vineetsetia009 February 23, 2012Will you please explain with an example?
- vineetsetia009 November 20, 2011yeah...you can consider this..
- vineetsetia009 November 20, 2011ok...thanks
- vineetsetia009 November 20, 2011I solved this question by hash map, then they asked me try to solve this in O(1) extra memory.......
- vineetsetia009 November 20, 2011you cant use extra space....
- vineetsetia009 November 20, 2011Counting sort will consume a lot of space and hash map will consume O(n) space...think apart from this..
- vineetsetia009 November 20, 2011yeah right..
- vineetsetia009 November 20, 2011I think you should compare numbers after calculating..
And for 891.see below
891->191 so neglected
891->898 first answer
891->901 now find for 901 and compare it with 898.
now for 901 next palindrome will be 909 and 898 is smaller than 909 so 898 is the answer.
NO......this is the correct question...if array is incremental then the answer is straight forward..
- vineetsetia009 November 10, 2011No....
- vineetsetia009 November 10, 2011they asked to optimize this to constant amount of time
- vineetsetia009 November 10, 2011@anonymous...they asked to do this in constant amount of time..
- vineetsetia009 November 10, 2011
Repmarkglove17, Associate at Arista Networks
Hi, I am Mark from North Edwards, CA .I am just crazy about dance.I am not professionally trained, but ...
For input {3,2,4,5,6,4}
- vineetsetia009 May 23, 2015LMIN = {3,2,2,2,2,2}
RMAX={6,6,6,6,6,4}
So the answer would be pair of (3,6) while answer should be pair of (3,4)