Not able to solve any medium or hard problem

I am not able to solve any medium level or hard level problem. I do code in Java. What can I do now to improve and solve medium level problem.

Keep on PRACTISING !
one and the most perfect ans .

3 Likes

4 steps to do so:-

  1. learn a language (java as you say)
  2. learn Data Structure (stack,queue,linked list, trees, graph)
  3. learn algorithms commonly used in competitive programming
  4. while(1){ practice and practice; }
1 Like

Learn the working and use case of all the data structures and algorithms along with practice.
Spend time in it, it takes months to get to the point where you can solve medium questions.

1 Like