How to become an expert in Data Structure and Algorithms

Data Structure and Algorithms : Becoming expert in Data structure and algorithms is the dream of every developer.

Data structure and Algorithms are always one of core technical things that are required to move ahead in your career. From the time of 3rd semester placement till 18–20 years experience in the tech industry you always stuck with some form of data structure and algorithms. As shown below in chart, on an average interview these will pattern mostly seen in interview

expert in Data Structure and Algorithms

The Internet is full of courses in data structure and algorithms, out of which sometimes it’s very difficult to figure it out which one is better. Thanks to Google Review, we can figure out content quality reviews online.

Also Read Hacker Rank vs Leet Code

I advise you to follow the following best practice:

  1. educate yourself about data structures
  2. educate yourself about algorithms
  3. create a project and apply your learnings with practices in your programming language of choice
  4. refactor the codes, time to time, with new findings
  5. refactor the existing codes from other projects with the findings you have about different algorithms and data structures.

Then for each step:

Step 1: educate yourself about Data Structure and Algorithms

  • Review reference books and online resources
  • Make a list of different data structures(numerics, strings, dictionary, hashtag, etc) and for each item, try to run an example.
  • find problems which could be written using different data structures and try to use different data structures there

Step 2: educate yourself about Data Structure and Algorithms

  • Review reference books and online resources
  • Make a list of different algorithms categories(search, sort, …) and for each item of each category, try to run an existing example.
  • try to rewrite the examples by yourself
  • find problems which could be written using different algorithms(e.g sort) and then compare them.

Step 3: create a project and apply your learnings with practices in your programming language of choice

  • put all the examples you found online from the previous steps in this project
  • put all the codes you wrote in previous steps in this project
  • organize the project and define some structure for it
  • document the codes, if necessary, for your future references

Step 4: refactor the codes, time to time, with new findings

  • apply the new findings into your codebase and document it
  • try to understand how new refactorings and findings affect the code(complexity, memory allocation, execution time, …)

Step 5: refactor the existing codes from other projects with the findings you have about different Data Structure and Algorithms

  • apply your knowledge to real world programs
  • try to understand how the changes you make to the code affects it(complexity, memory allocation, execution time, …)
  • draw conclusions about the changes(if they were useful, if they made code cleaner and more readable, …)

The Efficient Way of learning Data Structure and Algorithms depends on many factors which are listed below:

  1. Your prior knowledge of programming languages and basic DS and Algos.
  2. The purpose for which you want to learn it.
  3. The resources available to you.
  4. A perfect guidance towards this path.

Also Read Best Jobs in Australia

Basic Knowledge Required for becoming an expert in Data Structure and Algorithms

  1. Arrays, linked lists, queues, stacks
  2. Linear search, binary search, bubble sort, insertion sort, selection sort
  3. Recursion
  4. At this time, I would recommend understanding the concept of space and time complexity.
  5. Merge sort, quicksort, counting sort, radix sort
  6. Moving on to trees (intro), binary search trees, balanced binary search trees
  7. Heaps, heapsort
  8. Hashing
  9. Amortized analysis
  10. Disjoint set (Union- find)
  11. Graphs, BFS, DFS
  12. Dijkstra, bellman ford, prims’s algorithm, Kruskal’s algorithm
  13. Dynamic programming: Intro and the 5–10 classic problems in DP.
  14. Floyd’s and Warshall’s algorithm
  15. Backtracking
  16. Randomized algorithms
  17. Complexity theory introduction: P, NP, NP-hard problems
  18. Approximation algorithms
  19. String matching algorithms: Rabin Karp and KMP
  20. Tries
  21. Convex hull, line-sweep technique
  22. Range trees, Segment trees

There’s a lot more. If you are interested in competitive programming then this is a great source for Data Structure and Algorithms.

Now you are talking about mastering these algorithms and data structures. Just studying them and even implementing them is not enough for that. I think mastering means that you must be able to modify the data structure or algorithm as per your needs and most importantly you must be able to solve problems with your knowledge. 

good source to learn data structures and algorithms

Course Pause Feature – Another Great feature and unique , that helped me a lot. It was course deadline pause feature , while there were exams or some important work , i stopped the course deadline . It had total 15 days. You can simply pause the time in course for total of 15 days which was just awesome .

TA and Mentor Support – Available almost whole day
There were TA( Teaching assistant ) , that are good in the respective field , who are always there to help you for any query be it basic one or hard one . You can just post your doubt on the Doubt Board and get it solved or understood by the TA .

Not only this you have mentor support too if you need sometime .In my batch there was Ravi , he was too good , he never refused to solve a problem and was a good person. With the help of these things i.e the TA support and course content , what else is needed now ?? You are ready for an internship or a job now ! . Don’t believe me ? Lets read the next point then !

Placement Cell – Internship and jobs opportunities after course completion
As the name suggest , a placement cell , which will help you get placed in a good company or score an internship . Its been more than a year , but i still receive mails and messages about available jobs and internships.

There is a dedicated cell for the students who do well in their courses and complete the course in time to get good placements.They send emails and notification for new jobs opportunities , like recently there was Nearbuy SDE intern and a lot more like that. Still not placed ? Then there is something more for you , keep reading!

TA internship opportunity If you complete your course in time with good percentage completion you get an opportunity to apply for TA , for upcoming batches . In that you can self learn by solving doubts of others and also may get paid accordingly , Plus a work experience .

Not only this you get 2 certificates of Data Structure and Algorithms if you complete the course more than 90% . Now what else is needed when you are getting so much of things in one single course .

Some may argue that the course is expensive , but always remember see the returns not the cost initially , as Warren Buffet says . This course will return you huge . Not only in placement but it alos improves thinking capability.

Where to find difficult Data Structure and Algorithms problems

If you just want to know the questions and answers for interview questions, the following are some good places to visit. These will be useful in a situation where there is not much time for preparation.

More than 2 months for preparation
If you have lot of time for the interview it is better to improve your coding skills, Here are a few useful sites for practicing algorithmic programming.

  • HackerRank (previously )
    • No-so-easy questions , most of them are challenging.
    • Solving one question requires multiple concepts.
    • Companies come for hiring via codesprints in interviewstreet
  • Sphere Online Judge (SPOJ)
    • Use to search for problems of a concept and then solve the questions
    • Contains more than 10K questions
    • has questions of all levels in Data Structure and Algorithms.
  • Codechef
    • Contains questions of all levels.
    • There will be monthly contests.
    • They conduct non-programming contests once a while (may be around 3 months)
    • Moderate and difficult questions.
    • Very good community.
    • High quality tutorials.
    • There will around 2 contests per month.
    • Contains questions of all levels(archives).
    (similar to topcoder for Data Structure and Algorithms)
    • Contains many easy questions in the beginning. But the questions after the 200th are challenging.
    • One can start with this (questions numbered <100) and move on to other sites once he/she gets confidence.

1 thought on “How to become an expert in Data Structure and Algorithms”

Leave a Comment

Share via
Copy link
Powered by Social Snap