Need help to solve SPOJ SID problem

Revision en1, by wadhwasahil, 2015-07-24 12:59:24

problem link I am doing this question using AVL tree but I am not able to handle the duplicate values in the input. First , I thought of using a vector for each node but that will turn out to be a TLE. Any help would be really appreciated.

Thanks in advance.

Tags avl, binary search tree, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English wadhwasahil 2015-07-24 12:59:24 339 Initial revision (published)