Binary Indexed Tree Problem from SPOJ (KQUERY — K-query)

Revision en1, by Tobby_And_Friends, 2016-10-20 02:41:27

Problem Name: KQUERY — K-query

Problem Link: http://www.spoj.com/problems/KQUERY/

My solution: http://ideone.com/4COpOu

verdict: TLE

How do I further optimize my solution?

Any help is really appreciated.

Tags binary indexed tree, spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Tobby_And_Friends 2016-10-20 02:41:27 280 Initial revision (published)