Naveen_Kumar101's blog

By Naveen_Kumar101, history, 14 months ago, In English

I was trying to solve a the question in Segment Tree section in Edu section (Segment Tree, Step2, Problem A (segment with maximum sum)) using iterative version of segment tree, but it's not working with it while the recursive version with the same logic works.

Could anyone please help with this? I am unable to find out where I am mistaking.

Code

Thanks.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?