http://www.spoj.com/problems/DQUERY/en/ I tried to solve this problem with divide and conquer.
But in spoj verdicts is segmentation fault. Here is my code.... http://ideone.com/8g7Lyl
Isn't complexity O(nlogn) in total???
http://www.spoj.com/problems/DQUERY/en/ I tried to solve this problem with divide and conquer.
But in spoj verdicts is segmentation fault. Here is my code.... http://ideone.com/8g7Lyl
Isn't complexity O(nlogn) in total???