0% found this document useful (0 votes)
61 views

16 DSA Problem Solving Patterns

Uploaded by

personal4262
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

16 DSA Problem Solving Patterns

Uploaded by

personal4262
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

16 DSA Problem Solving Patterns

1. 10-line template that can solve most 'substring' problems:


https://leetcode.com/problems/minimum-window-substring/solutions/26808/Here-is-a-10-l
ine-template-that-can-solve-most-'substring'-problems/

2. Sliding Window Cheatsheet Template :


https://leetcode.com/problems/frequency-of-the-most-frequent-element/solutions/1175088
/C++-Maximum-Sliding-Window-Cheatsheet-Template/

3. Two pointers problems:


https://leetcode.com/discuss/study-guide/1688903/Solved-all-two-pointers-problem
s-in-100-days

4. Backtracking:
https://medium.com/leetcode-patterns/leetcode-pattern-3-backtracking-5d9e5a03dc26

5. Backtracking Approach :
https://leetcode.com/problems/permutations/solutions/18239/A-general-approach-to-back
tracking-questions-in-Java-(Subsets-Permutations-Combination-Sum-Palindrome-Partion
ing)/

6. Dynamic Programming Patterns:


https://leetcode.com/discuss/study-guide/458695/Dynamic-Programming-Patterns

7. Dynamic Programming Patterns II:


https://leetcode.com/discuss/study-guide/1437879/Dynamic-Programming-Patterns

8. Binary Search Template:


https://leetcode.com/discuss/study-guide/786126/Python-Powerful-Ultimate-Binary-Searc
h-Template.-Solved-many-problems
9. Graph :
https://leetcode.com/discuss/study-guide/937307/Iterative-or-Recursive-or-DFS-and-BFS
-Tree-Traversal-or-In-Pre-Post-and-LevelOrder-or-Views

10. Graph II:


https://leetcode.com/discuss/study-guide/655708/Graph-For-Beginners-Problems-or-Patt
ern-or-Sample-Solutions

11. Monotonic Stack:


https://leetcode.com/discuss/study-guide/2347639/A-comprehensive-guide-and-te
mplate-for-monotonic-stack-based-problems

12. Important String questions Patterns:


https://leetcode.com/discuss/study-guide/2001789/Collections-of-Important-String-
questions-Pattern

13. Bits Manipulations and How to use it:


https://leetcode.com/discuss/interview-question/3695233/All-Types-of-Patterns-for-
Bits-Manipulations-and-How-to-use-it

14. Leetcode Patterns:


https://medium.com/leetcode-patterns/leetcode-pattern-1-bfs-dfs-25-of-the-problems-part
-1-519450a84353

15. Leetcode Patterns II:


https://medium.com/leetcode-patterns/leetcode-pattern-2-dfs-bfs-25-of-the-problems-part
-2-a5b269597f52

16. Leetcode Patterns III:


https://hackernoon.com/14-patterns-to-ace-any-coding-interview-question-c5bb3357f6ed

Stay Connected for more useful content:

Follow us on various platforms for Tech content


Linkedin Instagram Youtube

You might also like