30 Days Interview Preparation Plan?
30 Days Interview Preparation Plan?
Day1: (Arrays)
1. Sort an array of 0’s 1’s 2’s without using extra space or sorting algo
2. Repeat and Missing Number
3. Merge two sorted Arrays without extra space
4. Kadane’s Algorithm
5. Merge Overlapping Subintervals
6. Find the duplicate in an array of N+1 integers.
Day2: (Arrays)
Day3: (Arrays/maths)
1. Search in a 2D matrix
2. Pow(X,n)
3. Majority Element (>N/2 times)
4. Majority Element (>N/3 times)
5. Grid Unique Paths
6. Reverse Pairs (Leetcode)
7. Go through Puzzles from GFG** (Search on own)
Day4: (Hashing)
1. 2 Sum problem
2. 4 Sum problem
3. Longest Consecutive Sequence
4. Largest Subarray with 0 sum
5. Count number of subarrays with given XOR (this clearsa lot of problems)
6. Longest substring without repeat
Day5: (LinkedList)
1. Reverse a LinkedList
2. Find middle of LinkedList
3. Merge two sorted Linked List
4. Remove N-th node from back of LinkedList
5. Delete a given Node when a node is given. (0(1) solution)
6. Add two numbers as LinkedList
Day6:
Day7: (2-pointer)
Day8: (Greedy)
Day9 (Recursion):
1. Subset Sums
2. Subset-II
3. Combination sum-
4. Combination sum
5. Palindrome Partitioning
6. K-th permutation Sequence
1. N-th root of an integer (use binary search) (square root, cube root, ..)
2. Matrix Median
3. Find the element that appears once in sorted array, and rest element appears
twice (Binary search)
4. Search element in a sorted and rotated array/ find pivot where it is rotated**
5. Median of 2 sorted arrays
6. K-th element of two sorted arrays
7. Allocate Minimum Number of Pages
8. Aggressive Cows
Day12: (Bits) (Optional, very rare topic in interviews, but if you have time left, someone
might
ask)
Day14:
Day15: (String)
Day16: (String)
1. Prefix Function/Z-Function
2. KMP algo / LPS(pi) array
3. Minimum characters needed to be inserted in the beginning to make it
palindromic.
4. Check for Anagrams
5. Count and Say
6. Compare version numbers
Day21: (BinarySearchTree)
Day23: (Graph)
Day24: (Graph)
Day26: (DP)
1. Maximum sum path in matrix, (count paths, and similar type do, also backtrack to
find
the maximum path)
2. Coin change
3. Subset Sum
4. Rod Cutting
5. Egg Dropping
6. Word Break
7. Palindrome Partitioning (MCM Variation)
8. Maximum profit in Job scheduling
For core revision</>
Day27:
1. Revise OS notes that you would have made during your sem
2. If not made notes, spend 2 or 3 days and make notes from Knowledge Gate.
Day28:
1. Revise DBMS notes that you would have made during your semesters.
2. If not made notes, spend 2 or 3 days and make notes from Knowledge Gate.
Day29:
1. Revise CN notes, that you would have made during your sem.
2. If not made notes, spend 2 or 3 days and make notes from Knowledge Gate.
Day30:
1. Make a note of how will your represent your projects, and prepare all questions
related to tech which you have used in your projects. Prepare a note which you
can
say for 3-10 minutes when he asks you that say something about the project.
The above sheet was prepared by Raj Vikramaditya. I have documented this sheet here in
markdown.
https://github.com/SamirPaul1/DSAlgo/tree/main/30-Days-SDE-Sheet-Practice