great
I solved the problem using Segment Trees. Wondering which one is more efficient for the Funny Marbles question: Fenwick or Segment?? I am not aware of Fenwick trees btw, so gunna spend my Sunday on this
Strangely, I canβt find the editorials for the December long contest though
@lonecodertaken : u can find the editorials for the DEC13 here http://discuss.codechef.com/tags/dec13/
1 Like
Thanks a lot