What is the BEST way to Practice "Cracking the CODING Interview Problems?
Original Author: Harsh Goel(CEO, InterviewCamp.io - Online Bootcamp for Tech Interviews)
No of Words: 253
No of Backlinks: 2
No of Words: 253
No of Backlinks: 2
Here is a sequence I recommend:
- (Before starting CTCI) Master important data structuresLearn at least the following for each data structure:
Implementation, Insertion, Deletion, Lookup.
Get a book in your language of choice, or rely on online articles.
Here is a list of data structures to master: - Arrays and Lists
- 2D Arrays
- Strings
- Linked List
- Stack
- Queue
- Hash Table & Hash Set
- Heap
- Graphs
- Binary Tree
- Binary Search Tree
- Trie
- Master a few classic algorithms: You should know how to implement them in < 10 minutes if you practice them a few times.
- Binary Search
- Breadth-First Search
- Depth First Search
- Merge Sort
- Quick Sort
- Selection Algorithm
- Prepare for Recursion and Backtracking: Used very often. Do the following problems to get a good base:
Recursive Practice Problems with Solutions - GeeksforGeeks
Congratulations! You’ve mastered the basics. Now for the good part. - Start Cracking the Coding Interview(CTCI). Go chapter by chapter. We’ve already developed a good base in the previous steps.
Note: You don’t need to implement all the questions. Follow this strategy: - For each chapter, implement the first 2 questions. This gives you practice with that data structure.
- Then, go down the list of questions and try to solve them. Try visualizing the code in your head. Can you figure out the structure?
- If yes, move to the next question to save time.
- If no, try implementing the code.
All the best for your interviews!
Comments
Post a Comment