- Read the problem carefully
- Take a valid example and understand the problem
- Come up with a brute force solution
- Optimize the solution
- Write PseudoCode/Logic of the optimized solution
- Explain it to your Interviewer
- Explain the space and Time complexity
- Code your solution in Java/ C++/ Python etc
- Handle boundary Cases
- Do a code walk through. Make code Modularize.
- https://seanprashad.com/leetcode-patterns/
- https://leetcode.com/discuss/interview-question/448285/List-of-questions-sorted-by-common-patterns.
- https://www.teamblind.com/post/New-Year-Gift---Curated-List-of-Top-100-LeetCode-Questions-to-Save-Your-Time-OaM1orEU
- https://aonecode.com/coding-online-judge
- https://yangshun.github.io/tech-interview-handbook/algorithms/algorithms-introduction
-
Binary Search https://leetcode.com/problems/kth-missing-positive-number/discuss/779999/JavaC%2B%2BPython-O(logN) https://leetcode.com/discuss/study-guide/786126/Python-Powerful-Ultimate-Binary-Search-Template.-Solved-many-problems
-
Sliding Window https://leetcode.com/problems/minimum-window-substring/discuss/26808/Here-is-a-10-line-template-that-can-solve-most-'substring'-problems https://leetcode.com/discuss/general-discussion/657507/sliding-window-for-beginners-problems-template-sample-solutions
-
Graph https://leetcode.com/discuss/general-discussion/655708/graph-problems-for-beginners-practice-problems-and-sample-solutions https://leetcode.com/discuss/general-discussion/969327/graph-algorithms-one-place-dijkstra-bellman-ford-floyd-warshall-prims-kruskals-dsu https://leetcode.com/discuss/general-discussion/655708/Graph-For-Beginners-Problems-or-Pattern-or-Sample-Solutions https://leetcode.com/discuss/study-guide/655708/Graph-For-Beginners-Problems-or-Pattern-or-Sample-Solutions
-
How to solve DP - String? Template and 4 Steps to be followed. https://leetcode.com/discuss/general-discussion/651719/how-to-solve-dp-string-template-and-4-steps-to-be-followed
-
Dynamic Programming https://leetcode.com/discuss/general-discussion/662866/dp-for-beginners-problems-patterns-sample-solutions common
Dp patterns https://docs.google.com/spreadsheets/d/10CB6smBZE0v_Ye7AgGhRbnhfD4cZLS1kP5MbX-gA7Sw/edit#gid=0 https://leetcode.com/discuss/general-discussion/458695/dynamic-programming-patterns/439810
https://leetcode.com/discuss/study-guide/1050391/Must-do-Dynamic-programming-Problems-Category-wise https://leetcode.com/discuss/study-guide/662866/DP-for-Beginners-Problems-or-Patterns-or-Sample-Solutions
-
Union find Algorithm
https://leetcode.com/problems/number-of-islands/discuss/56354/1D-Union-Find-Java-solution-easily-generalized-to-other-problem
https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/discuss/920955/C%2B%2B-or-DFS-Solution
https://leetcode.com/problems/friend-circles/
https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/discuss/920955/C%2B%2B-or-DFS-Solution
https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/
https://www.hackerearth.com/practice/notes/disjoint-set-union-union-find/
11.Segment Trees https://leetcode.com/articles/a-recursive-approach-to-segment-trees-range-sum-queries-lazy-propagation/
-
Resiover Sampling https://leetcode.com/problems/linked-list-random-node/discuss/957111/C%2B%2B-reservoir-sampling
-
Bit Manipulation https://leetcode.com/problems/sum-of-two-integers/discuss/84278/A-summary%3A-how-to-use-bit-manipulation-to-solve-problems-easily-and-efficiently
-
Binary Tree https://leetcode.com/discuss/study-guide/1212004/Binary-Trees-study-guide
LEETCODE MOST IMP LINK https://leetcode.com/discuss/general-discussion/665604/important-and-useful-links-from-all-over-the-leetcode
Amazon Leadership Principles https://leetcode.com/discuss/study-guide/1149636/Amazon-LPs-Compiled
Interview Preparation Guide https://leetcode.com/discuss/study-guide/698684/Interview-Preparation-for-Beginners-DS-or-Algorithms-or-OS-or-System-Design Google Interview Preparation Guide :- https://leetcode.com/discuss/career/449744/Google-Interview-Tips-%2B-FAQs-Answered-%2B-Resources
https://medium.com/platform-engineer/microservices-design-guide-eca0b799a7e8
https://leetcode.com/discuss/career/229177/My-System-Design-Template https://leetcode.com/discuss/interview-question/system-design/1205825/FANG-System-Design-Interview-Preparation-Master-Doc https://drive.google.com/file/d/16wtG6ZsThlu_YkloeyX8pp2OEjVebure/view?usp=sharing https://github.com/binhnguyennus/awesome-scalability
- 4 Sum
- Sort Array By Parity
- Merge Sorted Array
- Merge k Sorted Lists
- K-diff Pairs in an Array
- Intersection of Two Arrays II
- Trapping Rain Water
- Subarray Sum Equal K
- Minimum Indexed Character
- Best Time to Buy or Sell Stock
- Best Time to Buy or Sell Stock 2
- Check if two Arrays are equal or not
- Find Peak Element
- Find First and Last Position of Element in Sorted Array
- Spiral Matrix
- Largest Number
- Uncommon Words within two sentences
- Minimum Window Substring
- First Element to occur K Times
- Check Frequencies
Striver's SDE Sheet
- Set Matrix Zeroes