Hi everyone, I was attempting the following question: http://www.spoj.com/problems/FREQUENT/
I tried to use Segment trees for this question but I am getting WA. Please help me get an idea about where I am wrong. Here is the link to the code: http://ideone.com/leiE86
Thanking you, Maulik