DSA Patterns

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

These will help you solve problems faster and cut down your time by 50%

1) Substring Patterns
► Here is a 10-line template that can solve most 'substring' problems - Minimum Window
Substring - LeetCode

2) Sliding Window Patterns


► C++ Maximum Sliding Window Cheatsheet Template! - Frequency of the Most Frequent
Element - LeetCode

3) Two Pointers Patterns


► Solved all two pointers problems in 100 days. - LeetCode Discuss

4) Backtracking Patterns (1)


► Leetcode Pattern 3 | Backtracking | by csgator

5) Backtracking Patterns (2)


► A general approach to backtracking questions in Java (Subsets, Permutations, Combination
Sum, Palindrome Partioning)

6) Dynamic Programming Patterns (1)


► Dynamic Programming Patterns - LeetCode Discuss

7) Dynamic Programming Patterns (2)


► Dynamic Programming Patterns - LeetCode Discuss

8) Binary Search Patterns


► [Python] Powerful Ultimate Binary Search Template. Solved many problems - LeetCode
Discuss

9) Tree Patterns
►Iterative | Recursive | DFS & BFS Tree Traversal | In, Pre, Post & LevelOrder | Views -
LeetCode Discuss

10) Graph Patterns


► Graph For Beginners [Problems | Pattern | Sample Solutions] - LeetCode Discuss

11) Monotonic Stack Patterns


► A comprehensive guide and template for monotonic stack based problems - LeetCode
Discuss

12) Bit Manipulation Patterns


► https://lnkd.in/gmMMST5J
13) String Patterns
► Collections of Important String questions Pattern - LeetCode Discuss

14) DFS Patterns (1)


► Leetcode Pattern 1 | BFS + DFS == 25% of the problems — part 1 | by csgator

15) BFS Patterns (2)


►Leetcode Pattern 1 | DFS + BFS == 25% of the problems — part 2 | by csgator

You might also like