Segment trees are overrated. It’s gonna be a good year.
In the same boat as you OP. Try Fenwick trees; easier to code and it can be used for many segment tree use cases.
one day I came back home from work around 8:00pm and decided to implement segment tree. had prior knowledge of how it works, recursion etc. took me couple hours to code build tree, update and add operation. I agree, segment trees are overrated.
Overrated as in too difficult to implement or too easy just time consuming? I’m a little confused as to your meaning, the beginning of your statement and the end seem to illustrate opposing points.
it takes a bit of ur mind to understand how recursion is applied. once u get it, u should be able to code it. I think geeksforgeeks also has non recursion solution, that was hard to understand.
I’m over here struggling with leetcode medium problems. Well done mate keep up the good work.
Sometimes I struggle with lc easy
Well it just means you are learning something new and nothing else. We can’t get to great without going through alright first.