Chore: Add headers to all the files (#54)

## Description
- Add headers to all the CSV files

## Script used
```py
import csv
import os

# Set the path of the folder containing the CSV files
folder_path = "./LeetCode-Questions-CompanyWise"
headers = [
    "ID",
    "Title",
    "Acceptance",
    "Difficulty",
    "Frequency",
    "Leetcode Question Link",
]

# Loop through all the CSV files in the folder
for file_name in os.listdir(folder_path):
    if file_name.endswith(".csv"):
        # Read the CSV file into a list of rows
        file_path = os.path.join(folder_path, file_name)
        with open(file_path, "r") as f:
            reader = csv.reader(f)
            rows = list(reader)

        has_headers = False
        if len(rows) > 0 and rows[0] == headers:
            has_headers = True

        if not has_headers:
            rows.insert(0, headers)

            # Write the list of rows back to the CSV file
            with open(file_path, "w", newline="") as f:
                writer = csv.writer(f)
                writer.writerows(rows)

```
This commit is contained in:
Krishna Kumar Dey
2023-04-01 11:07:49 +05:30
committed by GitHub
parent 0aeadbd612
commit fb5f78b55e
534 changed files with 20291 additions and 19757 deletions

View File

@@ -1,70 +1,71 @@
146,LRU Cache,33.2%,Medium,0.7983693236982232, https://leetcode.com/problems/lru-cache
780,Reaching Points,29.4%,Hard,0.612719105819513, https://leetcode.com/problems/reaching-points
17,Letter Combinations of a Phone Number,46.8%,Medium,0.49180839437197, https://leetcode.com/problems/letter-combinations-of-a-phone-number
56,Merge Intervals,39.3%,Medium,0.4061026968850166, https://leetcode.com/problems/merge-intervals
532,K-diff Pairs in an Array,31.6%,Easy,0.3871743397411752, https://leetcode.com/problems/k-diff-pairs-in-an-array
706,Design HashMap,61.3%,Easy,0.3660911265048934, https://leetcode.com/problems/design-hashmap
1283,Find the Smallest Divisor Given a Threshold,47.6%,Medium,0.36508501240027386, https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold
460,LFU Cache,34.2%,Hard,0.1794347945215637, https://leetcode.com/problems/lfu-cache
232,Implement Queue using Stacks,49.6%,Easy,0.16627106739678052, https://leetcode.com/problems/implement-queue-using-stacks
642,Design Search Autocomplete System,44.7%,Hard,0.16312782492496253, https://leetcode.com/problems/design-search-autocomplete-system
895,Maximum Frequency Stack,60.6%,Hard,0.1629613095094132, https://leetcode.com/problems/maximum-frequency-stack
218,The Skyline Problem,34.6%,Hard,0.14953173397096375, https://leetcode.com/problems/the-skyline-problem
251,Flatten 2D Vector,45.7%,Medium,0.14355814329423544, https://leetcode.com/problems/flatten-2d-vector
1,Two Sum,45.6%,Easy,0.1394299376526441, https://leetcode.com/problems/two-sum
82,Remove Duplicates from Sorted List II,36.8%,Medium,0.1110882064011508, https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
348,Design Tic-Tac-Toe,54.3%,Medium,0.09352605801082346, https://leetcode.com/problems/design-tic-tac-toe
384,Shuffle an Array,52.8%,Medium,0.09170644621893462, https://leetcode.com/problems/shuffle-an-array
127,Word Ladder,29.6%,Medium,0.09162341383415479, https://leetcode.com/problems/word-ladder
179,Largest Number,28.8%,Medium,0.08366080207271358, https://leetcode.com/problems/largest-number
200,Number of Islands,46.8%,Medium,0.06985103785996453, https://leetcode.com/problems/number-of-islands
42,Trapping Rain Water,48.9%,Hard,0.0674365414927314, https://leetcode.com/problems/trapping-rain-water
20,Valid Parentheses,39.0%,Easy,0.06735240264428982, https://leetcode.com/problems/valid-parentheses
287,Find the Duplicate Number,55.5%,Medium,0.06539148783312071, https://leetcode.com/problems/find-the-duplicate-number
23,Merge k Sorted Lists,40.2%,Hard,0.06293239083543646, https://leetcode.com/problems/merge-k-sorted-lists
353,Design Snake Game,34.2%,Medium,0.06053284922884233, https://leetcode.com/problems/design-snake-game
380,Insert Delete GetRandom O(1),47.5%,Medium,0.05985510621029109, https://leetcode.com/problems/insert-delete-getrandom-o1
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.05627201992757647, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
83,Remove Duplicates from Sorted List,45.4%,Easy,0.055776537457411894, https://leetcode.com/problems/remove-duplicates-from-sorted-list
151,Reverse Words in a String,21.9%,Medium,0.0539133396049725, https://leetcode.com/problems/reverse-words-in-a-string
394,Decode String,50.0%,Medium,0.049980419824640375, https://leetcode.com/problems/decode-string
300,Longest Increasing Subsequence,42.6%,Medium,0.046412041764464576, https://leetcode.com/problems/longest-increasing-subsequence
49,Group Anagrams,56.9%,Medium,0.045631752563977224, https://leetcode.com/problems/group-anagrams
205,Isomorphic Strings,39.8%,Easy,0.045397866271290506, https://leetcode.com/problems/isomorphic-strings
153,Find Minimum in Rotated Sorted Array,45.1%,Medium,0.04506509646857976, https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
48,Rotate Image,56.7%,Medium,0.04495138786226632, https://leetcode.com/problems/rotate-image
15,3Sum,26.8%,Medium,0.04361391077370199, https://leetcode.com/problems/3sum
41,First Missing Positive,32.0%,Hard,0.03941241494009615, https://leetcode.com/problems/first-missing-positive
33,Search in Rotated Sorted Array,34.5%,Medium,0.03886602267922457, https://leetcode.com/problems/search-in-rotated-sorted-array
212,Word Search II,34.9%,Hard,0.03881156536434583, https://leetcode.com/problems/word-search-ii
22,Generate Parentheses,62.7%,Medium,0.038581724751038625, https://leetcode.com/problems/generate-parentheses
724,Find Pivot Index,44.0%,Easy,0.03089844155123413, https://leetcode.com/problems/find-pivot-index
240,Search a 2D Matrix II,43.2%,Medium,0.02999287612403949, https://leetcode.com/problems/search-a-2d-matrix-ii
135,Candy,31.6%,Hard,0.029764101906453892, https://leetcode.com/problems/candy
692,Top K Frequent Words,51.8%,Medium,0.029730915184679466, https://leetcode.com/problems/top-k-frequent-words
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.028013036227673965, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
98,Validate Binary Search Tree,27.8%,Medium,0.026187123416340663, https://leetcode.com/problems/validate-binary-search-tree
46,Permutations,63.5%,Medium,0.026064861710547768, https://leetcode.com/problems/permutations
76,Minimum Window Substring,34.6%,Hard,0.024696424154275233, https://leetcode.com/problems/minimum-window-substring
215,Kth Largest Element in an Array,55.4%,Medium,0.02414409892936099, https://leetcode.com/problems/kth-largest-element-in-an-array
211,Add and Search Word - Data structure design,38.1%,Medium,0.02333525640896379, https://leetcode.com/problems/add-and-search-word-data-structure-design
226,Invert Binary Tree,65.0%,Easy,0.021852822620514783, https://leetcode.com/problems/invert-binary-tree
295,Find Median from Data Stream,44.3%,Hard,0.0201349084090559, https://leetcode.com/problems/find-median-from-data-stream
207,Course Schedule,43.1%,Medium,0.019709926055136454, https://leetcode.com/problems/course-schedule
53,Maximum Subarray,46.5%,Easy,0.019336728821707075, https://leetcode.com/problems/maximum-subarray
314,Binary Tree Vertical Order Traversal,45.3%,Medium,0.018010392274465332, https://leetcode.com/problems/binary-tree-vertical-order-traversal
71,Simplify Path,32.6%,Medium,0.016260520871780308, https://leetcode.com/problems/simplify-path
412,Fizz Buzz,62.3%,Easy,0.016051709010507904, https://leetcode.com/problems/fizz-buzz
238,Product of Array Except Self,60.1%,Medium,0.015629897160874744, https://leetcode.com/problems/product-of-array-except-self
139,Word Break,40.1%,Medium,0.015487677691351377, https://leetcode.com/problems/word-break
2,Add Two Numbers,33.9%,Medium,0.015095892173467356, https://leetcode.com/problems/add-two-numbers
557,Reverse Words in a String III,69.8%,Easy,0.013731764001315941, https://leetcode.com/problems/reverse-words-in-a-string-iii
101,Symmetric Tree,46.8%,Easy,0.013553786479814183, https://leetcode.com/problems/symmetric-tree
547,Friend Circles,58.6%,Medium,0.012228828639434596, https://leetcode.com/problems/friend-circles
12,Integer to Roman,55.1%,Medium,0.008532474973720734, https://leetcode.com/problems/integer-to-roman
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
73,Set Matrix Zeroes,43.1%,Medium,0.0070151111959223245, https://leetcode.com/problems/set-matrix-zeroes
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.006208067119374334, https://leetcode.com/problems/longest-substring-without-repeating-characters
350,Intersection of Two Arrays II,51.4%,Easy,0.005210380421193978, https://leetcode.com/problems/intersection-of-two-arrays-ii
1150,Check If a Number Is Majority Element in a Sorted Array,59.2%,Easy,0, https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array
1051,Height Checker,71.1%,Easy,0, https://leetcode.com/problems/height-checker
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
146,LRU Cache,33.2%,Medium,0.7983693236982232, https://leetcode.com/problems/lru-cache
780,Reaching Points,29.4%,Hard,0.612719105819513, https://leetcode.com/problems/reaching-points
17,Letter Combinations of a Phone Number,46.8%,Medium,0.49180839437197, https://leetcode.com/problems/letter-combinations-of-a-phone-number
56,Merge Intervals,39.3%,Medium,0.4061026968850166, https://leetcode.com/problems/merge-intervals
532,K-diff Pairs in an Array,31.6%,Easy,0.3871743397411752, https://leetcode.com/problems/k-diff-pairs-in-an-array
706,Design HashMap,61.3%,Easy,0.3660911265048934, https://leetcode.com/problems/design-hashmap
1283,Find the Smallest Divisor Given a Threshold,47.6%,Medium,0.36508501240027386, https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold
460,LFU Cache,34.2%,Hard,0.1794347945215637, https://leetcode.com/problems/lfu-cache
232,Implement Queue using Stacks,49.6%,Easy,0.16627106739678052, https://leetcode.com/problems/implement-queue-using-stacks
642,Design Search Autocomplete System,44.7%,Hard,0.16312782492496253, https://leetcode.com/problems/design-search-autocomplete-system
895,Maximum Frequency Stack,60.6%,Hard,0.1629613095094132, https://leetcode.com/problems/maximum-frequency-stack
218,The Skyline Problem,34.6%,Hard,0.14953173397096375, https://leetcode.com/problems/the-skyline-problem
251,Flatten 2D Vector,45.7%,Medium,0.14355814329423544, https://leetcode.com/problems/flatten-2d-vector
1,Two Sum,45.6%,Easy,0.1394299376526441, https://leetcode.com/problems/two-sum
82,Remove Duplicates from Sorted List II,36.8%,Medium,0.1110882064011508, https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
348,Design Tic-Tac-Toe,54.3%,Medium,0.09352605801082346, https://leetcode.com/problems/design-tic-tac-toe
384,Shuffle an Array,52.8%,Medium,0.09170644621893462, https://leetcode.com/problems/shuffle-an-array
127,Word Ladder,29.6%,Medium,0.09162341383415479, https://leetcode.com/problems/word-ladder
179,Largest Number,28.8%,Medium,0.08366080207271358, https://leetcode.com/problems/largest-number
200,Number of Islands,46.8%,Medium,0.06985103785996453, https://leetcode.com/problems/number-of-islands
42,Trapping Rain Water,48.9%,Hard,0.0674365414927314, https://leetcode.com/problems/trapping-rain-water
20,Valid Parentheses,39.0%,Easy,0.06735240264428982, https://leetcode.com/problems/valid-parentheses
287,Find the Duplicate Number,55.5%,Medium,0.06539148783312071, https://leetcode.com/problems/find-the-duplicate-number
23,Merge k Sorted Lists,40.2%,Hard,0.06293239083543646, https://leetcode.com/problems/merge-k-sorted-lists
353,Design Snake Game,34.2%,Medium,0.06053284922884233, https://leetcode.com/problems/design-snake-game
380,Insert Delete GetRandom O(1),47.5%,Medium,0.05985510621029109, https://leetcode.com/problems/insert-delete-getrandom-o1
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.05627201992757647, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
83,Remove Duplicates from Sorted List,45.4%,Easy,0.055776537457411894, https://leetcode.com/problems/remove-duplicates-from-sorted-list
151,Reverse Words in a String,21.9%,Medium,0.0539133396049725, https://leetcode.com/problems/reverse-words-in-a-string
394,Decode String,50.0%,Medium,0.049980419824640375, https://leetcode.com/problems/decode-string
300,Longest Increasing Subsequence,42.6%,Medium,0.046412041764464576, https://leetcode.com/problems/longest-increasing-subsequence
49,Group Anagrams,56.9%,Medium,0.045631752563977224, https://leetcode.com/problems/group-anagrams
205,Isomorphic Strings,39.8%,Easy,0.045397866271290506, https://leetcode.com/problems/isomorphic-strings
153,Find Minimum in Rotated Sorted Array,45.1%,Medium,0.04506509646857976, https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
48,Rotate Image,56.7%,Medium,0.04495138786226632, https://leetcode.com/problems/rotate-image
15,3Sum,26.8%,Medium,0.04361391077370199, https://leetcode.com/problems/3sum
41,First Missing Positive,32.0%,Hard,0.03941241494009615, https://leetcode.com/problems/first-missing-positive
33,Search in Rotated Sorted Array,34.5%,Medium,0.03886602267922457, https://leetcode.com/problems/search-in-rotated-sorted-array
212,Word Search II,34.9%,Hard,0.03881156536434583, https://leetcode.com/problems/word-search-ii
22,Generate Parentheses,62.7%,Medium,0.038581724751038625, https://leetcode.com/problems/generate-parentheses
724,Find Pivot Index,44.0%,Easy,0.03089844155123413, https://leetcode.com/problems/find-pivot-index
240,Search a 2D Matrix II,43.2%,Medium,0.02999287612403949, https://leetcode.com/problems/search-a-2d-matrix-ii
135,Candy,31.6%,Hard,0.029764101906453892, https://leetcode.com/problems/candy
692,Top K Frequent Words,51.8%,Medium,0.029730915184679466, https://leetcode.com/problems/top-k-frequent-words
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.028013036227673965, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
98,Validate Binary Search Tree,27.8%,Medium,0.026187123416340663, https://leetcode.com/problems/validate-binary-search-tree
46,Permutations,63.5%,Medium,0.026064861710547768, https://leetcode.com/problems/permutations
76,Minimum Window Substring,34.6%,Hard,0.024696424154275233, https://leetcode.com/problems/minimum-window-substring
215,Kth Largest Element in an Array,55.4%,Medium,0.02414409892936099, https://leetcode.com/problems/kth-largest-element-in-an-array
211,Add and Search Word - Data structure design,38.1%,Medium,0.02333525640896379, https://leetcode.com/problems/add-and-search-word-data-structure-design
226,Invert Binary Tree,65.0%,Easy,0.021852822620514783, https://leetcode.com/problems/invert-binary-tree
295,Find Median from Data Stream,44.3%,Hard,0.0201349084090559, https://leetcode.com/problems/find-median-from-data-stream
207,Course Schedule,43.1%,Medium,0.019709926055136454, https://leetcode.com/problems/course-schedule
53,Maximum Subarray,46.5%,Easy,0.019336728821707075, https://leetcode.com/problems/maximum-subarray
314,Binary Tree Vertical Order Traversal,45.3%,Medium,0.018010392274465332, https://leetcode.com/problems/binary-tree-vertical-order-traversal
71,Simplify Path,32.6%,Medium,0.016260520871780308, https://leetcode.com/problems/simplify-path
412,Fizz Buzz,62.3%,Easy,0.016051709010507904, https://leetcode.com/problems/fizz-buzz
238,Product of Array Except Self,60.1%,Medium,0.015629897160874744, https://leetcode.com/problems/product-of-array-except-self
139,Word Break,40.1%,Medium,0.015487677691351377, https://leetcode.com/problems/word-break
2,Add Two Numbers,33.9%,Medium,0.015095892173467356, https://leetcode.com/problems/add-two-numbers
557,Reverse Words in a String III,69.8%,Easy,0.013731764001315941, https://leetcode.com/problems/reverse-words-in-a-string-iii
101,Symmetric Tree,46.8%,Easy,0.013553786479814183, https://leetcode.com/problems/symmetric-tree
547,Friend Circles,58.6%,Medium,0.012228828639434596, https://leetcode.com/problems/friend-circles
12,Integer to Roman,55.1%,Medium,0.008532474973720734, https://leetcode.com/problems/integer-to-roman
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
73,Set Matrix Zeroes,43.1%,Medium,0.0070151111959223245, https://leetcode.com/problems/set-matrix-zeroes
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.006208067119374334, https://leetcode.com/problems/longest-substring-without-repeating-characters
350,Intersection of Two Arrays II,51.4%,Easy,0.005210380421193978, https://leetcode.com/problems/intersection-of-two-arrays-ii
1150,Check If a Number Is Majority Element in a Sorted Array,59.2%,Easy,0, https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array
1051,Height Checker,71.1%,Easy,0, https://leetcode.com/problems/height-checker
1 146 ID LRU Cache Title 33.2% Acceptance Medium Difficulty 0.7983693236982232 Frequency https://leetcode.com/problems/lru-cache Leetcode Question Link
2 780 146 Reaching Points LRU Cache 29.4% 33.2% Hard Medium 0.612719105819513 0.7983693236982232 https://leetcode.com/problems/reaching-points https://leetcode.com/problems/lru-cache
3 17 780 Letter Combinations of a Phone Number Reaching Points 46.8% 29.4% Medium Hard 0.49180839437197 0.612719105819513 https://leetcode.com/problems/letter-combinations-of-a-phone-number https://leetcode.com/problems/reaching-points
4 56 17 Merge Intervals Letter Combinations of a Phone Number 39.3% 46.8% Medium Medium 0.4061026968850166 0.49180839437197 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/letter-combinations-of-a-phone-number
5 532 56 K-diff Pairs in an Array Merge Intervals 31.6% 39.3% Easy Medium 0.3871743397411752 0.4061026968850166 https://leetcode.com/problems/k-diff-pairs-in-an-array https://leetcode.com/problems/merge-intervals
6 706 532 Design HashMap K-diff Pairs in an Array 61.3% 31.6% Easy Easy 0.3660911265048934 0.3871743397411752 https://leetcode.com/problems/design-hashmap https://leetcode.com/problems/k-diff-pairs-in-an-array
7 1283 706 Find the Smallest Divisor Given a Threshold Design HashMap 47.6% 61.3% Medium Easy 0.36508501240027386 0.3660911265048934 https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold https://leetcode.com/problems/design-hashmap
8 460 1283 LFU Cache Find the Smallest Divisor Given a Threshold 34.2% 47.6% Hard Medium 0.1794347945215637 0.36508501240027386 https://leetcode.com/problems/lfu-cache https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold
9 232 460 Implement Queue using Stacks LFU Cache 49.6% 34.2% Easy Hard 0.16627106739678052 0.1794347945215637 https://leetcode.com/problems/implement-queue-using-stacks https://leetcode.com/problems/lfu-cache
10 642 232 Design Search Autocomplete System Implement Queue using Stacks 44.7% 49.6% Hard Easy 0.16312782492496253 0.16627106739678052 https://leetcode.com/problems/design-search-autocomplete-system https://leetcode.com/problems/implement-queue-using-stacks
11 895 642 Maximum Frequency Stack Design Search Autocomplete System 60.6% 44.7% Hard Hard 0.1629613095094132 0.16312782492496253 https://leetcode.com/problems/maximum-frequency-stack https://leetcode.com/problems/design-search-autocomplete-system
12 218 895 The Skyline Problem Maximum Frequency Stack 34.6% 60.6% Hard Hard 0.14953173397096375 0.1629613095094132 https://leetcode.com/problems/the-skyline-problem https://leetcode.com/problems/maximum-frequency-stack
13 251 218 Flatten 2D Vector The Skyline Problem 45.7% 34.6% Medium Hard 0.14355814329423544 0.14953173397096375 https://leetcode.com/problems/flatten-2d-vector https://leetcode.com/problems/the-skyline-problem
14 1 251 Two Sum Flatten 2D Vector 45.6% 45.7% Easy Medium 0.1394299376526441 0.14355814329423544 https://leetcode.com/problems/two-sum https://leetcode.com/problems/flatten-2d-vector
15 82 1 Remove Duplicates from Sorted List II Two Sum 36.8% 45.6% Medium Easy 0.1110882064011508 0.1394299376526441 https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii https://leetcode.com/problems/two-sum
16 348 82 Design Tic-Tac-Toe Remove Duplicates from Sorted List II 54.3% 36.8% Medium Medium 0.09352605801082346 0.1110882064011508 https://leetcode.com/problems/design-tic-tac-toe https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
17 384 348 Shuffle an Array Design Tic-Tac-Toe 52.8% 54.3% Medium Medium 0.09170644621893462 0.09352605801082346 https://leetcode.com/problems/shuffle-an-array https://leetcode.com/problems/design-tic-tac-toe
18 127 384 Word Ladder Shuffle an Array 29.6% 52.8% Medium Medium 0.09162341383415479 0.09170644621893462 https://leetcode.com/problems/word-ladder https://leetcode.com/problems/shuffle-an-array
19 179 127 Largest Number Word Ladder 28.8% 29.6% Medium Medium 0.08366080207271358 0.09162341383415479 https://leetcode.com/problems/largest-number https://leetcode.com/problems/word-ladder
20 200 179 Number of Islands Largest Number 46.8% 28.8% Medium Medium 0.06985103785996453 0.08366080207271358 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/largest-number
21 42 200 Trapping Rain Water Number of Islands 48.9% 46.8% Hard Medium 0.0674365414927314 0.06985103785996453 https://leetcode.com/problems/trapping-rain-water https://leetcode.com/problems/number-of-islands
22 20 42 Valid Parentheses Trapping Rain Water 39.0% 48.9% Easy Hard 0.06735240264428982 0.0674365414927314 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/trapping-rain-water
23 287 20 Find the Duplicate Number Valid Parentheses 55.5% 39.0% Medium Easy 0.06539148783312071 0.06735240264428982 https://leetcode.com/problems/find-the-duplicate-number https://leetcode.com/problems/valid-parentheses
24 23 287 Merge k Sorted Lists Find the Duplicate Number 40.2% 55.5% Hard Medium 0.06293239083543646 0.06539148783312071 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/find-the-duplicate-number
25 353 23 Design Snake Game Merge k Sorted Lists 34.2% 40.2% Medium Hard 0.06053284922884233 0.06293239083543646 https://leetcode.com/problems/design-snake-game https://leetcode.com/problems/merge-k-sorted-lists
26 380 353 Insert Delete GetRandom O(1) Design Snake Game 47.5% 34.2% Medium Medium 0.05985510621029109 0.06053284922884233 https://leetcode.com/problems/insert-delete-getrandom-o1 https://leetcode.com/problems/design-snake-game
27 236 380 Lowest Common Ancestor of a Binary Tree Insert Delete GetRandom O(1) 45.7% 47.5% Medium Medium 0.05627201992757647 0.05985510621029109 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree https://leetcode.com/problems/insert-delete-getrandom-o1
28 83 236 Remove Duplicates from Sorted List Lowest Common Ancestor of a Binary Tree 45.4% 45.7% Easy Medium 0.055776537457411894 0.05627201992757647 https://leetcode.com/problems/remove-duplicates-from-sorted-list https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
29 151 83 Reverse Words in a String Remove Duplicates from Sorted List 21.9% 45.4% Medium Easy 0.0539133396049725 0.055776537457411894 https://leetcode.com/problems/reverse-words-in-a-string https://leetcode.com/problems/remove-duplicates-from-sorted-list
30 394 151 Decode String Reverse Words in a String 50.0% 21.9% Medium Medium 0.049980419824640375 0.0539133396049725 https://leetcode.com/problems/decode-string https://leetcode.com/problems/reverse-words-in-a-string
31 300 394 Longest Increasing Subsequence Decode String 42.6% 50.0% Medium Medium 0.046412041764464576 0.049980419824640375 https://leetcode.com/problems/longest-increasing-subsequence https://leetcode.com/problems/decode-string
32 49 300 Group Anagrams Longest Increasing Subsequence 56.9% 42.6% Medium Medium 0.045631752563977224 0.046412041764464576 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/longest-increasing-subsequence
33 205 49 Isomorphic Strings Group Anagrams 39.8% 56.9% Easy Medium 0.045397866271290506 0.045631752563977224 https://leetcode.com/problems/isomorphic-strings https://leetcode.com/problems/group-anagrams
34 153 205 Find Minimum in Rotated Sorted Array Isomorphic Strings 45.1% 39.8% Medium Easy 0.04506509646857976 0.045397866271290506 https://leetcode.com/problems/find-minimum-in-rotated-sorted-array https://leetcode.com/problems/isomorphic-strings
35 48 153 Rotate Image Find Minimum in Rotated Sorted Array 56.7% 45.1% Medium Medium 0.04495138786226632 0.04506509646857976 https://leetcode.com/problems/rotate-image https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
36 15 48 3Sum Rotate Image 26.8% 56.7% Medium Medium 0.04361391077370199 0.04495138786226632 https://leetcode.com/problems/3sum https://leetcode.com/problems/rotate-image
37 41 15 First Missing Positive 3Sum 32.0% 26.8% Hard Medium 0.03941241494009615 0.04361391077370199 https://leetcode.com/problems/first-missing-positive https://leetcode.com/problems/3sum
38 33 41 Search in Rotated Sorted Array First Missing Positive 34.5% 32.0% Medium Hard 0.03886602267922457 0.03941241494009615 https://leetcode.com/problems/search-in-rotated-sorted-array https://leetcode.com/problems/first-missing-positive
39 212 33 Word Search II Search in Rotated Sorted Array 34.9% 34.5% Hard Medium 0.03881156536434583 0.03886602267922457 https://leetcode.com/problems/word-search-ii https://leetcode.com/problems/search-in-rotated-sorted-array
40 22 212 Generate Parentheses Word Search II 62.7% 34.9% Medium Hard 0.038581724751038625 0.03881156536434583 https://leetcode.com/problems/generate-parentheses https://leetcode.com/problems/word-search-ii
41 724 22 Find Pivot Index Generate Parentheses 44.0% 62.7% Easy Medium 0.03089844155123413 0.038581724751038625 https://leetcode.com/problems/find-pivot-index https://leetcode.com/problems/generate-parentheses
42 240 724 Search a 2D Matrix II Find Pivot Index 43.2% 44.0% Medium Easy 0.02999287612403949 0.03089844155123413 https://leetcode.com/problems/search-a-2d-matrix-ii https://leetcode.com/problems/find-pivot-index
43 135 240 Candy Search a 2D Matrix II 31.6% 43.2% Hard Medium 0.029764101906453892 0.02999287612403949 https://leetcode.com/problems/candy https://leetcode.com/problems/search-a-2d-matrix-ii
44 692 135 Top K Frequent Words Candy 51.8% 31.6% Medium Hard 0.029730915184679466 0.029764101906453892 https://leetcode.com/problems/top-k-frequent-words https://leetcode.com/problems/candy
45 297 692 Serialize and Deserialize Binary Tree Top K Frequent Words 47.5% 51.8% Hard Medium 0.028013036227673965 0.029730915184679466 https://leetcode.com/problems/serialize-and-deserialize-binary-tree https://leetcode.com/problems/top-k-frequent-words
46 98 297 Validate Binary Search Tree Serialize and Deserialize Binary Tree 27.8% 47.5% Medium Hard 0.026187123416340663 0.028013036227673965 https://leetcode.com/problems/validate-binary-search-tree https://leetcode.com/problems/serialize-and-deserialize-binary-tree
47 46 98 Permutations Validate Binary Search Tree 63.5% 27.8% Medium Medium 0.026064861710547768 0.026187123416340663 https://leetcode.com/problems/permutations https://leetcode.com/problems/validate-binary-search-tree
48 76 46 Minimum Window Substring Permutations 34.6% 63.5% Hard Medium 0.024696424154275233 0.026064861710547768 https://leetcode.com/problems/minimum-window-substring https://leetcode.com/problems/permutations
49 215 76 Kth Largest Element in an Array Minimum Window Substring 55.4% 34.6% Medium Hard 0.02414409892936099 0.024696424154275233 https://leetcode.com/problems/kth-largest-element-in-an-array https://leetcode.com/problems/minimum-window-substring
50 211 215 Add and Search Word - Data structure design Kth Largest Element in an Array 38.1% 55.4% Medium Medium 0.02333525640896379 0.02414409892936099 https://leetcode.com/problems/add-and-search-word-data-structure-design https://leetcode.com/problems/kth-largest-element-in-an-array
51 226 211 Invert Binary Tree Add and Search Word - Data structure design 65.0% 38.1% Easy Medium 0.021852822620514783 0.02333525640896379 https://leetcode.com/problems/invert-binary-tree https://leetcode.com/problems/add-and-search-word-data-structure-design
52 295 226 Find Median from Data Stream Invert Binary Tree 44.3% 65.0% Hard Easy 0.0201349084090559 0.021852822620514783 https://leetcode.com/problems/find-median-from-data-stream https://leetcode.com/problems/invert-binary-tree
53 207 295 Course Schedule Find Median from Data Stream 43.1% 44.3% Medium Hard 0.019709926055136454 0.0201349084090559 https://leetcode.com/problems/course-schedule https://leetcode.com/problems/find-median-from-data-stream
54 53 207 Maximum Subarray Course Schedule 46.5% 43.1% Easy Medium 0.019336728821707075 0.019709926055136454 https://leetcode.com/problems/maximum-subarray https://leetcode.com/problems/course-schedule
55 314 53 Binary Tree Vertical Order Traversal Maximum Subarray 45.3% 46.5% Medium Easy 0.018010392274465332 0.019336728821707075 https://leetcode.com/problems/binary-tree-vertical-order-traversal https://leetcode.com/problems/maximum-subarray
56 71 314 Simplify Path Binary Tree Vertical Order Traversal 32.6% 45.3% Medium Medium 0.016260520871780308 0.018010392274465332 https://leetcode.com/problems/simplify-path https://leetcode.com/problems/binary-tree-vertical-order-traversal
57 412 71 Fizz Buzz Simplify Path 62.3% 32.6% Easy Medium 0.016051709010507904 0.016260520871780308 https://leetcode.com/problems/fizz-buzz https://leetcode.com/problems/simplify-path
58 238 412 Product of Array Except Self Fizz Buzz 60.1% 62.3% Medium Easy 0.015629897160874744 0.016051709010507904 https://leetcode.com/problems/product-of-array-except-self https://leetcode.com/problems/fizz-buzz
59 139 238 Word Break Product of Array Except Self 40.1% 60.1% Medium Medium 0.015487677691351377 0.015629897160874744 https://leetcode.com/problems/word-break https://leetcode.com/problems/product-of-array-except-self
60 2 139 Add Two Numbers Word Break 33.9% 40.1% Medium Medium 0.015095892173467356 0.015487677691351377 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/word-break
61 557 2 Reverse Words in a String III Add Two Numbers 69.8% 33.9% Easy Medium 0.013731764001315941 0.015095892173467356 https://leetcode.com/problems/reverse-words-in-a-string-iii https://leetcode.com/problems/add-two-numbers
62 101 557 Symmetric Tree Reverse Words in a String III 46.8% 69.8% Easy Easy 0.013553786479814183 0.013731764001315941 https://leetcode.com/problems/symmetric-tree https://leetcode.com/problems/reverse-words-in-a-string-iii
63 547 101 Friend Circles Symmetric Tree 58.6% 46.8% Medium Easy 0.012228828639434596 0.013553786479814183 https://leetcode.com/problems/friend-circles https://leetcode.com/problems/symmetric-tree
64 12 547 Integer to Roman Friend Circles 55.1% 58.6% Medium Medium 0.008532474973720734 0.012228828639434596 https://leetcode.com/problems/integer-to-roman https://leetcode.com/problems/friend-circles
65 36 12 Valid Sudoku Integer to Roman 48.7% 55.1% Medium Medium 0.007258242715805398 0.008532474973720734 https://leetcode.com/problems/valid-sudoku https://leetcode.com/problems/integer-to-roman
66 73 36 Set Matrix Zeroes Valid Sudoku 43.1% 48.7% Medium Medium 0.0070151111959223245 0.007258242715805398 https://leetcode.com/problems/set-matrix-zeroes https://leetcode.com/problems/valid-sudoku
67 3 73 Longest Substring Without Repeating Characters Set Matrix Zeroes 30.4% 43.1% Medium Medium 0.006208067119374334 0.0070151111959223245 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/set-matrix-zeroes
68 350 3 Intersection of Two Arrays II Longest Substring Without Repeating Characters 51.4% 30.4% Easy Medium 0.005210380421193978 0.006208067119374334 https://leetcode.com/problems/intersection-of-two-arrays-ii https://leetcode.com/problems/longest-substring-without-repeating-characters
69 1150 350 Check If a Number Is Majority Element in a Sorted Array Intersection of Two Arrays II 59.2% 51.4% Easy Easy 0 0.005210380421193978 https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array https://leetcode.com/problems/intersection-of-two-arrays-ii
70 1051 1150 Height Checker Check If a Number Is Majority Element in a Sorted Array 71.1% 59.2% Easy Easy 0 0 https://leetcode.com/problems/height-checker https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array
71 1051 Height Checker 71.1% Easy 0 https://leetcode.com/problems/height-checker