Has any one solved KQUERY using persistent segment tree?I am getting TLE.Here's my code: http://ideone.com/XQzVzV