This is the storehouse for all the problems I've done till now and resources that can be referred while stuck or practicing.
https://docs.google.com/document/d/1JH4ElSvgyi-12AVNyia6GESgFX0DQ7xTYP6IY8oSBy4/edit?usp=sharing
- Compilation of my interview fails ! Made many silly mistakes in many interviews.
https://docs.google.com/document/d/1dLRl5DEgOShx8uR3lUIcHzGyk5vwF_KjVoSVO19cx7k/edit?usp=sharing
- IF beginner study data structures from pepcoding youtube videos and code simultaneously. Then code all standard questions present in gfg . Then practice the harder,medium questions and keep on revising daily . Take advantage of contests held on codechef,codeforces and leetcode. Upsolve questions , never aim for less. Mediocrity makes you blunt .Solve each question using multiple approaches , use discuss sections of leetcode and youtube. Write everything you dont understand in a book and revise it daily. You may be late or learning slow , but with consistent practice and revision you will beat anyone ! Take advantage of learning sprints by codechef which has different levels.
https://leetcode.com/problemset/all/?search=water%20
comparator problems
- vertical traversal
- views: top-view ,side -view, bottom view
- Construct BT given it's preorder ,postorder traversal.
- Level order traversal questions.
- Iterative postorder,preorder,inorder traversals
- string related
- palindrome
- Backtracking
- LCS
- LIS
- Knapsack
- grid
- Matrix chain
- string - palindrome ,substring ,subsequence ,subset
- Subset
- https://www.codechef.com/certification/data-structures-and-algorithms/prepare#foundation
- https://www.codechef.com/certification/data-structures-and-algorithms/prepare#advanced
- https://leetcode.com/discuss/general-discussion/665604/Important-and-Useful-links-from-all-over-the-LeetCode
- https://leetcode.com/discuss/general-discussion/1050391/must-do-dynamic-programming-problems-category-wise
- https://www.geeksforgeeks.org/dynamic-programming/
- https://leetcode.com/discuss/general-discussion/458695/Dynamic-Programming-Patterns
- https://leetcode.com/problems/house-robber/discuss/156523/From-good-to-great.-How-to-approach-most-of-DP-problems
- https://leetcode.com/problems/permutations/discuss/18239/A-general-approach-to-backtracking-questions-in-Java-(Subsets-Permutations-Combination-Sum-Palindrome-Partioning)
- https://www.geeksforgeeks.org/backtracking-algorithms/
- https://www.geeksforgeeks.org/heap-data-structure/
- https://www.cs.purdue.edu/cgvlab/courses/251/lectures/slides/02.16-Heap.pdf
- https://courses.cs.washington.edu/courses/cse373/13wi/lectures/02-08/14-heaps-comparators.pdf
1.https://leetcode.com/discuss/general-discussion/1073221/All-about-Bitwise-Operations-Beginner-Intermediate 2.https://leetcode.com/discuss/general-discussion/1080312/Bit-Manipulation-All-that-you-must-know! 3.
- https://leetcode.com/discuss/general-discussion/1079048/graph-traversals-and-number-of-connected-components-for-beginners
- https://leetcode.com/discuss/general-discussion/1078072/Introduction-to-Topological-Sort
- https://www.geeksforgeeks.org/graph-data-structure-and-algorithms/
- https://leetcode.com/problems/subarray-sum-equals-k/
- https://leetcode.com/problems/make-sum-divisible-by-p/
- https://leetcode.com/problems/continuous-subarray-sum/
- https://leetcode.com/problems/contiguous-array/
- https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/
* Number of Substrings Containing All Three Characters
* Count Number of Nice Subarrays
* Replace the Substring for Balanced String
* Max Consecutive Ones III
* Binary Subarrays With Sum
* Subarrays with K Different Integers
* Fruit Into Baskets
* Shortest Subarray with Sum at Least K
* Minimum Size Subarray Sum
* https://www.geeksforgeeks.org/window-sliding-technique/
Morris traversal
- https://leetcode.com/problems/binary-tree-level-order-traversal/
- https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/solution/
- https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/
- https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/
- https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
- https://www.hackerrank.com/challenges/tree-top-view/problem
- https://leetcode.com/problems/balanced-binary-tree/
- https://leetcode.com/problems/delete-node-in-a-bst/
- https://leetcode.com/problems/binary-tree-tilt/
Practice , revise from coding ninjas , geeksforgeeks
-
https://leetcode.com/problems/longest-palindromic-subsequence/
-
Sunday todo:Search in Rotated Sorted Array II
- Trees - traversals, subtree , lca, diameter, path sum , traversal construction etc
- Linked list - sum, reverse, double , numbers, merge ,reverse k-group etc
- Heaps - median , k-largest ,priority
- Graph - connected ,topological , algorithms-prim,kruskal etc
- Stacks - parentheses ,rainwater etc
- DP - standard problems , gfg ,leetcode ,HackerRank -2d,1d,lcs,lis,maze,max,min,longest etc
- Divide conquer
- Sorting algos
- Time complexity
- Merge lists ,binary search