1 Star 0 Fork 0

LucasNan/Grokking-the-Coding-Interview-Patterns-for-Coding-Questions

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Coding Interview Patterns

Coding Interview Patterns

1. Pattern: Sliding Window

  1. Introduction
  2. Maximum Sum Subarray of Size K (easy)
  3. Smallest Subarray with a given sum (easy) Educative.io
  4. Longest Substring with K Distinct Characters (medium) Educative.io
  5. Fruits into Baskets (medium) LeetCode
  6. No-repeat Substring (hard) LeetCode
  7. Longest Substring with Same Letters after Replacement (hard) LeetCode
  8. Longest Subarray with Ones after Replacement (hard) LeetCode
  9. Problem Challenge 1 - Permutation in a String (hard) Leetcode
  10. Problem Challenge 2 - String Anagrams (hard) Leetcode
  11. Problem Challenge 3 - Smallest Window containing Substring (hard) Leetcode
  12. Problem Challenge 4 - Words Concatenation (hard) Leetcode

2. Pattern: Two Pointers

  1. Introduction
  2. Pair with Target Sum (easy) LeetCode
  3. Remove Duplicates (easy) LeetCode LeetCode LeetCode LeetCode LeetCode
  4. Squaring a Sorted Array (easy) LeetCode
  5. Triplet Sum to Zero (medium) LeetCode
  6. Triplet Sum Close to Target (medium) LeetCode
  7. Triplets with Smaller Sum (medium) LintCode
  8. Subarrays with Product Less than a Target (medium) LeetCode
  9. Dutch National Flag Problem (medium) CoderByte
  10. Problem Challenge 1 - Quadruple Sum to Target (medium) Leetcode
  11. Problem Challenge 2 - Comparing Strings containing Backspaces (medium) Leetcode
  12. Problem Challenge 3 - Minimum Window Sort (medium) Leetcode Ideserve

3. Pattern: Fast & Slow pointers

  1. Introduction emre.me
  2. LinkedList Cycle (easy) Leetcode
  3. Start of LinkedList Cycle (medium) Leetcode
  4. Happy Number (medium) Leetcode
  5. Middle of the LinkedList (easy) Leetcode
  6. Problem Challenge 1 - Palindrome LinkedList (medium) Leetcode
  7. Problem Challenge 2 - Rearrange a LinkedList (medium) Leetcode
  8. Problem Challenge 3 - Cycle in a Circular Array (hard) Leetcode

4. Pattern: Merge Intervals

  1. Introduction Educative.io
  2. Merge Intervals (medium) Educative.io
  3. Insert Interval (medium) Educative.io
  4. Intervals Intersection (medium) Educative.io
  5. Conflicting Appointments (medium) Geeksforgeeks
  6. Problem Challenge 1 - Minimum Meeting Rooms (hard) Lintcode
  7. Problem Challenge 2 - Maximum CPU Load (hard) Geeksforgeeks
  8. Problem Challenge 3 - Employee Free Time (hard) CoderTrain

5. Pattern: Cyclic Sort

  1. Introduction emre.me
  2. Cyclic Sort (easy) Geeksforgeeks
  3. Find the Missing Number (easy) Leetcode
  4. Find all Missing Numbers (easy) Leetcode
  5. Find the Duplicate Number (easy) Leetcode
  6. Find all Duplicate Numbers (easy) Leetcode
  7. Problem Challenge 1 - Find the Corrupt Pair (easy) TheCodingSimplified
  8. Problem Challenge 2 - Find the Smallest Missing Positive Number (medium) Leetcode
  9. Problem Challenge 3 - Find the First K Missing Positive Numbers (hard) TheCodingSimplified

6. Pattern: In-place Reversal of a LinkedList

  1. Introduction emre.me
  2. Reverse a LinkedList (easy) Leetcode
  3. Reverse a Sub-list (medium) Leetcode
  4. Reverse every K-element Sub-list (medium) Leetcode
  5. Problem Challenge 1 - Reverse alternating K-element Sub-list (medium) Geeksforgeeks
  6. Problem Challenge 2 - Rotate a LinkedList (medium) Leetcode

