Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mattwang44/leetcode

My LeetCode/Codility solution collections
https://github.com/mattwang44/leetcode

algorithms leetcode leetcode-solutions leethub

Last synced: 24 days ago
JSON representation

My LeetCode/Codility solution collections

Awesome Lists containing this project

README

        

# algorithm-practice

## LeetCode

**Problem Solved: 149** (Easy: 28, Medium: 105, Hard: 16)

| # | Title | Solutions | Difficulty |
| - | - | - | - |
| 1 | [Two Sum](https://leetcode.com/problems/two-sum/) | | Easy |
| 3 | [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | | Medium |
| 5 | [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/) | | Medium |
| 8 | [String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) | | Medium |
| 11 | [Container With Most Water](https://leetcode.com/problems/container-with-most-water/) | | Medium |
| 15 | [3Sum](https://leetcode.com/problems/3sum/) | | Medium |
| 17 | [Letter Combinations of a Phone Number](https://leetcode.com/problems/letter-combinations-of-a-phone-number/) | | Medium |
| 19 | [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list/) | | Medium |
| 20 | [Valid Parentheses](https://leetcode.com/problems/valid-parentheses/) | | Easy |
| 21 | [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/) | | Easy |
| 22 | [Generate Parentheses](https://leetcode.com/problems/generate-parentheses/) | | Medium |
| 23 | [Merge k Sorted Lists](https://leetcode.com/problems/merge-k-sorted-lists/) | | Hard |
| 24 | [Swap Nodes in Pairs](https://leetcode.com/problems/swap-nodes-in-pairs/) | | Medium |
| 28 | [Implement strStr()](https://leetcode.com/problems/implement-strstr/) | | Easy |
| 31 | [Next Permutation](https://leetcode.com/problems/next-permutation/) | | Medium |
| 32 | [Longest Valid Parentheses](https://leetcode.com/problems/longest-valid-parentheses/) | | Hard |
| 33 | [Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) | | Medium |
| 34 | [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/) | | Medium |
| 36 | [Valid Sudoku](https://leetcode.com/problems/valid-sudoku/) | | Medium |
| 38 | [Count and Say](https://leetcode.com/problems/count-and-say/) | | Medium |
| 39 | [Combination Sum](https://leetcode.com/problems/combination-sum/) | | Medium |
| 41 | [First Missing Positive](https://leetcode.com/problems/first-missing-positive/) | | Hard |
| 42 | [Trapping Rain Water](https://leetcode.com/problems/trapping-rain-water/) | | Hard |
| 45 | [Jump Game II](https://leetcode.com/problems/jump-game-ii/) | | Medium |
| 49 | [Group Anagrams](https://leetcode.com/problems/group-anagrams/) | | Medium |
| 54 | [Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) | | Medium |
| 55 | [Jump Game](https://leetcode.com/problems/jump-game/) | | Medium |
| 56 | [Merge Intervals](https://leetcode.com/problems/merge-intervals/) | | Medium |
| 61 | [Rotate List](https://leetcode.com/problems/rotate-list/) | | Medium |
| 62 | [Unique Paths](https://leetcode.com/problems/unique-paths/) | | Medium |
| 67 | [Add Binary](https://leetcode.com/problems/add-binary/) | | Easy |
| 68 | [Text Justification](https://leetcode.com/problems/text-justification/) | | Hard |
| 71 | [Simplify Path](https://leetcode.com/problems/simplify-path/) | | Medium |
| 75 | [Sort Colors](https://leetcode.com/problems/sort-colors/) | | Medium |
| 80 | [Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) | | Medium |
| 93 | [Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/) | | Medium |
| 94 | [Binary Tree Inorder Traversal](https://leetcode.com/problems/binary-tree-inorder-traversal/) | | Easy |
| 98 | [Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/) | | Medium |
| 102 | [Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal/) | | Medium |
| 107 | [Binary Tree Level Order Traversal II](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/) | | Medium |
| 121 | [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/) | | Easy |
| 122 | [Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/) | | Medium |
| 127 | [Word Ladder](https://leetcode.com/problems/word-ladder/) | | Hard |
| 128 | [Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence/) | | Medium |
| 131 | [Palindrome Partitioning](https://leetcode.com/problems/palindrome-partitioning/) | | Medium |
| 136 | [Single Number](https://leetcode.com/problems/single-number/) | | Easy |
| 141 | [Linked List Cycle](https://leetcode.com/problems/linked-list-cycle/) | | Easy |
| 142 | [Linked List Cycle II](https://leetcode.com/problems/linked-list-cycle-ii/) | | Medium |
| 144 | [Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal/) | | Easy |
| 145 | [Binary Tree Postorder Traversal](https://leetcode.com/problems/binary-tree-postorder-traversal/) | | Easy |
| 150 | [Evaluate Reverse Polish Notation](https://leetcode.com/problems/evaluate-reverse-polish-notation/) | | Medium |
| 159 | [Longest Substring with At Most Two Distinct Characters](https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters/) | | Medium |
| 160 | [Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists/) | | Easy |
| 169 | [Majority Element](https://leetcode.com/problems/majority-element/) | | Easy |
| 171 | [Excel Sheet Column Number](https://leetcode.com/problems/excel-sheet-column-number/) | | Easy |
| 173 | [Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator/) | | Medium |
| 198 | [House Robber](https://leetcode.com/problems/house-robber/) | | Medium |
| 200 | [Number of Islands](https://leetcode.com/problems/number-of-islands/) | | Medium |
| 206 | [Reverse Linked List](https://leetcode.com/problems/reverse-linked-list/) | | Easy |
| 209 | [Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum/) | | Medium |
| 211 | [Design Add and Search Words Data Structure](https://leetcode.com/problems/design-add-and-search-words-data-structure/) | | Medium |
| 213 | [House Robber II](https://leetcode.com/problems/house-robber-ii/) | | Medium |
| 223 | [Rectangle Area](https://leetcode.com/problems/rectangle-area/) | | Medium |
| 224 | [Basic Calculator](https://leetcode.com/problems/basic-calculator/) | | Hard |
| 233 | [Number of Digit One](https://leetcode.com/problems/number-of-digit-one/) | | Hard |
| 236 | [Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) | | Medium |
| 238 | [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self/) | | Medium |
| 247 | [Strobogrammatic Number II](https://leetcode.com/problems/strobogrammatic-number-ii/) | | Medium |
| 249 | [Group Shifted Strings](https://leetcode.com/problems/group-shifted-strings/) | | Medium |
| 252 | [Meeting Rooms](https://leetcode.com/problems/meeting-rooms/) | | Easy |
| 253 | [Meeting Rooms II](https://leetcode.com/problems/meeting-rooms-ii/) | | Medium |
| 259 | [3Sum Smaller](https://leetcode.com/problems/3sum-smaller/) | | Medium |
| 263 | [Ugly Number](https://leetcode.com/problems/ugly-number/) | | Easy |
| 286 | [Walls and Gates](https://leetcode.com/problems/walls-and-gates/) | | Medium |
| 290 | [Word Pattern](https://leetcode.com/problems/word-pattern/) | | Easy |
| 301 | [Remove Invalid Parentheses](https://leetcode.com/problems/remove-invalid-parentheses/) | | Hard |
| 311 | [Sparse Matrix Multiplication](https://leetcode.com/problems/sparse-matrix-multiplication/) | | Medium |
| 314 | [Binary Tree Vertical Order Traversal](https://leetcode.com/problems/binary-tree-vertical-order-traversal/) | | Medium |
| 322 | [Coin Change](https://leetcode.com/problems/coin-change/) | | Medium |
| 329 | [Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/) | | Hard |
| 338 | [Counting Bits](https://leetcode.com/problems/counting-bits/) | | Easy |
| 340 | [Longest Substring with At Most K Distinct Characters](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/) | | Medium |
| 347 | [Top K Frequent Elements](https://leetcode.com/problems/top-k-frequent-elements/) | | Medium |
| 366 | [Find Leaves of Binary Tree](https://leetcode.com/problems/find-leaves-of-binary-tree/) | | Medium |
| 387 | [First Unique Character in a String](https://leetcode.com/problems/first-unique-character-in-a-string/) | | Easy |
| 424 | [Longest Repeating Character Replacement](https://leetcode.com/problems/longest-repeating-character-replacement/) | | Medium |
| 429 | [N-ary Tree Level Order Traversal](https://leetcode.com/problems/n-ary-tree-level-order-traversal/) | | Medium |
| 436 | [Find Right Interval](https://leetcode.com/problems/find-right-interval/) | | Medium |
| 438 | [Find All Anagrams in a String](https://leetcode.com/problems/find-all-anagrams-in-a-string/) | | Medium |
| 445 | [Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/) | | Medium |
| 449 | [Serialize and Deserialize BST](https://leetcode.com/problems/serialize-and-deserialize-bst/) | | Medium |
| 452 | [Minimum Number of Arrows to Burst Balloons](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/) | | Medium |
| 520 | [Detect Capital](https://leetcode.com/problems/detect-capital/) | | Easy |
| 529 | [Minesweeper](https://leetcode.com/problems/minesweeper/) | | Medium |
| 560 | [Subarray Sum Equals K](https://leetcode.com/problems/subarray-sum-equals-k/) | | Medium |
| 567 | [Permutation in String](https://leetcode.com/problems/permutation-in-string/) | | Medium |
| 605 | [Can Place Flowers](https://leetcode.com/problems/can-place-flowers/) | | Easy |
| 621 | [Task Scheduler](https://leetcode.com/problems/task-scheduler/) | | Medium |
| 647 | [Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/) | | Medium |
| 657 | [Robot Return to Origin](https://leetcode.com/problems/robot-return-to-origin/) | | Easy |
| 660 | [Remove 9](https://leetcode.com/problems/remove-9/) | | Hard |
| 692 | [Top K Frequent Words](https://leetcode.com/problems/top-k-frequent-words/) | | Medium |
| 694 | [Number of Distinct Islands](https://leetcode.com/problems/number-of-distinct-islands/) | | Medium |
| 695 | [Max Area of Island](https://leetcode.com/problems/max-area-of-island/) | | Medium |
| 701 | [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/) | | Medium |
| 706 | [Design HashMap](https://leetcode.com/problems/design-hashmap/) | | Easy |
| 728 | [Self Dividing Numbers](https://leetcode.com/problems/self-dividing-numbers/) | | Easy |
| 735 | [Asteroid Collision](https://leetcode.com/problems/asteroid-collision/) | | Medium |
| 739 | [Daily Temperatures](https://leetcode.com/problems/daily-temperatures/) | | Medium |
| 763 | [Partition Labels](https://leetcode.com/problems/partition-labels/) | | Medium |
| 849 | [Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person/) | | Medium |
| 856 | [Score of Parentheses](https://leetcode.com/problems/score-of-parentheses/) | | Medium |
| 862 | [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) | | Hard |
| 875 | [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) | | Medium |
| 877 | [Stone Game](https://leetcode.com/problems/stone-game/) | | Medium |
| 881 | [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) | | Medium |
| 895 | [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) | | Hard |
| 921 | [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) | | Medium |
| 946 | [Validate Stack Sequences](https://leetcode.com/problems/validate-stack-sequences/) | | Medium |
| 987 | [Vertical Order Traversal of a Binary Tree](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/) | | Hard |
| 992 | [Subarrays with K Different Integers](https://leetcode.com/problems/subarrays-with-k-different-integers/) | | Hard |
| 997 | [Find the Town Judge](https://leetcode.com/problems/find-the-town-judge/) | | Easy |
| 1004 | [Max Consecutive Ones III](https://leetcode.com/problems/max-consecutive-ones-iii/) | | Medium |
| 1007 | [Minimum Domino Rotations For Equal Row](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/) | | Medium |
| 1011 | [Capacity To Ship Packages Within D Days](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/) | | Medium |
| 1015 | [Smallest Integer Divisible by K](https://leetcode.com/problems/smallest-integer-divisible-by-k/) | | Medium |
| 1022 | [Sum of Root To Leaf Binary Numbers](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/) | | Easy |
| 1026 | [Maximum Difference Between Node and Ancestor](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/) | | Medium |
| 1029 | [Two City Scheduling](https://leetcode.com/problems/two-city-scheduling/) | | Medium |
| 1041 | [Robot Bounded In Circle](https://leetcode.com/problems/robot-bounded-in-circle/) | | Medium |
| 1044 | [Longest Duplicate Substring](https://leetcode.com/problems/longest-duplicate-substring/) | | Hard |
| 1091 | [Shortest Path in Binary Matrix](https://leetcode.com/problems/shortest-path-in-binary-matrix/) | | Medium |
| 1094 | [Car Pooling](https://leetcode.com/problems/car-pooling/) | | Medium |
| 1100 | [Find K-Length Substrings With No Repeated Characters](https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters/) | | Medium |
| 1143 | [Longest Common Subsequence](https://leetcode.com/problems/longest-common-subsequence/) | | Medium |
| 1244 | [Design A Leaderboard](https://leetcode.com/problems/design-a-leaderboard/) | | Medium |
| 1249 | [Minimum Remove to Make Valid Parentheses](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/) | | Medium |
| 1288 | [Remove Covered Intervals](https://leetcode.com/problems/remove-covered-intervals/) | | Medium |
| 1291 | [Sequential Digits](https://leetcode.com/problems/sequential-digits/) | | Medium |
| 1448 | [Count Good Nodes in Binary Tree](https://leetcode.com/problems/count-good-nodes-in-binary-tree/) | | Medium |
| 1472 | [Design Browser History](https://leetcode.com/problems/design-browser-history/) | | Medium |
| 1602 | [Find Nearest Right Node in Binary Tree](https://leetcode.com/problems/find-nearest-right-node-in-binary-tree/) | | Medium |
| 1695 | [Maximum Erasure Value](https://leetcode.com/problems/maximum-erasure-value/) | | Medium |
| 1721 | [Swapping Nodes in a Linked List](https://leetcode.com/problems/swapping-nodes-in-a-linked-list/) | | Medium |
| 1763 | [Longest Nice Substring](https://leetcode.com/problems/longest-nice-substring/) | | Easy |
| 1838 | [Frequency of the Most Frequent Element](https://leetcode.com/problems/frequency-of-the-most-frequent-element/) | | Medium |
| 1884 | [Egg Drop With 2 Eggs and N Floors](https://leetcode.com/problems/egg-drop-with-2-eggs-and-n-floors/) | | Medium |
| 1887 | [Reduction Operations to Make the Array Elements Equal](https://leetcode.com/problems/reduction-operations-to-make-the-array-elements-equal/) | | Medium |
| 2024 | [Maximize the Confusion of an Exam](https://leetcode.com/problems/maximize-the-confusion-of-an-exam/) | | Medium |