Direction matters

Being on the right direction is more important than the speed.

Lock in your resources

W3 schools : For learning basics .
Geeks for Geeks : For in depth explanation and solving problems .
Leetcode or Hackerrank or Codechef: Solving problems
Neetcode youtube channel : Practice Leetcode questions for each topic.

Brainstorm

Take some time out to write on paper , before you code . So that ideas can flush in .
First on paper , then code.

No guilt in reading solutions

If stuck with a question more than 15 minutes , take up the courage to google or read solutions and thats how you learn . If already done with the question , checkout the solutions usually there are multiple ways to solve a question.

Practice

Practice , review , reflect.