Even I have implemented it using arrays, but I am getting a TLE. Here's the code http://ideone.com/EfYRa On Jun 19, 8:15 am, Anand <anandut2...@gmail.com> wrote: > It can be done using simple array data structure why do we need complex data > structure. > > Here is how I did. Let me know if I understood > correctly.http://codepad.org/rMbTI8PJ > > > > On Fri, Jun 18, 2010 at 8:15 AM, Shravan <shravann1...@gmail.com> wrote: > > I am trying to solve the problemhttp://www.spoj.pl/problems/RRSCHED/ > > . And a naive approach doesn't seem to work .What sort of data > > structure do I need. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to algoge...@googlegroups.com. > > To unsubscribe from this group, send email to > > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups > > .com> > > . > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en.
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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.