Re: [algogeeks] Re: Reverse Queue

2012-06-20 Thread Sreeprasad Govindankutty
Just a query : If the queue is implemented as an array, then is it not possible to swap the elements from the last and first position onwards until you reach middle point. Wont this use O(1) space and O(n/2) time. On Wed, Jun 20, 2012 at 1:56 PM, Hassan Monfared hmonfa...@gmail.comwrote:

Re: [algogeeks] Amazon Question

2011-04-16 Thread Sreeprasad Govindankutty
Yes this is the solution when the binary tree is complete binary tree Thanks and many regards, Sreeprasad Govindankutty On Sat, Apr 16, 2011 at 3:57 PM, Pratik Kathalkar dancewithpra...@gmail.com wrote: I think this solution is applicable if the binary tree is complete binary tree, isn't

Re: [algogeeks] one more from amazon

2011-02-06 Thread Sreeprasad Govindankutty
If duplicate values are allowed :: import java.io.BufferedReader; import java.io.InputStreamReader; public class PartionNumber { public static void main(String[] args) { System.out.println(Enter the number); InputStreamReader ifn = new InputStreamReader(System.in);

Re: [algogeeks] Re: SPOJ PROBLEM

2011-02-02 Thread Sreeprasad Govindankutty
from this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Thanks and many regards, Sreeprasad Govindankutty -- You received this message because

Re: [algogeeks] OS galvin sol..

2011-01-21 Thread Sreeprasad Govindankutty
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Thanks and many regards, Sreeprasad Govindankutty -- You received this message because you are subscribed to the Google Groups Algorithm