Solutions to the problems mentioned in Leetcode Patterns website.
Connect with me via
# | Title | Solution | Difficulty |
---|---|---|---|
01 | Contains Duplicates | Solution | Easy |
02 | Missing Number | Solution | Easy |
03 | FindAllNumbersDisappearedInAnArray | Solution | Easy |
04 | Single Number | Solution | Easy |
05 | Convert 1D Array Into 2D Array | Solution | Easy |
06 | Product Of Array Except Self | Solution | Medium |
07 | Find The Duplicate Number | Solution | Medium |
08 | Find All Duplicates In An Array | Solution | Medium |
09 | Set Matrix Zeroes | Solution | Medium |
10 | Spiral Matrix | Solution | Medium |
11 | Rotate Image | Solution | Medium |
12 | Longest Consecutive Sequence | Solution | Medium |
13 | First Missing Positive | Solution | Medium |
# | Title | Solution | Difficulty |
---|---|---|---|
01 | Average Of Levels In Binary Tree | Solution | Easy |
02 | Minimum Depth Of Binary Tree | Solution | Easy |
03 | Clone Graph | Solution | Medium |
04 | Pacific Atlantic Water Flow | Solution | Medium |
05 | Number Of Islands | Solution | Medium |
06 | Graph Valid Tree | Solution | Medium |
07 | Number Of Connected Components In An Undirected Graph | Solution | Medium |
08 | Course Schedule | Solution | Medium |
09 | Course Schedule II | Solution | Medium |
10 | Minimum Height Trees | Solution | Medium |
11 | Binary Tree Level Order Traversal | Solution | Medium |
12 | Binary Tree Level Order Traversal II | Solution | Medium |
13 | Binary Tree Zigzag Level Order Traversal | Solution | Medium |
14 | Populating Next Right Pointers In Each Node | Solution | Medium |
15 | Populating Next Right Pointers In Each Node II | Solution | Medium |
16 | Binary Tree Right Side View | Solution | Medium |
17 | All Nodes Distance K In Binary Tree | Solution | Medium |
# | Title | Solution | Difficulty |
---|---|---|---|
01 | Word Search | Solution | Medium |
02 | Letter Case Permutation | Solution | Medium |
03 | Subsets | Solution | Medium |
04 | Subsets II | Solution | Medium |
05 | Permutations | Solution | Medium |
06 | Permutations II | Solution | Medium |
07 | Combinations | Solution | Medium |
08 | Combination Sum | Solution | Medium |
09 | Combination Sum II | Solution | Medium |
10 | Combination Sum III | Solution | Medium |
11 | Generate Parentheses | Solution | Medium |
12 | Palindrome Partitioning | Solution | Medium |
13 | Letter Combinations Of A Phone Number | Solution | Medium |
14 | Generalized Abbreviation | Solution | Medium |
15 | Sudoku Solver | Solution | Hard |
16 | N-Queens | Solution | Hard |
# | Title | Solution | Difficulty |
---|---|---|---|
1 | Binary Search | Solution | Easy |
2 | Find Smallest Letter Greater Than Target | Solution | Easy |
3 | Find The Duplicate Number | Solution | Medium |
4 | Kth Smallest ELement In A Sorted Matrix | Solution | Medium |
5 | Peak Index In A Mountain Array | Solution | Medium |
6 | Find Minimum In A Rotated Sorted Array | Solution | Medium |
7 | Find Peak Element | Solution | Medium |
8 | Search In Rotated Sorted Array | Solution | Medium |
9 | Search In Rotated Sorted Array II | Solution | Medium |
10 | Search A 2D Matrix | Solution | Medium |
11 | Search A 2D Matrix II | Solution | Medium |
12 | Find K Closest Elements | Solution | Medium |
13 | Count Of Range Sum | Solution | Hard |
14 | Median Of Two Sorted Arrays | Solution | Hard |