just have a look on segment tree ( u can found good study material on segment tree at topcoder algorithm tutorial)
On Monday, 25 June 2012 18:13:50 UTC+5:30, Navin Kumar wrote: > please provide some good data structure to solve this problem: > > http://www.careercup.com/question?id=14062676 > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/oqwFm1L_OMwJ. 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.