How to study DSA?

Whether you’re starting, or someone who already started to study DSA. We’ve all always encountered the question that what exactly is the right way to study data structures and algorithms.

Pro-tip : There is no acceptable right way, the way that works for you is the only right way.

How to start?

Simple answer : Don’t hesitate, just start.

  • Choose a language
  • Learn the basic syntax
  • Get your hands around with some programs like finding factorial, second minimum element, swapping two numbers without using another variable etc.
  • Choose a roadmap get started with the questions.

ROADMAP :

There are a lot of roadmaps available on the internet. Here are some I’ve gathered

For beginner’s : https://takeuforward.org/strivers-a2z-dsa-course/strivers-a2z-dsa-course-sheet-2/

For someone who wants to revise : https://neetcode.io/roadmap

450 DSA Questions : https://450dsa.com/

45-60 days plan : https://docs.google.com/spreadsheets/d/1MGVBJ8HkRbCnU6EQASjJKCqQE8BWng4qgL0n3vCVOxE/edit#gid=0

How to tackle a question?

  • Read the question carefully at least twice and understand it.
  • Don’t start coding right away, first think about how you’ll tackle the question and reach to the desired answer (give yourself 45 to 60 mins maximum and do not worry about how you’re gonna code it at this step, just think about how you will solve it in your mind or using a pen and a paper).
  • Now, think about the data structure or the algorithm you’re going to use for the solution. After you’re ready with your solution, start coding.
  • If you get stuck at any point, just google it, but remember you’ve to understand it and not just paste it.
  • If you can’t come up with a answer, then look at the solutions provided and try to understand them.
  • Try to code the solution on your own after understanding it.
  • After you’re done with the solution, always check other people’s solution you always get to learn something from it.

Important tips to remember :

  • Make your own notes.
  • Always dry run your code and check.
  • Keep revising your notes and questions.
  • Be consistent.

How to stay motivated?

Be true to yourself.

There are many platforms that provide points on solving questions and using those points you can redeem amazing gifts.

Take part in contests and enjoy the discussions.

Don’t stress it, you can do it !!

Add a Comment

Your email address will not be published. Required fields are marked *