best method i know is..... start comparing elements from ends and put the larger at end and so on TC: O(X+Y) SC: O(1)
On Tue, Jan 11, 2011 at 8:11 PM, bittu <[email protected]> wrote: > @juver++ so post your approach...i will also do the same..i posted the > question here so that we can learn new way to solve or you can say > best way to solve problem... > > "One Problem Can be Solved My Many Ways But There is Only One Best Way > to Solve It" > > > > Regards > Shashank > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Sunny Aggrawal B-Tech IV year,CSI Indian Institute Of Technology,Roorkee -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
