Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

ITERATIVE method instead of RECURSIVE one to solve SPOJ GSS1 question

$
0
0

I'm trying to solve the spoj GSS1 using an iterative implementation of segment trees instead of a recursive approach. I have successfully built the segment tree but I'm finding it difficult to code the query() method using an iterative approach! Can anyone help in implementing the code using an iterative approach?Link to my code


Viewing all articles
Browse latest Browse all 40121

Latest Images

Trending Articles



Latest Images