[go: up one dir, main page]

0% found this document useful (0 votes)
9 views2 pages

DSA Patterns

Uploaded by

Chandan Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

DSA Patterns

Uploaded by

Chandan Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1) DFS-BFS:

-
https://leetcode.com/problems/pacific-atlantic-water-flow/solutions/438276/Python-beats-98.-DFS-
template-for-Matrix/
-
https://medium.com/leetcode-patterns/leetcode-pattern-1-bfs-dfs-25-of-the-problems-part-1-519450
a84353
-
https://medium.com/leetcode-patterns/leetcode-pattern-2-dfs-bfs-25-of-the-problems-part-2-a5b269
597f52

2) Sliding Window:

-
https://leetcode.com/problems/find-all-anagrams-in-a-string/solutions/92007/Sliding-Window-algori
thm-template-to-solve-all-the-Leetcode-substring-search-problem./
-
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/solutions/1088
70/Most-consistent-ways-of-dealing-with-the-series-of-stock-problems/

3) Tree Traversal:

-
https://medium.com/leetcode-patterns/leetcode-pattern-0-iterative-traversals-on-trees-d373568eb0
ec
-
https://leetcode.com/problems/binary-tree-postorder-traversal/solutions/45551/Preorder-Inorder-an
d-Postorder-Iteratively-Summarization/

4) Array:

-
https://leetcode.com/problems/reverse-pairs/solutions/97268/General-principles-behind-problems-
similar-to-%22Reverse-Pairs%22/

5) Binary Search:

-
https://leetcode.com/problems/binary-search/solutions/423162/Binary-Search-101-The-Ultimate-Bi
nary-Search-Handbook/

6) Dynamic Programming:
-
https://leetcode.com/discuss/general-discussion/651719/how-to-solve-dp-string-template-and-4-st
eps-to-be-followed
-
https://leetcode.com/problems/house-robber/solutions/156523/From-good-to-great.-How-to-appro
ach-most-of-DP-problems./

7) Two Pointers:

- https://www.pluralsight.com/resources/blog/guides/algorithm-templates-two-pointers-part-1
- https://www.pluralsight.com/resources/blog/guides/algorithm-templates-two-pointers-part-2

You might also like