[algogeeks] Re: Some adobe interview questions.

2011-07-05 Thread ankit mehta
I think that for Q3 answer will be unique and will be same as pointed out by Ritesh. On Jul 5, 1:11 pm, vikas mehta...@gmail.com wrote: Sum of all the digits should be 8 But it was not said by the interviewer i think we must print all possible combinations for the question -- You received

[algogeeks] Re: sort the array

2011-06-22 Thread ankit mehta
In step 2 it should me m++ instead of n++ and similarly in step 3 n+ +. But still I dont think it will work if we carry out these iterations on this particular array. It will return , what I think: 1 2 3 5 10 4 8 12. Please correct me if I am wrong. On Jun 22, 7:50 pm, Navneet Gupta

[algogeeks] Re: Amazon - Longest palindrome in a string in O(n)

2011-06-22 Thread ankit mehta
is nothing but longest common substring between string s and its reverse. On Wed, Jun 22, 2011 at 9:31 PM, ankit mehta mehta.bond...@gmail.com wrote: You dont have to create longest palindrome, you have to find the longest palindrome. On Jun 22, 7:19 pm, SVIX saivivekh.swaminat

[algogeeks] Re: sort the array

2011-06-22 Thread ankit mehta
Yes thats what I am saying that algorithm presented by Mr. Navneet wont work. On Jun 22, 9:40 pm, Apoorve Mohan apoorvemo...@gmail.com wrote: @ankit: we need an inplace algorithm :) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to