7. Pattern: Tree Breadth First Search

  1. Introduction
  2. Binary Tree Level Order Traversal (easy)
  3. Reverse Level Order Traversal (easy)
  4. Zigzag Traversal (medium)
  5. Level Averages in a Binary Tree (easy)
  6. Minimum Depth of a Binary Tree (easy)
  7. Level Order Successor (easy)
  8. Connect Level Order Siblings (medium)

8. Pattern: Tree Depth First Search

  1. Introduction
  2. Binary Tree Path Sum (easy)
  3. All Paths for a Sum (medium)
  4. Sum of Path Numbers (medium)
  5. Path With Given Sequence (medium)
  6. Count Paths for a Sum (medium)

9. Pattern: Two Heaps

  1. Introduction
  2. Find the Median of a Number Stream (medium)
  3. Sliding Window Median (hard)
  4. Maximize Capital (hard)

10. Pattern: Subsets

  1. Introduction Educative.io
  2. Subsets (easy) Educative.io
  3. Subsets With Duplicates (easy) Educative.io
  4. Permutations (medium) Educative.io
  5. String Permutations by changing case (medium)
  6. Balanced Parentheses (hard)
  7. Unique Generalized Abbreviations (hard)

11. Pattern: Modified Binary Search

  1. Introduction
  2. Order-agnostic Binary Search (easy)
  3. Ceiling of a Number (medium)
  4. Next Letter (medium)
  5. Number Range (medium)
  6. Search in a Sorted Infinite Array (medium)
  7. Minimum Difference Element (medium)
  8. Bitonic Array Maximum (easy)

12. Pattern: Bitwise XOR

  1. Introduction
  2. Single Number (easy)
  3. Two Single Numbers (medium)
  4. Complement of Base 10 Number (medium)

13. Pattern: Top 'K' Elements

  1. Introduction
  2. Top 'K' Numbers (easy)
  3. Kth Smallest Number (easy)
  4. 'K' Closest Points to the Origin (easy)
  5. Connect Ropes (easy)
  6. Top 'K' Frequent Numbers (medium)
  7. Frequency Sort (medium)
  8. Kth Largest Number in a Stream (medium)
  9. 'K' Closest Numbers (medium)
  10. Maximum Distinct Elements (medium)
  11. Sum of Elements (medium)
  12. Rearrange String (hard)

14. Pattern: K-way merge

  1. Introduction
  2. Merge K Sorted Lists (medium)
  3. Kth Smallest Number in M Sorted Lists (Medium)
  4. Kth Smallest Number in a Sorted Matrix (Hard) Educative.io
  5. Smallest Number Range (Hard)

15. Pattern : 0/1 Knapsack (Dynamic Programming)

  1. Introduction
  2. 0/1 Knapsack (medium)
  3. Equal Subset Sum Partition (medium)
  4. Subset Sum (medium)
  5. Minimum Subset Sum Difference (hard)

16. Pattern: Topological Sort (Graph)

  1. Introduction
  2. Topological Sort (medium)
  3. Tasks Scheduling (medium)
  4. Tasks Scheduling Order (medium)
  5. All Tasks Scheduling Orders (hard)
  6. Alien Dictionary (hard)

17. Miscellaneous

  1. Kth Smallest Number (hard)

18. Conclusions

Where to Go from Here Educative.io

空文件

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lucasnan/Grokking-the-Coding-Interview-Patterns-for-Coding-Questions.git
git@gitee.com:lucasnan/Grokking-the-Coding-Interview-Patterns-for-Coding-Questions.git
lucasnan
Grokking-the-Coding-Interview-Patterns-for-Coding-Questions
Grokking-the-Coding-Interview-Patterns-for-Coding-Questions
master

搜索帮助