Can this problem be solved using segment tree?

Revision en2, by Siriuslight, 2017-02-22 16:40:41

Can this problem problem be solved using segment tree. If yes can anyone can tell how to build Seg tree.

During combining two segments how do i check for mid and (mid+1)th element in merged segement.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Siriuslight 2017-02-22 16:40:41 67
en1 English Siriuslight 2017-02-22 16:39:27 232 Initial revision (published)