I always have a hard time finding out which data structure to use. After thinking for 1-2hrs, I give up and look at the Disucss/Solutions.
It would be a huge help if someone can help me, How to cognise which data structure is required?
How to change my mindset from " I can't solve to this problem to " I can solve this problem " because after looking at the problem I feel overwhelmed.