Re: [algogeeks] MS written test qs

2011-08-07 Thread Ravinder Kumar
to store the number for space efficiency . Node structure is like this . struct node { char arr[20] ; struct node * next ; } Do the rest same . -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you

Re: [algogeeks] Re: Amazon Written test Q-1

2011-08-02 Thread Ravinder Kumar
Since it is doubly linked list we can use Dutch Flag Algorithm to sort . Only one pass required . -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] latest google interview questions

2011-08-02 Thread Ravinder Kumar
If I am not wrong you are from MNNIT Allahabad 3rd year . How did you get intern in google . -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] Complexity Help..

2011-08-02 Thread Ravinder Kumar
Its complexity is same as of finding the all combination if a given string . it is O(n!) -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] Complexity Help..

2011-08-02 Thread Ravinder Kumar
My mistake .I only saw the program flow which is similar to permutation . Its DP similar to 0,1 knapsack Complexity is O(nc) where c is size of knapsack and n is number different of items -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT

Re: [algogeeks] c output

2011-08-02 Thread Ravinder Kumar
++*p++ This statement changing the value of read only memory of string constant *p=hai friends ; -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks] Complexity Help..

2011-08-02 Thread Ravinder Kumar
it depends on target sum . Size of index array is depends on target sum . Try to dry run it you will get hint . -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe

Re: [algogeeks] Sort IT

2011-08-01 Thread Ravinder Kumar
:* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email

Re: [algogeeks] Oracle interview questions

2011-07-31 Thread Ravinder Kumar
Plz tell about the type of questions asked by individual profiles . -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Boundary of buildings

2011-07-31 Thread Ravinder Kumar
Can you explain the question more ?? -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] Re: Direct - i ques

2011-07-31 Thread Ravinder Kumar
Guys the real question is : Design a data structure which support following operation 1. insertion of an arbitrary element 2. removing the oldest element 3. Accessing min element -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You

[algogeeks] Urgent : Info Required

2011-07-31 Thread Ravinder Kumar
NIT warangal guys plz tell the type of questions asked by the oracle Apps . Reply ASAP bcz having interview in the morning. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To

Re: [algogeeks] Programming Puzzle!!!!!!!

2011-07-29 Thread Ravinder Kumar
. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech Final Year

Re: [algogeeks] Re: permutation of string with repeated characters...

2011-07-29 Thread Ravinder Kumar
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks]

2011-07-29 Thread Ravinder Kumar
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you are subscribed

Re: [algogeeks] problem tree minimum sum in binary

2011-07-26 Thread Ravinder Kumar
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science and Engineering MNNIT Allahabad -- You received this message because you

Re: [algogeeks] Nagarro Coding Round Ques......

2011-07-24 Thread Ravinder Kumar
group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech 3rd

Re: [algogeeks] Nagarro Coding Round Ques......

2011-07-24 Thread Ravinder Kumar
, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech Final Year Computer Science

Re: [algogeeks] Nagarro Coding Round Ques......

2011-07-24 Thread Ravinder Kumar
got it .. On Sun, Jul 24, 2011 at 5:02 PM, Ravinder Kumar ravinde...@gmail.comwrote: why are you checking power of 2 there can be any character at last . On Sun, Jul 24, 2011 at 4:10 PM, SkRiPt KiDdIe anuragmsi...@gmail.comwrote: check power of 2. -- You received this message

Re: [algogeeks] Re: Array Merge Problem

2011-06-03 Thread Ravinder Kumar
to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *With Regards :* Ravinder Kumar B.Tech 3rd Year Computer Science and Engineering MNNIT

Re: [algogeeks] Re: amezan interview.........

2010-08-07 Thread Ravinder Kumar
@Nikhil Jindal check your fromula for indices when k = 3 it is k/2 - 1 = 0 thus it will give swap(3,n). On Sat, Aug 7, 2010 at 5:37 PM, Nikhil Jindal fundoon...@yahoo.co.inwrote: Observation: Following is the sequence of indices which we want to swap: (2,n+1) (3,n+1) (4,n+2)