diff --git a/.github/workflows/run-cron.yml b/.github/workflows/run-cron.yml index 9e132a73..ac6df9ad 100644 --- a/.github/workflows/run-cron.yml +++ b/.github/workflows/run-cron.yml @@ -1,6 +1,10 @@ name: run-cron -on: workflow_dispatch +on: + schedule: + - cron: '0 0 * * 0' + + workflow_dispatch: jobs: update: diff --git a/cron/update_questions.py b/cron/update_questions.py index eec4e4e9..3bf0af2e 100644 --- a/cron/update_questions.py +++ b/cron/update_questions.py @@ -9,7 +9,7 @@ } ''' -questions_file = "questions.json" +questions_file = "../src/data/questions.json" print("Reading questions file") diff --git a/package-lock.json b/package-lock.json index e2304b67..b6ecb594 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "react-ga": "^2.7.0", "react-icons": "^3.11.0", "react-markdown": "^4.3.1", - "react-scripts": "4.0.0", + "react-scripts": "^4.0.0", "react-scroll": "^1.8.0", "react-table": "^7.6.3", "react-test-renderer": "^16.14.0", @@ -18578,6 +18578,14 @@ }, "optionalDependencies": { "fsevents": "^2.1.3" + }, + "peerDependencies": { + "typescript": "^3.2.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/react-scripts/node_modules/camelcase": { diff --git a/package.json b/package.json index fc71c24d..5866f498 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "react-ga": "^2.7.0", "react-icons": "^3.11.0", "react-markdown": "^4.3.1", - "react-scripts": "4.0.0", + "react-scripts": "^4.0.0", "react-scroll": "^1.8.0", "react-table": "^7.6.3", "react-test-renderer": "^16.14.0", diff --git a/src/components/Table/index.js b/src/components/Table/index.js index 7751429b..2f3ceecb 100644 --- a/src/components/Table/index.js +++ b/src/components/Table/index.js @@ -239,7 +239,7 @@ const Table = () => { return ( { Event( 'Table', @@ -266,9 +266,7 @@ const Table = () => { accessor: 'solutions', disableSortBy: true, Cell: cellInfo => { - const url = cellInfo.row.original.premium - ? `${cellInfo.row.original.url}/` - : cellInfo.row.original.url; + const url = `https://leetcode.com/problems/${cellInfo.row.original.url}/`; return ( sortBy[a.difficulty] - sortBy[b.difficulty], ); diff --git a/questions.json b/src/data/questions.json similarity index 70% rename from questions.json rename to src/data/questions.json index 601d0eb7..b5e1fac9 100644 --- a/questions.json +++ b/src/data/questions.json @@ -1,13 +1,11 @@ { - "updated": "2022-08-01T14:20:10.155368", + "updated": "2022-08-01T14:33:56.000437", "data": [ { "id": 0, "name": "Contains Duplicate", "url": "contains-duplicate", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Easy", "premium": false, "companies": [ @@ -24,57 +22,34 @@ "id": 1, "name": "Missing Number", "url": "missing-number", - "pattern": [ - "Arrays", - "Bit Manipulation" - ], + "pattern": ["Arrays", "Bit Manipulation"], "difficulty": "Easy", "premium": false, - "companies": [ - "Microsoft", - "Facebook", - "Amazon", - "Google", - "Adobe" - ] + "companies": ["Microsoft", "Facebook", "Amazon", "Google", "Adobe"] }, { "id": 2, "name": "Find All Numbers Disappeared in an Array", "url": "find-all-numbers-disappeared-in-an-array", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] + "companies": ["Facebook", "Amazon"] }, { "id": 3, "name": "Single Number", "url": "single-number", - "pattern": [ - "Arrays", - "Bit Manipulation" - ], + "pattern": ["Arrays", "Bit Manipulation"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Adobe" - ] + "companies": ["Amazon", "Microsoft", "Adobe"] }, { "id": 4, "name": "Product of Array Except Self", "url": "product-of-array-except-self", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Medium", "premium": false, "companies": [ @@ -95,11 +70,7 @@ "id": 5, "name": "Find the Duplicate Number", "url": "find-the-duplicate-number", - "pattern": [ - "Arrays", - "Binary Search", - "Two Pointers" - ], + "pattern": ["Arrays", "Binary Search", "Two Pointers"], "difficulty": "Medium", "premium": false, "companies": [ @@ -116,23 +87,16 @@ "id": 6, "name": "Find All Duplicates in an Array", "url": "find-all-duplicates-in-an-array", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Google" - ] + "companies": ["Amazon", "Google"] }, { "id": 7, "name": "Set Matrix Zeroes", "url": "set-matrix-zeroes", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Medium", "premium": false, "companies": [ @@ -149,9 +113,7 @@ "id": 8, "name": "Spiral Matrix", "url": "spiral-matrix", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Medium", "premium": false, "companies": [ @@ -170,9 +132,7 @@ "id": 9, "name": "Rotate Image", "url": "rotate-image", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Medium", "premium": false, "companies": [ @@ -189,9 +149,7 @@ "id": 10, "name": "Word Search", "url": "word-search", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, "companies": [ @@ -213,9 +171,7 @@ "id": 11, "name": "First Missing Positive", "url": "first-missing-positive", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Hard", "premium": false, "companies": [ @@ -231,9 +187,7 @@ "id": 12, "name": "Longest Consecutive Sequence", "url": "longest-consecutive-sequence", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Medium", "premium": false, "companies": [ @@ -252,22 +206,16 @@ "id": 13, "name": "Letter Case Permutation", "url": "letter-case-permutation", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "Microsoft" - ] + "companies": ["Microsoft"] }, { "id": 14, "name": "Subsets", "url": "subsets", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, "companies": [ @@ -284,24 +232,16 @@ "id": 15, "name": "Subsets II", "url": "subsets-ii", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Bloomberg" - ] + "companies": ["Facebook", "Amazon", "Bloomberg"] }, { "id": 16, "name": "Permutations", "url": "permutations", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, "companies": [ @@ -320,41 +260,25 @@ "id": 17, "name": "Permutations II", "url": "permutations-ii", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "LinkedIn", - "Facebook", - "Amazon", - "Adobe", - "Apple" - ] + "companies": ["LinkedIn", "Facebook", "Amazon", "Adobe", "Apple"] }, { "id": 18, "name": "Combinations", "url": "combinations", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "Google", - "Facebook", - "Amazon" - ] + "companies": ["Google", "Facebook", "Amazon"] }, { "id": 19, "name": "Combination Sum", "url": "combination-sum", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, "companies": [ @@ -374,36 +298,25 @@ "id": 20, "name": "Combination Sum II", "url": "combination-sum-ii", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] + "companies": ["Facebook", "Amazon"] }, { "id": 21, "name": "Combination Sum III", "url": "combination-sum-iii", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 22, "name": "Generate Parentheses", "url": "generate-parentheses", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, "companies": [ @@ -422,39 +335,25 @@ "id": 23, "name": "Target Sum", "url": "target-sum", - "pattern": [ - "DFS", - "Dynamic Programming" - ], + "pattern": ["DFS", "Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Adobe" - ] + "companies": ["Facebook", "Amazon", "Microsoft", "Adobe"] }, { "id": 24, "name": "Palindrome Partitioning", "url": "palindrome-partitioning", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, - "companies": [ - "Apple" - ] + "companies": ["Apple"] }, { "id": 25, "name": "Letter Combinations of a Phone Number", "url": "letter-combinations-of-a-phone-number", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": false, "companies": [ @@ -477,40 +376,25 @@ "id": 26, "name": "Generalized Abbreviation", "url": "generalized-abbreviation", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Medium", "premium": true, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 27, "name": "Sudoku Solver", "url": "sudoku-solver", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Hard", "premium": false, - "companies": [ - "Google", - "Intuit", - "Amazon", - "Apple", - "Uber", - "Bloomberg" - ] + "companies": ["Google", "Intuit", "Amazon", "Apple", "Uber", "Bloomberg"] }, { "id": 28, "name": "N-Queens", "url": "n-queens", - "pattern": [ - "Backtracking" - ], + "pattern": ["Backtracking"], "difficulty": "Hard", "premium": false, "companies": [ @@ -527,9 +411,7 @@ "id": 29, "name": "Climbing Stairs", "url": "climbing-stairs", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Easy", "premium": false, "companies": [ @@ -545,9 +427,7 @@ "id": 30, "name": "House Robber", "url": "house-robber", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -566,9 +446,7 @@ "id": 31, "name": "Best Time to Buy and Sell Stock", "url": "best-time-to-buy-and-sell-stock", - "pattern": [ - "Greedy" - ], + "pattern": ["Greedy"], "difficulty": "Easy", "premium": false, "companies": [ @@ -593,9 +471,7 @@ "id": 32, "name": "Maximum Subarray", "url": "maximum-subarray", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -617,53 +493,34 @@ "id": 33, "name": "Range Sum Query - Immutable", "url": "range-sum-query-immutable", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Adobe" - ] + "companies": ["Facebook", "Adobe"] }, { "id": 34, "name": "House Robber II", "url": "house-robber-ii", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Google" - ] + "companies": ["Amazon", "Google"] }, { "id": 35, "name": "Coin Change", "url": "coin-change", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Google", - "Apple" - ] + "companies": ["Amazon", "Microsoft", "Google", "Apple"] }, { "id": 36, "name": "Maximum Product Subarray", "url": "maximum-product-subarray", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -680,9 +537,7 @@ "id": 37, "name": "Longest Increasing Subsequence", "url": "longest-increasing-subsequence", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -698,9 +553,7 @@ "id": 38, "name": "Longest Palindromic Substring", "url": "longest-palindromic-substring", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -721,9 +574,7 @@ "id": 39, "name": "Word Break", "url": "word-break", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -744,24 +595,16 @@ "id": 40, "name": "Combination Sum IV", "url": "combination-sum-iv", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Google", - "Amazon", - "Facebook" - ] + "companies": ["Google", "Amazon", "Facebook"] }, { "id": 41, "name": "Decode Ways", "url": "decode-ways", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -779,9 +622,7 @@ "id": 42, "name": "Unique Paths", "url": "unique-paths", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -797,10 +638,7 @@ "id": 43, "name": "Jump Game", "url": "jump-game", - "pattern": [ - "Dynamic Programming", - "Greedy" - ], + "pattern": ["Dynamic Programming", "Greedy"], "difficulty": "Medium", "premium": false, "companies": [ @@ -817,39 +655,25 @@ "id": 44, "name": "Palindromic Substrings", "url": "palindromic-substrings", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Google", - "Goldman Sachs" - ] + "companies": ["Facebook", "Microsoft", "Google", "Goldman Sachs"] }, { "id": 45, "name": "Number of Longest Increasing Subsequence", "url": "number-of-longest-increasing-subsequence", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Google" - ] + "companies": ["Amazon", "Google"] }, { "id": 46, "name": "Partition Equal Subset Sum", "url": "partition-equal-subset-sum", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, "companies": [ @@ -866,51 +690,34 @@ "id": 47, "name": "Partition to K Equal Sum Subsets", "url": "partition-to-k-equal-sum-subsets", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "LinkedIn", - "Facebook" - ] + "companies": ["LinkedIn", "Facebook"] }, { "id": 48, "name": "Best Time to Buy and Sell Stock with Cooldown", "url": "best-time-to-buy-and-sell-stock-with-cooldown", - "pattern": [ - "Dynamic Programming" - ], + "pattern": ["Dynamic Programming"], "difficulty": "Medium", "premium": false, - "companies": [ - "Adobe", - "Bloomberg" - ] + "companies": ["Adobe", "Bloomberg"] }, { "id": 49, "name": "Counting Bits", "url": "counting-bits", - "pattern": [ - "Dynamic Programming", - "Bit Manipulation" - ], + "pattern": ["Dynamic Programming", "Bit Manipulation"], "difficulty": "Easy", "premium": false, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 50, "name": "Linked List Cycle", "url": "linked-list-cycle", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Easy", "premium": false, "companies": [ @@ -926,89 +733,52 @@ "id": 51, "name": "Middle of the Linked List", "url": "middle-of-the-linked-list", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Apple", - "Microsoft", - "Adobe", - "Goldman Sachs" - ] + "companies": ["Amazon", "Apple", "Microsoft", "Adobe", "Goldman Sachs"] }, { "id": 52, "name": "Palindrome Linked List", "url": "palindrome-linked-list", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Intuit", - "Bloomberg" - ] + "companies": ["Facebook", "Amazon", "Microsoft", "Intuit", "Bloomberg"] }, { "id": 53, "name": "Remove Linked List Elements", "url": "remove-linked-list-elements", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Microsoft" - ] + "companies": ["Facebook", "Microsoft"] }, { "id": 54, "name": "Remove Duplicates from Sorted List", "url": "remove-duplicates-from-sorted-list", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Adobe", - "Facebook", - "Microsoft" - ] + "companies": ["Amazon", "Adobe", "Facebook", "Microsoft"] }, { "id": 55, "name": "Linked List Cycle II", "url": "linked-list-cycle-ii", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Medium", "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Goldman Sachs", - "Oracle" - ] + "companies": ["Microsoft", "Amazon", "Goldman Sachs", "Oracle"] }, { "id": 56, "name": "Add Two Numbers", "url": "add-two-numbers", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1028,62 +798,34 @@ "id": 57, "name": "Remove Nth Node From End Of List", "url": "remove-nth-node-from-end-of-list", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Google", - "Apple" - ] + "companies": ["Facebook", "Microsoft", "Amazon", "Google", "Apple"] }, { "id": 58, "name": "Sort List", "url": "sort-list", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Apple", - "Uber" - ] + "companies": ["Facebook", "Amazon", "Apple", "Uber"] }, { "id": 59, "name": "Reorder List", "url": "reorder-list", - "pattern": [ - "Fast & Slow Pointers" - ], + "pattern": ["Fast & Slow Pointers"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Adobe", - "Facebook", - "Google", - "Snapchat", - "Uber" - ] + "companies": ["Amazon", "Adobe", "Facebook", "Google", "Snapchat", "Uber"] }, { "id": 60, "name": "Clone Graph", "url": "clone-graph", - "pattern": [ - "BFS", - "DFS", - "Graph" - ], + "pattern": ["BFS", "DFS", "Graph"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1102,29 +844,16 @@ "id": 61, "name": "Pacific Atlantic Water Flow", "url": "pacific-atlantic-water-flow", - "pattern": [ - "BFS", - "DFS" - ], + "pattern": ["BFS", "DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Google", - "Amazon", - "Microsoft", - "Facebook", - "Apple" - ] + "companies": ["Google", "Amazon", "Microsoft", "Facebook", "Apple"] }, { "id": 62, "name": "Number of Islands", "url": "number-of-islands", - "pattern": [ - "BFS", - "DFS", - "Union Find" - ], + "pattern": ["BFS", "DFS", "Union Find"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1148,80 +877,43 @@ "id": 63, "name": "Graph Valid Tree", "url": "graph-valid-tree", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Union Find" - ], + "pattern": ["BFS", "DFS", "Graph", "Union Find"], "difficulty": "Medium", "premium": true, - "companies": [ - "LinkedIn", - "Google", - "Bloomberg" - ] + "companies": ["LinkedIn", "Google", "Bloomberg"] }, { "id": 64, "name": "Number of Connected Components in an Undirected Graph", "url": "number-of-connected-components-in-an-undirected-graph", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Union Find" - ], + "pattern": ["BFS", "DFS", "Graph", "Union Find"], "difficulty": "Medium", "premium": true, - "companies": [ - "Amazon", - "LinkedIn", - "Facebook", - "Pinterest" - ] + "companies": ["Amazon", "LinkedIn", "Facebook", "Pinterest"] }, { "id": 65, "name": "Reverse Linked List", "url": "reverse-linked-list", - "pattern": [ - "In-place reversal of a linked list" - ], + "pattern": ["In-place reversal of a linked list"], "difficulty": "Easy", "premium": false, - "companies": [ - "Microsoft", - "Bloomberg", - "Amazon", - "Facebook", - "Apple" - ] + "companies": ["Microsoft", "Bloomberg", "Amazon", "Facebook", "Apple"] }, { "id": 66, "name": "Reverse Linked List II", "url": "reverse-linked-list-ii", - "pattern": [ - "In-place reversal of a linked list" - ], + "pattern": ["In-place reversal of a linked list"], "difficulty": "Medium", "premium": false, - "companies": [ - "Apple", - "Facebook", - "Amazon", - "Google", - "Adobe" - ] + "companies": ["Apple", "Facebook", "Amazon", "Google", "Adobe"] }, { "id": 67, "name": "Rotate List", "url": "rotate-list", - "pattern": [ - "In-place reversal of a linked list" - ], + "pattern": ["In-place reversal of a linked list"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1237,24 +929,16 @@ "id": 68, "name": "Swap Nodes in Pairs", "url": "swap-nodes-in-pairs", - "pattern": [ - "In-place reversal of a linked list" - ], + "pattern": ["In-place reversal of a linked list"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft" - ] + "companies": ["Facebook", "Amazon", "Microsoft"] }, { "id": 69, "name": "Odd Even Linked List", "url": "odd-even-linked-list", - "pattern": [ - "In-place reversal of a linked list" - ], + "pattern": ["In-place reversal of a linked list"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1270,9 +954,7 @@ "id": 70, "name": "Reverse Nodes in k-Group", "url": "reverse-nodes-in-k-group", - "pattern": [ - "In-place reversal of a linked list" - ], + "pattern": ["In-place reversal of a linked list"], "difficulty": "Hard", "premium": false, "companies": [ @@ -1289,9 +971,7 @@ "id": 71, "name": "Merge Two Sorted Lists", "url": "merge-two-sorted-lists", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Easy", "premium": false, "companies": [ @@ -1309,41 +989,25 @@ "id": 72, "name": "Kth Smallest Element in a Sorted Matrix", "url": "kth-smallest-element-in-a-sorted-matrix", - "pattern": [ - "Binary Search", - "Heap" - ], + "pattern": ["Binary Search", "Heap"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft", - "Bloomberg" - ] + "companies": ["Facebook", "Amazon", "Microsoft", "Bloomberg"] }, { "id": 73, "name": "Find K Pairs with Smallest Sums", "url": "find-k-pairs-with-smallest-sums", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Medium", "premium": false, - "companies": [ - "LinkedIn", - "Microsoft", - "Apple" - ] + "companies": ["LinkedIn", "Microsoft", "Apple"] }, { "id": 74, "name": "Merge k Sorted Lists", "url": "merge-k-sorted-lists", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Hard", "premium": false, "companies": [ @@ -1363,40 +1027,25 @@ "id": 75, "name": "Smallest Range Covering Elements from K Lists", "url": "smallest-range-covering-elements-from-k-lists", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Hard", "premium": false, - "companies": [ - "Google", - "Amazon", - "Microsoft", - "Pinterest" - ] + "companies": ["Google", "Amazon", "Microsoft", "Pinterest"] }, { "id": 76, "name": "Meeting Rooms", "url": "meeting-rooms", - "pattern": [ - "Intervals" - ], + "pattern": ["Intervals"], "difficulty": "Easy", "premium": true, - "companies": [ - "Amazon", - "Microsoft", - "Facebook" - ] + "companies": ["Amazon", "Microsoft", "Facebook"] }, { "id": 77, "name": "Merge Intervals", "url": "merge-intervals", - "pattern": [ - "Intervals" - ], + "pattern": ["Intervals"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1420,40 +1069,25 @@ "id": 78, "name": "Interval List Intersections", "url": "interval-list-intersections", - "pattern": [ - "Intervals" - ], + "pattern": ["Intervals"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Uber", - "Google" - ] + "companies": ["Facebook", "Uber", "Google"] }, { "id": 79, "name": "Non-overlapping Intervals", "url": "non-overlapping-intervals", - "pattern": [ - "Intervals" - ], + "pattern": ["Intervals"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Oracle" - ] + "companies": ["Amazon", "Facebook", "Oracle"] }, { "id": 80, "name": "Meeting Rooms II", "url": "meeting-rooms-ii", - "pattern": [ - "Heap", - "Intervals" - ], + "pattern": ["Heap", "Intervals"], "difficulty": "Medium", "premium": true, "companies": [ @@ -1476,10 +1110,7 @@ "id": 81, "name": "Task Scheduler", "url": "task-scheduler", - "pattern": [ - "Greedy", - "Heap" - ], + "pattern": ["Greedy", "Heap"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1495,22 +1126,16 @@ "id": 82, "name": "Minimum Number of Arrows to Burst Balloons", "url": "minimum-number-of-arrows-to-burst-balloons", - "pattern": [ - "Greedy" - ], + "pattern": ["Greedy"], "difficulty": "Medium", "premium": false, - "companies": [ - "Apple" - ] + "companies": ["Apple"] }, { "id": 83, "name": "Insert Interval", "url": "insert-interval", - "pattern": [ - "Intervals" - ], + "pattern": ["Intervals"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1527,10 +1152,7 @@ "id": 84, "name": "Employee Free Time", "url": "employee-free-time", - "pattern": [ - "Heap", - "Greedy" - ], + "pattern": ["Heap", "Greedy"], "difficulty": "Hard", "premium": true, "companies": [ @@ -1549,54 +1171,34 @@ "id": 85, "name": "Binary Search", "url": "binary-search", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Easy", "premium": false, - "companies": [ - "Adobe", - "Apple", - "Uber", - "Goldman Sachs" - ] + "companies": ["Adobe", "Apple", "Uber", "Goldman Sachs"] }, { "id": 86, "name": "Find Smallest Letter Greater Than Target", "url": "find-smallest-letter-greater-than-target", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Easy", "premium": false, - "companies": [ - "LinkedIn" - ] + "companies": ["LinkedIn"] }, { "id": 87, "name": "Peak Index in a Mountain Array", "url": "peak-index-in-a-mountain-array", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, - "companies": [ - "Google", - "Amazon", - "Bloomberg", - "Facebook" - ] + "companies": ["Google", "Amazon", "Bloomberg", "Facebook"] }, { "id": 88, "name": "Find Minimum in Rotated Sorted Array", "url": "find-minimum-in-rotated-sorted-array", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1613,26 +1215,16 @@ "id": 89, "name": "Find Peak Element", "url": "find-peak-element", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Uber", - "Google", - "Microsoft" - ] + "companies": ["Facebook", "Amazon", "Uber", "Google", "Microsoft"] }, { "id": 90, "name": "Search in Rotated Sorted Array", "url": "search-in-rotated-sorted-array", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1653,25 +1245,16 @@ "id": 91, "name": "Search in Rotated Sorted Array II", "url": "search-in-rotated-sorted-array-ii", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Facebook", - "Microsoft" - ] + "companies": ["LinkedIn", "Amazon", "Facebook", "Microsoft"] }, { "id": 92, "name": "Search a 2D Matrix", "url": "search-a-2d-matrix", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1688,26 +1271,16 @@ "id": 93, "name": "Search a 2D Matrix II", "url": "search-a-2d-matrix-ii", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Facebook", - "Apple", - "Uber" - ] + "companies": ["Microsoft", "Amazon", "Facebook", "Apple", "Uber"] }, { "id": 94, "name": "Find K Closest Elements", "url": "find-k-closest-elements", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1723,81 +1296,52 @@ "id": 95, "name": "Count of Range Sum", "url": "count-of-range-sum", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Hard", "premium": false, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 96, "name": "Minimum Size Subarray Sum", "url": "minimum-size-subarray-sum", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Medium", "premium": false, - "companies": [ - "Goldman Sachs", - "Facebook", - "Amazon", - "Google" - ] + "companies": ["Goldman Sachs", "Facebook", "Amazon", "Google"] }, { "id": 97, "name": "Fruit Into Baskets", "url": "fruit-into-baskets", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon" - ] + "companies": ["Amazon"] }, { "id": 98, "name": "Permutation in String", "url": "permutation-in-string", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Medium", "premium": false, - "companies": [ - "Oracle", - "Facebook" - ] + "companies": ["Oracle", "Facebook"] }, { "id": 99, "name": "Longest Repeating Character Replacement", "url": "longest-repeating-character-replacement", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Uber", - "Amazon", - "Adobe" - ] + "companies": ["Facebook", "Uber", "Amazon", "Adobe"] }, { "id": 100, "name": "Sliding Window Maximum", "url": "sliding-window-maximum", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Hard", "premium": false, "companies": [ @@ -1818,9 +1362,7 @@ "id": 101, "name": "Longest Substring Without Repeating Characters", "url": "longest-substring-without-repeating-characters", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1839,35 +1381,25 @@ "id": 102, "name": "Minimum Number of K Consecutive Bit Flips", "url": "minimum-number-of-k-consecutive-bit-flips", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Hard", "premium": false, - "companies": [ - "Adobe" - ] + "companies": ["Adobe"] }, { "id": 103, "name": "Count Unique Characters of All Substrings of a Given String", "url": "count-unique-characters-of-all-substrings-of-a-given-string", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Hard", "premium": false, - "companies": [ - "Amazon" - ] + "companies": ["Amazon"] }, { "id": 104, "name": "Minimum Window Substring", "url": "minimum-window-substring", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Hard", "premium": false, "companies": [ @@ -1884,53 +1416,34 @@ "id": 105, "name": "Substring with Concatenation of All Words", "url": "substring-with-concatenation-of-all-words", - "pattern": [ - "Sliding Window" - ], + "pattern": ["Sliding Window"], "difficulty": "Hard", "premium": false, - "companies": [ - "Apple" - ] + "companies": ["Apple"] }, { "id": 106, "name": "Kth Smallest Element in a BST", "url": "kth-smallest-element-in-a-bst", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Facebook" - ] + "companies": ["Amazon", "Facebook"] }, { "id": 107, "name": "K Closest Points to Origin", "url": "k-closest-points-to-origin", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "LinkedIn", - "Google", - "Asana" - ] + "companies": ["Facebook", "Amazon", "LinkedIn", "Google", "Asana"] }, { "id": 108, "name": "Top K Frequent Elements", "url": "top-k-frequent-elements", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1951,25 +1464,16 @@ "id": 109, "name": "Sort Characters By Frequency", "url": "sort-characters-by-frequency", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Bloomberg", - "Facebook" - ] + "companies": ["Amazon", "Bloomberg", "Facebook"] }, { "id": 110, "name": "Kth Largest Element in an Array", "url": "kth-largest-element-in-an-array", - "pattern": [ - "Heap", - "QuickSelect" - ], + "pattern": ["Heap", "QuickSelect"], "difficulty": "Medium", "premium": false, "companies": [ @@ -1987,10 +1491,7 @@ "id": 111, "name": "Reorganize String", "url": "reorganize-string", - "pattern": [ - "Greedy", - "Heap" - ], + "pattern": ["Greedy", "Heap"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2006,57 +1507,34 @@ "id": 112, "name": "Rearrange String k Distance Apart", "url": "rearrange-string-k-distance-apart", - "pattern": [ - "Greedy", - "Heap" - ], + "pattern": ["Greedy", "Heap"], "difficulty": "Hard", "premium": true, - "companies": [ - "Twitter" - ] + "companies": ["Twitter"] }, { "id": 113, "name": "Course Schedule III", "url": "course-schedule-iii", - "pattern": [ - "Greedy", - "Heap" - ], + "pattern": ["Greedy", "Heap"], "difficulty": "Hard", "premium": false, - "companies": [ - "Amazon" - ] + "companies": ["Amazon"] }, { "id": 114, "name": "Maximum Frequency Stack", "url": "maximum-frequency-stack", - "pattern": [ - "Bucket Sort", - "Heap" - ], + "pattern": ["Bucket Sort", "Heap"], "difficulty": "Hard", "premium": false, - "companies": [ - "Microsoft", - "Amazon", - "Apple", - "Facebook" - ] + "companies": ["Microsoft", "Amazon", "Apple", "Facebook"] }, { "id": 115, "name": "Course Schedule", "url": "course-schedule", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Topological Sort" - ], + "pattern": ["BFS", "DFS", "Graph", "Topological Sort"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2073,12 +1551,7 @@ "id": 116, "name": "Course Schedule II", "url": "course-schedule-ii", - "pattern": [ - "BFS", - "DFS", - "Graph", - "Topological Sort" - ], + "pattern": ["BFS", "DFS", "Graph", "Topological Sort"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2097,28 +1570,16 @@ "id": 117, "name": "Minimum Height Trees", "url": "minimum-height-trees", - "pattern": [ - "BFS", - "Graph", - "Topological Sort" - ], + "pattern": ["BFS", "Graph", "Topological Sort"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Google", - "Microsoft" - ] + "companies": ["Amazon", "Facebook", "Google", "Microsoft"] }, { "id": 118, "name": "Alien Dictionary", "url": "alien-dictionary", - "pattern": [ - "Graph", - "Topological Sort" - ], + "pattern": ["Graph", "Topological Sort"], "difficulty": "Hard", "premium": true, "companies": [ @@ -2135,65 +1596,43 @@ "id": 119, "name": "Sequence Reconstruction", "url": "sequence-reconstruction", - "pattern": [ - "Graph", - "Topological Sort" - ], + "pattern": ["Graph", "Topological Sort"], "difficulty": "Medium", "premium": true, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 120, "name": "Binary Tree Level Order Traversal II", "url": "binary-tree-level-order-traversal-ii", - "pattern": [ - "BFS" - ], + "pattern": ["BFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon" - ] + "companies": ["Amazon"] }, { "id": 121, "name": "Average of Levels in Binary Tree", "url": "average-of-levels-in-binary-tree", - "pattern": [ - "BFS" - ], + "pattern": ["BFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] + "companies": ["Facebook", "Amazon"] }, { "id": 122, "name": "Minimum Depth of Binary Tree", "url": "minimum-depth-of-binary-tree", - "pattern": [ - "BFS", - "DFS" - ], + "pattern": ["BFS", "DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Goldman Sachs" - ] + "companies": ["Facebook", "Goldman Sachs"] }, { "id": 123, "name": "Binary Tree Level Order Traversal", "url": "binary-tree-level-order-traversal", - "pattern": [ - "BFS" - ], + "pattern": ["BFS"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2211,9 +1650,7 @@ "id": 124, "name": "Binary Tree Zigzag Level Order Traversal", "url": "binary-tree-zigzag-level-order-traversal", - "pattern": [ - "BFS" - ], + "pattern": ["BFS"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2232,42 +1669,25 @@ "id": 125, "name": "Populating Next Right Pointers in Each Node", "url": "populating-next-right-pointers-in-each-node", - "pattern": [ - "BFS" - ], + "pattern": ["BFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Microsoft", - "Amazon", - "Bloomberg" - ] + "companies": ["Facebook", "Microsoft", "Amazon", "Bloomberg"] }, { "id": 126, "name": "Populating Next Right Pointers in Each Node II", "url": "populating-next-right-pointers-in-each-node-ii", - "pattern": [ - "BFS" - ], + "pattern": ["BFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Bloomberg", - "Microsoft", - "Facebook" - ] + "companies": ["Amazon", "Bloomberg", "Microsoft", "Facebook"] }, { "id": 127, "name": "Binary Tree Right Side View", "url": "binary-tree-right-side-view", - "pattern": [ - "BFS", - "DFS" - ], + "pattern": ["BFS", "DFS"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2284,26 +1704,16 @@ "id": 128, "name": "All Nodes Distance K in Binary Tree", "url": "all-nodes-distance-k-in-binary-tree", - "pattern": [ - "BFS", - "DFS" - ], + "pattern": ["BFS", "DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Apple", - "Oracle" - ] + "companies": ["Facebook", "Amazon", "Apple", "Oracle"] }, { "id": 129, "name": "Same Tree", "url": "same-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, "companies": [ @@ -2321,40 +1731,25 @@ "id": 130, "name": "Path Sum", "url": "path-sum", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Oracle" - ] + "companies": ["Amazon", "Facebook", "Oracle"] }, { "id": 131, "name": "Maximum Depth of Binary Tree", "url": "maximum-depth-of-binary-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "LinkedIn", - "Google", - "Apple", - "Amazon" - ] + "companies": ["LinkedIn", "Google", "Apple", "Amazon"] }, { "id": 132, "name": "Diameter of Binary Tree", "url": "diameter-of-binary-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, "companies": [ @@ -2371,105 +1766,61 @@ "id": 133, "name": "Merge Two Binary Trees", "url": "merge-two-binary-trees", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Adobe" - ] + "companies": ["Amazon", "Adobe"] }, { "id": 134, "name": "Lowest Common Ancestor of a Binary Search Tree", "url": "lowest-common-ancestor-of-a-binary-search-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "LinkedIn", - "Facebook", - "Microsoft", - "Google", - "Uber" - ] + "companies": ["LinkedIn", "Facebook", "Microsoft", "Google", "Uber"] }, { "id": 135, "name": "Subtree of Another Tree", "url": "subtree-of-another-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Microsoft" - ] + "companies": ["Facebook", "Amazon", "Microsoft"] }, { "id": 136, "name": "Invert Binary Tree", "url": "invert-binary-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Google", - "Facebook", - "Adobe", - "Apple" - ] + "companies": ["Amazon", "Google", "Facebook", "Adobe", "Apple"] }, { "id": 137, "name": "Path Sum II", "url": "path-sum-ii", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Google", - "Facebook", - "Adobe", - "Apple" - ] + "companies": ["Amazon", "Google", "Facebook", "Adobe", "Apple"] }, { "id": 138, "name": "Path Sum III", "url": "path-sum-iii", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Microsoft", - "Facebook", - "Google", - "Oracle" - ] + "companies": ["Microsoft", "Facebook", "Google", "Oracle"] }, { "id": 139, "name": "Lowest Common Ancestor of a Binary Tree", "url": "lowest-common-ancestor-of-a-binary-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2490,56 +1841,34 @@ "id": 140, "name": "Maximum Binary Tree", "url": "maximum-binary-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon" - ] + "companies": ["Amazon"] }, { "id": 141, "name": "Maximum Width of Binary Tree", "url": "maximum-width-of-binary-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Google", - "Bloomberg", - "Apple", - "Adobe" - ] + "companies": ["Amazon", "Google", "Bloomberg", "Apple", "Adobe"] }, { "id": 142, "name": "Construct Binary Tree from Preorder and Inorder Traversal", "url": "construct-binary-tree-from-preorder-and-inorder-traversal", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, - "companies": [ - "Amazon", - "Microsoft", - "Adobe", - "Bloomberg", - "Apple" - ] + "companies": ["Amazon", "Microsoft", "Adobe", "Bloomberg", "Apple"] }, { "id": 143, "name": "Validate Binary Search Tree", "url": "validate-binary-search-tree", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2558,10 +1887,7 @@ "id": 144, "name": "Implement Trie (Prefix Tree)", "url": "implement-trie-prefix-tree", - "pattern": [ - "Design", - "Trie" - ], + "pattern": ["Design", "Trie"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2577,9 +1903,7 @@ "id": 145, "name": "Binary Tree Maximum Path Sum", "url": "binary-tree-maximum-path-sum", - "pattern": [ - "DFS" - ], + "pattern": ["DFS"], "difficulty": "Hard", "premium": false, "companies": [ @@ -2597,9 +1921,7 @@ "id": 146, "name": "Serialize and Deserialize Binary Tree", "url": "serialize-and-deserialize-binary-tree", - "pattern": [ - "Design" - ], + "pattern": ["Design"], "difficulty": "Hard", "premium": false, "companies": [ @@ -2620,10 +1942,7 @@ "id": 147, "name": "Word Search II", "url": "word-search-ii", - "pattern": [ - "DFS", - "Trie" - ], + "pattern": ["DFS", "Trie"], "difficulty": "Hard", "premium": false, "companies": [ @@ -2643,9 +1962,7 @@ "id": 148, "name": "Find Median from Data Stream", "url": "find-median-from-data-stream", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Hard", "premium": false, "companies": [ @@ -2663,23 +1980,16 @@ "id": 149, "name": "Sliding Window Median", "url": "sliding-window-median", - "pattern": [ - "Heap" - ], + "pattern": ["Heap"], "difficulty": "Hard", "premium": false, - "companies": [ - "Facebook", - "Amazon" - ] + "companies": ["Facebook", "Amazon"] }, { "id": 150, "name": "Two Sum", "url": "two-sum", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Easy", "premium": false, "companies": [ @@ -2704,44 +2014,25 @@ "id": 151, "name": "Squares of a Sorted Array", "url": "squares-of-a-sorted-array", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Google", - "Adobe", - "Apple", - "Uber" - ] + "companies": ["Facebook", "Amazon", "Google", "Adobe", "Apple", "Uber"] }, { "id": 152, "name": "Backspace String Compare", "url": "backspace-string-compare", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Easy", "premium": false, - "companies": [ - "Facebook", - "Amazon", - "Apple", - "Google", - "Microsoft" - ] + "companies": ["Facebook", "Amazon", "Apple", "Google", "Microsoft"] }, { "id": 153, "name": "3 Sum", "url": "3sum", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2764,9 +2055,7 @@ "id": 154, "name": "3 Sum Closest", "url": "3sum-closest", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2784,24 +2073,16 @@ "id": 155, "name": "Subarrays with Product Less than K", "url": "subarray-product-less-than-k", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Medium", "premium": false, - "companies": [ - "LinkedIn", - "Amazon", - "Microsoft" - ] + "companies": ["LinkedIn", "Amazon", "Microsoft"] }, { "id": 156, "name": "Sort Colours", "url": "sort-colors", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2818,9 +2099,7 @@ "id": 157, "name": "Trapping Rain Water", "url": "trapping-rain-water", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Hard", "premium": false, "companies": [ @@ -2844,9 +2123,7 @@ "id": 158, "name": "Container With Most Water", "url": "container-with-most-water", - "pattern": [ - "Two Pointers" - ], + "pattern": ["Two Pointers"], "difficulty": "Medium", "premium": false, "companies": [ @@ -2864,90 +2141,61 @@ "id": 159, "name": "Longest Word in Dictionary", "url": "longest-word-in-dictionary", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Medium", "premium": false, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 160, "name": "Index Pairs of a String", "url": "index-pairs-of-a-string", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Easy", "premium": true, - "companies": [ - "Amazon" - ] + "companies": ["Amazon"] }, { "id": 161, "name": "Maximum XOR of Two Numbers in an Array", "url": "maximum-xor-of-two-numbers-in-an-array", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Medium", "premium": false, - "companies": [ - "Adobe" - ] + "companies": ["Adobe"] }, { "id": 162, "name": "Concatenated Words", "url": "concatenated-words", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Hard", "premium": false, - "companies": [ - "Amazon", - "Microsoft" - ] + "companies": ["Amazon", "Microsoft"] }, { "id": 163, "name": "Prefix and Suffix Search", "url": "prefix-and-suffix-search", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Hard", "premium": false, - "companies": [ - "Google" - ] + "companies": ["Google"] }, { "id": 164, "name": "Palindrome Pairs", "url": "palindrome-pairs", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Hard", "premium": false, - "companies": [ - "Airbnb", - "Facebook", - "Google" - ] + "companies": ["Airbnb", "Facebook", "Google"] }, { "id": 165, "name": "Design Search Autocomplete System", "url": "design-search-autocomplete-system", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Hard", "premium": true, "companies": [ @@ -2963,39 +2211,25 @@ "id": 166, "name": "Word Squares", "url": "word-squares", - "pattern": [ - "Trie" - ], + "pattern": ["Trie"], "difficulty": "Hard", "premium": true, - "companies": [ - "Bloomberg", - "Oracle", - "Google" - ] + "companies": ["Bloomberg", "Oracle", "Google"] }, { "id": 167, "name": "Sort Items by Groups Respecting Dependencies", "url": "sort-items-by-groups-respecting-dependencies", - "pattern": [ - "DFS", - "Graph", - "Topological Sort" - ], + "pattern": ["DFS", "Graph", "Topological Sort"], "difficulty": "Hard", "premium": false, - "companies": [ - "Apple" - ] + "companies": ["Apple"] }, { "id": 168, "name": "Median of Two Sorted Arrays", "url": "median-of-two-sorted-arrays", - "pattern": [ - "Binary Search" - ], + "pattern": ["Binary Search"], "difficulty": "Hard", "premium": false, "companies": [ @@ -3014,31 +2248,19 @@ "id": 169, "name": "Majority Element", "url": "majority-element", - "pattern": [ - "Sorting" - ], + "pattern": ["Sorting"], "difficulty": "Easy", "premium": false, - "companies": [ - "Amazon", - "Facebook", - "Apple", - "Microsoft", - "Adobe" - ] + "companies": ["Amazon", "Facebook", "Apple", "Microsoft", "Adobe"] }, { "id": 170, "name": "Convert 1D Array Into 2D Array", "url": "convert-1d-array-into-2d-array", - "pattern": [ - "Arrays" - ], + "pattern": ["Arrays"], "difficulty": "Easy", "premium": false, - "companies": [ - "Google" - ] + "companies": ["Google"] } ] -} \ No newline at end of file +}