I am solving DQUERY on SPOJ. I solved it using MO\'s algorithm and I read the comments that these queries could also be solved online using persistent segment trees. Can any