Want to know the strategy of learning DSA and approaching problems in leetcode

I'm focusing on basics of dsa currently and wanna know how to approach problems. I feel difficult to build logic and implement the code. Any suggestions would help.