Segment tree

Revision en1, by rahulpadhy, 2016-05-20 14:11:39

Hi, I am new to segment trees. I am getting RE for this SPOJ question and I am unable to find out the mistake in my code. So, can you guys please help ?? Here's the link to the question... http://www.spoj.com/problems/GSS1/

And, here's my solution.. http://pastebin.com/dtKe4rx4

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rahulpadhy 2016-05-20 14:11:39 296 Initial revision (published)