From f8ee91913573e439aa146aea2299ba73966075eb Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Sat, 30 Jul 2022 12:37:25 -0400 Subject: [PATCH 1/7] read and write to questions json --- .../{run-python.yml => run-cron.yml} | 4 +- cron/questions.py | 2257 ------------ cron/{difficulty.py => update_questions.py} | 17 +- questions.json | 3041 +++++++++++++++++ 4 files changed, 3058 insertions(+), 2261 deletions(-) rename .github/workflows/{run-python.yml => run-cron.yml} (85%) delete mode 100644 cron/questions.py rename cron/{difficulty.py => update_questions.py} (65%) create mode 100644 questions.json diff --git a/.github/workflows/run-python.yml b/.github/workflows/run-cron.yml similarity index 85% rename from .github/workflows/run-python.yml rename to .github/workflows/run-cron.yml index 897ba9c5..a15470f0 100644 --- a/.github/workflows/run-python.yml +++ b/.github/workflows/run-cron.yml @@ -1,4 +1,4 @@ -name: run-python +name: run-cron on: workflow_dispatch @@ -15,4 +15,4 @@ jobs: python -m pip install --upgrade pip pip install requests - run: | - python cron/difficulty.py \ No newline at end of file + python cron/update_questions.py diff --git a/cron/questions.py b/cron/questions.py deleted file mode 100644 index 9445ee85..00000000 --- a/cron/questions.py +++ /dev/null @@ -1,2257 +0,0 @@ -questions = [ - { - 'id': 0, - 'name': 'Contains Duplicate', - 'url': 'https://leetcode.com/problems/contains-duplicate/', - 'pattern': ['Arrays'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'Amazon', - 'Adobe', - 'Google', - 'Bloomberg', - 'Facebook', - 'Apple', - 'Microsoft', - ], - }, - { - 'id': 1, - 'name': 'Missing Number', - 'url': 'https://leetcode.com/problems/missing-number/', - 'pattern': ['Arrays', 'Bit Manipulation'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Microsoft', 'Facebook', 'Amazon', 'Google', 'Adobe'], - }, - { - 'id': 2, - 'name': 'Find All Numbers Disappeared in an Array', - 'url': - 'https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/', - 'pattern': ['Arrays'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Amazon'], - }, - { - 'id': 3, - 'name': 'Single Number', - 'url': 'https://leetcode.com/problems/single-number/', - 'pattern': ['Arrays', 'Bit Manipulation'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Microsoft', 'Adobe'], - }, - { - 'id': 4, - 'name': 'Product of Array Except Self', - 'url': 'https://leetcode.com/problems/product-of-array-except-self/', - 'pattern': ['Arrays'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Asana', - 'Microsoft', - 'Apple', - 'Lyft', - 'Adobe', - 'Google', - 'Uber', - 'Goldman Sachs', - 'Oracle', - ], - }, - { - 'id': 5, - 'name': 'Find the Duplicate Number', - 'url': 'https://leetcode.com/problems/find-the-duplicate-number/', - 'pattern': ['Arrays', 'Binary Search', 'Two Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Google', - 'Microsoft', - 'Amazon', - 'Adobe', - 'Bloomberg', - 'Facebook', - 'Apple', - ], - }, - { - 'id': 6, - 'name': 'Find All Duplicates in an Array', - 'url': 'https://leetcode.com/problems/find-all-duplicates-in-an-array/', - 'pattern': ['Arrays'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Google'], - }, - { - 'id': 7, - 'name': 'Set Matrix Zeroes', - 'url': 'https://leetcode.com/problems/set-matrix-zeroes/', - 'pattern': ['Arrays'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Microsoft', - 'Amazon', - 'Apple', - 'Adobe', - 'Bloomberg', - 'Oracle', - ], - }, - { - 'id': 8, - 'name': 'Spiral Matrix', - 'url': 'https://leetcode.com/problems/spiral-matrix/', - 'pattern': ['Arrays'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Microsoft', - 'Amazon', - 'Facebook', - 'Apple', - 'Google', - 'Oracle', - 'Bloomberg', - 'Intuit', - 'Adobe', - ], - }, - { - 'id': 9, - 'name': 'Rotate Image', - 'url': 'https://leetcode.com/problems/rotate-image/', - 'pattern': ['Arrays'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Microsoft', - 'Apple', - 'Bloomberg', - 'Uber', - 'Google', - ], - }, - { - 'id': 10, - 'name': 'Word Search', - 'url': 'https://leetcode.com/problems/word-search/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Twitter', - 'Facebook', - 'Snapchat', - 'Goldman Sachs', - 'Google', - 'Bloomberg', - 'Apple', - 'Adobe', - 'Oracle', - 'Qualtrics', - ], - }, - - { - 'id': 11, - 'name': 'First Missing Positive', - 'url': 'https://leetcode.com/problems/first-missing-positive/', - 'pattern': ['Arrays'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Amazon', 'Microsoft', 'Facebook', 'Google', 'Adobe', 'Apple'], - }, - { - 'id': 12, - 'name': 'Longest Consecutive Sequence', - 'url': 'https://leetcode.com/problems/longest-consecutive-sequence/', - 'pattern': ['Arrays'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Microsoft', - 'Facebook', - 'Amazon', - 'Google', - 'LinkedIn', - 'Apple', - 'Qualtrics', - 'Goldman Sachs', - 'Salesforce', - ], - }, - - { - 'id': 13, - 'name': 'Letter Case Permutation', - 'url': 'https://leetcode.com/problems/letter-case-permutation/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Microsoft'], - }, - { - 'id': 14, - 'name': 'Subsets', - 'url': 'https://leetcode.com/problems/subsets/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Google', - 'Bloomberg', - 'Goldman Sachs', - 'Adobe', - 'Twitter', - ], - }, - { - 'id': 15, - 'name': 'Subsets II', - 'url': 'https://leetcode.com/problems/subsets-ii/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Bloomberg'], - }, - { - 'id': 16, - 'name': 'Permutations', - 'url': 'https://leetcode.com/problems/permutations/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'LinkedIn', - 'Bloomberg', - 'Google', - 'Microsoft', - 'Adobe', - 'Apple', - 'Oracle', - ], - }, - { - 'id': 17, - 'name': 'Permutations II', - 'url': 'https://leetcode.com/problems/permutations-ii/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['LinkedIn', 'Facebook', 'Amazon', 'Adobe', 'Apple'], - }, - { - 'id': 18, - 'name': 'Combinations', - 'url': 'https://leetcode.com/problems/combinations/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Google', 'Facebook', 'Amazon'], - }, - { - 'id': 19, - 'name': 'Combination Sum', - 'url': 'https://leetcode.com/problems/combination-sum/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Airbnb', - 'Apple', - 'Adobe', - 'Microsoft', - 'LinkedIn', - 'Goldman Sachs', - 'Snapchat', - 'Salesforce', - ], - }, - { - 'id': 20, - 'name': 'Combination Sum II', - 'url': 'https://leetcode.com/problems/combination-sum-ii/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon'], - }, - { - 'id': 21, - 'name': 'Combination Sum III', - 'url': 'https://leetcode.com/problems/combination-sum-iii/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Google'], - }, - { - 'id': 22, - 'name': 'Generate Parentheses', - 'url': 'https://leetcode.com/problems/generate-parentheses/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Microsoft', - 'Apple', - 'Bloomberg', - 'Adobe', - 'Uber', - 'Google', - 'Goldman Sachs', - ], - }, - { - 'id': 23, - 'name': 'Target Sum', - 'url': 'https://leetcode.com/problems/target-sum/', - 'pattern': ['DFS', 'Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Microsoft', 'Adobe'], - }, - { - 'id': 24, - 'name': 'Palindrome Partitioning', - 'url': 'https://leetcode.com/problems/palindrome-partitioning/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Apple'], - }, - { - 'id': 25, - 'name': 'Letter Combinations of a Phone Number', - 'url': 'https://leetcode.com/problems/letter-combinations-of-a-phone-number/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Facebook', - 'Google', - 'Uber', - 'Apple', - 'Adobe', - 'Twitter', - 'Bloomberg', - 'Oracle', - 'Goldman Sachs', - 'Snapchat', - 'Intuit', - ], - }, - { - 'id': 26, - 'name': 'Generalized Abbreviation', - 'url': 'https://leetcode.com/problems/generalized-abbreviation/', - 'pattern': ['Backtracking'], - 'difficulty': 'Medium', - 'premium': True, - 'companies': ['Google'], - }, - { - 'id': 27, - 'name': 'Sudoku Solver', - 'url': 'https://leetcode.com/problems/sudoku-solver/', - 'pattern': ['Backtracking'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Google', 'Intuit', 'Amazon', 'Apple', 'Uber', 'Bloomberg'], - }, - { - 'id': 28, - 'name': 'N-Queens', - 'url': 'https://leetcode.com/problems/n-queens/', - 'pattern': ['Backtracking'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Apple', - 'Facebook', - 'Uber', - 'Goldman Sachs', - 'Adobe', - ], - }, - { - 'id': 29, - 'name': 'Climbing Stairs', - 'url': 'https://leetcode.com/problems/climbing-stairs/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Microsoft', 'Google', 'Bloomberg', 'Apple', 'Adobe'], - }, - { - 'id': 30, - 'name': 'House Robber', - 'url': 'https://leetcode.com/problems/house-robber/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Google', - 'Apple', - 'Adobe', - 'Qualtrics', - 'Bloomberg', - 'Facebook', - 'Goldman Sachs', - ], - }, - { - 'id': 31, - 'name': 'Best Time to Buy and Sell Stock', - 'url': 'https://leetcode.com/problems/best-time-to-buy-and-sell-stock/', - 'pattern': ['Greedy'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Apple', - 'Adobe', - 'Microsoft', - 'Bloomberg', - 'Snapchat', - 'Goldman Sachs', - 'Uber', - 'Oracle', - 'Google', - 'BlackRock', - 'Citadel', - 'JPMorgan', - 'Salesforce', - ], - }, - { - 'id': 32, - 'name': 'Maximum Subarray', - 'url': 'https://leetcode.com/problems/maximum-subarray/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'LinkedIn', - 'Amazon', - 'Adobe', - 'Apple', - 'Microsoft', - 'Google', - 'Bloomberg', - 'Facebook', - 'Uber', - 'Oracle', - 'Goldman Sachs', - 'JPMorgan', - ], - }, - { - 'id': 33, - 'name': 'Range Sum Query - Immutable', - 'url': 'https://leetcode.com/problems/range-sum-query-immutable/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Adobe'], - }, - { - 'id': 34, - 'name': 'House Robber II', - 'url': 'https://leetcode.com/problems/house-robber-ii/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Google'], - }, - { - 'id': 35, - 'name': 'Coin Change', - 'url': 'https://leetcode.com/problems/coin-change/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Microsoft', 'Google', 'Apple'], - }, - { - 'id': 36, - 'name': 'Maximum Product Subarray', - 'url': 'https://leetcode.com/problems/maximum-product-subarray/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'LinkedIn', - 'Amazon', - 'Microsoft', - 'Google', - 'Apple', - 'Facebook', - 'Bloomberg', - ], - }, - { - 'id': 37, - 'name': 'Longest Increasing Subsequence', - 'url': 'https://leetcode.com/problems/longest-increasing-subsequence/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Google', - 'Amazon', - 'Facebook', - 'Microsoft', - 'Apple', - 'Bloomberg', - ], - }, - { - 'id': 38, - 'name': 'Longest Palindromic Substring', - 'url': 'https://leetcode.com/problems/longest-palindromic-substring/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Adobe', - 'Apple', - 'Facebook', - 'Google', - 'Oracle', - 'Salesforce', - 'Bloomberg', - 'LinkedIn', - 'Tesla', - ], - }, - { - 'id': 39, - 'name': 'Word Break', - 'url': 'https://leetcode.com/problems/word-break/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Microsoft', - 'Uber', - 'Apple', - 'Bloomberg', - 'Qualtrics', - 'Adobe', - 'Google', - 'Snapchat', - 'Salesforce', - ], - }, - { - 'id': 40, - 'name': 'Combination Sum IV', - 'url': 'https://leetcode.com/problems/combination-sum-iv/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Google', 'Amazon', 'Facebook'], - }, - { - 'id': 41, - 'name': 'Decode Ways', - 'url': 'https://leetcode.com/problems/decode-ways/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Google', - 'Snapchat', - 'Lyft', - 'Goldman Sachs', - 'Microsoft', - 'Bloomberg', - 'JPMorgan', - ], - }, - { - 'id': 42, - 'name': 'Unique Paths', - 'url': 'https://leetcode.com/problems/unique-paths/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Google', - 'Facebook', - 'Amazon', - 'Apple', - 'Microsoft', - 'Bloomberg', - ], - }, - { - 'id': 43, - 'name': 'Jump Game', - 'url': 'https://leetcode.com/problems/jump-game/', - 'pattern': ['Dynamic Programming', 'Greedy'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Uber', - 'Oracle', - 'Adobe', - 'Microsoft', - 'Bloomberg', - ], - }, - { - 'id': 44, - 'name': 'Palindromic Substrings', - 'url': 'https://leetcode.com/problems/palindromic-substrings/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Microsoft', 'Google', 'Goldman Sachs'], - }, - { - 'id': 45, - 'name': 'Number of Longest Increasing Subsequence', - 'url': - 'https://leetcode.com/problems/number-of-longest-increasing-subsequence/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Google'], - }, - { - 'id': 46, - 'name': 'Partition Equal Subset Sum', - 'url': 'https://leetcode.com/problems/partition-equal-subset-sum/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Google', - 'Amazon', - 'Microsoft', - 'Uber', - 'Apple', - 'Bloomberg', - ], - }, - { - 'id': 47, - 'name': 'Partition to K Equal Sum Subsets', - 'url': 'https://leetcode.com/problems/partition-to-k-equal-sum-subsets/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['LinkedIn', 'Facebook'], - }, - { - 'id': 48, - 'name': 'Best Time to Buy and Sell Stock with Cooldown', - 'url': - 'https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/', - 'pattern': ['Dynamic Programming'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Adobe', 'Bloomberg'], - }, - { - 'id': 49, - 'name': 'Counting Bits', - 'url': 'https://leetcode.com/problems/counting-bits/', - 'pattern': ['Dynamic Programming', 'Bit Manipulation'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Google'], - }, - { - 'id': 50, - 'name': 'Linked List Cycle', - 'url': 'https://leetcode.com/problems/linked-list-cycle/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'Microsoft', - 'Amazon', - 'Bloomberg', - 'Oracle', - 'Facebook', - 'Google', - ], - }, - { - 'id': 51, - 'name': 'Middle of the Linked List', - 'url': 'https://leetcode.com/problems/middle-of-the-linked-list/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Apple', 'Microsoft', 'Adobe', 'Goldman Sachs'], - }, - { - 'id': 52, - 'name': 'Palindrome Linked List', - 'url': 'https://leetcode.com/problems/palindrome-linked-list/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Microsoft', 'Intuit', 'Bloomberg'], - }, - { - 'id': 53, - 'name': 'Remove Linked List Elements', - 'url': 'https://leetcode.com/problems/remove-linked-list-elements/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Microsoft'], - }, - { - 'id': 54, - 'name': 'Remove Duplicates from Sorted List', - 'url': 'https://leetcode.com/problems/remove-duplicates-from-sorted-list/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Adobe', 'Facebook', 'Microsoft'], - }, - { - 'id': 55, - 'name': 'Linked List Cycle II', - 'url': 'https://leetcode.com/problems/linked-list-cycle-ii/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Microsoft', 'Amazon', 'Goldman Sachs', 'Oracle'], - }, - { - 'id': 56, - 'name': 'Add Two Numbers', - 'url': 'https://leetcode.com/problems/add-two-numbers/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Bloomberg', - 'Adobe', - 'Microsoft', - 'Facebook', - 'Google', - 'Apple', - 'Uber', - 'Capital One', - 'Oracle', - ], - }, - { - 'id': 57, - 'name': 'Remove Nth Node From End Of List', - 'url': 'https://leetcode.com/problems/remove-nth-node-from-end-of-list/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Microsoft', 'Amazon', 'Google', 'Apple'], - }, - { - 'id': 58, - 'name': 'Sort List', - 'url': 'https://leetcode.com/problems/sort-list/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Apple', 'Uber'], - }, - { - 'id': 59, - 'name': 'Reorder List', - 'url': 'https://leetcode.com/problems/reorder-list/', - 'pattern': ['Fast & Slow Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Adobe', 'Facebook', 'Google', 'Snapchat', 'Uber'], - }, - { - 'id': 60, - 'name': 'Clone Graph', - 'url': 'https://leetcode.com/problems/clone-graph/', - 'pattern': ['BFS', 'DFS', 'Graph'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Microsoft', - 'Amazon', - 'Salesforce', - 'Google', - 'Twitter', - 'Bloomberg', - 'Oracle', - 'Apple', - ], - }, - { - 'id': 61, - 'name': 'Pacific Atlantic Water Flow', - 'url': 'https://leetcode.com/problems/pacific-atlantic-water-flow/', - 'pattern': ['BFS', 'DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Google', 'Amazon', 'Microsoft', 'Facebook', 'Apple'], - }, - { - 'id': 62, - 'name': 'Number of Islands', - 'url': 'https://leetcode.com/problems/number-of-islands/', - 'pattern': ['BFS', 'DFS', 'Union Find'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Bloomberg', - 'Google', - 'LinkedIn', - 'Facebook', - 'Apple', - 'Oracle', - 'Goldman Sachs', - 'Salesforce', - 'Lyft', - 'Uber', - 'Adobe', - 'Qualtrics', - ], - }, - { - 'id': 63, - 'name': 'Graph Valid Tree', - 'url': 'https://leetcode.com/problems/graph-valid-tree/', - 'pattern': ['BFS', 'DFS', 'Graph', 'Union Find'], - 'difficulty': 'Medium', - 'premium': True, - 'companies': ['LinkedIn', 'Google', 'Bloomberg'], - }, - { - 'id': 64, - 'name': 'Number of Connected Components in an Undirected Graph', - 'url': - 'https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/', - 'pattern': ['BFS', 'DFS', 'Graph', 'Union Find'], - 'difficulty': 'Medium', - 'premium': True, - 'companies': ['Amazon', 'LinkedIn', 'Facebook', 'Pinterest'], - }, - { - 'id': 65, - 'name': 'Reverse Linked List', - 'url': 'https://leetcode.com/problems/reverse-linked-list/', - 'pattern': ['In-place reversal of a linked list'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Microsoft', 'Bloomberg', 'Amazon', 'Facebook', 'Apple'], - }, - { - 'id': 66, - 'name': 'Reverse Linked List II', - 'url': 'https://leetcode.com/problems/reverse-linked-list-ii/', - 'pattern': ['In-place reversal of a linked list'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Apple', 'Facebook', 'Amazon', 'Google', 'Adobe'], - }, - { - 'id': 67, - 'name': 'Rotate List', - 'url': 'https://leetcode.com/problems/rotate-list/', - 'pattern': ['In-place reversal of a linked list'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'LinkedIn', 'Microsoft', 'Adobe', 'Apple', 'Oracle'], - }, - { - 'id': 68, - 'name': 'Swap Nodes in Pairs', - 'url': 'https://leetcode.com/problems/swap-nodes-in-pairs/', - 'pattern': ['In-place reversal of a linked list'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Microsoft'], - }, - { - 'id': 69, - 'name': 'Odd Even Linked List', - 'url': 'https://leetcode.com/problems/odd-even-linked-list/', - 'pattern': ['In-place reversal of a linked list'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Microsoft', - 'Bloomberg', - 'Amazon', - 'Adobe', - 'Apple', - ], - }, - { - 'id': 70, - 'name': 'Reverse Nodes in k-Group', - 'url': 'https://leetcode.com/problems/reverse-nodes-in-k-group/', - 'pattern': ['In-place reversal of a linked list'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Capital One', - 'Microsoft', - 'Amazon', - 'Google', - 'Facebook', - 'Snapchat', - 'Oracle', - ], - }, - { - 'id': 71, - 'name': 'Merge Two Sorted Lists', - 'url': 'https://leetcode.com/problems/merge-two-sorted-lists/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Microsoft', - 'Adobe', - 'Google', - 'Bloomberg', - 'Apple', - 'Uber', - ], - }, - { - 'id': 72, - 'name': 'Kth Smallest Element in a Sorted Matrix', - 'url': - 'https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/', - 'pattern': ['Binary Search', 'Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Microsoft', 'Bloomberg'], - }, - { - 'id': 73, - 'name': 'Find K Pairs with Smallest Sums', - 'url': 'https://leetcode.com/problems/find-k-pairs-with-smallest-sums/', - 'pattern': ['Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['LinkedIn', 'Microsoft', 'Apple'], - }, - { - 'id': 74, - 'name': 'Merge k Sorted Lists', - 'url': 'https://leetcode.com/problems/merge-k-sorted-lists/', - 'pattern': ['Heap'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Microsoft', - 'Google', - 'Apple', - 'Bloomberg', - 'Adobe', - 'Uber', - 'Qualtrics', - 'Oracle', - ], - }, - { - 'id': 75, - 'name': 'Smallest Range Covering Elements from K Lists', - 'url': - 'https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/', - 'pattern': ['Heap'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Google', 'Amazon', 'Microsoft', 'Pinterest'], - }, - { - 'id': 76, - 'name': 'Meeting Rooms', - 'url': 'https://leetcode.com/problems/meeting-rooms', - 'pattern': ['Intervals'], - 'difficulty': 'Easy', - 'premium': True, - 'companies': ['Amazon', 'Microsoft', 'Facebook'], - }, - { - 'id': 77, - 'name': 'Merge Intervals', - 'url': 'https://leetcode.com/problems/merge-intervals/', - 'pattern': ['Intervals'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Microsoft', - 'Salesforce', - 'Google', - 'Uber', - 'Bloomberg', - 'Adobe', - 'Apple', - 'LinkedIn', - 'Twitter', - 'Oracle', - 'JPMorgan', - 'Snapchat', - ], - }, - { - 'id': 78, - 'name': 'Interval List Intersections', - 'url': 'https://leetcode.com/problems/interval-list-intersections/', - 'pattern': ['Intervals'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Uber', 'Google'], - }, - { - 'id': 79, - 'name': 'Non-overlapping Intervals', - 'url': 'https://leetcode.com/problems/non-overlapping-intervals/', - 'pattern': ['Intervals'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Facebook', 'Oracle'], - }, - { - 'id': 80, - 'name': 'Meeting Rooms II', - 'url': 'https://leetcode.com/problems/meeting-rooms-ii/', - 'pattern': ['Heap', 'Intervals'], - 'difficulty': 'Medium', - 'premium': True, - 'companies': [ - 'Amazon', - 'Facebook', - 'Bloomberg', - 'Microsoft', - 'Google', - 'Oracle', - 'Uber', - 'Twitter', - 'Snapchat', - 'Qualtrics', - 'Adobe', - 'Quora', - 'Goldman Sachs', - ], - }, - { - 'id': 81, - 'name': 'Task Scheduler', - 'url': 'https://leetcode.com/problems/task-scheduler/', - 'pattern': ['Greedy', 'Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Google', - 'Uber', - 'Amazon', - 'Microsoft', - 'Salesforce', - ], - }, - { - 'id': 82, - 'name': 'Minimum Number of Arrows to Burst Balloons', - 'url': - 'https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/', - 'pattern': ['Greedy'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Apple'], - }, - { - 'id': 83, - 'name': 'Insert Interval', - 'url': 'https://leetcode.com/problems/insert-interval/', - 'pattern': ['Intervals'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Google', - 'Facebook', - 'LinkedIn', - 'Microsoft', - 'Twitter', - 'Citadel', - ], - }, - { - 'id': 84, - 'name': 'Employee Free Time', - 'url': 'https://leetcode.com/problems/employee-free-time/', - 'pattern': ['Heap', 'Greedy'], - 'difficulty': 'Hard', - 'premium': True, - 'companies': [ - 'Pinterest', - 'Amazon', - 'Airbnb', - 'Snapchat', - 'Google', - 'Facebook', - 'Apple', - 'Oracle', - 'Uber', - ], - }, - { - 'id': 85, - 'name': 'Binary Search', - 'url': 'https://leetcode.com/problems/binary-search/', - 'pattern': ['Binary Search'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Adobe', 'Apple', 'Uber', 'Goldman Sachs'], - }, - { - 'id': 86, - 'name': 'Find Smallest Letter Greater Than Target', - 'url': - 'https://leetcode.com/problems/find-smallest-letter-greater-than-target/', - 'pattern': ['Binary Search'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['LinkedIn'], - }, - { - 'id': 87, - 'name': 'Peak Index in a Mountain Array', - 'url': 'https://leetcode.com/problems/peak-index-in-a-mountain-array/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Google', 'Amazon', 'Bloomberg', 'Facebook'], - }, - { - 'id': 88, - 'name': 'Find Minimum in Rotated Sorted Array', - 'url': 'https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Microsoft', - 'Amazon', - 'Bloomberg', - 'Uber', - 'Adobe', - 'Apple', - ], - }, - { - 'id': 89, - 'name': 'Find Peak Element', - 'url': 'https://leetcode.com/problems/find-peak-element/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Uber', 'Google', 'Microsoft'], - }, - { - 'id': 90, - 'name': 'Search in Rotated Sorted Array', - 'url': 'https://leetcode.com/problems/search-in-rotated-sorted-array/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Microsoft', - 'Amazon', - 'LinkedIn', - 'Facebook', - 'Bloomberg', - 'Adobe', - 'Apple', - 'Goldman Sachs', - 'Oracle', - 'Uber', - 'Morgan Stanley', - ], - }, - { - 'id': 91, - 'name': 'Search in Rotated Sorted Array II', - 'url': 'https://leetcode.com/problems/search-in-rotated-sorted-array-ii/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['LinkedIn', 'Amazon', 'Facebook', 'Microsoft'], - }, - { - 'id': 92, - 'name': 'Search a 2D Matrix', - 'url': 'https://leetcode.com/problems/search-a-2d-matrix/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Bloomberg', - 'Microsoft', - 'Uber', - 'Google', - 'Apple', - ], - }, - { - 'id': 93, - 'name': 'Search a 2D Matrix II', - 'url': 'https://leetcode.com/problems/search-a-2d-matrix-ii/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Microsoft', 'Amazon', 'Facebook', 'Apple', 'Uber'], - }, - { - 'id': 94, - 'name': 'Find K Closest Elements', - 'url': 'https://leetcode.com/problems/find-k-closest-elements/', - 'pattern': ['Binary Search'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Google', - 'Uber', - 'Microsoft', - 'Bloomberg', - ], - }, - { - 'id': 95, - 'name': 'Count of Range Sum', - 'url': 'https://leetcode.com/problems/count-of-range-sum/', - 'pattern': ['Binary Search'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Google'], - }, - { - 'id': 96, - 'name': 'Minimum Size Subarray Sum', - 'url': 'https://leetcode.com/problems/minimum-size-subarray-sum/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Goldman Sachs', 'Facebook', 'Amazon', 'Google'], - }, - { - 'id': 97, - 'name': 'Fruit Into Baskets', - 'url': 'https://leetcode.com/problems/fruit-into-baskets/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon'], - }, - { - 'id': 98, - 'name': 'Permutation in String', - 'url': 'https://leetcode.com/problems/permutation-in-string/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Oracle', 'Facebook'], - }, - { - 'id': 99, - 'name': 'Longest Repeating Character Replacement', - 'url': - 'https://leetcode.com/problems/longest-repeating-character-replacement/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Uber', 'Amazon', 'Adobe'], - }, - { - 'id': 100, - 'name': 'Sliding Window Maximum', - 'url': 'https://leetcode.com/problems/sliding-window-maximum/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Goldman Sachs', - 'Citadel', - 'Google', - 'Uber', - 'Microsoft', - 'Salesforce', - 'Apple', - 'Twitter', - 'Atlassian', - ], - }, - { - 'id': 101, - 'name': 'Longest Substring Without Repeating Characters', - 'url': - 'https://leetcode.com/problems/longest-substring-without-repeating-characters/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Bloomberg', - 'Facebook', - 'Adobe', - 'Google', - 'Apple', - 'Uber', - 'Goldman Sachs', - ], - }, - { - 'id': 102, - 'name': 'Minimum Number of K Consecutive Bit Flips', - 'url': - 'https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Adobe'], - }, - { - 'id': 103, - 'name': 'Count Unique Characters of All Substrings of a Given String', - 'url': - 'https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Amazon'], - }, - { - 'id': 104, - 'name': 'Minimum Window Substring', - 'url': 'https://leetcode.com/problems/minimum-window-substring/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'LinkedIn', - 'Snapchat', - 'Google', - 'Lyft', - 'Adobe', - ], - }, - { - 'id': 105, - 'name': 'Substring with Concatenation of All Words', - 'url': - 'https://leetcode.com/problems/substring-with-concatenation-of-all-words/', - 'pattern': ['Sliding Window'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Apple'], - }, - { - 'id': 106, - 'name': 'Kth Smallest Element in a BST', - 'url': 'https://leetcode.com/problems/kth-smallest-element-in-a-bst/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Facebook'], - }, - { - 'id': 107, - 'name': 'K Closest Points to Origin', - 'url': 'https://leetcode.com/problems/k-closest-points-to-origin/', - 'pattern': ['Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'LinkedIn', 'Google', 'Asana'], - }, - { - 'id': 108, - 'name': 'Top K Frequent Elements', - 'url': 'https://leetcode.com/problems/top-k-frequent-elements/', - 'pattern': ['Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Bloomberg', - 'Microsoft', - 'Uber', - 'Apple', - 'Google', - 'Adobe', - 'Snapchat', - 'Oracle', - 'LinkedIn', - ], - }, - { - 'id': 109, - 'name': 'Sort Characters By Frequency', - 'url': 'https://leetcode.com/problems/sort-characters-by-frequency/', - 'pattern': ['Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Bloomberg', 'Facebook'], - }, - { - 'id': 110, - 'name': 'Kth Largest Element in an Array', - 'url': 'https://leetcode.com/problems/kth-largest-element-in-an-array/', - 'pattern': ['Heap', 'QuickSelect'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'LinkedIn', - 'Microsoft', - 'Google', - 'Goldman Sachs', - 'Uber', - 'Oracle', - ], - }, - { - 'id': 111, - 'name': 'Reorganize String', - 'url': 'https://leetcode.com/problems/reorganize-string/', - 'pattern': ['Greedy', 'Heap'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Facebook', 'Google', 'Apple', 'Uber', 'Microsoft'], - }, - { - 'id': 112, - 'name': 'Rearrange String k Distance Apart', - 'url': 'https://leetcode.com/problems/rearrange-string-k-distance-apart', - 'pattern': ['Greedy', 'Heap'], - 'difficulty': 'Hard', - 'premium': True, - 'companies': ['Twitter'], - }, - { - 'id': 113, - 'name': 'Course Schedule III', - 'url': 'https://leetcode.com/problems/course-schedule-iii/', - 'pattern': ['Greedy', 'Heap'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Amazon'], - }, - { - 'id': 114, - 'name': 'Maximum Frequency Stack', - 'url': 'https://leetcode.com/problems/maximum-frequency-stack/', - 'pattern': ['Bucket Sort', 'Heap'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Microsoft', 'Amazon', 'Apple', 'Facebook'], - }, - { - 'id': 115, - 'name': 'Course Schedule', - 'url': 'https://leetcode.com/problems/course-schedule/', - 'pattern': ['BFS', 'DFS', 'Graph', 'Topological Sort'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Facebook', - 'Google', - 'Oracle', - 'Apple', - 'Snapchat', - ], - }, - { - 'id': 116, - 'name': 'Course Schedule II', - 'url': 'https://leetcode.com/problems/course-schedule-ii/', - 'pattern': ['BFS', 'DFS', 'Graph', 'Topological Sort'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Google', - 'Facebook', - 'Snapchat', - 'Uber', - 'Apple', - 'Lyft', - 'Bloomberg', - ], - }, - { - 'id': 117, - 'name': 'Minimum Height Trees', - 'url': 'https://leetcode.com/problems/minimum-height-trees/', - 'pattern': ['BFS', 'Graph', 'Topological Sort'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Facebook', 'Google', 'Microsoft'], - }, - { - 'id': 118, - 'name': 'Alien Dictionary', - 'url': 'https://leetcode.com/problems/alien-dictionary', - 'pattern': ['Graph', 'Topological Sort'], - 'difficulty': 'Hard', - 'premium': True, - 'companies': [ - 'Facebook', - 'Google', - 'Amazon', - 'Airbnb', - 'Pinterest', - 'Uber', - 'Microsoft', - ], - }, - { - 'id': 119, - 'name': 'Sequence Reconstruction', - 'url': 'https://leetcode.com/problems/sequence-reconstruction', - 'pattern': ['Graph', 'Topological Sort'], - 'difficulty': 'Medium', - 'premium': True, - 'companies': ['Google'], - }, - { - 'id': 120, - 'name': 'Binary Tree Level Order Traversal II', - 'url': 'https://leetcode.com/problems/binary-tree-level-order-traversal-ii/', - 'pattern': ['BFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon'], - }, - { - 'id': 121, - 'name': 'Average of Levels in Binary Tree', - 'url': 'https://leetcode.com/problems/average-of-levels-in-binary-tree/', - 'pattern': ['BFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Amazon'], - }, - { - 'id': 122, - 'name': 'Minimum Depth of Binary Tree', - 'url': 'https://leetcode.com/problems/minimum-depth-of-binary-tree/', - 'pattern': ['BFS', 'DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Goldman Sachs'], - }, - { - 'id': 123, - 'name': 'Binary Tree Level Order Traversal', - 'url': 'https://leetcode.com/problems/binary-tree-level-order-traversal/', - 'pattern': ['BFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'LinkedIn', - 'Amazon', - 'Facebook', - 'Bloomberg', - 'Microsoft', - 'Apple', - 'Oracle', - 'Google', - ], - }, - { - 'id': 124, - 'name': 'Binary Tree Zigzag Level Order Traversal', - 'url': - 'https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/', - 'pattern': ['BFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Microsoft', - 'Bloomberg', - 'Google', - 'Adobe', - 'LinkedIn', - 'Qualtrics', - 'Salesforce', - ], - }, - { - 'id': 125, - 'name': 'Populating Next Right Pointers in Each Node', - 'url': - 'https://leetcode.com/problems/populating-next-right-pointers-in-each-node/', - 'pattern': ['BFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Microsoft', 'Amazon', 'Bloomberg'], - }, - { - 'id': 126, - 'name': 'Populating Next Right Pointers in Each Node II', - 'url': - 'https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/', - 'pattern': ['BFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Bloomberg', 'Microsoft', 'Facebook'], - }, - { - 'id': 127, - 'name': 'Binary Tree Right Side View', - 'url': 'https://leetcode.com/problems/binary-tree-right-side-view/', - 'pattern': ['BFS', 'DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Bloomberg', - 'Amazon', - 'Oracle', - 'Qualtrics', - 'Adobe', - 'Goldman Sachs', - ], - }, - { - 'id': 128, - 'name': 'All Nodes Distance K in Binary Tree', - 'url': 'https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/', - 'pattern': ['BFS', 'DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Apple', 'Oracle'], - }, - { - 'id': 129, - 'name': 'Same Tree', - 'url': 'https://leetcode.com/problems/same-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'LinkedIn', - 'Google', - 'Microsoft', - 'Amazon', - 'Facebook', - 'Apple', - 'Adobe', - 'Oracle', - ], - }, - { - 'id': 130, - 'name': 'Path Sum', - 'url': 'https://leetcode.com/problems/path-sum/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Facebook', 'Oracle'], - }, - { - 'id': 131, - 'name': 'Maximum Depth of Binary Tree', - 'url': 'https://leetcode.com/problems/maximum-depth-of-binary-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['LinkedIn', 'Google', 'Apple', 'Amazon'], - }, - { - 'id': 132, - 'name': 'Diameter of Binary Tree', - 'url': 'https://leetcode.com/problems/diameter-of-binary-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Google', - 'Bloomberg', - 'Apple', - 'Microsoft', - 'Adobe', - ], - }, - { - 'id': 133, - 'name': 'Merge Two Binary Trees', - 'url': 'https://leetcode.com/problems/merge-two-binary-trees/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Adobe'], - }, - { - 'id': 134, - 'name': 'Lowest Common Ancestor of a Binary Search Tree', - 'url': - 'https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['LinkedIn', 'Facebook', 'Microsoft', 'Google', 'Uber'], - }, - { - 'id': 135, - 'name': 'Subtree of Another Tree', - 'url': 'https://leetcode.com/problems/subtree-of-another-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Microsoft'], - }, - { - 'id': 136, - 'name': 'Invert Binary Tree', - 'url': 'https://leetcode.com/problems/invert-binary-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Google', 'Facebook', 'Adobe', 'Apple'], - }, - { - 'id': 137, - 'name': 'Path Sum II', - 'url': 'https://leetcode.com/problems/path-sum-ii/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Google', 'Facebook', 'Adobe', 'Apple'], - }, - { - 'id': 138, - 'name': 'Path Sum III', - 'url': 'https://leetcode.com/problems/path-sum-iii/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Microsoft', 'Facebook', 'Google', 'Oracle'], - }, - { - 'id': 139, - 'name': 'Lowest Common Ancestor of a Binary Tree', - 'url': - 'https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'LinkedIn', - 'Google', - 'Microsoft', - 'Adobe', - 'Apple', - 'Salesforce', - 'Oracle', - 'Bloomberg', - 'Intuit', - ], - }, - { - 'id': 140, - 'name': 'Maximum Binary Tree', - 'url': 'https://leetcode.com/problems/maximum-binary-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon'], - }, - { - 'id': 141, - 'name': 'Maximum Width of Binary Tree', - 'url': 'https://leetcode.com/problems/maximum-width-of-binary-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Google', 'Bloomberg', 'Apple', 'Adobe'], - }, - { - 'id': 142, - 'name': 'Construct Binary Tree from Preorder and Inorder Traversal', - 'url': - 'https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Amazon', 'Microsoft', 'Adobe', 'Bloomberg', 'Apple'], - }, - { - 'id': 143, - 'name': 'Validate Binary Search Tree', - 'url': 'https://leetcode.com/problems/validate-binary-search-tree/', - 'pattern': ['DFS'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Bloomberg', - 'Microsoft', - 'Facebook', - 'Google', - 'Adobe', - 'Apple', - 'Qualtrics', - 'Lyft', - ], - }, - { - 'id': 144, - 'name': 'Implement Trie (Prefix Tree)', - 'url': 'https://leetcode.com/problems/implement-trie-prefix-tree/', - 'pattern': ['Design', 'Trie'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Twitter', - 'Google', - 'Facebook', - 'Microsoft', - 'Apple', - ], - }, - { - 'id': 145, - 'name': 'Binary Tree Maximum Path Sum', - 'url': 'https://leetcode.com/problems/binary-tree-maximum-path-sum/', - 'pattern': ['DFS'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Google', - 'Microsoft', - 'Adobe', - 'Bloomberg', - 'Oracle', - 'Snapchat', - ], - }, - { - 'id': 146, - 'name': 'Serialize and Deserialize Binary Tree', - 'url': 'https://leetcode.com/problems/serialize-and-deserialize-binary-tree/', - 'pattern': ['Design'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'LinkedIn', - 'Amazon', - 'Microsoft', - 'Facebook', - 'Oracle', - 'Uber', - 'Adobe', - 'Snapchat', - 'Qualtrics', - 'Google', - 'Quora', - ], - }, - { - 'id': 147, - 'name': 'Word Search II', - 'url': 'https://leetcode.com/problems/word-search-ii/', - 'pattern': ['DFS', 'Trie'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Amazon', - 'Uber', - 'Microsoft', - 'Apple', - 'Twitter', - 'Snapchat', - 'Facebook', - 'Bloomberg', - 'Google', - 'Salesforce', - ], - }, - { - 'id': 148, - 'name': 'Find Median from Data Stream', - 'url': 'https://leetcode.com/problems/find-median-from-data-stream/', - 'pattern': ['Heap'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Apple', - 'Facebook', - 'Google', - 'Bloomberg', - 'Uber', - 'Airbnb', - ], - }, - { - 'id': 149, - 'name': 'Sliding Window Median', - 'url': 'https://leetcode.com/problems/sliding-window-median/', - 'pattern': ['Heap'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Facebook', 'Amazon'], - }, - { - 'id': 150, - 'name': 'Two Sum', - 'url': 'https://leetcode.com/problems/two-sum/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': [ - 'Amazon', - 'Google', - 'Adobe', - 'Apple', - 'Microsoft', - 'Facebook', - 'Bloomberg', - 'Uber', - 'Oracle', - 'Morgan Stanley', - 'Citadel', - 'Salesforce', - 'Goldman Sachs', - 'JPMorgan', - 'Snapchat', - ], - }, - { - 'id': 151, - 'name': 'Squares of a Sorted Array', - 'url': 'https://leetcode.com/problems/squares-of-a-sorted-array/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Google', 'Adobe', 'Apple', 'Uber'], - }, - { - 'id': 152, - 'name': 'Backspace String Compare', - 'url': 'https://leetcode.com/problems/backspace-string-compare/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Facebook', 'Amazon', 'Apple', 'Google', 'Microsoft'], - }, - { - 'id': 153, - 'name': '3 Sum', - 'url': 'https://leetcode.com/problems/3sum/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Facebook', - 'Apple', - 'Microsoft', - 'Adobe', - 'Google', - 'Bloomberg', - 'Intuit', - 'Qualtrics', - 'Salesforce', - 'Goldman Sachs', - 'Uber', - 'Oracle', - ], - }, - { - 'id': 154, - 'name': '3 Sum Closest', - 'url': 'https://leetcode.com/problems/3sum-closest/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Capital One', - 'Apple', - 'Google', - 'Adobe', - 'Microsoft', - 'Oracle', - ], - }, - { - 'id': 155, - 'name': 'Subarrays with Product Less than K', - 'url': 'https://leetcode.com/problems/subarray-product-less-than-k/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['LinkedIn', 'Amazon', 'Microsoft'], - }, - { - 'id': 156, - 'name': 'Sort Colours', - 'url': 'https://leetcode.com/problems/sort-colors/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Microsoft', - 'Amazon', - 'Adobe', - 'Facebook', - 'Apple', - 'Salesforce', - 'Bloomberg', - ], - }, - { - 'id': 157, - 'name': 'Trapping Rain Water', - 'url': 'https://leetcode.com/problems/trapping-rain-water/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Facebook', - 'Amazon', - 'Goldman Sachs', - 'Microsoft', - 'Adobe', - 'Google', - 'Bloomberg', - 'Qualtrics', - 'Snapchat', - 'Lyft', - 'Uber', - 'Apple', - 'Citadel', - 'Tesla', - ], - }, - { - 'id': 158, - 'name': 'Container With Most Water', - 'url': 'https://leetcode.com/problems/container-with-most-water/', - 'pattern': ['Two Pointers'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': [ - 'Amazon', - 'Microsoft', - 'Google', - 'Adobe', - 'Bloomberg', - 'Apple', - 'Uber', - 'Facebook', - ], - }, - { - 'id': 159, - 'name': 'Longest Word in Dictionary', - 'url': 'https://leetcode.com/problems/longest-word-in-dictionary/', - 'pattern': ['Trie'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Google'], - }, - { - 'id': 160, - 'name': 'Index Pairs of a String', - 'url': 'https://leetcode.com/problems/index-pairs-of-a-string/', - 'pattern': ['Trie'], - 'difficulty': 'Easy', - 'premium': True, - 'companies': ['Amazon'], - }, - { - 'id': 161, - 'name': 'Maximum XOR of Two Numbers in an Array', - 'url': 'https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array', - 'pattern': ['Trie'], - 'difficulty': 'Medium', - 'premium': False, - 'companies': ['Adobe'], - }, - { - 'id': 162, - 'name': 'Concatenated Words', - 'url': 'https://leetcode.com/problems/concatenated-words/', - 'pattern': ['Trie'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Amazon', 'Microsoft'], - }, - { - 'id': 163, - 'name': 'Prefix and Suffix Search', - 'url': 'https://leetcode.com/problems/prefix-and-suffix-search/', - 'pattern': ['Trie'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Google'], - }, - { - 'id': 164, - 'name': 'Palindrome Pairs', - 'url': 'https://leetcode.com/problems/palindrome-pairs/', - 'pattern': ['Trie'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Airbnb', 'Facebook', 'Google'], - }, - { - 'id': 165, - 'name': 'Design Search Autocomplete System', - 'url': 'https://leetcode.com/problems/design-search-autocomplete-system/', - 'pattern': ['Trie'], - 'difficulty': 'Hard', - 'premium': True, - 'companies': [ - 'Amazon', - 'Google', - 'Microsoft', - 'Uber', - 'Bloomberg', - 'Twitter', - ], - }, - { - 'id': 166, - 'name': 'Word Squares', - 'url': 'https://leetcode.com/problems/word-squares/', - 'pattern': ['Trie'], - 'difficulty': 'Hard', - 'premium': True, - 'companies': ['Bloomberg', 'Oracle', 'Google'], - }, - { - 'id': 167, - 'name': 'Sort Items by Groups Respecting Dependencies', - 'url': - 'https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/', - 'pattern': ['DFS', 'Graph', 'Topological Sort'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': ['Apple'], - }, - { - 'id': 168, - 'name': 'Median of Two Sorted Arrays', - 'url': 'https://leetcode.com/problems/median-of-two-sorted-arrays/', - 'pattern': ['Binary Search'], - 'difficulty': 'Hard', - 'premium': False, - 'companies': [ - 'Amazon', - 'Goldman Sachs', - 'Microsoft', - 'Google', - 'Adobe', - 'Facebook', - 'Apple', - 'Bloomberg', - 'Oracle', - ], - }, - { - 'id': 169, - 'name': 'Majority Element', - 'url': 'https://leetcode.com/problems/majority-element/', - 'pattern': ['Sorting'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Amazon', 'Facebook', 'Apple', 'Microsoft', 'Adobe'], - }, - { - 'id': 170, - 'name': 'Convert 1D Array Into 2D Array', - 'url': 'https://leetcode.com/problems/convert-1d-array-into-2d-array/', - 'pattern': ['Arrays'], - 'difficulty': 'Easy', - 'premium': False, - 'companies': ['Google'], - }, -] \ No newline at end of file diff --git a/cron/difficulty.py b/cron/update_questions.py similarity index 65% rename from cron/difficulty.py rename to cron/update_questions.py index c9de6d3f..92f80b2c 100644 --- a/cron/difficulty.py +++ b/cron/update_questions.py @@ -1,6 +1,6 @@ import requests from urllib.parse import urlparse -from questions import questions +import json query = '''query questionData($titleSlug: String!) { question(titleSlug: $titleSlug) { @@ -9,6 +9,13 @@ } ''' +print("Reading questions file") + +with open("questions.json", "r") as file: + questions = json.load(file) + +print("Updating question metadata") + for question in questions: p = urlparse(question["url"]) title_slug = p.path.rstrip('/').split('/')[-1] @@ -23,5 +30,11 @@ if their_difficulty != our_difficulty: print(f'{question["name"]}: {our_difficulty} -> {their_difficulty}') + question["difficulty"] = their_difficulty + +print("Finished checking all questions") + +with open("questions.json", "w") as file: + json.dump(questions, file, indent=2) -print("Finished checking all questions") \ No newline at end of file +print("Wrote questions file") diff --git a/questions.json b/questions.json new file mode 100644 index 00000000..519c8a5e --- /dev/null +++ b/questions.json @@ -0,0 +1,3041 @@ +[ + { + "id": 0, + "name": "Contains Duplicate", + "url": "https://leetcode.com/problems/contains-duplicate/", + "pattern": [ + "Arrays" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Adobe", + "Google", + "Bloomberg", + "Facebook", + "Apple", + "Microsoft" + ] + }, + { + "id": 1, + "name": "Missing Number", + "url": "https://leetcode.com/problems/missing-number/", + "pattern": [ + "Arrays", + "Bit Manipulation" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Microsoft", + "Facebook", + "Amazon", + "Google", + "Adobe" + ] + }, + { + "id": 2, + "name": "Find All Numbers Disappeared in an Array", + "url": "https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/", + "pattern": [ + "Arrays" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 3, + "name": "Single Number", + "url": "https://leetcode.com/problems/single-number/", + "pattern": [ + "Arrays", + "Bit Manipulation" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Adobe" + ] + }, + { + "id": 4, + "name": "Product of Array Except Self", + "url": "https://leetcode.com/problems/product-of-array-except-self/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Asana", + "Microsoft", + "Apple", + "Lyft", + "Adobe", + "Google", + "Uber", + "Goldman Sachs", + "Oracle" + ] + }, + { + "id": 5, + "name": "Find the Duplicate Number", + "url": "https://leetcode.com/problems/find-the-duplicate-number/", + "pattern": [ + "Arrays", + "Binary Search", + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Microsoft", + "Amazon", + "Adobe", + "Bloomberg", + "Facebook", + "Apple" + ] + }, + { + "id": 6, + "name": "Find All Duplicates in an Array", + "url": "https://leetcode.com/problems/find-all-duplicates-in-an-array/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google" + ] + }, + { + "id": 7, + "name": "Set Matrix Zeroes", + "url": "https://leetcode.com/problems/set-matrix-zeroes/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Apple", + "Adobe", + "Bloomberg", + "Oracle" + ] + }, + { + "id": 8, + "name": "Spiral Matrix", + "url": "https://leetcode.com/problems/spiral-matrix/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Facebook", + "Apple", + "Google", + "Oracle", + "Bloomberg", + "Intuit", + "Adobe" + ] + }, + { + "id": 9, + "name": "Rotate Image", + "url": "https://leetcode.com/problems/rotate-image/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Apple", + "Bloomberg", + "Uber", + "Google" + ] + }, + { + "id": 10, + "name": "Word Search", + "url": "https://leetcode.com/problems/word-search/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Twitter", + "Facebook", + "Snapchat", + "Goldman Sachs", + "Google", + "Bloomberg", + "Apple", + "Adobe", + "Oracle", + "Qualtrics" + ] + }, + { + "id": 11, + "name": "First Missing Positive", + "url": "https://leetcode.com/problems/first-missing-positive/", + "pattern": [ + "Arrays" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Facebook", + "Google", + "Adobe", + "Apple" + ] + }, + { + "id": 12, + "name": "Longest Consecutive Sequence", + "url": "https://leetcode.com/problems/longest-consecutive-sequence/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Facebook", + "Amazon", + "Google", + "LinkedIn", + "Apple", + "Qualtrics", + "Goldman Sachs", + "Salesforce" + ] + }, + { + "id": 13, + "name": "Letter Case Permutation", + "url": "https://leetcode.com/problems/letter-case-permutation/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft" + ] + }, + { + "id": 14, + "name": "Subsets", + "url": "https://leetcode.com/problems/subsets/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Bloomberg", + "Goldman Sachs", + "Adobe", + "Twitter" + ] + }, + { + "id": 15, + "name": "Subsets II", + "url": "https://leetcode.com/problems/subsets-ii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Bloomberg" + ] + }, + { + "id": 16, + "name": "Permutations", + "url": "https://leetcode.com/problems/permutations/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "LinkedIn", + "Bloomberg", + "Google", + "Microsoft", + "Adobe", + "Apple", + "Oracle" + ] + }, + { + "id": 17, + "name": "Permutations II", + "url": "https://leetcode.com/problems/permutations-ii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Facebook", + "Amazon", + "Adobe", + "Apple" + ] + }, + { + "id": 18, + "name": "Combinations", + "url": "https://leetcode.com/problems/combinations/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Facebook", + "Amazon" + ] + }, + { + "id": 19, + "name": "Combination Sum", + "url": "https://leetcode.com/problems/combination-sum/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Airbnb", + "Apple", + "Adobe", + "Microsoft", + "LinkedIn", + "Goldman Sachs", + "Snapchat", + "Salesforce" + ] + }, + { + "id": 20, + "name": "Combination Sum II", + "url": "https://leetcode.com/problems/combination-sum-ii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 21, + "name": "Combination Sum III", + "url": "https://leetcode.com/problems/combination-sum-iii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 22, + "name": "Generate Parentheses", + "url": "https://leetcode.com/problems/generate-parentheses/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Apple", + "Bloomberg", + "Adobe", + "Uber", + "Google", + "Goldman Sachs" + ] + }, + { + "id": 23, + "name": "Target Sum", + "url": "https://leetcode.com/problems/target-sum/", + "pattern": [ + "DFS", + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Adobe" + ] + }, + { + "id": 24, + "name": "Palindrome Partitioning", + "url": "https://leetcode.com/problems/palindrome-partitioning/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 25, + "name": "Letter Combinations of a Phone Number", + "url": "https://leetcode.com/problems/letter-combinations-of-a-phone-number/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Facebook", + "Google", + "Uber", + "Apple", + "Adobe", + "Twitter", + "Bloomberg", + "Oracle", + "Goldman Sachs", + "Snapchat", + "Intuit" + ] + }, + { + "id": 26, + "name": "Generalized Abbreviation", + "url": "https://leetcode.com/problems/generalized-abbreviation/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Google" + ] + }, + { + "id": 27, + "name": "Sudoku Solver", + "url": "https://leetcode.com/problems/sudoku-solver/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google", + "Intuit", + "Amazon", + "Apple", + "Uber", + "Bloomberg" + ] + }, + { + "id": 28, + "name": "N-Queens", + "url": "https://leetcode.com/problems/n-queens/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Apple", + "Facebook", + "Uber", + "Goldman Sachs", + "Adobe" + ] + }, + { + "id": 29, + "name": "Climbing Stairs", + "url": "https://leetcode.com/problems/climbing-stairs/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Bloomberg", + "Apple", + "Adobe" + ] + }, + { + "id": 30, + "name": "House Robber", + "url": "https://leetcode.com/problems/house-robber/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Apple", + "Adobe", + "Qualtrics", + "Bloomberg", + "Facebook", + "Goldman Sachs" + ] + }, + { + "id": 31, + "name": "Best Time to Buy and Sell Stock", + "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock/", + "pattern": [ + "Greedy" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Apple", + "Adobe", + "Microsoft", + "Bloomberg", + "Snapchat", + "Goldman Sachs", + "Uber", + "Oracle", + "Google", + "BlackRock", + "Citadel", + "JPMorgan", + "Salesforce" + ] + }, + { + "id": 32, + "name": "Maximum Subarray", + "url": "https://leetcode.com/problems/maximum-subarray/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Adobe", + "Apple", + "Microsoft", + "Google", + "Bloomberg", + "Facebook", + "Uber", + "Oracle", + "Goldman Sachs", + "JPMorgan" + ] + }, + { + "id": 33, + "name": "Range Sum Query - Immutable", + "url": "https://leetcode.com/problems/range-sum-query-immutable/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Adobe" + ] + }, + { + "id": 34, + "name": "House Robber II", + "url": "https://leetcode.com/problems/house-robber-ii/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google" + ] + }, + { + "id": 35, + "name": "Coin Change", + "url": "https://leetcode.com/problems/coin-change/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Apple" + ] + }, + { + "id": 36, + "name": "Maximum Product Subarray", + "url": "https://leetcode.com/problems/maximum-product-subarray/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Microsoft", + "Google", + "Apple", + "Facebook", + "Bloomberg" + ] + }, + { + "id": 37, + "name": "Longest Increasing Subsequence", + "url": "https://leetcode.com/problems/longest-increasing-subsequence/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Facebook", + "Microsoft", + "Apple", + "Bloomberg" + ] + }, + { + "id": 38, + "name": "Longest Palindromic Substring", + "url": "https://leetcode.com/problems/longest-palindromic-substring/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Adobe", + "Apple", + "Facebook", + "Google", + "Oracle", + "Salesforce", + "Bloomberg", + "LinkedIn", + "Tesla" + ] + }, + { + "id": 39, + "name": "Word Break", + "url": "https://leetcode.com/problems/word-break/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Uber", + "Apple", + "Bloomberg", + "Qualtrics", + "Adobe", + "Google", + "Snapchat", + "Salesforce" + ] + }, + { + "id": 40, + "name": "Combination Sum IV", + "url": "https://leetcode.com/problems/combination-sum-iv/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Facebook" + ] + }, + { + "id": 41, + "name": "Decode Ways", + "url": "https://leetcode.com/problems/decode-ways/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Snapchat", + "Lyft", + "Goldman Sachs", + "Microsoft", + "Bloomberg", + "JPMorgan" + ] + }, + { + "id": 42, + "name": "Unique Paths", + "url": "https://leetcode.com/problems/unique-paths/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Facebook", + "Amazon", + "Apple", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 43, + "name": "Jump Game", + "url": "https://leetcode.com/problems/jump-game/", + "pattern": [ + "Dynamic Programming", + "Greedy" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Uber", + "Oracle", + "Adobe", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 44, + "name": "Palindromic Substrings", + "url": "https://leetcode.com/problems/palindromic-substrings/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Google", + "Goldman Sachs" + ] + }, + { + "id": 45, + "name": "Number of Longest Increasing Subsequence", + "url": "https://leetcode.com/problems/number-of-longest-increasing-subsequence/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google" + ] + }, + { + "id": 46, + "name": "Partition Equal Subset Sum", + "url": "https://leetcode.com/problems/partition-equal-subset-sum/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Google", + "Amazon", + "Microsoft", + "Uber", + "Apple", + "Bloomberg" + ] + }, + { + "id": 47, + "name": "Partition to K Equal Sum Subsets", + "url": "https://leetcode.com/problems/partition-to-k-equal-sum-subsets/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Facebook" + ] + }, + { + "id": 48, + "name": "Best Time to Buy and Sell Stock with Cooldown", + "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Adobe", + "Bloomberg" + ] + }, + { + "id": 49, + "name": "Counting Bits", + "url": "https://leetcode.com/problems/counting-bits/", + "pattern": [ + "Dynamic Programming", + "Bit Manipulation" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 50, + "name": "Linked List Cycle", + "url": "https://leetcode.com/problems/linked-list-cycle/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Bloomberg", + "Oracle", + "Facebook", + "Google" + ] + }, + { + "id": 51, + "name": "Middle of the Linked List", + "url": "https://leetcode.com/problems/middle-of-the-linked-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Apple", + "Microsoft", + "Adobe", + "Goldman Sachs" + ] + }, + { + "id": 52, + "name": "Palindrome Linked List", + "url": "https://leetcode.com/problems/palindrome-linked-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Intuit", + "Bloomberg" + ] + }, + { + "id": 53, + "name": "Remove Linked List Elements", + "url": "https://leetcode.com/problems/remove-linked-list-elements/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Microsoft" + ] + }, + { + "id": 54, + "name": "Remove Duplicates from Sorted List", + "url": "https://leetcode.com/problems/remove-duplicates-from-sorted-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Adobe", + "Facebook", + "Microsoft" + ] + }, + { + "id": 55, + "name": "Linked List Cycle II", + "url": "https://leetcode.com/problems/linked-list-cycle-ii/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Goldman Sachs", + "Oracle" + ] + }, + { + "id": 56, + "name": "Add Two Numbers", + "url": "https://leetcode.com/problems/add-two-numbers/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Adobe", + "Microsoft", + "Facebook", + "Google", + "Apple", + "Uber", + "Capital One", + "Oracle" + ] + }, + { + "id": 57, + "name": "Remove Nth Node From End Of List", + "url": "https://leetcode.com/problems/remove-nth-node-from-end-of-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Google", + "Apple" + ] + }, + { + "id": 58, + "name": "Sort List", + "url": "https://leetcode.com/problems/sort-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Apple", + "Uber" + ] + }, + { + "id": 59, + "name": "Reorder List", + "url": "https://leetcode.com/problems/reorder-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Adobe", + "Facebook", + "Google", + "Snapchat", + "Uber" + ] + }, + { + "id": 60, + "name": "Clone Graph", + "url": "https://leetcode.com/problems/clone-graph/", + "pattern": [ + "BFS", + "DFS", + "Graph" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Salesforce", + "Google", + "Twitter", + "Bloomberg", + "Oracle", + "Apple" + ] + }, + { + "id": 61, + "name": "Pacific Atlantic Water Flow", + "url": "https://leetcode.com/problems/pacific-atlantic-water-flow/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Microsoft", + "Facebook", + "Apple" + ] + }, + { + "id": 62, + "name": "Number of Islands", + "url": "https://leetcode.com/problems/number-of-islands/", + "pattern": [ + "BFS", + "DFS", + "Union Find" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Bloomberg", + "Google", + "LinkedIn", + "Facebook", + "Apple", + "Oracle", + "Goldman Sachs", + "Salesforce", + "Lyft", + "Uber", + "Adobe", + "Qualtrics" + ] + }, + { + "id": 63, + "name": "Graph Valid Tree", + "url": "https://leetcode.com/problems/graph-valid-tree/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Union Find" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "LinkedIn", + "Google", + "Bloomberg" + ] + }, + { + "id": 64, + "name": "Number of Connected Components in an Undirected Graph", + "url": "https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Union Find" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Amazon", + "LinkedIn", + "Facebook", + "Pinterest" + ] + }, + { + "id": 65, + "name": "Reverse Linked List", + "url": "https://leetcode.com/problems/reverse-linked-list/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Microsoft", + "Bloomberg", + "Amazon", + "Facebook", + "Apple" + ] + }, + { + "id": 66, + "name": "Reverse Linked List II", + "url": "https://leetcode.com/problems/reverse-linked-list-ii/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Apple", + "Facebook", + "Amazon", + "Google", + "Adobe" + ] + }, + { + "id": 67, + "name": "Rotate List", + "url": "https://leetcode.com/problems/rotate-list/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "LinkedIn", + "Microsoft", + "Adobe", + "Apple", + "Oracle" + ] + }, + { + "id": 68, + "name": "Swap Nodes in Pairs", + "url": "https://leetcode.com/problems/swap-nodes-in-pairs/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft" + ] + }, + { + "id": 69, + "name": "Odd Even Linked List", + "url": "https://leetcode.com/problems/odd-even-linked-list/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Bloomberg", + "Amazon", + "Adobe", + "Apple" + ] + }, + { + "id": 70, + "name": "Reverse Nodes in k-Group", + "url": "https://leetcode.com/problems/reverse-nodes-in-k-group/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Capital One", + "Microsoft", + "Amazon", + "Google", + "Facebook", + "Snapchat", + "Oracle" + ] + }, + { + "id": 71, + "name": "Merge Two Sorted Lists", + "url": "https://leetcode.com/problems/merge-two-sorted-lists/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Adobe", + "Google", + "Bloomberg", + "Apple", + "Uber" + ] + }, + { + "id": 72, + "name": "Kth Smallest Element in a Sorted Matrix", + "url": "https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/", + "pattern": [ + "Binary Search", + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 73, + "name": "Find K Pairs with Smallest Sums", + "url": "https://leetcode.com/problems/find-k-pairs-with-smallest-sums/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Microsoft", + "Apple" + ] + }, + { + "id": 74, + "name": "Merge k Sorted Lists", + "url": "https://leetcode.com/problems/merge-k-sorted-lists/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Google", + "Apple", + "Bloomberg", + "Adobe", + "Uber", + "Qualtrics", + "Oracle" + ] + }, + { + "id": 75, + "name": "Smallest Range Covering Elements from K Lists", + "url": "https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Microsoft", + "Pinterest" + ] + }, + { + "id": 76, + "name": "Meeting Rooms", + "url": "https://leetcode.com/problems/meeting-rooms", + "pattern": [ + "Intervals" + ], + "difficulty": "Easy", + "premium": true, + "companies": [ + "Amazon", + "Microsoft", + "Facebook" + ] + }, + { + "id": 77, + "name": "Merge Intervals", + "url": "https://leetcode.com/problems/merge-intervals/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Salesforce", + "Google", + "Uber", + "Bloomberg", + "Adobe", + "Apple", + "LinkedIn", + "Twitter", + "Oracle", + "JPMorgan", + "Snapchat" + ] + }, + { + "id": 78, + "name": "Interval List Intersections", + "url": "https://leetcode.com/problems/interval-list-intersections/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Uber", + "Google" + ] + }, + { + "id": 79, + "name": "Non-overlapping Intervals", + "url": "https://leetcode.com/problems/non-overlapping-intervals/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Oracle" + ] + }, + { + "id": 80, + "name": "Meeting Rooms II", + "url": "https://leetcode.com/problems/meeting-rooms-ii/", + "pattern": [ + "Heap", + "Intervals" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Amazon", + "Facebook", + "Bloomberg", + "Microsoft", + "Google", + "Oracle", + "Uber", + "Twitter", + "Snapchat", + "Qualtrics", + "Adobe", + "Quora", + "Goldman Sachs" + ] + }, + { + "id": 81, + "name": "Task Scheduler", + "url": "https://leetcode.com/problems/task-scheduler/", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Google", + "Uber", + "Amazon", + "Microsoft", + "Salesforce" + ] + }, + { + "id": 82, + "name": "Minimum Number of Arrows to Burst Balloons", + "url": "https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/", + "pattern": [ + "Greedy" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 83, + "name": "Insert Interval", + "url": "https://leetcode.com/problems/insert-interval/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Facebook", + "LinkedIn", + "Microsoft", + "Twitter", + "Citadel" + ] + }, + { + "id": 84, + "name": "Employee Free Time", + "url": "https://leetcode.com/problems/employee-free-time/", + "pattern": [ + "Heap", + "Greedy" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Pinterest", + "Amazon", + "Airbnb", + "Snapchat", + "Google", + "Facebook", + "Apple", + "Oracle", + "Uber" + ] + }, + { + "id": 85, + "name": "Binary Search", + "url": "https://leetcode.com/problems/binary-search/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Adobe", + "Apple", + "Uber", + "Goldman Sachs" + ] + }, + { + "id": 86, + "name": "Find Smallest Letter Greater Than Target", + "url": "https://leetcode.com/problems/find-smallest-letter-greater-than-target/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn" + ] + }, + { + "id": 87, + "name": "Peak Index in a Mountain Array", + "url": "https://leetcode.com/problems/peak-index-in-a-mountain-array/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Bloomberg", + "Facebook" + ] + }, + { + "id": 88, + "name": "Find Minimum in Rotated Sorted Array", + "url": "https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Bloomberg", + "Uber", + "Adobe", + "Apple" + ] + }, + { + "id": 89, + "name": "Find Peak Element", + "url": "https://leetcode.com/problems/find-peak-element/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Uber", + "Google", + "Microsoft" + ] + }, + { + "id": 90, + "name": "Search in Rotated Sorted Array", + "url": "https://leetcode.com/problems/search-in-rotated-sorted-array/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "LinkedIn", + "Facebook", + "Bloomberg", + "Adobe", + "Apple", + "Goldman Sachs", + "Oracle", + "Uber", + "Morgan Stanley" + ] + }, + { + "id": 91, + "name": "Search in Rotated Sorted Array II", + "url": "https://leetcode.com/problems/search-in-rotated-sorted-array-ii/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Facebook", + "Microsoft" + ] + }, + { + "id": 92, + "name": "Search a 2D Matrix", + "url": "https://leetcode.com/problems/search-a-2d-matrix/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Bloomberg", + "Microsoft", + "Uber", + "Google", + "Apple" + ] + }, + { + "id": 93, + "name": "Search a 2D Matrix II", + "url": "https://leetcode.com/problems/search-a-2d-matrix-ii/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Facebook", + "Apple", + "Uber" + ] + }, + { + "id": 94, + "name": "Find K Closest Elements", + "url": "https://leetcode.com/problems/find-k-closest-elements/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Uber", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 95, + "name": "Count of Range Sum", + "url": "https://leetcode.com/problems/count-of-range-sum/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 96, + "name": "Minimum Size Subarray Sum", + "url": "https://leetcode.com/problems/minimum-size-subarray-sum/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Goldman Sachs", + "Facebook", + "Amazon", + "Google" + ] + }, + { + "id": 97, + "name": "Fruit Into Baskets", + "url": "https://leetcode.com/problems/fruit-into-baskets/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 98, + "name": "Permutation in String", + "url": "https://leetcode.com/problems/permutation-in-string/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Oracle", + "Facebook" + ] + }, + { + "id": 99, + "name": "Longest Repeating Character Replacement", + "url": "https://leetcode.com/problems/longest-repeating-character-replacement/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Uber", + "Amazon", + "Adobe" + ] + }, + { + "id": 100, + "name": "Sliding Window Maximum", + "url": "https://leetcode.com/problems/sliding-window-maximum/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Goldman Sachs", + "Citadel", + "Google", + "Uber", + "Microsoft", + "Salesforce", + "Apple", + "Twitter", + "Atlassian" + ] + }, + { + "id": 101, + "name": "Longest Substring Without Repeating Characters", + "url": "https://leetcode.com/problems/longest-substring-without-repeating-characters/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Bloomberg", + "Facebook", + "Adobe", + "Google", + "Apple", + "Uber", + "Goldman Sachs" + ] + }, + { + "id": 102, + "name": "Minimum Number of K Consecutive Bit Flips", + "url": "https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Adobe" + ] + }, + { + "id": 103, + "name": "Count Unique Characters of All Substrings of a Given String", + "url": "https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 104, + "name": "Minimum Window Substring", + "url": "https://leetcode.com/problems/minimum-window-substring/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Snapchat", + "Google", + "Lyft", + "Adobe" + ] + }, + { + "id": 105, + "name": "Substring with Concatenation of All Words", + "url": "https://leetcode.com/problems/substring-with-concatenation-of-all-words/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 106, + "name": "Kth Smallest Element in a BST", + "url": "https://leetcode.com/problems/kth-smallest-element-in-a-bst/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook" + ] + }, + { + "id": 107, + "name": "K Closest Points to Origin", + "url": "https://leetcode.com/problems/k-closest-points-to-origin/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Google", + "Asana" + ] + }, + { + "id": 108, + "name": "Top K Frequent Elements", + "url": "https://leetcode.com/problems/top-k-frequent-elements/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Bloomberg", + "Microsoft", + "Uber", + "Apple", + "Google", + "Adobe", + "Snapchat", + "Oracle", + "LinkedIn" + ] + }, + { + "id": 109, + "name": "Sort Characters By Frequency", + "url": "https://leetcode.com/problems/sort-characters-by-frequency/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Facebook" + ] + }, + { + "id": 110, + "name": "Kth Largest Element in an Array", + "url": "https://leetcode.com/problems/kth-largest-element-in-an-array/", + "pattern": [ + "Heap", + "QuickSelect" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Microsoft", + "Google", + "Goldman Sachs", + "Uber", + "Oracle" + ] + }, + { + "id": 111, + "name": "Reorganize String", + "url": "https://leetcode.com/problems/reorganize-string/", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Google", + "Apple", + "Uber", + "Microsoft" + ] + }, + { + "id": 112, + "name": "Rearrange String k Distance Apart", + "url": "https://leetcode.com/problems/rearrange-string-k-distance-apart", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Twitter" + ] + }, + { + "id": 113, + "name": "Course Schedule III", + "url": "https://leetcode.com/problems/course-schedule-iii/", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 114, + "name": "Maximum Frequency Stack", + "url": "https://leetcode.com/problems/maximum-frequency-stack/", + "pattern": [ + "Bucket Sort", + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Apple", + "Facebook" + ] + }, + { + "id": 115, + "name": "Course Schedule", + "url": "https://leetcode.com/problems/course-schedule/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Facebook", + "Google", + "Oracle", + "Apple", + "Snapchat" + ] + }, + { + "id": 116, + "name": "Course Schedule II", + "url": "https://leetcode.com/problems/course-schedule-ii/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Facebook", + "Snapchat", + "Uber", + "Apple", + "Lyft", + "Bloomberg" + ] + }, + { + "id": 117, + "name": "Minimum Height Trees", + "url": "https://leetcode.com/problems/minimum-height-trees/", + "pattern": [ + "BFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Google", + "Microsoft" + ] + }, + { + "id": 118, + "name": "Alien Dictionary", + "url": "https://leetcode.com/problems/alien-dictionary", + "pattern": [ + "Graph", + "Topological Sort" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Facebook", + "Google", + "Amazon", + "Airbnb", + "Pinterest", + "Uber", + "Microsoft" + ] + }, + { + "id": 119, + "name": "Sequence Reconstruction", + "url": "https://leetcode.com/problems/sequence-reconstruction", + "pattern": [ + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Google" + ] + }, + { + "id": 120, + "name": "Binary Tree Level Order Traversal II", + "url": "https://leetcode.com/problems/binary-tree-level-order-traversal-ii/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 121, + "name": "Average of Levels in Binary Tree", + "url": "https://leetcode.com/problems/average-of-levels-in-binary-tree/", + "pattern": [ + "BFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 122, + "name": "Minimum Depth of Binary Tree", + "url": "https://leetcode.com/problems/minimum-depth-of-binary-tree/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Goldman Sachs" + ] + }, + { + "id": 123, + "name": "Binary Tree Level Order Traversal", + "url": "https://leetcode.com/problems/binary-tree-level-order-traversal/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Facebook", + "Bloomberg", + "Microsoft", + "Apple", + "Oracle", + "Google" + ] + }, + { + "id": 124, + "name": "Binary Tree Zigzag Level Order Traversal", + "url": "https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Bloomberg", + "Google", + "Adobe", + "LinkedIn", + "Qualtrics", + "Salesforce" + ] + }, + { + "id": 125, + "name": "Populating Next Right Pointers in Each Node", + "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Bloomberg" + ] + }, + { + "id": 126, + "name": "Populating Next Right Pointers in Each Node II", + "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Microsoft", + "Facebook" + ] + }, + { + "id": 127, + "name": "Binary Tree Right Side View", + "url": "https://leetcode.com/problems/binary-tree-right-side-view/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Bloomberg", + "Amazon", + "Oracle", + "Qualtrics", + "Adobe", + "Goldman Sachs" + ] + }, + { + "id": 128, + "name": "All Nodes Distance K in Binary Tree", + "url": "https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Apple", + "Oracle" + ] + }, + { + "id": 129, + "name": "Same Tree", + "url": "https://leetcode.com/problems/same-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn", + "Google", + "Microsoft", + "Amazon", + "Facebook", + "Apple", + "Adobe", + "Oracle" + ] + }, + { + "id": 130, + "name": "Path Sum", + "url": "https://leetcode.com/problems/path-sum/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Oracle" + ] + }, + { + "id": 131, + "name": "Maximum Depth of Binary Tree", + "url": "https://leetcode.com/problems/maximum-depth-of-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn", + "Google", + "Apple", + "Amazon" + ] + }, + { + "id": 132, + "name": "Diameter of Binary Tree", + "url": "https://leetcode.com/problems/diameter-of-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Bloomberg", + "Apple", + "Microsoft", + "Adobe" + ] + }, + { + "id": 133, + "name": "Merge Two Binary Trees", + "url": "https://leetcode.com/problems/merge-two-binary-trees/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Adobe" + ] + }, + { + "id": 134, + "name": "Lowest Common Ancestor of a Binary Search Tree", + "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn", + "Facebook", + "Microsoft", + "Google", + "Uber" + ] + }, + { + "id": 135, + "name": "Subtree of Another Tree", + "url": "https://leetcode.com/problems/subtree-of-another-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft" + ] + }, + { + "id": 136, + "name": "Invert Binary Tree", + "url": "https://leetcode.com/problems/invert-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Facebook", + "Adobe", + "Apple" + ] + }, + { + "id": 137, + "name": "Path Sum II", + "url": "https://leetcode.com/problems/path-sum-ii/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Facebook", + "Adobe", + "Apple" + ] + }, + { + "id": 138, + "name": "Path Sum III", + "url": "https://leetcode.com/problems/path-sum-iii/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Facebook", + "Google", + "Oracle" + ] + }, + { + "id": 139, + "name": "Lowest Common Ancestor of a Binary Tree", + "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Google", + "Microsoft", + "Adobe", + "Apple", + "Salesforce", + "Oracle", + "Bloomberg", + "Intuit" + ] + }, + { + "id": 140, + "name": "Maximum Binary Tree", + "url": "https://leetcode.com/problems/maximum-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 141, + "name": "Maximum Width of Binary Tree", + "url": "https://leetcode.com/problems/maximum-width-of-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Bloomberg", + "Apple", + "Adobe" + ] + }, + { + "id": 142, + "name": "Construct Binary Tree from Preorder and Inorder Traversal", + "url": "https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Adobe", + "Bloomberg", + "Apple" + ] + }, + { + "id": 143, + "name": "Validate Binary Search Tree", + "url": "https://leetcode.com/problems/validate-binary-search-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Microsoft", + "Facebook", + "Google", + "Adobe", + "Apple", + "Qualtrics", + "Lyft" + ] + }, + { + "id": 144, + "name": "Implement Trie (Prefix Tree)", + "url": "https://leetcode.com/problems/implement-trie-prefix-tree/", + "pattern": [ + "Design", + "Trie" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Twitter", + "Google", + "Facebook", + "Microsoft", + "Apple" + ] + }, + { + "id": 145, + "name": "Binary Tree Maximum Path Sum", + "url": "https://leetcode.com/problems/binary-tree-maximum-path-sum/", + "pattern": [ + "DFS" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Microsoft", + "Adobe", + "Bloomberg", + "Oracle", + "Snapchat" + ] + }, + { + "id": 146, + "name": "Serialize and Deserialize Binary Tree", + "url": "https://leetcode.com/problems/serialize-and-deserialize-binary-tree/", + "pattern": [ + "Design" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Microsoft", + "Facebook", + "Oracle", + "Uber", + "Adobe", + "Snapchat", + "Qualtrics", + "Google", + "Quora" + ] + }, + { + "id": 147, + "name": "Word Search II", + "url": "https://leetcode.com/problems/word-search-ii/", + "pattern": [ + "DFS", + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Uber", + "Microsoft", + "Apple", + "Twitter", + "Snapchat", + "Facebook", + "Bloomberg", + "Google", + "Salesforce" + ] + }, + { + "id": 148, + "name": "Find Median from Data Stream", + "url": "https://leetcode.com/problems/find-median-from-data-stream/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Apple", + "Facebook", + "Google", + "Bloomberg", + "Uber", + "Airbnb" + ] + }, + { + "id": 149, + "name": "Sliding Window Median", + "url": "https://leetcode.com/problems/sliding-window-median/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 150, + "name": "Two Sum", + "url": "https://leetcode.com/problems/two-sum/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Adobe", + "Apple", + "Microsoft", + "Facebook", + "Bloomberg", + "Uber", + "Oracle", + "Morgan Stanley", + "Citadel", + "Salesforce", + "Goldman Sachs", + "JPMorgan", + "Snapchat" + ] + }, + { + "id": 151, + "name": "Squares of a Sorted Array", + "url": "https://leetcode.com/problems/squares-of-a-sorted-array/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Adobe", + "Apple", + "Uber" + ] + }, + { + "id": 152, + "name": "Backspace String Compare", + "url": "https://leetcode.com/problems/backspace-string-compare/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Apple", + "Google", + "Microsoft" + ] + }, + { + "id": 153, + "name": "3 Sum", + "url": "https://leetcode.com/problems/3sum/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Apple", + "Microsoft", + "Adobe", + "Google", + "Bloomberg", + "Intuit", + "Qualtrics", + "Salesforce", + "Goldman Sachs", + "Uber", + "Oracle" + ] + }, + { + "id": 154, + "name": "3 Sum Closest", + "url": "https://leetcode.com/problems/3sum-closest/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Capital One", + "Apple", + "Google", + "Adobe", + "Microsoft", + "Oracle" + ] + }, + { + "id": 155, + "name": "Subarrays with Product Less than K", + "url": "https://leetcode.com/problems/subarray-product-less-than-k/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Microsoft" + ] + }, + { + "id": 156, + "name": "Sort Colours", + "url": "https://leetcode.com/problems/sort-colors/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Adobe", + "Facebook", + "Apple", + "Salesforce", + "Bloomberg" + ] + }, + { + "id": 157, + "name": "Trapping Rain Water", + "url": "https://leetcode.com/problems/trapping-rain-water/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Goldman Sachs", + "Microsoft", + "Adobe", + "Google", + "Bloomberg", + "Qualtrics", + "Snapchat", + "Lyft", + "Uber", + "Apple", + "Citadel", + "Tesla" + ] + }, + { + "id": 158, + "name": "Container With Most Water", + "url": "https://leetcode.com/problems/container-with-most-water/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Adobe", + "Bloomberg", + "Apple", + "Uber", + "Facebook" + ] + }, + { + "id": 159, + "name": "Longest Word in Dictionary", + "url": "https://leetcode.com/problems/longest-word-in-dictionary/", + "pattern": [ + "Trie" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 160, + "name": "Index Pairs of a String", + "url": "https://leetcode.com/problems/index-pairs-of-a-string/", + "pattern": [ + "Trie" + ], + "difficulty": "Easy", + "premium": true, + "companies": [ + "Amazon" + ] + }, + { + "id": 161, + "name": "Maximum XOR of Two Numbers in an Array", + "url": "https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array", + "pattern": [ + "Trie" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Adobe" + ] + }, + { + "id": 162, + "name": "Concatenated Words", + "url": "https://leetcode.com/problems/concatenated-words/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft" + ] + }, + { + "id": 163, + "name": "Prefix and Suffix Search", + "url": "https://leetcode.com/problems/prefix-and-suffix-search/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 164, + "name": "Palindrome Pairs", + "url": "https://leetcode.com/problems/palindrome-pairs/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Airbnb", + "Facebook", + "Google" + ] + }, + { + "id": 165, + "name": "Design Search Autocomplete System", + "url": "https://leetcode.com/problems/design-search-autocomplete-system/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Amazon", + "Google", + "Microsoft", + "Uber", + "Bloomberg", + "Twitter" + ] + }, + { + "id": 166, + "name": "Word Squares", + "url": "https://leetcode.com/problems/word-squares/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Bloomberg", + "Oracle", + "Google" + ] + }, + { + "id": 167, + "name": "Sort Items by Groups Respecting Dependencies", + "url": "https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/", + "pattern": [ + "DFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 168, + "name": "Median of Two Sorted Arrays", + "url": "https://leetcode.com/problems/median-of-two-sorted-arrays/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Goldman Sachs", + "Microsoft", + "Google", + "Adobe", + "Facebook", + "Apple", + "Bloomberg", + "Oracle" + ] + }, + { + "id": 169, + "name": "Majority Element", + "url": "https://leetcode.com/problems/majority-element/", + "pattern": [ + "Sorting" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Apple", + "Microsoft", + "Adobe" + ] + }, + { + "id": 170, + "name": "Convert 1D Array Into 2D Array", + "url": "https://leetcode.com/problems/convert-1d-array-into-2d-array/", + "pattern": [ + "Arrays" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Google" + ] + } +] \ No newline at end of file From 4f3a0a6225618541d456dd5677dbd3104c1bfa98 Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Sat, 30 Jul 2022 23:05:58 -0400 Subject: [PATCH 2/7] add updated date field --- cron/update_questions.py | 6 +- questions.json | 6085 +++++++++++++++++++------------------- 2 files changed, 3048 insertions(+), 3043 deletions(-) diff --git a/cron/update_questions.py b/cron/update_questions.py index 92f80b2c..f5aa7c05 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -1,5 +1,6 @@ import requests from urllib.parse import urlparse +from datetime import datetime import json query = '''query questionData($titleSlug: String!) { @@ -16,7 +17,7 @@ print("Updating question metadata") -for question in questions: +for question in questions["data"]: p = urlparse(question["url"]) title_slug = p.path.rstrip('/').split('/')[-1] our_difficulty = question["difficulty"] @@ -34,7 +35,8 @@ print("Finished checking all questions") -with open("questions.json", "w") as file: +with open("output.json", "w") as file: + questions["updated"] = str(datetime.now().isoformat()) json.dump(questions, file, indent=2) print("Wrote questions file") diff --git a/questions.json b/questions.json index 519c8a5e..825126ad 100644 --- a/questions.json +++ b/questions.json @@ -1,3041 +1,3044 @@ -[ - { - "id": 0, - "name": "Contains Duplicate", - "url": "https://leetcode.com/problems/contains-duplicate/", - "pattern": [ - "Arrays" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Adobe", - "Google", - "Bloomberg", - "Facebook", - "Apple", - "Microsoft" - ] - }, - { - "id": 1, - "name": "Missing Number", - "url": "https://leetcode.com/problems/missing-number/", - "pattern": [ - "Arrays", - "Bit Manipulation" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Microsoft", - "Facebook", - "Amazon", - "Google", - "Adobe" - ] - }, - { - "id": 2, - "name": "Find All Numbers Disappeared in an Array", - "url": "https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/", - "pattern": [ - "Arrays" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] - }, - { - "id": 3, - "name": "Single Number", - "url": "https://leetcode.com/problems/single-number/", - "pattern": [ - "Arrays", - "Bit Manipulation" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Adobe" - ] - }, - { - "id": 4, - "name": "Product of Array Except Self", - "url": "https://leetcode.com/problems/product-of-array-except-self/", - "pattern": [ - "Arrays" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Asana", - "Microsoft", - "Apple", - "Lyft", - "Adobe", - "Google", - "Uber", - "Goldman Sachs", - "Oracle" - ] - }, - { - "id": 5, - "name": "Find the Duplicate Number", - "url": "https://leetcode.com/problems/find-the-duplicate-number/", - "pattern": [ - "Arrays", - "Binary Search", - "Two Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Microsoft", - "Amazon", - "Adobe", - "Bloomberg", - "Facebook", - "Apple" - ] - }, - { - "id": 6, - "name": "Find All Duplicates in an Array", - "url": "https://leetcode.com/problems/find-all-duplicates-in-an-array/", - "pattern": [ - "Arrays" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google" - ] - }, - { - "id": 7, - "name": "Set Matrix Zeroes", - "url": "https://leetcode.com/problems/set-matrix-zeroes/", - "pattern": [ - "Arrays" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Apple", - "Adobe", - "Bloomberg", - "Oracle" - ] - }, - { - "id": 8, - "name": "Spiral Matrix", - "url": "https://leetcode.com/problems/spiral-matrix/", - "pattern": [ - "Arrays" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Facebook", - "Apple", - "Google", - "Oracle", - "Bloomberg", - "Intuit", - "Adobe" - ] - }, - { - "id": 9, - "name": "Rotate Image", - "url": "https://leetcode.com/problems/rotate-image/", - "pattern": [ - "Arrays" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Microsoft", - "Apple", - "Bloomberg", - "Uber", - "Google" - ] - }, - { - "id": 10, - "name": "Word Search", - "url": "https://leetcode.com/problems/word-search/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Twitter", - "Facebook", - "Snapchat", - "Goldman Sachs", - "Google", - "Bloomberg", - "Apple", - "Adobe", - "Oracle", - "Qualtrics" - ] - }, - { - "id": 11, - "name": "First Missing Positive", - "url": "https://leetcode.com/problems/first-missing-positive/", - "pattern": [ - "Arrays" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Facebook", - "Google", - "Adobe", - "Apple" - ] - }, - { - "id": 12, - "name": "Longest Consecutive Sequence", - "url": "https://leetcode.com/problems/longest-consecutive-sequence/", - "pattern": [ - "Arrays" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Facebook", - "Amazon", - "Google", - "LinkedIn", - "Apple", - "Qualtrics", - "Goldman Sachs", - "Salesforce" - ] - }, - { - "id": 13, - "name": "Letter Case Permutation", - "url": "https://leetcode.com/problems/letter-case-permutation/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft" - ] - }, - { - "id": 14, - "name": "Subsets", - "url": "https://leetcode.com/problems/subsets/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Google", - "Bloomberg", - "Goldman Sachs", - "Adobe", - "Twitter" - ] - }, - { - "id": 15, - "name": "Subsets II", - "url": "https://leetcode.com/problems/subsets-ii/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Bloomberg" - ] - }, - { - "id": 16, - "name": "Permutations", - "url": "https://leetcode.com/problems/permutations/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "LinkedIn", - "Bloomberg", - "Google", - "Microsoft", - "Adobe", - "Apple", - "Oracle" - ] - }, - { - "id": 17, - "name": "Permutations II", - "url": "https://leetcode.com/problems/permutations-ii/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Facebook", - "Amazon", - "Adobe", - "Apple" - ] - }, - { - "id": 18, - "name": "Combinations", - "url": "https://leetcode.com/problems/combinations/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Facebook", - "Amazon" - ] - }, - { - "id": 19, - "name": "Combination Sum", - "url": "https://leetcode.com/problems/combination-sum/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Airbnb", - "Apple", - "Adobe", - "Microsoft", - "LinkedIn", - "Goldman Sachs", - "Snapchat", - "Salesforce" - ] - }, - { - "id": 20, - "name": "Combination Sum II", - "url": "https://leetcode.com/problems/combination-sum-ii/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] - }, - { - "id": 21, - "name": "Combination Sum III", - "url": "https://leetcode.com/problems/combination-sum-iii/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google" - ] - }, - { - "id": 22, - "name": "Generate Parentheses", - "url": "https://leetcode.com/problems/generate-parentheses/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Microsoft", - "Apple", - "Bloomberg", - "Adobe", - "Uber", - "Google", - "Goldman Sachs" - ] - }, - { - "id": 23, - "name": "Target Sum", - "url": "https://leetcode.com/problems/target-sum/", - "pattern": [ - "DFS", - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Adobe" - ] - }, - { - "id": 24, - "name": "Palindrome Partitioning", - "url": "https://leetcode.com/problems/palindrome-partitioning/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Apple" - ] - }, - { - "id": 25, - "name": "Letter Combinations of a Phone Number", - "url": "https://leetcode.com/problems/letter-combinations-of-a-phone-number/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Facebook", - "Google", - "Uber", - "Apple", - "Adobe", - "Twitter", - "Bloomberg", - "Oracle", - "Goldman Sachs", - "Snapchat", - "Intuit" - ] - }, - { - "id": 26, - "name": "Generalized Abbreviation", - "url": "https://leetcode.com/problems/generalized-abbreviation/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Medium", - "premium": true, - "companies": [ - "Google" - ] - }, - { - "id": 27, - "name": "Sudoku Solver", - "url": "https://leetcode.com/problems/sudoku-solver/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Google", - "Intuit", - "Amazon", - "Apple", - "Uber", - "Bloomberg" - ] - }, - { - "id": 28, - "name": "N-Queens", - "url": "https://leetcode.com/problems/n-queens/", - "pattern": [ - "Backtracking" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Apple", - "Facebook", - "Uber", - "Goldman Sachs", - "Adobe" - ] - }, - { - "id": 29, - "name": "Climbing Stairs", - "url": "https://leetcode.com/problems/climbing-stairs/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Google", - "Bloomberg", - "Apple", - "Adobe" - ] - }, - { - "id": 30, - "name": "House Robber", - "url": "https://leetcode.com/problems/house-robber/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Google", - "Apple", - "Adobe", - "Qualtrics", - "Bloomberg", - "Facebook", - "Goldman Sachs" - ] - }, - { - "id": 31, - "name": "Best Time to Buy and Sell Stock", - "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock/", - "pattern": [ - "Greedy" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Apple", - "Adobe", - "Microsoft", - "Bloomberg", - "Snapchat", - "Goldman Sachs", - "Uber", - "Oracle", - "Google", - "BlackRock", - "Citadel", - "JPMorgan", - "Salesforce" - ] - }, - { - "id": 32, - "name": "Maximum Subarray", - "url": "https://leetcode.com/problems/maximum-subarray/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Adobe", - "Apple", - "Microsoft", - "Google", - "Bloomberg", - "Facebook", - "Uber", - "Oracle", - "Goldman Sachs", - "JPMorgan" - ] - }, - { - "id": 33, - "name": "Range Sum Query - Immutable", - "url": "https://leetcode.com/problems/range-sum-query-immutable/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Adobe" - ] - }, - { - "id": 34, - "name": "House Robber II", - "url": "https://leetcode.com/problems/house-robber-ii/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google" - ] - }, - { - "id": 35, - "name": "Coin Change", - "url": "https://leetcode.com/problems/coin-change/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Google", - "Apple" - ] - }, - { - "id": 36, - "name": "Maximum Product Subarray", - "url": "https://leetcode.com/problems/maximum-product-subarray/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Microsoft", - "Google", - "Apple", - "Facebook", - "Bloomberg" - ] - }, - { - "id": 37, - "name": "Longest Increasing Subsequence", - "url": "https://leetcode.com/problems/longest-increasing-subsequence/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Amazon", - "Facebook", - "Microsoft", - "Apple", - "Bloomberg" - ] - }, - { - "id": 38, - "name": "Longest Palindromic Substring", - "url": "https://leetcode.com/problems/longest-palindromic-substring/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Adobe", - "Apple", - "Facebook", - "Google", - "Oracle", - "Salesforce", - "Bloomberg", - "LinkedIn", - "Tesla" - ] - }, - { - "id": 39, - "name": "Word Break", - "url": "https://leetcode.com/problems/word-break/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Uber", - "Apple", - "Bloomberg", - "Qualtrics", - "Adobe", - "Google", - "Snapchat", - "Salesforce" - ] - }, - { - "id": 40, - "name": "Combination Sum IV", - "url": "https://leetcode.com/problems/combination-sum-iv/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Amazon", - "Facebook" - ] - }, - { - "id": 41, - "name": "Decode Ways", - "url": "https://leetcode.com/problems/decode-ways/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google", - "Snapchat", - "Lyft", - "Goldman Sachs", - "Microsoft", - "Bloomberg", - "JPMorgan" - ] - }, - { - "id": 42, - "name": "Unique Paths", - "url": "https://leetcode.com/problems/unique-paths/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Facebook", - "Amazon", - "Apple", - "Microsoft", - "Bloomberg" - ] - }, - { - "id": 43, - "name": "Jump Game", - "url": "https://leetcode.com/problems/jump-game/", - "pattern": [ - "Dynamic Programming", - "Greedy" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Uber", - "Oracle", - "Adobe", - "Microsoft", - "Bloomberg" - ] - }, - { - "id": 44, - "name": "Palindromic Substrings", - "url": "https://leetcode.com/problems/palindromic-substrings/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Google", - "Goldman Sachs" - ] - }, - { - "id": 45, - "name": "Number of Longest Increasing Subsequence", - "url": "https://leetcode.com/problems/number-of-longest-increasing-subsequence/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google" - ] - }, - { - "id": 46, - "name": "Partition Equal Subset Sum", - "url": "https://leetcode.com/problems/partition-equal-subset-sum/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Google", - "Amazon", - "Microsoft", - "Uber", - "Apple", - "Bloomberg" - ] - }, - { - "id": 47, - "name": "Partition to K Equal Sum Subsets", - "url": "https://leetcode.com/problems/partition-to-k-equal-sum-subsets/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Facebook" - ] - }, - { - "id": 48, - "name": "Best Time to Buy and Sell Stock with Cooldown", - "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/", - "pattern": [ - "Dynamic Programming" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Adobe", - "Bloomberg" - ] - }, - { - "id": 49, - "name": "Counting Bits", - "url": "https://leetcode.com/problems/counting-bits/", - "pattern": [ - "Dynamic Programming", - "Bit Manipulation" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Google" - ] - }, - { - "id": 50, - "name": "Linked List Cycle", - "url": "https://leetcode.com/problems/linked-list-cycle/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Bloomberg", - "Oracle", - "Facebook", - "Google" - ] - }, - { - "id": 51, - "name": "Middle of the Linked List", - "url": "https://leetcode.com/problems/middle-of-the-linked-list/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Apple", - "Microsoft", - "Adobe", - "Goldman Sachs" - ] - }, - { - "id": 52, - "name": "Palindrome Linked List", - "url": "https://leetcode.com/problems/palindrome-linked-list/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Intuit", - "Bloomberg" - ] - }, - { - "id": 53, - "name": "Remove Linked List Elements", - "url": "https://leetcode.com/problems/remove-linked-list-elements/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Microsoft" - ] - }, - { - "id": 54, - "name": "Remove Duplicates from Sorted List", - "url": "https://leetcode.com/problems/remove-duplicates-from-sorted-list/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Adobe", - "Facebook", - "Microsoft" - ] - }, - { - "id": 55, - "name": "Linked List Cycle II", - "url": "https://leetcode.com/problems/linked-list-cycle-ii/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Goldman Sachs", - "Oracle" - ] - }, - { - "id": 56, - "name": "Add Two Numbers", - "url": "https://leetcode.com/problems/add-two-numbers/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Bloomberg", - "Adobe", - "Microsoft", - "Facebook", - "Google", - "Apple", - "Uber", - "Capital One", - "Oracle" - ] - }, - { - "id": 57, - "name": "Remove Nth Node From End Of List", - "url": "https://leetcode.com/problems/remove-nth-node-from-end-of-list/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Google", - "Apple" - ] - }, - { - "id": 58, - "name": "Sort List", - "url": "https://leetcode.com/problems/sort-list/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Apple", - "Uber" - ] - }, - { - "id": 59, - "name": "Reorder List", - "url": "https://leetcode.com/problems/reorder-list/", - "pattern": [ - "Fast & Slow Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Adobe", - "Facebook", - "Google", - "Snapchat", - "Uber" - ] - }, - { - "id": 60, - "name": "Clone Graph", - "url": "https://leetcode.com/problems/clone-graph/", - "pattern": [ - "BFS", - "DFS", - "Graph" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Salesforce", - "Google", - "Twitter", - "Bloomberg", - "Oracle", - "Apple" - ] - }, - { - "id": 61, - "name": "Pacific Atlantic Water Flow", - "url": "https://leetcode.com/problems/pacific-atlantic-water-flow/", - "pattern": [ - "BFS", - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Amazon", - "Microsoft", - "Facebook", - "Apple" - ] - }, - { - "id": 62, - "name": "Number of Islands", - "url": "https://leetcode.com/problems/number-of-islands/", - "pattern": [ - "BFS", - "DFS", - "Union Find" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Bloomberg", - "Google", - "LinkedIn", - "Facebook", - "Apple", - "Oracle", - "Goldman Sachs", - "Salesforce", - "Lyft", - "Uber", - "Adobe", - "Qualtrics" - ] - }, - { - "id": 63, - "name": "Graph Valid Tree", - "url": "https://leetcode.com/problems/graph-valid-tree/", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Union Find" - ], - "difficulty": "Medium", - "premium": true, - "companies": [ - "LinkedIn", - "Google", - "Bloomberg" - ] - }, - { - "id": 64, - "name": "Number of Connected Components in an Undirected Graph", - "url": "https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Union Find" - ], - "difficulty": "Medium", - "premium": true, - "companies": [ - "Amazon", - "LinkedIn", - "Facebook", - "Pinterest" - ] - }, - { - "id": 65, - "name": "Reverse Linked List", - "url": "https://leetcode.com/problems/reverse-linked-list/", - "pattern": [ - "In-place reversal of a linked list" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Microsoft", - "Bloomberg", - "Amazon", - "Facebook", - "Apple" - ] - }, - { - "id": 66, - "name": "Reverse Linked List II", - "url": "https://leetcode.com/problems/reverse-linked-list-ii/", - "pattern": [ - "In-place reversal of a linked list" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Apple", - "Facebook", - "Amazon", - "Google", - "Adobe" - ] - }, - { - "id": 67, - "name": "Rotate List", - "url": "https://leetcode.com/problems/rotate-list/", - "pattern": [ - "In-place reversal of a linked list" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "LinkedIn", - "Microsoft", - "Adobe", - "Apple", - "Oracle" - ] - }, - { - "id": 68, - "name": "Swap Nodes in Pairs", - "url": "https://leetcode.com/problems/swap-nodes-in-pairs/", - "pattern": [ - "In-place reversal of a linked list" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft" - ] - }, - { - "id": 69, - "name": "Odd Even Linked List", - "url": "https://leetcode.com/problems/odd-even-linked-list/", - "pattern": [ - "In-place reversal of a linked list" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Bloomberg", - "Amazon", - "Adobe", - "Apple" - ] - }, - { - "id": 70, - "name": "Reverse Nodes in k-Group", - "url": "https://leetcode.com/problems/reverse-nodes-in-k-group/", - "pattern": [ - "In-place reversal of a linked list" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Capital One", - "Microsoft", - "Amazon", - "Google", - "Facebook", - "Snapchat", - "Oracle" - ] - }, - { - "id": 71, - "name": "Merge Two Sorted Lists", - "url": "https://leetcode.com/problems/merge-two-sorted-lists/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Microsoft", - "Adobe", - "Google", - "Bloomberg", - "Apple", - "Uber" - ] - }, - { - "id": 72, - "name": "Kth Smallest Element in a Sorted Matrix", - "url": "https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/", - "pattern": [ - "Binary Search", - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Bloomberg" - ] - }, - { - "id": 73, - "name": "Find K Pairs with Smallest Sums", - "url": "https://leetcode.com/problems/find-k-pairs-with-smallest-sums/", - "pattern": [ - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Microsoft", - "Apple" - ] - }, - { - "id": 74, - "name": "Merge k Sorted Lists", - "url": "https://leetcode.com/problems/merge-k-sorted-lists/", - "pattern": [ - "Heap" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Google", - "Apple", - "Bloomberg", - "Adobe", - "Uber", - "Qualtrics", - "Oracle" - ] - }, - { - "id": 75, - "name": "Smallest Range Covering Elements from K Lists", - "url": "https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/", - "pattern": [ - "Heap" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Google", - "Amazon", - "Microsoft", - "Pinterest" - ] - }, - { - "id": 76, - "name": "Meeting Rooms", - "url": "https://leetcode.com/problems/meeting-rooms", - "pattern": [ - "Intervals" - ], - "difficulty": "Easy", - "premium": true, - "companies": [ - "Amazon", - "Microsoft", - "Facebook" - ] - }, - { - "id": 77, - "name": "Merge Intervals", - "url": "https://leetcode.com/problems/merge-intervals/", - "pattern": [ - "Intervals" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Microsoft", - "Salesforce", - "Google", - "Uber", - "Bloomberg", - "Adobe", - "Apple", - "LinkedIn", - "Twitter", - "Oracle", - "JPMorgan", - "Snapchat" - ] - }, - { - "id": 78, - "name": "Interval List Intersections", - "url": "https://leetcode.com/problems/interval-list-intersections/", - "pattern": [ - "Intervals" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Uber", - "Google" - ] - }, - { - "id": 79, - "name": "Non-overlapping Intervals", - "url": "https://leetcode.com/problems/non-overlapping-intervals/", - "pattern": [ - "Intervals" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Oracle" - ] - }, - { - "id": 80, - "name": "Meeting Rooms II", - "url": "https://leetcode.com/problems/meeting-rooms-ii/", - "pattern": [ - "Heap", - "Intervals" - ], - "difficulty": "Medium", - "premium": true, - "companies": [ - "Amazon", - "Facebook", - "Bloomberg", - "Microsoft", - "Google", - "Oracle", - "Uber", - "Twitter", - "Snapchat", - "Qualtrics", - "Adobe", - "Quora", - "Goldman Sachs" - ] - }, - { - "id": 81, - "name": "Task Scheduler", - "url": "https://leetcode.com/problems/task-scheduler/", - "pattern": [ - "Greedy", - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Google", - "Uber", - "Amazon", - "Microsoft", - "Salesforce" - ] - }, - { - "id": 82, - "name": "Minimum Number of Arrows to Burst Balloons", - "url": "https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/", - "pattern": [ - "Greedy" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Apple" - ] - }, - { - "id": 83, - "name": "Insert Interval", - "url": "https://leetcode.com/problems/insert-interval/", - "pattern": [ - "Intervals" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google", - "Facebook", - "LinkedIn", - "Microsoft", - "Twitter", - "Citadel" - ] - }, - { - "id": 84, - "name": "Employee Free Time", - "url": "https://leetcode.com/problems/employee-free-time/", - "pattern": [ - "Heap", - "Greedy" - ], - "difficulty": "Hard", - "premium": true, - "companies": [ - "Pinterest", - "Amazon", - "Airbnb", - "Snapchat", - "Google", - "Facebook", - "Apple", - "Oracle", - "Uber" - ] - }, - { - "id": 85, - "name": "Binary Search", - "url": "https://leetcode.com/problems/binary-search/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Adobe", - "Apple", - "Uber", - "Goldman Sachs" - ] - }, - { - "id": 86, - "name": "Find Smallest Letter Greater Than Target", - "url": "https://leetcode.com/problems/find-smallest-letter-greater-than-target/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "LinkedIn" - ] - }, - { - "id": 87, - "name": "Peak Index in a Mountain Array", - "url": "https://leetcode.com/problems/peak-index-in-a-mountain-array/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google", - "Amazon", - "Bloomberg", - "Facebook" - ] - }, - { - "id": 88, - "name": "Find Minimum in Rotated Sorted Array", - "url": "https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Bloomberg", - "Uber", - "Adobe", - "Apple" - ] - }, - { - "id": 89, - "name": "Find Peak Element", - "url": "https://leetcode.com/problems/find-peak-element/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Uber", - "Google", - "Microsoft" - ] - }, - { - "id": 90, - "name": "Search in Rotated Sorted Array", - "url": "https://leetcode.com/problems/search-in-rotated-sorted-array/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "LinkedIn", - "Facebook", - "Bloomberg", - "Adobe", - "Apple", - "Goldman Sachs", - "Oracle", - "Uber", - "Morgan Stanley" - ] - }, - { - "id": 91, - "name": "Search in Rotated Sorted Array II", - "url": "https://leetcode.com/problems/search-in-rotated-sorted-array-ii/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Facebook", - "Microsoft" - ] - }, - { - "id": 92, - "name": "Search a 2D Matrix", - "url": "https://leetcode.com/problems/search-a-2d-matrix/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Bloomberg", - "Microsoft", - "Uber", - "Google", - "Apple" - ] - }, - { - "id": 93, - "name": "Search a 2D Matrix II", - "url": "https://leetcode.com/problems/search-a-2d-matrix-ii/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Facebook", - "Apple", - "Uber" - ] - }, - { - "id": 94, - "name": "Find K Closest Elements", - "url": "https://leetcode.com/problems/find-k-closest-elements/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Google", - "Uber", - "Microsoft", - "Bloomberg" - ] - }, - { - "id": 95, - "name": "Count of Range Sum", - "url": "https://leetcode.com/problems/count-of-range-sum/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Google" - ] - }, - { - "id": 96, - "name": "Minimum Size Subarray Sum", - "url": "https://leetcode.com/problems/minimum-size-subarray-sum/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Goldman Sachs", - "Facebook", - "Amazon", - "Google" - ] - }, - { - "id": 97, - "name": "Fruit Into Baskets", - "url": "https://leetcode.com/problems/fruit-into-baskets/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon" - ] - }, - { - "id": 98, - "name": "Permutation in String", - "url": "https://leetcode.com/problems/permutation-in-string/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Oracle", - "Facebook" - ] - }, - { - "id": 99, - "name": "Longest Repeating Character Replacement", - "url": "https://leetcode.com/problems/longest-repeating-character-replacement/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Uber", - "Amazon", - "Adobe" - ] - }, - { - "id": 100, - "name": "Sliding Window Maximum", - "url": "https://leetcode.com/problems/sliding-window-maximum/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Goldman Sachs", - "Citadel", - "Google", - "Uber", - "Microsoft", - "Salesforce", - "Apple", - "Twitter", - "Atlassian" - ] - }, - { - "id": 101, - "name": "Longest Substring Without Repeating Characters", - "url": "https://leetcode.com/problems/longest-substring-without-repeating-characters/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Bloomberg", - "Facebook", - "Adobe", - "Google", - "Apple", - "Uber", - "Goldman Sachs" - ] - }, - { - "id": 102, - "name": "Minimum Number of K Consecutive Bit Flips", - "url": "https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Adobe" - ] - }, - { - "id": 103, - "name": "Count Unique Characters of All Substrings of a Given String", - "url": "https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon" - ] - }, - { - "id": 104, - "name": "Minimum Window Substring", - "url": "https://leetcode.com/problems/minimum-window-substring/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "LinkedIn", - "Snapchat", - "Google", - "Lyft", - "Adobe" - ] - }, - { - "id": 105, - "name": "Substring with Concatenation of All Words", - "url": "https://leetcode.com/problems/substring-with-concatenation-of-all-words/", - "pattern": [ - "Sliding Window" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Apple" - ] - }, - { - "id": 106, - "name": "Kth Smallest Element in a BST", - "url": "https://leetcode.com/problems/kth-smallest-element-in-a-bst/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook" - ] - }, - { - "id": 107, - "name": "K Closest Points to Origin", - "url": "https://leetcode.com/problems/k-closest-points-to-origin/", - "pattern": [ - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "LinkedIn", - "Google", - "Asana" - ] - }, - { - "id": 108, - "name": "Top K Frequent Elements", - "url": "https://leetcode.com/problems/top-k-frequent-elements/", - "pattern": [ - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Bloomberg", - "Microsoft", - "Uber", - "Apple", - "Google", - "Adobe", - "Snapchat", - "Oracle", - "LinkedIn" - ] - }, - { - "id": 109, - "name": "Sort Characters By Frequency", - "url": "https://leetcode.com/problems/sort-characters-by-frequency/", - "pattern": [ - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Bloomberg", - "Facebook" - ] - }, - { - "id": 110, - "name": "Kth Largest Element in an Array", - "url": "https://leetcode.com/problems/kth-largest-element-in-an-array/", - "pattern": [ - "Heap", - "QuickSelect" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "LinkedIn", - "Microsoft", - "Google", - "Goldman Sachs", - "Uber", - "Oracle" - ] - }, - { - "id": 111, - "name": "Reorganize String", - "url": "https://leetcode.com/problems/reorganize-string/", - "pattern": [ - "Greedy", - "Heap" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Google", - "Apple", - "Uber", - "Microsoft" - ] - }, - { - "id": 112, - "name": "Rearrange String k Distance Apart", - "url": "https://leetcode.com/problems/rearrange-string-k-distance-apart", - "pattern": [ - "Greedy", - "Heap" - ], - "difficulty": "Hard", - "premium": true, - "companies": [ - "Twitter" - ] - }, - { - "id": 113, - "name": "Course Schedule III", - "url": "https://leetcode.com/problems/course-schedule-iii/", - "pattern": [ - "Greedy", - "Heap" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon" - ] - }, - { - "id": 114, - "name": "Maximum Frequency Stack", - "url": "https://leetcode.com/problems/maximum-frequency-stack/", - "pattern": [ - "Bucket Sort", - "Heap" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Apple", - "Facebook" - ] - }, - { - "id": 115, - "name": "Course Schedule", - "url": "https://leetcode.com/problems/course-schedule/", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Topological Sort" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Facebook", - "Google", - "Oracle", - "Apple", - "Snapchat" - ] - }, - { - "id": 116, - "name": "Course Schedule II", - "url": "https://leetcode.com/problems/course-schedule-ii/", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Topological Sort" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Google", - "Facebook", - "Snapchat", - "Uber", - "Apple", - "Lyft", - "Bloomberg" - ] - }, - { - "id": 117, - "name": "Minimum Height Trees", - "url": "https://leetcode.com/problems/minimum-height-trees/", - "pattern": [ - "BFS", - "Graph", - "Topological Sort" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Google", - "Microsoft" - ] - }, - { - "id": 118, - "name": "Alien Dictionary", - "url": "https://leetcode.com/problems/alien-dictionary", - "pattern": [ - "Graph", - "Topological Sort" - ], - "difficulty": "Hard", - "premium": true, - "companies": [ - "Facebook", - "Google", - "Amazon", - "Airbnb", - "Pinterest", - "Uber", - "Microsoft" - ] - }, - { - "id": 119, - "name": "Sequence Reconstruction", - "url": "https://leetcode.com/problems/sequence-reconstruction", - "pattern": [ - "Graph", - "Topological Sort" - ], - "difficulty": "Medium", - "premium": true, - "companies": [ - "Google" - ] - }, - { - "id": 120, - "name": "Binary Tree Level Order Traversal II", - "url": "https://leetcode.com/problems/binary-tree-level-order-traversal-ii/", - "pattern": [ - "BFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon" - ] - }, - { - "id": 121, - "name": "Average of Levels in Binary Tree", - "url": "https://leetcode.com/problems/average-of-levels-in-binary-tree/", - "pattern": [ - "BFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] - }, - { - "id": 122, - "name": "Minimum Depth of Binary Tree", - "url": "https://leetcode.com/problems/minimum-depth-of-binary-tree/", - "pattern": [ - "BFS", - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Goldman Sachs" - ] - }, - { - "id": 123, - "name": "Binary Tree Level Order Traversal", - "url": "https://leetcode.com/problems/binary-tree-level-order-traversal/", - "pattern": [ - "BFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Facebook", - "Bloomberg", - "Microsoft", - "Apple", - "Oracle", - "Google" - ] - }, - { - "id": 124, - "name": "Binary Tree Zigzag Level Order Traversal", - "url": "https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/", - "pattern": [ - "BFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Microsoft", - "Bloomberg", - "Google", - "Adobe", - "LinkedIn", - "Qualtrics", - "Salesforce" - ] - }, - { - "id": 125, - "name": "Populating Next Right Pointers in Each Node", - "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node/", - "pattern": [ - "BFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Bloomberg" - ] - }, - { - "id": 126, - "name": "Populating Next Right Pointers in Each Node II", - "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/", - "pattern": [ - "BFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Bloomberg", - "Microsoft", - "Facebook" - ] - }, - { - "id": 127, - "name": "Binary Tree Right Side View", - "url": "https://leetcode.com/problems/binary-tree-right-side-view/", - "pattern": [ - "BFS", - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Bloomberg", - "Amazon", - "Oracle", - "Qualtrics", - "Adobe", - "Goldman Sachs" - ] - }, - { - "id": 128, - "name": "All Nodes Distance K in Binary Tree", - "url": "https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/", - "pattern": [ - "BFS", - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Apple", - "Oracle" - ] - }, - { - "id": 129, - "name": "Same Tree", - "url": "https://leetcode.com/problems/same-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "LinkedIn", - "Google", - "Microsoft", - "Amazon", - "Facebook", - "Apple", - "Adobe", - "Oracle" - ] - }, - { - "id": 130, - "name": "Path Sum", - "url": "https://leetcode.com/problems/path-sum/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Oracle" - ] - }, - { - "id": 131, - "name": "Maximum Depth of Binary Tree", - "url": "https://leetcode.com/problems/maximum-depth-of-binary-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "LinkedIn", - "Google", - "Apple", - "Amazon" - ] - }, - { - "id": 132, - "name": "Diameter of Binary Tree", - "url": "https://leetcode.com/problems/diameter-of-binary-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Google", - "Bloomberg", - "Apple", - "Microsoft", - "Adobe" - ] - }, - { - "id": 133, - "name": "Merge Two Binary Trees", - "url": "https://leetcode.com/problems/merge-two-binary-trees/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Adobe" - ] - }, - { - "id": 134, - "name": "Lowest Common Ancestor of a Binary Search Tree", - "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "LinkedIn", - "Facebook", - "Microsoft", - "Google", - "Uber" - ] - }, - { - "id": 135, - "name": "Subtree of Another Tree", - "url": "https://leetcode.com/problems/subtree-of-another-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft" - ] - }, - { - "id": 136, - "name": "Invert Binary Tree", - "url": "https://leetcode.com/problems/invert-binary-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Google", - "Facebook", - "Adobe", - "Apple" - ] - }, - { - "id": 137, - "name": "Path Sum II", - "url": "https://leetcode.com/problems/path-sum-ii/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google", - "Facebook", - "Adobe", - "Apple" - ] - }, - { - "id": 138, - "name": "Path Sum III", - "url": "https://leetcode.com/problems/path-sum-iii/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Facebook", - "Google", - "Oracle" - ] - }, - { - "id": 139, - "name": "Lowest Common Ancestor of a Binary Tree", - "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "LinkedIn", - "Google", - "Microsoft", - "Adobe", - "Apple", - "Salesforce", - "Oracle", - "Bloomberg", - "Intuit" - ] - }, - { - "id": 140, - "name": "Maximum Binary Tree", - "url": "https://leetcode.com/problems/maximum-binary-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon" - ] - }, - { - "id": 141, - "name": "Maximum Width of Binary Tree", - "url": "https://leetcode.com/problems/maximum-width-of-binary-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Google", - "Bloomberg", - "Apple", - "Adobe" - ] - }, - { - "id": 142, - "name": "Construct Binary Tree from Preorder and Inorder Traversal", - "url": "https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Adobe", - "Bloomberg", - "Apple" - ] - }, - { - "id": 143, - "name": "Validate Binary Search Tree", - "url": "https://leetcode.com/problems/validate-binary-search-tree/", - "pattern": [ - "DFS" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Bloomberg", - "Microsoft", - "Facebook", - "Google", - "Adobe", - "Apple", - "Qualtrics", - "Lyft" - ] - }, - { - "id": 144, - "name": "Implement Trie (Prefix Tree)", - "url": "https://leetcode.com/problems/implement-trie-prefix-tree/", - "pattern": [ - "Design", - "Trie" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Twitter", - "Google", - "Facebook", - "Microsoft", - "Apple" - ] - }, - { - "id": 145, - "name": "Binary Tree Maximum Path Sum", - "url": "https://leetcode.com/problems/binary-tree-maximum-path-sum/", - "pattern": [ - "DFS" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Google", - "Microsoft", - "Adobe", - "Bloomberg", - "Oracle", - "Snapchat" - ] - }, - { - "id": 146, - "name": "Serialize and Deserialize Binary Tree", - "url": "https://leetcode.com/problems/serialize-and-deserialize-binary-tree/", - "pattern": [ - "Design" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Microsoft", - "Facebook", - "Oracle", - "Uber", - "Adobe", - "Snapchat", - "Qualtrics", - "Google", - "Quora" - ] - }, - { - "id": 147, - "name": "Word Search II", - "url": "https://leetcode.com/problems/word-search-ii/", - "pattern": [ - "DFS", - "Trie" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Uber", - "Microsoft", - "Apple", - "Twitter", - "Snapchat", - "Facebook", - "Bloomberg", - "Google", - "Salesforce" - ] - }, - { - "id": 148, - "name": "Find Median from Data Stream", - "url": "https://leetcode.com/problems/find-median-from-data-stream/", - "pattern": [ - "Heap" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Apple", - "Facebook", - "Google", - "Bloomberg", - "Uber", - "Airbnb" - ] - }, - { - "id": 149, - "name": "Sliding Window Median", - "url": "https://leetcode.com/problems/sliding-window-median/", - "pattern": [ - "Heap" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] - }, - { - "id": 150, - "name": "Two Sum", - "url": "https://leetcode.com/problems/two-sum/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Google", - "Adobe", - "Apple", - "Microsoft", - "Facebook", - "Bloomberg", - "Uber", - "Oracle", - "Morgan Stanley", - "Citadel", - "Salesforce", - "Goldman Sachs", - "JPMorgan", - "Snapchat" - ] - }, - { - "id": 151, - "name": "Squares of a Sorted Array", - "url": "https://leetcode.com/problems/squares-of-a-sorted-array/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Google", - "Adobe", - "Apple", - "Uber" - ] - }, - { - "id": 152, - "name": "Backspace String Compare", - "url": "https://leetcode.com/problems/backspace-string-compare/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Apple", - "Google", - "Microsoft" - ] - }, - { - "id": 153, - "name": "3 Sum", - "url": "https://leetcode.com/problems/3sum/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Apple", - "Microsoft", - "Adobe", - "Google", - "Bloomberg", - "Intuit", - "Qualtrics", - "Salesforce", - "Goldman Sachs", - "Uber", - "Oracle" - ] - }, - { - "id": 154, - "name": "3 Sum Closest", - "url": "https://leetcode.com/problems/3sum-closest/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Capital One", - "Apple", - "Google", - "Adobe", - "Microsoft", - "Oracle" - ] - }, - { - "id": 155, - "name": "Subarrays with Product Less than K", - "url": "https://leetcode.com/problems/subarray-product-less-than-k/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Microsoft" - ] - }, - { - "id": 156, - "name": "Sort Colours", - "url": "https://leetcode.com/problems/sort-colors/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Adobe", - "Facebook", - "Apple", - "Salesforce", - "Bloomberg" - ] - }, - { - "id": 157, - "name": "Trapping Rain Water", - "url": "https://leetcode.com/problems/trapping-rain-water/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Goldman Sachs", - "Microsoft", - "Adobe", - "Google", - "Bloomberg", - "Qualtrics", - "Snapchat", - "Lyft", - "Uber", - "Apple", - "Citadel", - "Tesla" - ] - }, - { - "id": 158, - "name": "Container With Most Water", - "url": "https://leetcode.com/problems/container-with-most-water/", - "pattern": [ - "Two Pointers" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Google", - "Adobe", - "Bloomberg", - "Apple", - "Uber", - "Facebook" - ] - }, - { - "id": 159, - "name": "Longest Word in Dictionary", - "url": "https://leetcode.com/problems/longest-word-in-dictionary/", - "pattern": [ - "Trie" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Google" - ] - }, - { - "id": 160, - "name": "Index Pairs of a String", - "url": "https://leetcode.com/problems/index-pairs-of-a-string/", - "pattern": [ - "Trie" - ], - "difficulty": "Easy", - "premium": true, - "companies": [ - "Amazon" - ] - }, - { - "id": 161, - "name": "Maximum XOR of Two Numbers in an Array", - "url": "https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array", - "pattern": [ - "Trie" - ], - "difficulty": "Medium", - "premium": false, - "companies": [ - "Adobe" - ] - }, - { - "id": 162, - "name": "Concatenated Words", - "url": "https://leetcode.com/problems/concatenated-words/", - "pattern": [ - "Trie" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Microsoft" - ] - }, - { - "id": 163, - "name": "Prefix and Suffix Search", - "url": "https://leetcode.com/problems/prefix-and-suffix-search/", - "pattern": [ - "Trie" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Google" - ] - }, - { - "id": 164, - "name": "Palindrome Pairs", - "url": "https://leetcode.com/problems/palindrome-pairs/", - "pattern": [ - "Trie" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Airbnb", - "Facebook", - "Google" - ] - }, - { - "id": 165, - "name": "Design Search Autocomplete System", - "url": "https://leetcode.com/problems/design-search-autocomplete-system/", - "pattern": [ - "Trie" - ], - "difficulty": "Hard", - "premium": true, - "companies": [ - "Amazon", - "Google", - "Microsoft", - "Uber", - "Bloomberg", - "Twitter" - ] - }, - { - "id": 166, - "name": "Word Squares", - "url": "https://leetcode.com/problems/word-squares/", - "pattern": [ - "Trie" - ], - "difficulty": "Hard", - "premium": true, - "companies": [ - "Bloomberg", - "Oracle", - "Google" - ] - }, - { - "id": 167, - "name": "Sort Items by Groups Respecting Dependencies", - "url": "https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/", - "pattern": [ - "DFS", - "Graph", - "Topological Sort" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Apple" - ] - }, - { - "id": 168, - "name": "Median of Two Sorted Arrays", - "url": "https://leetcode.com/problems/median-of-two-sorted-arrays/", - "pattern": [ - "Binary Search" - ], - "difficulty": "Hard", - "premium": false, - "companies": [ - "Amazon", - "Goldman Sachs", - "Microsoft", - "Google", - "Adobe", - "Facebook", - "Apple", - "Bloomberg", - "Oracle" - ] - }, - { - "id": 169, - "name": "Majority Element", - "url": "https://leetcode.com/problems/majority-element/", - "pattern": [ - "Sorting" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Apple", - "Microsoft", - "Adobe" - ] - }, - { - "id": 170, - "name": "Convert 1D Array Into 2D Array", - "url": "https://leetcode.com/problems/convert-1d-array-into-2d-array/", - "pattern": [ - "Arrays" - ], - "difficulty": "Easy", - "premium": false, - "companies": [ - "Google" - ] - } -] \ No newline at end of file +{ + "updated": "2022-07-30T22:58:11.377092", + "data": [ + { + "id": 0, + "name": "Contains Duplicate", + "url": "https://leetcode.com/problems/contains-duplicate/", + "pattern": [ + "Arrays" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Adobe", + "Google", + "Bloomberg", + "Facebook", + "Apple", + "Microsoft" + ] + }, + { + "id": 1, + "name": "Missing Number", + "url": "https://leetcode.com/problems/missing-number/", + "pattern": [ + "Arrays", + "Bit Manipulation" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Microsoft", + "Facebook", + "Amazon", + "Google", + "Adobe" + ] + }, + { + "id": 2, + "name": "Find All Numbers Disappeared in an Array", + "url": "https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/", + "pattern": [ + "Arrays" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 3, + "name": "Single Number", + "url": "https://leetcode.com/problems/single-number/", + "pattern": [ + "Arrays", + "Bit Manipulation" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Adobe" + ] + }, + { + "id": 4, + "name": "Product of Array Except Self", + "url": "https://leetcode.com/problems/product-of-array-except-self/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Asana", + "Microsoft", + "Apple", + "Lyft", + "Adobe", + "Google", + "Uber", + "Goldman Sachs", + "Oracle" + ] + }, + { + "id": 5, + "name": "Find the Duplicate Number", + "url": "https://leetcode.com/problems/find-the-duplicate-number/", + "pattern": [ + "Arrays", + "Binary Search", + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Microsoft", + "Amazon", + "Adobe", + "Bloomberg", + "Facebook", + "Apple" + ] + }, + { + "id": 6, + "name": "Find All Duplicates in an Array", + "url": "https://leetcode.com/problems/find-all-duplicates-in-an-array/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google" + ] + }, + { + "id": 7, + "name": "Set Matrix Zeroes", + "url": "https://leetcode.com/problems/set-matrix-zeroes/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Apple", + "Adobe", + "Bloomberg", + "Oracle" + ] + }, + { + "id": 8, + "name": "Spiral Matrix", + "url": "https://leetcode.com/problems/spiral-matrix/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Facebook", + "Apple", + "Google", + "Oracle", + "Bloomberg", + "Intuit", + "Adobe" + ] + }, + { + "id": 9, + "name": "Rotate Image", + "url": "https://leetcode.com/problems/rotate-image/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Apple", + "Bloomberg", + "Uber", + "Google" + ] + }, + { + "id": 10, + "name": "Word Search", + "url": "https://leetcode.com/problems/word-search/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Twitter", + "Facebook", + "Snapchat", + "Goldman Sachs", + "Google", + "Bloomberg", + "Apple", + "Adobe", + "Oracle", + "Qualtrics" + ] + }, + { + "id": 11, + "name": "First Missing Positive", + "url": "https://leetcode.com/problems/first-missing-positive/", + "pattern": [ + "Arrays" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Facebook", + "Google", + "Adobe", + "Apple" + ] + }, + { + "id": 12, + "name": "Longest Consecutive Sequence", + "url": "https://leetcode.com/problems/longest-consecutive-sequence/", + "pattern": [ + "Arrays" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Facebook", + "Amazon", + "Google", + "LinkedIn", + "Apple", + "Qualtrics", + "Goldman Sachs", + "Salesforce" + ] + }, + { + "id": 13, + "name": "Letter Case Permutation", + "url": "https://leetcode.com/problems/letter-case-permutation/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft" + ] + }, + { + "id": 14, + "name": "Subsets", + "url": "https://leetcode.com/problems/subsets/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Bloomberg", + "Goldman Sachs", + "Adobe", + "Twitter" + ] + }, + { + "id": 15, + "name": "Subsets II", + "url": "https://leetcode.com/problems/subsets-ii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Bloomberg" + ] + }, + { + "id": 16, + "name": "Permutations", + "url": "https://leetcode.com/problems/permutations/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "LinkedIn", + "Bloomberg", + "Google", + "Microsoft", + "Adobe", + "Apple", + "Oracle" + ] + }, + { + "id": 17, + "name": "Permutations II", + "url": "https://leetcode.com/problems/permutations-ii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Facebook", + "Amazon", + "Adobe", + "Apple" + ] + }, + { + "id": 18, + "name": "Combinations", + "url": "https://leetcode.com/problems/combinations/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Facebook", + "Amazon" + ] + }, + { + "id": 19, + "name": "Combination Sum", + "url": "https://leetcode.com/problems/combination-sum/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Airbnb", + "Apple", + "Adobe", + "Microsoft", + "LinkedIn", + "Goldman Sachs", + "Snapchat", + "Salesforce" + ] + }, + { + "id": 20, + "name": "Combination Sum II", + "url": "https://leetcode.com/problems/combination-sum-ii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 21, + "name": "Combination Sum III", + "url": "https://leetcode.com/problems/combination-sum-iii/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 22, + "name": "Generate Parentheses", + "url": "https://leetcode.com/problems/generate-parentheses/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Apple", + "Bloomberg", + "Adobe", + "Uber", + "Google", + "Goldman Sachs" + ] + }, + { + "id": 23, + "name": "Target Sum", + "url": "https://leetcode.com/problems/target-sum/", + "pattern": [ + "DFS", + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Adobe" + ] + }, + { + "id": 24, + "name": "Palindrome Partitioning", + "url": "https://leetcode.com/problems/palindrome-partitioning/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 25, + "name": "Letter Combinations of a Phone Number", + "url": "https://leetcode.com/problems/letter-combinations-of-a-phone-number/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Facebook", + "Google", + "Uber", + "Apple", + "Adobe", + "Twitter", + "Bloomberg", + "Oracle", + "Goldman Sachs", + "Snapchat", + "Intuit" + ] + }, + { + "id": 26, + "name": "Generalized Abbreviation", + "url": "https://leetcode.com/problems/generalized-abbreviation/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Google" + ] + }, + { + "id": 27, + "name": "Sudoku Solver", + "url": "https://leetcode.com/problems/sudoku-solver/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google", + "Intuit", + "Amazon", + "Apple", + "Uber", + "Bloomberg" + ] + }, + { + "id": 28, + "name": "N-Queens", + "url": "https://leetcode.com/problems/n-queens/", + "pattern": [ + "Backtracking" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Apple", + "Facebook", + "Uber", + "Goldman Sachs", + "Adobe" + ] + }, + { + "id": 29, + "name": "Climbing Stairs", + "url": "https://leetcode.com/problems/climbing-stairs/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Bloomberg", + "Apple", + "Adobe" + ] + }, + { + "id": 30, + "name": "House Robber", + "url": "https://leetcode.com/problems/house-robber/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Apple", + "Adobe", + "Qualtrics", + "Bloomberg", + "Facebook", + "Goldman Sachs" + ] + }, + { + "id": 31, + "name": "Best Time to Buy and Sell Stock", + "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock/", + "pattern": [ + "Greedy" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Apple", + "Adobe", + "Microsoft", + "Bloomberg", + "Snapchat", + "Goldman Sachs", + "Uber", + "Oracle", + "Google", + "BlackRock", + "Citadel", + "JPMorgan", + "Salesforce" + ] + }, + { + "id": 32, + "name": "Maximum Subarray", + "url": "https://leetcode.com/problems/maximum-subarray/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Adobe", + "Apple", + "Microsoft", + "Google", + "Bloomberg", + "Facebook", + "Uber", + "Oracle", + "Goldman Sachs", + "JPMorgan" + ] + }, + { + "id": 33, + "name": "Range Sum Query - Immutable", + "url": "https://leetcode.com/problems/range-sum-query-immutable/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Adobe" + ] + }, + { + "id": 34, + "name": "House Robber II", + "url": "https://leetcode.com/problems/house-robber-ii/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google" + ] + }, + { + "id": 35, + "name": "Coin Change", + "url": "https://leetcode.com/problems/coin-change/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Apple" + ] + }, + { + "id": 36, + "name": "Maximum Product Subarray", + "url": "https://leetcode.com/problems/maximum-product-subarray/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Microsoft", + "Google", + "Apple", + "Facebook", + "Bloomberg" + ] + }, + { + "id": 37, + "name": "Longest Increasing Subsequence", + "url": "https://leetcode.com/problems/longest-increasing-subsequence/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Facebook", + "Microsoft", + "Apple", + "Bloomberg" + ] + }, + { + "id": 38, + "name": "Longest Palindromic Substring", + "url": "https://leetcode.com/problems/longest-palindromic-substring/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Adobe", + "Apple", + "Facebook", + "Google", + "Oracle", + "Salesforce", + "Bloomberg", + "LinkedIn", + "Tesla" + ] + }, + { + "id": 39, + "name": "Word Break", + "url": "https://leetcode.com/problems/word-break/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Uber", + "Apple", + "Bloomberg", + "Qualtrics", + "Adobe", + "Google", + "Snapchat", + "Salesforce" + ] + }, + { + "id": 40, + "name": "Combination Sum IV", + "url": "https://leetcode.com/problems/combination-sum-iv/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Facebook" + ] + }, + { + "id": 41, + "name": "Decode Ways", + "url": "https://leetcode.com/problems/decode-ways/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Snapchat", + "Lyft", + "Goldman Sachs", + "Microsoft", + "Bloomberg", + "JPMorgan" + ] + }, + { + "id": 42, + "name": "Unique Paths", + "url": "https://leetcode.com/problems/unique-paths/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Facebook", + "Amazon", + "Apple", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 43, + "name": "Jump Game", + "url": "https://leetcode.com/problems/jump-game/", + "pattern": [ + "Dynamic Programming", + "Greedy" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Uber", + "Oracle", + "Adobe", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 44, + "name": "Palindromic Substrings", + "url": "https://leetcode.com/problems/palindromic-substrings/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Google", + "Goldman Sachs" + ] + }, + { + "id": 45, + "name": "Number of Longest Increasing Subsequence", + "url": "https://leetcode.com/problems/number-of-longest-increasing-subsequence/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google" + ] + }, + { + "id": 46, + "name": "Partition Equal Subset Sum", + "url": "https://leetcode.com/problems/partition-equal-subset-sum/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Google", + "Amazon", + "Microsoft", + "Uber", + "Apple", + "Bloomberg" + ] + }, + { + "id": 47, + "name": "Partition to K Equal Sum Subsets", + "url": "https://leetcode.com/problems/partition-to-k-equal-sum-subsets/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Facebook" + ] + }, + { + "id": 48, + "name": "Best Time to Buy and Sell Stock with Cooldown", + "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/", + "pattern": [ + "Dynamic Programming" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Adobe", + "Bloomberg" + ] + }, + { + "id": 49, + "name": "Counting Bits", + "url": "https://leetcode.com/problems/counting-bits/", + "pattern": [ + "Dynamic Programming", + "Bit Manipulation" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 50, + "name": "Linked List Cycle", + "url": "https://leetcode.com/problems/linked-list-cycle/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Bloomberg", + "Oracle", + "Facebook", + "Google" + ] + }, + { + "id": 51, + "name": "Middle of the Linked List", + "url": "https://leetcode.com/problems/middle-of-the-linked-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Apple", + "Microsoft", + "Adobe", + "Goldman Sachs" + ] + }, + { + "id": 52, + "name": "Palindrome Linked List", + "url": "https://leetcode.com/problems/palindrome-linked-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Intuit", + "Bloomberg" + ] + }, + { + "id": 53, + "name": "Remove Linked List Elements", + "url": "https://leetcode.com/problems/remove-linked-list-elements/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Microsoft" + ] + }, + { + "id": 54, + "name": "Remove Duplicates from Sorted List", + "url": "https://leetcode.com/problems/remove-duplicates-from-sorted-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Adobe", + "Facebook", + "Microsoft" + ] + }, + { + "id": 55, + "name": "Linked List Cycle II", + "url": "https://leetcode.com/problems/linked-list-cycle-ii/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Goldman Sachs", + "Oracle" + ] + }, + { + "id": 56, + "name": "Add Two Numbers", + "url": "https://leetcode.com/problems/add-two-numbers/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Adobe", + "Microsoft", + "Facebook", + "Google", + "Apple", + "Uber", + "Capital One", + "Oracle" + ] + }, + { + "id": 57, + "name": "Remove Nth Node From End Of List", + "url": "https://leetcode.com/problems/remove-nth-node-from-end-of-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Google", + "Apple" + ] + }, + { + "id": 58, + "name": "Sort List", + "url": "https://leetcode.com/problems/sort-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Apple", + "Uber" + ] + }, + { + "id": 59, + "name": "Reorder List", + "url": "https://leetcode.com/problems/reorder-list/", + "pattern": [ + "Fast & Slow Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Adobe", + "Facebook", + "Google", + "Snapchat", + "Uber" + ] + }, + { + "id": 60, + "name": "Clone Graph", + "url": "https://leetcode.com/problems/clone-graph/", + "pattern": [ + "BFS", + "DFS", + "Graph" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Salesforce", + "Google", + "Twitter", + "Bloomberg", + "Oracle", + "Apple" + ] + }, + { + "id": 61, + "name": "Pacific Atlantic Water Flow", + "url": "https://leetcode.com/problems/pacific-atlantic-water-flow/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Microsoft", + "Facebook", + "Apple" + ] + }, + { + "id": 62, + "name": "Number of Islands", + "url": "https://leetcode.com/problems/number-of-islands/", + "pattern": [ + "BFS", + "DFS", + "Union Find" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Bloomberg", + "Google", + "LinkedIn", + "Facebook", + "Apple", + "Oracle", + "Goldman Sachs", + "Salesforce", + "Lyft", + "Uber", + "Adobe", + "Qualtrics" + ] + }, + { + "id": 63, + "name": "Graph Valid Tree", + "url": "https://leetcode.com/problems/graph-valid-tree/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Union Find" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "LinkedIn", + "Google", + "Bloomberg" + ] + }, + { + "id": 64, + "name": "Number of Connected Components in an Undirected Graph", + "url": "https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Union Find" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Amazon", + "LinkedIn", + "Facebook", + "Pinterest" + ] + }, + { + "id": 65, + "name": "Reverse Linked List", + "url": "https://leetcode.com/problems/reverse-linked-list/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Microsoft", + "Bloomberg", + "Amazon", + "Facebook", + "Apple" + ] + }, + { + "id": 66, + "name": "Reverse Linked List II", + "url": "https://leetcode.com/problems/reverse-linked-list-ii/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Apple", + "Facebook", + "Amazon", + "Google", + "Adobe" + ] + }, + { + "id": 67, + "name": "Rotate List", + "url": "https://leetcode.com/problems/rotate-list/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "LinkedIn", + "Microsoft", + "Adobe", + "Apple", + "Oracle" + ] + }, + { + "id": 68, + "name": "Swap Nodes in Pairs", + "url": "https://leetcode.com/problems/swap-nodes-in-pairs/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft" + ] + }, + { + "id": 69, + "name": "Odd Even Linked List", + "url": "https://leetcode.com/problems/odd-even-linked-list/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Bloomberg", + "Amazon", + "Adobe", + "Apple" + ] + }, + { + "id": 70, + "name": "Reverse Nodes in k-Group", + "url": "https://leetcode.com/problems/reverse-nodes-in-k-group/", + "pattern": [ + "In-place reversal of a linked list" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Capital One", + "Microsoft", + "Amazon", + "Google", + "Facebook", + "Snapchat", + "Oracle" + ] + }, + { + "id": 71, + "name": "Merge Two Sorted Lists", + "url": "https://leetcode.com/problems/merge-two-sorted-lists/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Adobe", + "Google", + "Bloomberg", + "Apple", + "Uber" + ] + }, + { + "id": 72, + "name": "Kth Smallest Element in a Sorted Matrix", + "url": "https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/", + "pattern": [ + "Binary Search", + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 73, + "name": "Find K Pairs with Smallest Sums", + "url": "https://leetcode.com/problems/find-k-pairs-with-smallest-sums/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Microsoft", + "Apple" + ] + }, + { + "id": 74, + "name": "Merge k Sorted Lists", + "url": "https://leetcode.com/problems/merge-k-sorted-lists/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft", + "Google", + "Apple", + "Bloomberg", + "Adobe", + "Uber", + "Qualtrics", + "Oracle" + ] + }, + { + "id": 75, + "name": "Smallest Range Covering Elements from K Lists", + "url": "https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Microsoft", + "Pinterest" + ] + }, + { + "id": 76, + "name": "Meeting Rooms", + "url": "https://leetcode.com/problems/meeting-rooms", + "pattern": [ + "Intervals" + ], + "difficulty": "Easy", + "premium": true, + "companies": [ + "Amazon", + "Microsoft", + "Facebook" + ] + }, + { + "id": 77, + "name": "Merge Intervals", + "url": "https://leetcode.com/problems/merge-intervals/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Salesforce", + "Google", + "Uber", + "Bloomberg", + "Adobe", + "Apple", + "LinkedIn", + "Twitter", + "Oracle", + "JPMorgan", + "Snapchat" + ] + }, + { + "id": 78, + "name": "Interval List Intersections", + "url": "https://leetcode.com/problems/interval-list-intersections/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Uber", + "Google" + ] + }, + { + "id": 79, + "name": "Non-overlapping Intervals", + "url": "https://leetcode.com/problems/non-overlapping-intervals/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Oracle" + ] + }, + { + "id": 80, + "name": "Meeting Rooms II", + "url": "https://leetcode.com/problems/meeting-rooms-ii/", + "pattern": [ + "Heap", + "Intervals" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Amazon", + "Facebook", + "Bloomberg", + "Microsoft", + "Google", + "Oracle", + "Uber", + "Twitter", + "Snapchat", + "Qualtrics", + "Adobe", + "Quora", + "Goldman Sachs" + ] + }, + { + "id": 81, + "name": "Task Scheduler", + "url": "https://leetcode.com/problems/task-scheduler/", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Google", + "Uber", + "Amazon", + "Microsoft", + "Salesforce" + ] + }, + { + "id": 82, + "name": "Minimum Number of Arrows to Burst Balloons", + "url": "https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/", + "pattern": [ + "Greedy" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 83, + "name": "Insert Interval", + "url": "https://leetcode.com/problems/insert-interval/", + "pattern": [ + "Intervals" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Facebook", + "LinkedIn", + "Microsoft", + "Twitter", + "Citadel" + ] + }, + { + "id": 84, + "name": "Employee Free Time", + "url": "https://leetcode.com/problems/employee-free-time/", + "pattern": [ + "Heap", + "Greedy" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Pinterest", + "Amazon", + "Airbnb", + "Snapchat", + "Google", + "Facebook", + "Apple", + "Oracle", + "Uber" + ] + }, + { + "id": 85, + "name": "Binary Search", + "url": "https://leetcode.com/problems/binary-search/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Adobe", + "Apple", + "Uber", + "Goldman Sachs" + ] + }, + { + "id": 86, + "name": "Find Smallest Letter Greater Than Target", + "url": "https://leetcode.com/problems/find-smallest-letter-greater-than-target/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn" + ] + }, + { + "id": 87, + "name": "Peak Index in a Mountain Array", + "url": "https://leetcode.com/problems/peak-index-in-a-mountain-array/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google", + "Amazon", + "Bloomberg", + "Facebook" + ] + }, + { + "id": 88, + "name": "Find Minimum in Rotated Sorted Array", + "url": "https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Bloomberg", + "Uber", + "Adobe", + "Apple" + ] + }, + { + "id": 89, + "name": "Find Peak Element", + "url": "https://leetcode.com/problems/find-peak-element/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Uber", + "Google", + "Microsoft" + ] + }, + { + "id": 90, + "name": "Search in Rotated Sorted Array", + "url": "https://leetcode.com/problems/search-in-rotated-sorted-array/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "LinkedIn", + "Facebook", + "Bloomberg", + "Adobe", + "Apple", + "Goldman Sachs", + "Oracle", + "Uber", + "Morgan Stanley" + ] + }, + { + "id": 91, + "name": "Search in Rotated Sorted Array II", + "url": "https://leetcode.com/problems/search-in-rotated-sorted-array-ii/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Facebook", + "Microsoft" + ] + }, + { + "id": 92, + "name": "Search a 2D Matrix", + "url": "https://leetcode.com/problems/search-a-2d-matrix/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Bloomberg", + "Microsoft", + "Uber", + "Google", + "Apple" + ] + }, + { + "id": 93, + "name": "Search a 2D Matrix II", + "url": "https://leetcode.com/problems/search-a-2d-matrix-ii/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Facebook", + "Apple", + "Uber" + ] + }, + { + "id": 94, + "name": "Find K Closest Elements", + "url": "https://leetcode.com/problems/find-k-closest-elements/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Uber", + "Microsoft", + "Bloomberg" + ] + }, + { + "id": 95, + "name": "Count of Range Sum", + "url": "https://leetcode.com/problems/count-of-range-sum/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 96, + "name": "Minimum Size Subarray Sum", + "url": "https://leetcode.com/problems/minimum-size-subarray-sum/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Goldman Sachs", + "Facebook", + "Amazon", + "Google" + ] + }, + { + "id": 97, + "name": "Fruit Into Baskets", + "url": "https://leetcode.com/problems/fruit-into-baskets/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 98, + "name": "Permutation in String", + "url": "https://leetcode.com/problems/permutation-in-string/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Oracle", + "Facebook" + ] + }, + { + "id": 99, + "name": "Longest Repeating Character Replacement", + "url": "https://leetcode.com/problems/longest-repeating-character-replacement/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Uber", + "Amazon", + "Adobe" + ] + }, + { + "id": 100, + "name": "Sliding Window Maximum", + "url": "https://leetcode.com/problems/sliding-window-maximum/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Goldman Sachs", + "Citadel", + "Google", + "Uber", + "Microsoft", + "Salesforce", + "Apple", + "Twitter", + "Atlassian" + ] + }, + { + "id": 101, + "name": "Longest Substring Without Repeating Characters", + "url": "https://leetcode.com/problems/longest-substring-without-repeating-characters/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Bloomberg", + "Facebook", + "Adobe", + "Google", + "Apple", + "Uber", + "Goldman Sachs" + ] + }, + { + "id": 102, + "name": "Minimum Number of K Consecutive Bit Flips", + "url": "https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Adobe" + ] + }, + { + "id": 103, + "name": "Count Unique Characters of All Substrings of a Given String", + "url": "https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 104, + "name": "Minimum Window Substring", + "url": "https://leetcode.com/problems/minimum-window-substring/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Snapchat", + "Google", + "Lyft", + "Adobe" + ] + }, + { + "id": 105, + "name": "Substring with Concatenation of All Words", + "url": "https://leetcode.com/problems/substring-with-concatenation-of-all-words/", + "pattern": [ + "Sliding Window" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 106, + "name": "Kth Smallest Element in a BST", + "url": "https://leetcode.com/problems/kth-smallest-element-in-a-bst/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook" + ] + }, + { + "id": 107, + "name": "K Closest Points to Origin", + "url": "https://leetcode.com/problems/k-closest-points-to-origin/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Google", + "Asana" + ] + }, + { + "id": 108, + "name": "Top K Frequent Elements", + "url": "https://leetcode.com/problems/top-k-frequent-elements/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Bloomberg", + "Microsoft", + "Uber", + "Apple", + "Google", + "Adobe", + "Snapchat", + "Oracle", + "LinkedIn" + ] + }, + { + "id": 109, + "name": "Sort Characters By Frequency", + "url": "https://leetcode.com/problems/sort-characters-by-frequency/", + "pattern": [ + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Facebook" + ] + }, + { + "id": 110, + "name": "Kth Largest Element in an Array", + "url": "https://leetcode.com/problems/kth-largest-element-in-an-array/", + "pattern": [ + "Heap", + "QuickSelect" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Microsoft", + "Google", + "Goldman Sachs", + "Uber", + "Oracle" + ] + }, + { + "id": 111, + "name": "Reorganize String", + "url": "https://leetcode.com/problems/reorganize-string/", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Google", + "Apple", + "Uber", + "Microsoft" + ] + }, + { + "id": 112, + "name": "Rearrange String k Distance Apart", + "url": "https://leetcode.com/problems/rearrange-string-k-distance-apart", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Twitter" + ] + }, + { + "id": 113, + "name": "Course Schedule III", + "url": "https://leetcode.com/problems/course-schedule-iii/", + "pattern": [ + "Greedy", + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 114, + "name": "Maximum Frequency Stack", + "url": "https://leetcode.com/problems/maximum-frequency-stack/", + "pattern": [ + "Bucket Sort", + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Apple", + "Facebook" + ] + }, + { + "id": 115, + "name": "Course Schedule", + "url": "https://leetcode.com/problems/course-schedule/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Facebook", + "Google", + "Oracle", + "Apple", + "Snapchat" + ] + }, + { + "id": 116, + "name": "Course Schedule II", + "url": "https://leetcode.com/problems/course-schedule-ii/", + "pattern": [ + "BFS", + "DFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Facebook", + "Snapchat", + "Uber", + "Apple", + "Lyft", + "Bloomberg" + ] + }, + { + "id": 117, + "name": "Minimum Height Trees", + "url": "https://leetcode.com/problems/minimum-height-trees/", + "pattern": [ + "BFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Google", + "Microsoft" + ] + }, + { + "id": 118, + "name": "Alien Dictionary", + "url": "https://leetcode.com/problems/alien-dictionary", + "pattern": [ + "Graph", + "Topological Sort" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Facebook", + "Google", + "Amazon", + "Airbnb", + "Pinterest", + "Uber", + "Microsoft" + ] + }, + { + "id": 119, + "name": "Sequence Reconstruction", + "url": "https://leetcode.com/problems/sequence-reconstruction", + "pattern": [ + "Graph", + "Topological Sort" + ], + "difficulty": "Medium", + "premium": true, + "companies": [ + "Google" + ] + }, + { + "id": 120, + "name": "Binary Tree Level Order Traversal II", + "url": "https://leetcode.com/problems/binary-tree-level-order-traversal-ii/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 121, + "name": "Average of Levels in Binary Tree", + "url": "https://leetcode.com/problems/average-of-levels-in-binary-tree/", + "pattern": [ + "BFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 122, + "name": "Minimum Depth of Binary Tree", + "url": "https://leetcode.com/problems/minimum-depth-of-binary-tree/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Goldman Sachs" + ] + }, + { + "id": 123, + "name": "Binary Tree Level Order Traversal", + "url": "https://leetcode.com/problems/binary-tree-level-order-traversal/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Facebook", + "Bloomberg", + "Microsoft", + "Apple", + "Oracle", + "Google" + ] + }, + { + "id": 124, + "name": "Binary Tree Zigzag Level Order Traversal", + "url": "https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Microsoft", + "Bloomberg", + "Google", + "Adobe", + "LinkedIn", + "Qualtrics", + "Salesforce" + ] + }, + { + "id": 125, + "name": "Populating Next Right Pointers in Each Node", + "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Microsoft", + "Amazon", + "Bloomberg" + ] + }, + { + "id": 126, + "name": "Populating Next Right Pointers in Each Node II", + "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/", + "pattern": [ + "BFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Microsoft", + "Facebook" + ] + }, + { + "id": 127, + "name": "Binary Tree Right Side View", + "url": "https://leetcode.com/problems/binary-tree-right-side-view/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Bloomberg", + "Amazon", + "Oracle", + "Qualtrics", + "Adobe", + "Goldman Sachs" + ] + }, + { + "id": 128, + "name": "All Nodes Distance K in Binary Tree", + "url": "https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/", + "pattern": [ + "BFS", + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Apple", + "Oracle" + ] + }, + { + "id": 129, + "name": "Same Tree", + "url": "https://leetcode.com/problems/same-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn", + "Google", + "Microsoft", + "Amazon", + "Facebook", + "Apple", + "Adobe", + "Oracle" + ] + }, + { + "id": 130, + "name": "Path Sum", + "url": "https://leetcode.com/problems/path-sum/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Oracle" + ] + }, + { + "id": 131, + "name": "Maximum Depth of Binary Tree", + "url": "https://leetcode.com/problems/maximum-depth-of-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn", + "Google", + "Apple", + "Amazon" + ] + }, + { + "id": 132, + "name": "Diameter of Binary Tree", + "url": "https://leetcode.com/problems/diameter-of-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Bloomberg", + "Apple", + "Microsoft", + "Adobe" + ] + }, + { + "id": 133, + "name": "Merge Two Binary Trees", + "url": "https://leetcode.com/problems/merge-two-binary-trees/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Adobe" + ] + }, + { + "id": 134, + "name": "Lowest Common Ancestor of a Binary Search Tree", + "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "LinkedIn", + "Facebook", + "Microsoft", + "Google", + "Uber" + ] + }, + { + "id": 135, + "name": "Subtree of Another Tree", + "url": "https://leetcode.com/problems/subtree-of-another-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Microsoft" + ] + }, + { + "id": 136, + "name": "Invert Binary Tree", + "url": "https://leetcode.com/problems/invert-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Facebook", + "Adobe", + "Apple" + ] + }, + { + "id": 137, + "name": "Path Sum II", + "url": "https://leetcode.com/problems/path-sum-ii/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Facebook", + "Adobe", + "Apple" + ] + }, + { + "id": 138, + "name": "Path Sum III", + "url": "https://leetcode.com/problems/path-sum-iii/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Facebook", + "Google", + "Oracle" + ] + }, + { + "id": 139, + "name": "Lowest Common Ancestor of a Binary Tree", + "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "LinkedIn", + "Google", + "Microsoft", + "Adobe", + "Apple", + "Salesforce", + "Oracle", + "Bloomberg", + "Intuit" + ] + }, + { + "id": 140, + "name": "Maximum Binary Tree", + "url": "https://leetcode.com/problems/maximum-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon" + ] + }, + { + "id": 141, + "name": "Maximum Width of Binary Tree", + "url": "https://leetcode.com/problems/maximum-width-of-binary-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Bloomberg", + "Apple", + "Adobe" + ] + }, + { + "id": 142, + "name": "Construct Binary Tree from Preorder and Inorder Traversal", + "url": "https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Adobe", + "Bloomberg", + "Apple" + ] + }, + { + "id": 143, + "name": "Validate Binary Search Tree", + "url": "https://leetcode.com/problems/validate-binary-search-tree/", + "pattern": [ + "DFS" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Bloomberg", + "Microsoft", + "Facebook", + "Google", + "Adobe", + "Apple", + "Qualtrics", + "Lyft" + ] + }, + { + "id": 144, + "name": "Implement Trie (Prefix Tree)", + "url": "https://leetcode.com/problems/implement-trie-prefix-tree/", + "pattern": [ + "Design", + "Trie" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Twitter", + "Google", + "Facebook", + "Microsoft", + "Apple" + ] + }, + { + "id": 145, + "name": "Binary Tree Maximum Path Sum", + "url": "https://leetcode.com/problems/binary-tree-maximum-path-sum/", + "pattern": [ + "DFS" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Microsoft", + "Adobe", + "Bloomberg", + "Oracle", + "Snapchat" + ] + }, + { + "id": 146, + "name": "Serialize and Deserialize Binary Tree", + "url": "https://leetcode.com/problems/serialize-and-deserialize-binary-tree/", + "pattern": [ + "Design" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Microsoft", + "Facebook", + "Oracle", + "Uber", + "Adobe", + "Snapchat", + "Qualtrics", + "Google", + "Quora" + ] + }, + { + "id": 147, + "name": "Word Search II", + "url": "https://leetcode.com/problems/word-search-ii/", + "pattern": [ + "DFS", + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Uber", + "Microsoft", + "Apple", + "Twitter", + "Snapchat", + "Facebook", + "Bloomberg", + "Google", + "Salesforce" + ] + }, + { + "id": 148, + "name": "Find Median from Data Stream", + "url": "https://leetcode.com/problems/find-median-from-data-stream/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Apple", + "Facebook", + "Google", + "Bloomberg", + "Uber", + "Airbnb" + ] + }, + { + "id": 149, + "name": "Sliding Window Median", + "url": "https://leetcode.com/problems/sliding-window-median/", + "pattern": [ + "Heap" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon" + ] + }, + { + "id": 150, + "name": "Two Sum", + "url": "https://leetcode.com/problems/two-sum/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Google", + "Adobe", + "Apple", + "Microsoft", + "Facebook", + "Bloomberg", + "Uber", + "Oracle", + "Morgan Stanley", + "Citadel", + "Salesforce", + "Goldman Sachs", + "JPMorgan", + "Snapchat" + ] + }, + { + "id": 151, + "name": "Squares of a Sorted Array", + "url": "https://leetcode.com/problems/squares-of-a-sorted-array/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Google", + "Adobe", + "Apple", + "Uber" + ] + }, + { + "id": 152, + "name": "Backspace String Compare", + "url": "https://leetcode.com/problems/backspace-string-compare/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Apple", + "Google", + "Microsoft" + ] + }, + { + "id": 153, + "name": "3 Sum", + "url": "https://leetcode.com/problems/3sum/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Apple", + "Microsoft", + "Adobe", + "Google", + "Bloomberg", + "Intuit", + "Qualtrics", + "Salesforce", + "Goldman Sachs", + "Uber", + "Oracle" + ] + }, + { + "id": 154, + "name": "3 Sum Closest", + "url": "https://leetcode.com/problems/3sum-closest/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Capital One", + "Apple", + "Google", + "Adobe", + "Microsoft", + "Oracle" + ] + }, + { + "id": 155, + "name": "Subarrays with Product Less than K", + "url": "https://leetcode.com/problems/subarray-product-less-than-k/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "LinkedIn", + "Amazon", + "Microsoft" + ] + }, + { + "id": 156, + "name": "Sort Colours", + "url": "https://leetcode.com/problems/sort-colors/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Microsoft", + "Amazon", + "Adobe", + "Facebook", + "Apple", + "Salesforce", + "Bloomberg" + ] + }, + { + "id": 157, + "name": "Trapping Rain Water", + "url": "https://leetcode.com/problems/trapping-rain-water/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Facebook", + "Amazon", + "Goldman Sachs", + "Microsoft", + "Adobe", + "Google", + "Bloomberg", + "Qualtrics", + "Snapchat", + "Lyft", + "Uber", + "Apple", + "Citadel", + "Tesla" + ] + }, + { + "id": 158, + "name": "Container With Most Water", + "url": "https://leetcode.com/problems/container-with-most-water/", + "pattern": [ + "Two Pointers" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Amazon", + "Microsoft", + "Google", + "Adobe", + "Bloomberg", + "Apple", + "Uber", + "Facebook" + ] + }, + { + "id": 159, + "name": "Longest Word in Dictionary", + "url": "https://leetcode.com/problems/longest-word-in-dictionary/", + "pattern": [ + "Trie" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 160, + "name": "Index Pairs of a String", + "url": "https://leetcode.com/problems/index-pairs-of-a-string/", + "pattern": [ + "Trie" + ], + "difficulty": "Easy", + "premium": true, + "companies": [ + "Amazon" + ] + }, + { + "id": 161, + "name": "Maximum XOR of Two Numbers in an Array", + "url": "https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array", + "pattern": [ + "Trie" + ], + "difficulty": "Medium", + "premium": false, + "companies": [ + "Adobe" + ] + }, + { + "id": 162, + "name": "Concatenated Words", + "url": "https://leetcode.com/problems/concatenated-words/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Microsoft" + ] + }, + { + "id": 163, + "name": "Prefix and Suffix Search", + "url": "https://leetcode.com/problems/prefix-and-suffix-search/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Google" + ] + }, + { + "id": 164, + "name": "Palindrome Pairs", + "url": "https://leetcode.com/problems/palindrome-pairs/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Airbnb", + "Facebook", + "Google" + ] + }, + { + "id": 165, + "name": "Design Search Autocomplete System", + "url": "https://leetcode.com/problems/design-search-autocomplete-system/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Amazon", + "Google", + "Microsoft", + "Uber", + "Bloomberg", + "Twitter" + ] + }, + { + "id": 166, + "name": "Word Squares", + "url": "https://leetcode.com/problems/word-squares/", + "pattern": [ + "Trie" + ], + "difficulty": "Hard", + "premium": true, + "companies": [ + "Bloomberg", + "Oracle", + "Google" + ] + }, + { + "id": 167, + "name": "Sort Items by Groups Respecting Dependencies", + "url": "https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/", + "pattern": [ + "DFS", + "Graph", + "Topological Sort" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Apple" + ] + }, + { + "id": 168, + "name": "Median of Two Sorted Arrays", + "url": "https://leetcode.com/problems/median-of-two-sorted-arrays/", + "pattern": [ + "Binary Search" + ], + "difficulty": "Hard", + "premium": false, + "companies": [ + "Amazon", + "Goldman Sachs", + "Microsoft", + "Google", + "Adobe", + "Facebook", + "Apple", + "Bloomberg", + "Oracle" + ] + }, + { + "id": 169, + "name": "Majority Element", + "url": "https://leetcode.com/problems/majority-element/", + "pattern": [ + "Sorting" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Amazon", + "Facebook", + "Apple", + "Microsoft", + "Adobe" + ] + }, + { + "id": 170, + "name": "Convert 1D Array Into 2D Array", + "url": "https://leetcode.com/problems/convert-1d-array-into-2d-array/", + "pattern": [ + "Arrays" + ], + "difficulty": "Easy", + "premium": false, + "companies": [ + "Google" + ] + } + ] +} \ No newline at end of file From 4f5af605bc5e6503b2a3e3ef0f8a878fdf219af8 Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Sat, 30 Jul 2022 23:58:43 -0400 Subject: [PATCH 3/7] commit updated questions file --- .github/workflows/run-cron.yml | 5 ++++- cron/update_questions.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-cron.yml b/.github/workflows/run-cron.yml index a15470f0..9e132a73 100644 --- a/.github/workflows/run-cron.yml +++ b/.github/workflows/run-cron.yml @@ -3,7 +3,7 @@ name: run-cron on: workflow_dispatch jobs: - build: + update: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -16,3 +16,6 @@ jobs: pip install requests - run: | python cron/update_questions.py + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: update questions (cron job) diff --git a/cron/update_questions.py b/cron/update_questions.py index f5aa7c05..ec13c3d8 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -35,7 +35,7 @@ print("Finished checking all questions") -with open("output.json", "w") as file: +with open("questions.json", "w") as file: questions["updated"] = str(datetime.now().isoformat()) json.dump(questions, file, indent=2) From 2f006eaeb8c1d46ecad1a7c49800944362ae3c29 Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Sun, 31 Jul 2022 23:32:59 -0400 Subject: [PATCH 4/7] rename variable --- cron/update_questions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cron/update_questions.py b/cron/update_questions.py index ec13c3d8..570f15b8 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -27,11 +27,11 @@ json={"query": query, "variables": variables} ) - their_difficulty = response.json()["data"]["question"]["difficulty"] + leetcode_difficulty = response.json()["data"]["question"]["difficulty"] - if their_difficulty != our_difficulty: - print(f'{question["name"]}: {our_difficulty} -> {their_difficulty}') - question["difficulty"] = their_difficulty + if leetcode_difficulty != our_difficulty: + print(f'{question["name"]}: {our_difficulty} -> {leetcode_difficulty}') + question["difficulty"] = leetcode_difficulty print("Finished checking all questions") From c7ddac81e1b3687bd1aa5044ca2052325eccfe0f Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Sun, 31 Jul 2022 23:48:28 -0400 Subject: [PATCH 5/7] add try catch to file operations --- cron/update_questions.py | 20 +++++++++++++++----- questions.json | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/cron/update_questions.py b/cron/update_questions.py index 570f15b8..9b83c88f 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -10,10 +10,16 @@ } ''' +questions_file = "questions.json" + print("Reading questions file") -with open("questions.json", "r") as file: - questions = json.load(file) +try: + with open(questions_file, "r") as file: + questions = json.load(file) +except Exception as e: + print(e) + exit() print("Updating question metadata") @@ -35,8 +41,12 @@ print("Finished checking all questions") -with open("questions.json", "w") as file: - questions["updated"] = str(datetime.now().isoformat()) - json.dump(questions, file, indent=2) +try: + with open(questions_file, "w") as file: + questions["updated"] = str(datetime.now().isoformat()) + json.dump(questions, file, indent=2) +except Exception as e: + print(e) + exit() print("Wrote questions file") diff --git a/questions.json b/questions.json index 825126ad..0f7fc9eb 100644 --- a/questions.json +++ b/questions.json @@ -1,5 +1,5 @@ { - "updated": "2022-07-30T22:58:11.377092", + "updated": "2022-07-31T23:47:33.027287", "data": [ { "id": 0, From 934b169277032ec5d6c1dc13524acd37ec50d24c Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Mon, 1 Aug 2022 14:20:43 -0400 Subject: [PATCH 6/7] replace url with title slugs --- cron/update_questions.py | 6 +- questions.json | 344 +++++++++++++++++++-------------------- 2 files changed, 174 insertions(+), 176 deletions(-) diff --git a/cron/update_questions.py b/cron/update_questions.py index 9b83c88f..4e17e761 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -24,15 +24,13 @@ print("Updating question metadata") for question in questions["data"]: - p = urlparse(question["url"]) - title_slug = p.path.rstrip('/').split('/')[-1] - our_difficulty = question["difficulty"] - variables = {"titleSlug": title_slug} + variables = {"titleSlug": question["url"]} response = requests.post("https://leetcode.com/graphql", json={"query": query, "variables": variables} ) + our_difficulty = question["difficulty"] leetcode_difficulty = response.json()["data"]["question"]["difficulty"] if leetcode_difficulty != our_difficulty: diff --git a/questions.json b/questions.json index 0f7fc9eb..601d0eb7 100644 --- a/questions.json +++ b/questions.json @@ -1,10 +1,10 @@ { - "updated": "2022-07-31T23:47:33.027287", + "updated": "2022-08-01T14:20:10.155368", "data": [ { "id": 0, "name": "Contains Duplicate", - "url": "https://leetcode.com/problems/contains-duplicate/", + "url": "contains-duplicate", "pattern": [ "Arrays" ], @@ -23,7 +23,7 @@ { "id": 1, "name": "Missing Number", - "url": "https://leetcode.com/problems/missing-number/", + "url": "missing-number", "pattern": [ "Arrays", "Bit Manipulation" @@ -41,7 +41,7 @@ { "id": 2, "name": "Find All Numbers Disappeared in an Array", - "url": "https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/", + "url": "find-all-numbers-disappeared-in-an-array", "pattern": [ "Arrays" ], @@ -55,7 +55,7 @@ { "id": 3, "name": "Single Number", - "url": "https://leetcode.com/problems/single-number/", + "url": "single-number", "pattern": [ "Arrays", "Bit Manipulation" @@ -71,7 +71,7 @@ { "id": 4, "name": "Product of Array Except Self", - "url": "https://leetcode.com/problems/product-of-array-except-self/", + "url": "product-of-array-except-self", "pattern": [ "Arrays" ], @@ -94,7 +94,7 @@ { "id": 5, "name": "Find the Duplicate Number", - "url": "https://leetcode.com/problems/find-the-duplicate-number/", + "url": "find-the-duplicate-number", "pattern": [ "Arrays", "Binary Search", @@ -115,7 +115,7 @@ { "id": 6, "name": "Find All Duplicates in an Array", - "url": "https://leetcode.com/problems/find-all-duplicates-in-an-array/", + "url": "find-all-duplicates-in-an-array", "pattern": [ "Arrays" ], @@ -129,7 +129,7 @@ { "id": 7, "name": "Set Matrix Zeroes", - "url": "https://leetcode.com/problems/set-matrix-zeroes/", + "url": "set-matrix-zeroes", "pattern": [ "Arrays" ], @@ -148,7 +148,7 @@ { "id": 8, "name": "Spiral Matrix", - "url": "https://leetcode.com/problems/spiral-matrix/", + "url": "spiral-matrix", "pattern": [ "Arrays" ], @@ -169,7 +169,7 @@ { "id": 9, "name": "Rotate Image", - "url": "https://leetcode.com/problems/rotate-image/", + "url": "rotate-image", "pattern": [ "Arrays" ], @@ -188,7 +188,7 @@ { "id": 10, "name": "Word Search", - "url": "https://leetcode.com/problems/word-search/", + "url": "word-search", "pattern": [ "Backtracking" ], @@ -212,7 +212,7 @@ { "id": 11, "name": "First Missing Positive", - "url": "https://leetcode.com/problems/first-missing-positive/", + "url": "first-missing-positive", "pattern": [ "Arrays" ], @@ -230,7 +230,7 @@ { "id": 12, "name": "Longest Consecutive Sequence", - "url": "https://leetcode.com/problems/longest-consecutive-sequence/", + "url": "longest-consecutive-sequence", "pattern": [ "Arrays" ], @@ -251,7 +251,7 @@ { "id": 13, "name": "Letter Case Permutation", - "url": "https://leetcode.com/problems/letter-case-permutation/", + "url": "letter-case-permutation", "pattern": [ "Backtracking" ], @@ -264,7 +264,7 @@ { "id": 14, "name": "Subsets", - "url": "https://leetcode.com/problems/subsets/", + "url": "subsets", "pattern": [ "Backtracking" ], @@ -283,7 +283,7 @@ { "id": 15, "name": "Subsets II", - "url": "https://leetcode.com/problems/subsets-ii/", + "url": "subsets-ii", "pattern": [ "Backtracking" ], @@ -298,7 +298,7 @@ { "id": 16, "name": "Permutations", - "url": "https://leetcode.com/problems/permutations/", + "url": "permutations", "pattern": [ "Backtracking" ], @@ -319,7 +319,7 @@ { "id": 17, "name": "Permutations II", - "url": "https://leetcode.com/problems/permutations-ii/", + "url": "permutations-ii", "pattern": [ "Backtracking" ], @@ -336,7 +336,7 @@ { "id": 18, "name": "Combinations", - "url": "https://leetcode.com/problems/combinations/", + "url": "combinations", "pattern": [ "Backtracking" ], @@ -351,7 +351,7 @@ { "id": 19, "name": "Combination Sum", - "url": "https://leetcode.com/problems/combination-sum/", + "url": "combination-sum", "pattern": [ "Backtracking" ], @@ -373,7 +373,7 @@ { "id": 20, "name": "Combination Sum II", - "url": "https://leetcode.com/problems/combination-sum-ii/", + "url": "combination-sum-ii", "pattern": [ "Backtracking" ], @@ -387,7 +387,7 @@ { "id": 21, "name": "Combination Sum III", - "url": "https://leetcode.com/problems/combination-sum-iii/", + "url": "combination-sum-iii", "pattern": [ "Backtracking" ], @@ -400,7 +400,7 @@ { "id": 22, "name": "Generate Parentheses", - "url": "https://leetcode.com/problems/generate-parentheses/", + "url": "generate-parentheses", "pattern": [ "Backtracking" ], @@ -421,7 +421,7 @@ { "id": 23, "name": "Target Sum", - "url": "https://leetcode.com/problems/target-sum/", + "url": "target-sum", "pattern": [ "DFS", "Dynamic Programming" @@ -438,7 +438,7 @@ { "id": 24, "name": "Palindrome Partitioning", - "url": "https://leetcode.com/problems/palindrome-partitioning/", + "url": "palindrome-partitioning", "pattern": [ "Backtracking" ], @@ -451,7 +451,7 @@ { "id": 25, "name": "Letter Combinations of a Phone Number", - "url": "https://leetcode.com/problems/letter-combinations-of-a-phone-number/", + "url": "letter-combinations-of-a-phone-number", "pattern": [ "Backtracking" ], @@ -476,7 +476,7 @@ { "id": 26, "name": "Generalized Abbreviation", - "url": "https://leetcode.com/problems/generalized-abbreviation/", + "url": "generalized-abbreviation", "pattern": [ "Backtracking" ], @@ -489,7 +489,7 @@ { "id": 27, "name": "Sudoku Solver", - "url": "https://leetcode.com/problems/sudoku-solver/", + "url": "sudoku-solver", "pattern": [ "Backtracking" ], @@ -507,7 +507,7 @@ { "id": 28, "name": "N-Queens", - "url": "https://leetcode.com/problems/n-queens/", + "url": "n-queens", "pattern": [ "Backtracking" ], @@ -526,7 +526,7 @@ { "id": 29, "name": "Climbing Stairs", - "url": "https://leetcode.com/problems/climbing-stairs/", + "url": "climbing-stairs", "pattern": [ "Dynamic Programming" ], @@ -544,7 +544,7 @@ { "id": 30, "name": "House Robber", - "url": "https://leetcode.com/problems/house-robber/", + "url": "house-robber", "pattern": [ "Dynamic Programming" ], @@ -565,7 +565,7 @@ { "id": 31, "name": "Best Time to Buy and Sell Stock", - "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock/", + "url": "best-time-to-buy-and-sell-stock", "pattern": [ "Greedy" ], @@ -592,7 +592,7 @@ { "id": 32, "name": "Maximum Subarray", - "url": "https://leetcode.com/problems/maximum-subarray/", + "url": "maximum-subarray", "pattern": [ "Dynamic Programming" ], @@ -616,7 +616,7 @@ { "id": 33, "name": "Range Sum Query - Immutable", - "url": "https://leetcode.com/problems/range-sum-query-immutable/", + "url": "range-sum-query-immutable", "pattern": [ "Dynamic Programming" ], @@ -630,7 +630,7 @@ { "id": 34, "name": "House Robber II", - "url": "https://leetcode.com/problems/house-robber-ii/", + "url": "house-robber-ii", "pattern": [ "Dynamic Programming" ], @@ -644,7 +644,7 @@ { "id": 35, "name": "Coin Change", - "url": "https://leetcode.com/problems/coin-change/", + "url": "coin-change", "pattern": [ "Dynamic Programming" ], @@ -660,7 +660,7 @@ { "id": 36, "name": "Maximum Product Subarray", - "url": "https://leetcode.com/problems/maximum-product-subarray/", + "url": "maximum-product-subarray", "pattern": [ "Dynamic Programming" ], @@ -679,7 +679,7 @@ { "id": 37, "name": "Longest Increasing Subsequence", - "url": "https://leetcode.com/problems/longest-increasing-subsequence/", + "url": "longest-increasing-subsequence", "pattern": [ "Dynamic Programming" ], @@ -697,7 +697,7 @@ { "id": 38, "name": "Longest Palindromic Substring", - "url": "https://leetcode.com/problems/longest-palindromic-substring/", + "url": "longest-palindromic-substring", "pattern": [ "Dynamic Programming" ], @@ -720,7 +720,7 @@ { "id": 39, "name": "Word Break", - "url": "https://leetcode.com/problems/word-break/", + "url": "word-break", "pattern": [ "Dynamic Programming" ], @@ -743,7 +743,7 @@ { "id": 40, "name": "Combination Sum IV", - "url": "https://leetcode.com/problems/combination-sum-iv/", + "url": "combination-sum-iv", "pattern": [ "Dynamic Programming" ], @@ -758,7 +758,7 @@ { "id": 41, "name": "Decode Ways", - "url": "https://leetcode.com/problems/decode-ways/", + "url": "decode-ways", "pattern": [ "Dynamic Programming" ], @@ -778,7 +778,7 @@ { "id": 42, "name": "Unique Paths", - "url": "https://leetcode.com/problems/unique-paths/", + "url": "unique-paths", "pattern": [ "Dynamic Programming" ], @@ -796,7 +796,7 @@ { "id": 43, "name": "Jump Game", - "url": "https://leetcode.com/problems/jump-game/", + "url": "jump-game", "pattern": [ "Dynamic Programming", "Greedy" @@ -816,7 +816,7 @@ { "id": 44, "name": "Palindromic Substrings", - "url": "https://leetcode.com/problems/palindromic-substrings/", + "url": "palindromic-substrings", "pattern": [ "Dynamic Programming" ], @@ -832,7 +832,7 @@ { "id": 45, "name": "Number of Longest Increasing Subsequence", - "url": "https://leetcode.com/problems/number-of-longest-increasing-subsequence/", + "url": "number-of-longest-increasing-subsequence", "pattern": [ "Dynamic Programming" ], @@ -846,7 +846,7 @@ { "id": 46, "name": "Partition Equal Subset Sum", - "url": "https://leetcode.com/problems/partition-equal-subset-sum/", + "url": "partition-equal-subset-sum", "pattern": [ "Dynamic Programming" ], @@ -865,7 +865,7 @@ { "id": 47, "name": "Partition to K Equal Sum Subsets", - "url": "https://leetcode.com/problems/partition-to-k-equal-sum-subsets/", + "url": "partition-to-k-equal-sum-subsets", "pattern": [ "Dynamic Programming" ], @@ -879,7 +879,7 @@ { "id": 48, "name": "Best Time to Buy and Sell Stock with Cooldown", - "url": "https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/", + "url": "best-time-to-buy-and-sell-stock-with-cooldown", "pattern": [ "Dynamic Programming" ], @@ -893,7 +893,7 @@ { "id": 49, "name": "Counting Bits", - "url": "https://leetcode.com/problems/counting-bits/", + "url": "counting-bits", "pattern": [ "Dynamic Programming", "Bit Manipulation" @@ -907,7 +907,7 @@ { "id": 50, "name": "Linked List Cycle", - "url": "https://leetcode.com/problems/linked-list-cycle/", + "url": "linked-list-cycle", "pattern": [ "Fast & Slow Pointers" ], @@ -925,7 +925,7 @@ { "id": 51, "name": "Middle of the Linked List", - "url": "https://leetcode.com/problems/middle-of-the-linked-list/", + "url": "middle-of-the-linked-list", "pattern": [ "Fast & Slow Pointers" ], @@ -942,7 +942,7 @@ { "id": 52, "name": "Palindrome Linked List", - "url": "https://leetcode.com/problems/palindrome-linked-list/", + "url": "palindrome-linked-list", "pattern": [ "Fast & Slow Pointers" ], @@ -959,7 +959,7 @@ { "id": 53, "name": "Remove Linked List Elements", - "url": "https://leetcode.com/problems/remove-linked-list-elements/", + "url": "remove-linked-list-elements", "pattern": [ "Fast & Slow Pointers" ], @@ -973,7 +973,7 @@ { "id": 54, "name": "Remove Duplicates from Sorted List", - "url": "https://leetcode.com/problems/remove-duplicates-from-sorted-list/", + "url": "remove-duplicates-from-sorted-list", "pattern": [ "Fast & Slow Pointers" ], @@ -989,7 +989,7 @@ { "id": 55, "name": "Linked List Cycle II", - "url": "https://leetcode.com/problems/linked-list-cycle-ii/", + "url": "linked-list-cycle-ii", "pattern": [ "Fast & Slow Pointers" ], @@ -1005,7 +1005,7 @@ { "id": 56, "name": "Add Two Numbers", - "url": "https://leetcode.com/problems/add-two-numbers/", + "url": "add-two-numbers", "pattern": [ "Fast & Slow Pointers" ], @@ -1027,7 +1027,7 @@ { "id": 57, "name": "Remove Nth Node From End Of List", - "url": "https://leetcode.com/problems/remove-nth-node-from-end-of-list/", + "url": "remove-nth-node-from-end-of-list", "pattern": [ "Fast & Slow Pointers" ], @@ -1044,7 +1044,7 @@ { "id": 58, "name": "Sort List", - "url": "https://leetcode.com/problems/sort-list/", + "url": "sort-list", "pattern": [ "Fast & Slow Pointers" ], @@ -1060,7 +1060,7 @@ { "id": 59, "name": "Reorder List", - "url": "https://leetcode.com/problems/reorder-list/", + "url": "reorder-list", "pattern": [ "Fast & Slow Pointers" ], @@ -1078,7 +1078,7 @@ { "id": 60, "name": "Clone Graph", - "url": "https://leetcode.com/problems/clone-graph/", + "url": "clone-graph", "pattern": [ "BFS", "DFS", @@ -1101,7 +1101,7 @@ { "id": 61, "name": "Pacific Atlantic Water Flow", - "url": "https://leetcode.com/problems/pacific-atlantic-water-flow/", + "url": "pacific-atlantic-water-flow", "pattern": [ "BFS", "DFS" @@ -1119,7 +1119,7 @@ { "id": 62, "name": "Number of Islands", - "url": "https://leetcode.com/problems/number-of-islands/", + "url": "number-of-islands", "pattern": [ "BFS", "DFS", @@ -1147,7 +1147,7 @@ { "id": 63, "name": "Graph Valid Tree", - "url": "https://leetcode.com/problems/graph-valid-tree/", + "url": "graph-valid-tree", "pattern": [ "BFS", "DFS", @@ -1165,7 +1165,7 @@ { "id": 64, "name": "Number of Connected Components in an Undirected Graph", - "url": "https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/", + "url": "number-of-connected-components-in-an-undirected-graph", "pattern": [ "BFS", "DFS", @@ -1184,7 +1184,7 @@ { "id": 65, "name": "Reverse Linked List", - "url": "https://leetcode.com/problems/reverse-linked-list/", + "url": "reverse-linked-list", "pattern": [ "In-place reversal of a linked list" ], @@ -1201,7 +1201,7 @@ { "id": 66, "name": "Reverse Linked List II", - "url": "https://leetcode.com/problems/reverse-linked-list-ii/", + "url": "reverse-linked-list-ii", "pattern": [ "In-place reversal of a linked list" ], @@ -1218,7 +1218,7 @@ { "id": 67, "name": "Rotate List", - "url": "https://leetcode.com/problems/rotate-list/", + "url": "rotate-list", "pattern": [ "In-place reversal of a linked list" ], @@ -1236,7 +1236,7 @@ { "id": 68, "name": "Swap Nodes in Pairs", - "url": "https://leetcode.com/problems/swap-nodes-in-pairs/", + "url": "swap-nodes-in-pairs", "pattern": [ "In-place reversal of a linked list" ], @@ -1251,7 +1251,7 @@ { "id": 69, "name": "Odd Even Linked List", - "url": "https://leetcode.com/problems/odd-even-linked-list/", + "url": "odd-even-linked-list", "pattern": [ "In-place reversal of a linked list" ], @@ -1269,7 +1269,7 @@ { "id": 70, "name": "Reverse Nodes in k-Group", - "url": "https://leetcode.com/problems/reverse-nodes-in-k-group/", + "url": "reverse-nodes-in-k-group", "pattern": [ "In-place reversal of a linked list" ], @@ -1288,7 +1288,7 @@ { "id": 71, "name": "Merge Two Sorted Lists", - "url": "https://leetcode.com/problems/merge-two-sorted-lists/", + "url": "merge-two-sorted-lists", "pattern": [ "Two Pointers" ], @@ -1308,7 +1308,7 @@ { "id": 72, "name": "Kth Smallest Element in a Sorted Matrix", - "url": "https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/", + "url": "kth-smallest-element-in-a-sorted-matrix", "pattern": [ "Binary Search", "Heap" @@ -1325,7 +1325,7 @@ { "id": 73, "name": "Find K Pairs with Smallest Sums", - "url": "https://leetcode.com/problems/find-k-pairs-with-smallest-sums/", + "url": "find-k-pairs-with-smallest-sums", "pattern": [ "Heap" ], @@ -1340,7 +1340,7 @@ { "id": 74, "name": "Merge k Sorted Lists", - "url": "https://leetcode.com/problems/merge-k-sorted-lists/", + "url": "merge-k-sorted-lists", "pattern": [ "Heap" ], @@ -1362,7 +1362,7 @@ { "id": 75, "name": "Smallest Range Covering Elements from K Lists", - "url": "https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/", + "url": "smallest-range-covering-elements-from-k-lists", "pattern": [ "Heap" ], @@ -1378,7 +1378,7 @@ { "id": 76, "name": "Meeting Rooms", - "url": "https://leetcode.com/problems/meeting-rooms", + "url": "meeting-rooms", "pattern": [ "Intervals" ], @@ -1393,7 +1393,7 @@ { "id": 77, "name": "Merge Intervals", - "url": "https://leetcode.com/problems/merge-intervals/", + "url": "merge-intervals", "pattern": [ "Intervals" ], @@ -1419,7 +1419,7 @@ { "id": 78, "name": "Interval List Intersections", - "url": "https://leetcode.com/problems/interval-list-intersections/", + "url": "interval-list-intersections", "pattern": [ "Intervals" ], @@ -1434,7 +1434,7 @@ { "id": 79, "name": "Non-overlapping Intervals", - "url": "https://leetcode.com/problems/non-overlapping-intervals/", + "url": "non-overlapping-intervals", "pattern": [ "Intervals" ], @@ -1449,7 +1449,7 @@ { "id": 80, "name": "Meeting Rooms II", - "url": "https://leetcode.com/problems/meeting-rooms-ii/", + "url": "meeting-rooms-ii", "pattern": [ "Heap", "Intervals" @@ -1475,7 +1475,7 @@ { "id": 81, "name": "Task Scheduler", - "url": "https://leetcode.com/problems/task-scheduler/", + "url": "task-scheduler", "pattern": [ "Greedy", "Heap" @@ -1494,7 +1494,7 @@ { "id": 82, "name": "Minimum Number of Arrows to Burst Balloons", - "url": "https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/", + "url": "minimum-number-of-arrows-to-burst-balloons", "pattern": [ "Greedy" ], @@ -1507,7 +1507,7 @@ { "id": 83, "name": "Insert Interval", - "url": "https://leetcode.com/problems/insert-interval/", + "url": "insert-interval", "pattern": [ "Intervals" ], @@ -1526,7 +1526,7 @@ { "id": 84, "name": "Employee Free Time", - "url": "https://leetcode.com/problems/employee-free-time/", + "url": "employee-free-time", "pattern": [ "Heap", "Greedy" @@ -1548,7 +1548,7 @@ { "id": 85, "name": "Binary Search", - "url": "https://leetcode.com/problems/binary-search/", + "url": "binary-search", "pattern": [ "Binary Search" ], @@ -1564,7 +1564,7 @@ { "id": 86, "name": "Find Smallest Letter Greater Than Target", - "url": "https://leetcode.com/problems/find-smallest-letter-greater-than-target/", + "url": "find-smallest-letter-greater-than-target", "pattern": [ "Binary Search" ], @@ -1577,7 +1577,7 @@ { "id": 87, "name": "Peak Index in a Mountain Array", - "url": "https://leetcode.com/problems/peak-index-in-a-mountain-array/", + "url": "peak-index-in-a-mountain-array", "pattern": [ "Binary Search" ], @@ -1593,7 +1593,7 @@ { "id": 88, "name": "Find Minimum in Rotated Sorted Array", - "url": "https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/", + "url": "find-minimum-in-rotated-sorted-array", "pattern": [ "Binary Search" ], @@ -1612,7 +1612,7 @@ { "id": 89, "name": "Find Peak Element", - "url": "https://leetcode.com/problems/find-peak-element/", + "url": "find-peak-element", "pattern": [ "Binary Search" ], @@ -1629,7 +1629,7 @@ { "id": 90, "name": "Search in Rotated Sorted Array", - "url": "https://leetcode.com/problems/search-in-rotated-sorted-array/", + "url": "search-in-rotated-sorted-array", "pattern": [ "Binary Search" ], @@ -1652,7 +1652,7 @@ { "id": 91, "name": "Search in Rotated Sorted Array II", - "url": "https://leetcode.com/problems/search-in-rotated-sorted-array-ii/", + "url": "search-in-rotated-sorted-array-ii", "pattern": [ "Binary Search" ], @@ -1668,7 +1668,7 @@ { "id": 92, "name": "Search a 2D Matrix", - "url": "https://leetcode.com/problems/search-a-2d-matrix/", + "url": "search-a-2d-matrix", "pattern": [ "Binary Search" ], @@ -1687,7 +1687,7 @@ { "id": 93, "name": "Search a 2D Matrix II", - "url": "https://leetcode.com/problems/search-a-2d-matrix-ii/", + "url": "search-a-2d-matrix-ii", "pattern": [ "Binary Search" ], @@ -1704,7 +1704,7 @@ { "id": 94, "name": "Find K Closest Elements", - "url": "https://leetcode.com/problems/find-k-closest-elements/", + "url": "find-k-closest-elements", "pattern": [ "Binary Search" ], @@ -1722,7 +1722,7 @@ { "id": 95, "name": "Count of Range Sum", - "url": "https://leetcode.com/problems/count-of-range-sum/", + "url": "count-of-range-sum", "pattern": [ "Binary Search" ], @@ -1735,7 +1735,7 @@ { "id": 96, "name": "Minimum Size Subarray Sum", - "url": "https://leetcode.com/problems/minimum-size-subarray-sum/", + "url": "minimum-size-subarray-sum", "pattern": [ "Sliding Window" ], @@ -1751,7 +1751,7 @@ { "id": 97, "name": "Fruit Into Baskets", - "url": "https://leetcode.com/problems/fruit-into-baskets/", + "url": "fruit-into-baskets", "pattern": [ "Sliding Window" ], @@ -1764,7 +1764,7 @@ { "id": 98, "name": "Permutation in String", - "url": "https://leetcode.com/problems/permutation-in-string/", + "url": "permutation-in-string", "pattern": [ "Sliding Window" ], @@ -1778,7 +1778,7 @@ { "id": 99, "name": "Longest Repeating Character Replacement", - "url": "https://leetcode.com/problems/longest-repeating-character-replacement/", + "url": "longest-repeating-character-replacement", "pattern": [ "Sliding Window" ], @@ -1794,7 +1794,7 @@ { "id": 100, "name": "Sliding Window Maximum", - "url": "https://leetcode.com/problems/sliding-window-maximum/", + "url": "sliding-window-maximum", "pattern": [ "Sliding Window" ], @@ -1817,7 +1817,7 @@ { "id": 101, "name": "Longest Substring Without Repeating Characters", - "url": "https://leetcode.com/problems/longest-substring-without-repeating-characters/", + "url": "longest-substring-without-repeating-characters", "pattern": [ "Sliding Window" ], @@ -1838,7 +1838,7 @@ { "id": 102, "name": "Minimum Number of K Consecutive Bit Flips", - "url": "https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/", + "url": "minimum-number-of-k-consecutive-bit-flips", "pattern": [ "Sliding Window" ], @@ -1851,7 +1851,7 @@ { "id": 103, "name": "Count Unique Characters of All Substrings of a Given String", - "url": "https://leetcode.com/problems/count-unique-characters-of-all-substrings-of-a-given-string/", + "url": "count-unique-characters-of-all-substrings-of-a-given-string", "pattern": [ "Sliding Window" ], @@ -1864,7 +1864,7 @@ { "id": 104, "name": "Minimum Window Substring", - "url": "https://leetcode.com/problems/minimum-window-substring/", + "url": "minimum-window-substring", "pattern": [ "Sliding Window" ], @@ -1883,7 +1883,7 @@ { "id": 105, "name": "Substring with Concatenation of All Words", - "url": "https://leetcode.com/problems/substring-with-concatenation-of-all-words/", + "url": "substring-with-concatenation-of-all-words", "pattern": [ "Sliding Window" ], @@ -1896,7 +1896,7 @@ { "id": 106, "name": "Kth Smallest Element in a BST", - "url": "https://leetcode.com/problems/kth-smallest-element-in-a-bst/", + "url": "kth-smallest-element-in-a-bst", "pattern": [ "DFS" ], @@ -1910,7 +1910,7 @@ { "id": 107, "name": "K Closest Points to Origin", - "url": "https://leetcode.com/problems/k-closest-points-to-origin/", + "url": "k-closest-points-to-origin", "pattern": [ "Heap" ], @@ -1927,7 +1927,7 @@ { "id": 108, "name": "Top K Frequent Elements", - "url": "https://leetcode.com/problems/top-k-frequent-elements/", + "url": "top-k-frequent-elements", "pattern": [ "Heap" ], @@ -1950,7 +1950,7 @@ { "id": 109, "name": "Sort Characters By Frequency", - "url": "https://leetcode.com/problems/sort-characters-by-frequency/", + "url": "sort-characters-by-frequency", "pattern": [ "Heap" ], @@ -1965,7 +1965,7 @@ { "id": 110, "name": "Kth Largest Element in an Array", - "url": "https://leetcode.com/problems/kth-largest-element-in-an-array/", + "url": "kth-largest-element-in-an-array", "pattern": [ "Heap", "QuickSelect" @@ -1986,7 +1986,7 @@ { "id": 111, "name": "Reorganize String", - "url": "https://leetcode.com/problems/reorganize-string/", + "url": "reorganize-string", "pattern": [ "Greedy", "Heap" @@ -2005,7 +2005,7 @@ { "id": 112, "name": "Rearrange String k Distance Apart", - "url": "https://leetcode.com/problems/rearrange-string-k-distance-apart", + "url": "rearrange-string-k-distance-apart", "pattern": [ "Greedy", "Heap" @@ -2019,7 +2019,7 @@ { "id": 113, "name": "Course Schedule III", - "url": "https://leetcode.com/problems/course-schedule-iii/", + "url": "course-schedule-iii", "pattern": [ "Greedy", "Heap" @@ -2033,7 +2033,7 @@ { "id": 114, "name": "Maximum Frequency Stack", - "url": "https://leetcode.com/problems/maximum-frequency-stack/", + "url": "maximum-frequency-stack", "pattern": [ "Bucket Sort", "Heap" @@ -2050,7 +2050,7 @@ { "id": 115, "name": "Course Schedule", - "url": "https://leetcode.com/problems/course-schedule/", + "url": "course-schedule", "pattern": [ "BFS", "DFS", @@ -2072,7 +2072,7 @@ { "id": 116, "name": "Course Schedule II", - "url": "https://leetcode.com/problems/course-schedule-ii/", + "url": "course-schedule-ii", "pattern": [ "BFS", "DFS", @@ -2096,7 +2096,7 @@ { "id": 117, "name": "Minimum Height Trees", - "url": "https://leetcode.com/problems/minimum-height-trees/", + "url": "minimum-height-trees", "pattern": [ "BFS", "Graph", @@ -2114,7 +2114,7 @@ { "id": 118, "name": "Alien Dictionary", - "url": "https://leetcode.com/problems/alien-dictionary", + "url": "alien-dictionary", "pattern": [ "Graph", "Topological Sort" @@ -2134,7 +2134,7 @@ { "id": 119, "name": "Sequence Reconstruction", - "url": "https://leetcode.com/problems/sequence-reconstruction", + "url": "sequence-reconstruction", "pattern": [ "Graph", "Topological Sort" @@ -2148,7 +2148,7 @@ { "id": 120, "name": "Binary Tree Level Order Traversal II", - "url": "https://leetcode.com/problems/binary-tree-level-order-traversal-ii/", + "url": "binary-tree-level-order-traversal-ii", "pattern": [ "BFS" ], @@ -2161,7 +2161,7 @@ { "id": 121, "name": "Average of Levels in Binary Tree", - "url": "https://leetcode.com/problems/average-of-levels-in-binary-tree/", + "url": "average-of-levels-in-binary-tree", "pattern": [ "BFS" ], @@ -2175,7 +2175,7 @@ { "id": 122, "name": "Minimum Depth of Binary Tree", - "url": "https://leetcode.com/problems/minimum-depth-of-binary-tree/", + "url": "minimum-depth-of-binary-tree", "pattern": [ "BFS", "DFS" @@ -2190,7 +2190,7 @@ { "id": 123, "name": "Binary Tree Level Order Traversal", - "url": "https://leetcode.com/problems/binary-tree-level-order-traversal/", + "url": "binary-tree-level-order-traversal", "pattern": [ "BFS" ], @@ -2210,7 +2210,7 @@ { "id": 124, "name": "Binary Tree Zigzag Level Order Traversal", - "url": "https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/", + "url": "binary-tree-zigzag-level-order-traversal", "pattern": [ "BFS" ], @@ -2231,7 +2231,7 @@ { "id": 125, "name": "Populating Next Right Pointers in Each Node", - "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node/", + "url": "populating-next-right-pointers-in-each-node", "pattern": [ "BFS" ], @@ -2247,7 +2247,7 @@ { "id": 126, "name": "Populating Next Right Pointers in Each Node II", - "url": "https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/", + "url": "populating-next-right-pointers-in-each-node-ii", "pattern": [ "BFS" ], @@ -2263,7 +2263,7 @@ { "id": 127, "name": "Binary Tree Right Side View", - "url": "https://leetcode.com/problems/binary-tree-right-side-view/", + "url": "binary-tree-right-side-view", "pattern": [ "BFS", "DFS" @@ -2283,7 +2283,7 @@ { "id": 128, "name": "All Nodes Distance K in Binary Tree", - "url": "https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/", + "url": "all-nodes-distance-k-in-binary-tree", "pattern": [ "BFS", "DFS" @@ -2300,7 +2300,7 @@ { "id": 129, "name": "Same Tree", - "url": "https://leetcode.com/problems/same-tree/", + "url": "same-tree", "pattern": [ "DFS" ], @@ -2320,7 +2320,7 @@ { "id": 130, "name": "Path Sum", - "url": "https://leetcode.com/problems/path-sum/", + "url": "path-sum", "pattern": [ "DFS" ], @@ -2335,7 +2335,7 @@ { "id": 131, "name": "Maximum Depth of Binary Tree", - "url": "https://leetcode.com/problems/maximum-depth-of-binary-tree/", + "url": "maximum-depth-of-binary-tree", "pattern": [ "DFS" ], @@ -2351,7 +2351,7 @@ { "id": 132, "name": "Diameter of Binary Tree", - "url": "https://leetcode.com/problems/diameter-of-binary-tree/", + "url": "diameter-of-binary-tree", "pattern": [ "DFS" ], @@ -2370,7 +2370,7 @@ { "id": 133, "name": "Merge Two Binary Trees", - "url": "https://leetcode.com/problems/merge-two-binary-trees/", + "url": "merge-two-binary-trees", "pattern": [ "DFS" ], @@ -2384,7 +2384,7 @@ { "id": 134, "name": "Lowest Common Ancestor of a Binary Search Tree", - "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/", + "url": "lowest-common-ancestor-of-a-binary-search-tree", "pattern": [ "DFS" ], @@ -2401,7 +2401,7 @@ { "id": 135, "name": "Subtree of Another Tree", - "url": "https://leetcode.com/problems/subtree-of-another-tree/", + "url": "subtree-of-another-tree", "pattern": [ "DFS" ], @@ -2416,7 +2416,7 @@ { "id": 136, "name": "Invert Binary Tree", - "url": "https://leetcode.com/problems/invert-binary-tree/", + "url": "invert-binary-tree", "pattern": [ "DFS" ], @@ -2433,7 +2433,7 @@ { "id": 137, "name": "Path Sum II", - "url": "https://leetcode.com/problems/path-sum-ii/", + "url": "path-sum-ii", "pattern": [ "DFS" ], @@ -2450,7 +2450,7 @@ { "id": 138, "name": "Path Sum III", - "url": "https://leetcode.com/problems/path-sum-iii/", + "url": "path-sum-iii", "pattern": [ "DFS" ], @@ -2466,7 +2466,7 @@ { "id": 139, "name": "Lowest Common Ancestor of a Binary Tree", - "url": "https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/", + "url": "lowest-common-ancestor-of-a-binary-tree", "pattern": [ "DFS" ], @@ -2489,7 +2489,7 @@ { "id": 140, "name": "Maximum Binary Tree", - "url": "https://leetcode.com/problems/maximum-binary-tree/", + "url": "maximum-binary-tree", "pattern": [ "DFS" ], @@ -2502,7 +2502,7 @@ { "id": 141, "name": "Maximum Width of Binary Tree", - "url": "https://leetcode.com/problems/maximum-width-of-binary-tree/", + "url": "maximum-width-of-binary-tree", "pattern": [ "DFS" ], @@ -2519,7 +2519,7 @@ { "id": 142, "name": "Construct Binary Tree from Preorder and Inorder Traversal", - "url": "https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/", + "url": "construct-binary-tree-from-preorder-and-inorder-traversal", "pattern": [ "DFS" ], @@ -2536,7 +2536,7 @@ { "id": 143, "name": "Validate Binary Search Tree", - "url": "https://leetcode.com/problems/validate-binary-search-tree/", + "url": "validate-binary-search-tree", "pattern": [ "DFS" ], @@ -2557,7 +2557,7 @@ { "id": 144, "name": "Implement Trie (Prefix Tree)", - "url": "https://leetcode.com/problems/implement-trie-prefix-tree/", + "url": "implement-trie-prefix-tree", "pattern": [ "Design", "Trie" @@ -2576,7 +2576,7 @@ { "id": 145, "name": "Binary Tree Maximum Path Sum", - "url": "https://leetcode.com/problems/binary-tree-maximum-path-sum/", + "url": "binary-tree-maximum-path-sum", "pattern": [ "DFS" ], @@ -2596,7 +2596,7 @@ { "id": 146, "name": "Serialize and Deserialize Binary Tree", - "url": "https://leetcode.com/problems/serialize-and-deserialize-binary-tree/", + "url": "serialize-and-deserialize-binary-tree", "pattern": [ "Design" ], @@ -2619,7 +2619,7 @@ { "id": 147, "name": "Word Search II", - "url": "https://leetcode.com/problems/word-search-ii/", + "url": "word-search-ii", "pattern": [ "DFS", "Trie" @@ -2642,7 +2642,7 @@ { "id": 148, "name": "Find Median from Data Stream", - "url": "https://leetcode.com/problems/find-median-from-data-stream/", + "url": "find-median-from-data-stream", "pattern": [ "Heap" ], @@ -2662,7 +2662,7 @@ { "id": 149, "name": "Sliding Window Median", - "url": "https://leetcode.com/problems/sliding-window-median/", + "url": "sliding-window-median", "pattern": [ "Heap" ], @@ -2676,7 +2676,7 @@ { "id": 150, "name": "Two Sum", - "url": "https://leetcode.com/problems/two-sum/", + "url": "two-sum", "pattern": [ "Two Pointers" ], @@ -2703,7 +2703,7 @@ { "id": 151, "name": "Squares of a Sorted Array", - "url": "https://leetcode.com/problems/squares-of-a-sorted-array/", + "url": "squares-of-a-sorted-array", "pattern": [ "Two Pointers" ], @@ -2721,7 +2721,7 @@ { "id": 152, "name": "Backspace String Compare", - "url": "https://leetcode.com/problems/backspace-string-compare/", + "url": "backspace-string-compare", "pattern": [ "Two Pointers" ], @@ -2738,7 +2738,7 @@ { "id": 153, "name": "3 Sum", - "url": "https://leetcode.com/problems/3sum/", + "url": "3sum", "pattern": [ "Two Pointers" ], @@ -2763,7 +2763,7 @@ { "id": 154, "name": "3 Sum Closest", - "url": "https://leetcode.com/problems/3sum-closest/", + "url": "3sum-closest", "pattern": [ "Two Pointers" ], @@ -2783,7 +2783,7 @@ { "id": 155, "name": "Subarrays with Product Less than K", - "url": "https://leetcode.com/problems/subarray-product-less-than-k/", + "url": "subarray-product-less-than-k", "pattern": [ "Two Pointers" ], @@ -2798,7 +2798,7 @@ { "id": 156, "name": "Sort Colours", - "url": "https://leetcode.com/problems/sort-colors/", + "url": "sort-colors", "pattern": [ "Two Pointers" ], @@ -2817,7 +2817,7 @@ { "id": 157, "name": "Trapping Rain Water", - "url": "https://leetcode.com/problems/trapping-rain-water/", + "url": "trapping-rain-water", "pattern": [ "Two Pointers" ], @@ -2843,7 +2843,7 @@ { "id": 158, "name": "Container With Most Water", - "url": "https://leetcode.com/problems/container-with-most-water/", + "url": "container-with-most-water", "pattern": [ "Two Pointers" ], @@ -2863,7 +2863,7 @@ { "id": 159, "name": "Longest Word in Dictionary", - "url": "https://leetcode.com/problems/longest-word-in-dictionary/", + "url": "longest-word-in-dictionary", "pattern": [ "Trie" ], @@ -2876,7 +2876,7 @@ { "id": 160, "name": "Index Pairs of a String", - "url": "https://leetcode.com/problems/index-pairs-of-a-string/", + "url": "index-pairs-of-a-string", "pattern": [ "Trie" ], @@ -2889,7 +2889,7 @@ { "id": 161, "name": "Maximum XOR of Two Numbers in an Array", - "url": "https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array", + "url": "maximum-xor-of-two-numbers-in-an-array", "pattern": [ "Trie" ], @@ -2902,7 +2902,7 @@ { "id": 162, "name": "Concatenated Words", - "url": "https://leetcode.com/problems/concatenated-words/", + "url": "concatenated-words", "pattern": [ "Trie" ], @@ -2916,7 +2916,7 @@ { "id": 163, "name": "Prefix and Suffix Search", - "url": "https://leetcode.com/problems/prefix-and-suffix-search/", + "url": "prefix-and-suffix-search", "pattern": [ "Trie" ], @@ -2929,7 +2929,7 @@ { "id": 164, "name": "Palindrome Pairs", - "url": "https://leetcode.com/problems/palindrome-pairs/", + "url": "palindrome-pairs", "pattern": [ "Trie" ], @@ -2944,7 +2944,7 @@ { "id": 165, "name": "Design Search Autocomplete System", - "url": "https://leetcode.com/problems/design-search-autocomplete-system/", + "url": "design-search-autocomplete-system", "pattern": [ "Trie" ], @@ -2962,7 +2962,7 @@ { "id": 166, "name": "Word Squares", - "url": "https://leetcode.com/problems/word-squares/", + "url": "word-squares", "pattern": [ "Trie" ], @@ -2977,7 +2977,7 @@ { "id": 167, "name": "Sort Items by Groups Respecting Dependencies", - "url": "https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/", + "url": "sort-items-by-groups-respecting-dependencies", "pattern": [ "DFS", "Graph", @@ -2992,7 +2992,7 @@ { "id": 168, "name": "Median of Two Sorted Arrays", - "url": "https://leetcode.com/problems/median-of-two-sorted-arrays/", + "url": "median-of-two-sorted-arrays", "pattern": [ "Binary Search" ], @@ -3013,7 +3013,7 @@ { "id": 169, "name": "Majority Element", - "url": "https://leetcode.com/problems/majority-element/", + "url": "majority-element", "pattern": [ "Sorting" ], @@ -3030,7 +3030,7 @@ { "id": 170, "name": "Convert 1D Array Into 2D Array", - "url": "https://leetcode.com/problems/convert-1d-array-into-2d-array/", + "url": "convert-1d-array-into-2d-array", "pattern": [ "Arrays" ], From dc741bb77b30c7f1ac4534c3ca3acc6bd0fb79be Mon Sep 17 00:00:00 2001 From: Leo Stepanewk <44349262+leo-step@users.noreply.github.com> Date: Mon, 1 Aug 2022 14:23:02 -0400 Subject: [PATCH 7/7] remove urlparse --- cron/update_questions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cron/update_questions.py b/cron/update_questions.py index 4e17e761..eec4e4e9 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -1,5 +1,4 @@ import requests -from urllib.parse import urlparse from datetime import datetime import json