@sai ram: Logic is NOT fine. That is the first thing you should accept. You need to design an efficient solution to run in the required time limit. I think the time limit for this problems allows only O(n* log n) solutions to be accepted and your solution is slower than that.
On Fri, Aug 17, 2012 at 11:19 PM, apoorv gupta <apoorvcool2...@gmail.com>wrote: > Time limit xcded..i figured iut logic ts just a version of insertion > sort.. but i thnk some other algo will do d work here, > > > On Fri, Aug 17, 2012 at 3:32 PM, Sairam Ravu <ravu...@gmail.com> wrote: > >> The problem for me is in the run time - logic is fine, but why is it >> not running in the given time. >> >> >> >> >> >> >> -- >> With love and regards, >> Sairam Ravu >> I M.Tech(CS) >> Sri Sathya Sai Institute of Higher Learning >> "To live life, you must think it, measure it, experiment with it, >> dance it, paint it, draw it, and calculate it" >> >> -- >> 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?hl=en. >> >> > > > -- > * > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Thanks And Sincere Regards > Apoorv Gupta > Btech 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 to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Thanks and regards Rizwan A Hudda http://sites.google.com/site/rizwanhudda2 -- 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?hl=en.