Before downvoting me, please hear me out.
I have solved some problems on CSES and then I got stuck at a problem for quite a long time. Then after searching for that problem, I realized that it involved Segment Tree and was pretty standard problem for it.
Now, I am wondering how would I know which new data structures or algorithms I would need to know in order to solve the problems. Should I just search up that question when I can't come up with a solution or do something else?
Thank you.