Here is one solution http://geeksforgeeks.org/?p=2405
On Fri, Oct 9, 2009 at 9:00 AM, sharad kumar <aryansmit3...@gmail.com>wrote: > space comp O(n) > time o(2n) both in terms of worst case > > On Fri, Oct 9, 2009 at 8:46 PM, ankur aggarwal > <ankur.mast....@gmail.com>wrote: > >> @sharad >> >> wat about space ?? >> extra space ? >> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 to algogeeks+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---