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,68 +1,69 @@
527,Word Abbreviation,54.3%,Hard,0.4819143893795129, https://leetcode.com/problems/word-abbreviation
296,Best Meeting Point,57.5%,Hard,0.388507095744267, https://leetcode.com/problems/best-meeting-point
317,Shortest Distance from All Buildings,41.4%,Hard,0.29874253625209474, https://leetcode.com/problems/shortest-distance-from-all-buildings
146,LRU Cache,33.2%,Medium,0.23060841514873096, https://leetcode.com/problems/lru-cache
772,Basic Calculator III,41.3%,Hard,0.13720112151348504, https://leetcode.com/problems/basic-calculator-iii
332,Reconstruct Itinerary,36.7%,Medium,0.08302143328026106, https://leetcode.com/problems/reconstruct-itinerary
224,Basic Calculator,36.8%,Hard,0.0813456394539524, https://leetcode.com/problems/basic-calculator
632,Smallest Range Covering Elements from K Lists,52.4%,Hard,0.07082605256861242, https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
68,Text Justification,27.7%,Hard,0.06116036187169583, https://leetcode.com/problems/text-justification
305,Number of Islands II,40.1%,Hard,0.06007812394328337, https://leetcode.com/problems/number-of-islands-ii
212,Word Search II,34.9%,Hard,0.05999879858378973, https://leetcode.com/problems/word-search-ii
839,Similar String Groups,38.6%,Hard,0.05480823649499502, https://leetcode.com/problems/similar-string-groups
282,Expression Add Operators,35.5%,Hard,0.049982640867735496, https://leetcode.com/problems/expression-add-operators
986,Interval List Intersections,67.3%,Medium,0.04703983015489417, https://leetcode.com/problems/interval-list-intersections
733,Flood Fill,55.3%,Easy,0.04413292021115189, https://leetcode.com/problems/flood-fill
642,Design Search Autocomplete System,44.7%,Hard,0.04334372921647208, https://leetcode.com/problems/design-search-autocomplete-system
716,Max Stack,42.6%,Easy,0.042695919196489414, https://leetcode.com/problems/max-stack
56,Merge Intervals,39.3%,Medium,0.04173304225331761, https://leetcode.com/problems/merge-intervals
1031,Maximum Sum of Two Non-Overlapping Subarrays,57.9%,Medium,0.03711000965123125, https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays
658,Find K Closest Elements,40.9%,Medium,0.03699558767659505, https://leetcode.com/problems/find-k-closest-elements
139,Word Break,40.1%,Medium,0.03451593709018879, https://leetcode.com/problems/word-break
480,Sliding Window Median,37.2%,Hard,0.03373001037669306, https://leetcode.com/problems/sliding-window-median
79,Word Search,35.6%,Medium,0.03318208821436187, https://leetcode.com/problems/word-search
253,Meeting Rooms II,45.7%,Medium,0.03193246767820989, https://leetcode.com/problems/meeting-rooms-ii
1146,Snapshot Array,37.0%,Medium,0.0317991816929387, https://leetcode.com/problems/snapshot-array
460,LFU Cache,34.2%,Hard,0.030962225603966897, https://leetcode.com/problems/lfu-cache
311,Sparse Matrix Multiplication,61.9%,Medium,0.027702602549335792, https://leetcode.com/problems/sparse-matrix-multiplication
200,Number of Islands,46.8%,Medium,0.025712029212602353, https://leetcode.com/problems/number-of-islands
362,Design Hit Counter,63.7%,Medium,0.025382073271417165, https://leetcode.com/problems/design-hit-counter
310,Minimum Height Trees,32.3%,Medium,0.02446605215440636, https://leetcode.com/problems/minimum-height-trees
127,Word Ladder,29.6%,Medium,0.023704813655166343, https://leetcode.com/problems/word-ladder
295,Find Median from Data Stream,44.3%,Hard,0.0201349084090559, https://leetcode.com/problems/find-median-from-data-stream
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
42,Trapping Rain Water,48.9%,Hard,0.017290251352643615, https://leetcode.com/problems/trapping-rain-water
415,Add Strings,47.5%,Easy,0.016991158247219373, https://leetcode.com/problems/add-strings
340,Longest Substring with At Most K Distinct Characters,44.1%,Hard,0.016122880486563188, https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
54,Spiral Matrix,34.1%,Medium,0.014776167707688753, https://leetcode.com/problems/spiral-matrix
653,Two Sum IV - Input is a BST,55.5%,Easy,0.014224990931347289, https://leetcode.com/problems/two-sum-iv-input-is-a-bst
76,Minimum Window Substring,34.6%,Hard,0.013966707481708198, https://leetcode.com/problems/minimum-window-substring
557,Reverse Words in a String III,69.8%,Easy,0.013731764001315941, https://leetcode.com/problems/reverse-words-in-a-string-iii
329,Longest Increasing Path in a Matrix,43.4%,Hard,0.013400535537482126, https://leetcode.com/problems/longest-increasing-path-in-a-matrix
91,Decode Ways,24.7%,Medium,0.013379120336324091, https://leetcode.com/problems/decode-ways
39,Combination Sum,56.1%,Medium,0.012815211692867591, https://leetcode.com/problems/combination-sum
227,Basic Calculator II,36.9%,Medium,0.01239941490503826, https://leetcode.com/problems/basic-calculator-ii
169,Majority Element,58.7%,Easy,0.010558521365115802, https://leetcode.com/problems/majority-element
234,Palindrome Linked List,39.3%,Easy,0.010171877938733932, https://leetcode.com/problems/palindrome-linked-list
22,Generate Parentheses,62.7%,Medium,0.009785877810632554, https://leetcode.com/problems/generate-parentheses
63,Unique Paths II,34.6%,Medium,0.008712753874961187, https://leetcode.com/problems/unique-paths-ii
49,Group Anagrams,56.9%,Medium,0.008538951314232168, https://leetcode.com/problems/group-anagrams
394,Decode String,50.0%,Medium,0.008166644000272283, https://leetcode.com/problems/decode-string
14,Longest Common Prefix,35.4%,Easy,0.00745530292090591, https://leetcode.com/problems/longest-common-prefix
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.007077170374085099, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
155,Min Stack,44.5%,Easy,0.00474891074128171, https://leetcode.com/problems/min-stack
62,Unique Paths,54.1%,Medium,0.004621080312067025, https://leetcode.com/problems/unique-paths
560,Subarray Sum Equals K,43.9%,Medium,0.004279454482267064, https://leetcode.com/problems/subarray-sum-equals-k
242,Valid Anagram,56.9%,Easy,0.004154123743115972, https://leetcode.com/problems/valid-anagram
189,Rotate Array,34.7%,Easy,0.004029826126500844, https://leetcode.com/problems/rotate-array
238,Product of Array Except Self,60.1%,Medium,0.003930436424724545, https://leetcode.com/problems/product-of-array-except-self
215,Kth Largest Element in an Array,55.4%,Medium,0.003902443976931749, https://leetcode.com/problems/kth-largest-element-in-an-array
347,Top K Frequent Elements,61.2%,Medium,0.0033396446491217604, https://leetcode.com/problems/top-k-frequent-elements
344,Reverse String,68.5%,Easy,0.003269579502519813, https://leetcode.com/problems/reverse-string
33,Search in Rotated Sorted Array,34.5%,Medium,0.003229976968332634, https://leetcode.com/problems/search-in-rotated-sorted-array
140,Word Break II,32.6%,Hard,0.0027070942357783584, https://leetcode.com/problems/word-break-ii
15,3Sum,26.8%,Medium,0.0021990113314367685, https://leetcode.com/problems/3sum
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.0021239321954525975, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
210,Course Schedule II,40.7%,Medium,0.0019086707135282834, https://leetcode.com/problems/course-schedule-ii
1,Two Sum,45.6%,Easy,0.00184543512358731, https://leetcode.com/problems/two-sum
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.0015556336509412823, https://leetcode.com/problems/longest-substring-without-repeating-characters
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
527,Word Abbreviation,54.3%,Hard,0.4819143893795129, https://leetcode.com/problems/word-abbreviation
296,Best Meeting Point,57.5%,Hard,0.388507095744267, https://leetcode.com/problems/best-meeting-point
317,Shortest Distance from All Buildings,41.4%,Hard,0.29874253625209474, https://leetcode.com/problems/shortest-distance-from-all-buildings
146,LRU Cache,33.2%,Medium,0.23060841514873096, https://leetcode.com/problems/lru-cache
772,Basic Calculator III,41.3%,Hard,0.13720112151348504, https://leetcode.com/problems/basic-calculator-iii
332,Reconstruct Itinerary,36.7%,Medium,0.08302143328026106, https://leetcode.com/problems/reconstruct-itinerary
224,Basic Calculator,36.8%,Hard,0.0813456394539524, https://leetcode.com/problems/basic-calculator
632,Smallest Range Covering Elements from K Lists,52.4%,Hard,0.07082605256861242, https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
68,Text Justification,27.7%,Hard,0.06116036187169583, https://leetcode.com/problems/text-justification
305,Number of Islands II,40.1%,Hard,0.06007812394328337, https://leetcode.com/problems/number-of-islands-ii
212,Word Search II,34.9%,Hard,0.05999879858378973, https://leetcode.com/problems/word-search-ii
839,Similar String Groups,38.6%,Hard,0.05480823649499502, https://leetcode.com/problems/similar-string-groups
282,Expression Add Operators,35.5%,Hard,0.049982640867735496, https://leetcode.com/problems/expression-add-operators
986,Interval List Intersections,67.3%,Medium,0.04703983015489417, https://leetcode.com/problems/interval-list-intersections
733,Flood Fill,55.3%,Easy,0.04413292021115189, https://leetcode.com/problems/flood-fill
642,Design Search Autocomplete System,44.7%,Hard,0.04334372921647208, https://leetcode.com/problems/design-search-autocomplete-system
716,Max Stack,42.6%,Easy,0.042695919196489414, https://leetcode.com/problems/max-stack
56,Merge Intervals,39.3%,Medium,0.04173304225331761, https://leetcode.com/problems/merge-intervals
1031,Maximum Sum of Two Non-Overlapping Subarrays,57.9%,Medium,0.03711000965123125, https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays
658,Find K Closest Elements,40.9%,Medium,0.03699558767659505, https://leetcode.com/problems/find-k-closest-elements
139,Word Break,40.1%,Medium,0.03451593709018879, https://leetcode.com/problems/word-break
480,Sliding Window Median,37.2%,Hard,0.03373001037669306, https://leetcode.com/problems/sliding-window-median
79,Word Search,35.6%,Medium,0.03318208821436187, https://leetcode.com/problems/word-search
253,Meeting Rooms II,45.7%,Medium,0.03193246767820989, https://leetcode.com/problems/meeting-rooms-ii
1146,Snapshot Array,37.0%,Medium,0.0317991816929387, https://leetcode.com/problems/snapshot-array
460,LFU Cache,34.2%,Hard,0.030962225603966897, https://leetcode.com/problems/lfu-cache
311,Sparse Matrix Multiplication,61.9%,Medium,0.027702602549335792, https://leetcode.com/problems/sparse-matrix-multiplication
200,Number of Islands,46.8%,Medium,0.025712029212602353, https://leetcode.com/problems/number-of-islands
362,Design Hit Counter,63.7%,Medium,0.025382073271417165, https://leetcode.com/problems/design-hit-counter
310,Minimum Height Trees,32.3%,Medium,0.02446605215440636, https://leetcode.com/problems/minimum-height-trees
127,Word Ladder,29.6%,Medium,0.023704813655166343, https://leetcode.com/problems/word-ladder
295,Find Median from Data Stream,44.3%,Hard,0.0201349084090559, https://leetcode.com/problems/find-median-from-data-stream
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
42,Trapping Rain Water,48.9%,Hard,0.017290251352643615, https://leetcode.com/problems/trapping-rain-water
415,Add Strings,47.5%,Easy,0.016991158247219373, https://leetcode.com/problems/add-strings
340,Longest Substring with At Most K Distinct Characters,44.1%,Hard,0.016122880486563188, https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
54,Spiral Matrix,34.1%,Medium,0.014776167707688753, https://leetcode.com/problems/spiral-matrix
653,Two Sum IV - Input is a BST,55.5%,Easy,0.014224990931347289, https://leetcode.com/problems/two-sum-iv-input-is-a-bst
76,Minimum Window Substring,34.6%,Hard,0.013966707481708198, https://leetcode.com/problems/minimum-window-substring
557,Reverse Words in a String III,69.8%,Easy,0.013731764001315941, https://leetcode.com/problems/reverse-words-in-a-string-iii
329,Longest Increasing Path in a Matrix,43.4%,Hard,0.013400535537482126, https://leetcode.com/problems/longest-increasing-path-in-a-matrix
91,Decode Ways,24.7%,Medium,0.013379120336324091, https://leetcode.com/problems/decode-ways
39,Combination Sum,56.1%,Medium,0.012815211692867591, https://leetcode.com/problems/combination-sum
227,Basic Calculator II,36.9%,Medium,0.01239941490503826, https://leetcode.com/problems/basic-calculator-ii
169,Majority Element,58.7%,Easy,0.010558521365115802, https://leetcode.com/problems/majority-element
234,Palindrome Linked List,39.3%,Easy,0.010171877938733932, https://leetcode.com/problems/palindrome-linked-list
22,Generate Parentheses,62.7%,Medium,0.009785877810632554, https://leetcode.com/problems/generate-parentheses
63,Unique Paths II,34.6%,Medium,0.008712753874961187, https://leetcode.com/problems/unique-paths-ii
49,Group Anagrams,56.9%,Medium,0.008538951314232168, https://leetcode.com/problems/group-anagrams
394,Decode String,50.0%,Medium,0.008166644000272283, https://leetcode.com/problems/decode-string
14,Longest Common Prefix,35.4%,Easy,0.00745530292090591, https://leetcode.com/problems/longest-common-prefix
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.007077170374085099, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
155,Min Stack,44.5%,Easy,0.00474891074128171, https://leetcode.com/problems/min-stack
62,Unique Paths,54.1%,Medium,0.004621080312067025, https://leetcode.com/problems/unique-paths
560,Subarray Sum Equals K,43.9%,Medium,0.004279454482267064, https://leetcode.com/problems/subarray-sum-equals-k
242,Valid Anagram,56.9%,Easy,0.004154123743115972, https://leetcode.com/problems/valid-anagram
189,Rotate Array,34.7%,Easy,0.004029826126500844, https://leetcode.com/problems/rotate-array
238,Product of Array Except Self,60.1%,Medium,0.003930436424724545, https://leetcode.com/problems/product-of-array-except-self
215,Kth Largest Element in an Array,55.4%,Medium,0.003902443976931749, https://leetcode.com/problems/kth-largest-element-in-an-array
347,Top K Frequent Elements,61.2%,Medium,0.0033396446491217604, https://leetcode.com/problems/top-k-frequent-elements
344,Reverse String,68.5%,Easy,0.003269579502519813, https://leetcode.com/problems/reverse-string
33,Search in Rotated Sorted Array,34.5%,Medium,0.003229976968332634, https://leetcode.com/problems/search-in-rotated-sorted-array
140,Word Break II,32.6%,Hard,0.0027070942357783584, https://leetcode.com/problems/word-break-ii
15,3Sum,26.8%,Medium,0.0021990113314367685, https://leetcode.com/problems/3sum
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.0021239321954525975, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
210,Course Schedule II,40.7%,Medium,0.0019086707135282834, https://leetcode.com/problems/course-schedule-ii
1,Two Sum,45.6%,Easy,0.00184543512358731, https://leetcode.com/problems/two-sum
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.0015556336509412823, https://leetcode.com/problems/longest-substring-without-repeating-characters
1 527 ID Word Abbreviation Title 54.3% Acceptance Hard Difficulty 0.4819143893795129 Frequency https://leetcode.com/problems/word-abbreviation Leetcode Question Link
2 296 527 Best Meeting Point Word Abbreviation 57.5% 54.3% Hard Hard 0.388507095744267 0.4819143893795129 https://leetcode.com/problems/best-meeting-point https://leetcode.com/problems/word-abbreviation
3 317 296 Shortest Distance from All Buildings Best Meeting Point 41.4% 57.5% Hard Hard 0.29874253625209474 0.388507095744267 https://leetcode.com/problems/shortest-distance-from-all-buildings https://leetcode.com/problems/best-meeting-point
4 146 317 LRU Cache Shortest Distance from All Buildings 33.2% 41.4% Medium Hard 0.23060841514873096 0.29874253625209474 https://leetcode.com/problems/lru-cache https://leetcode.com/problems/shortest-distance-from-all-buildings
5 772 146 Basic Calculator III LRU Cache 41.3% 33.2% Hard Medium 0.13720112151348504 0.23060841514873096 https://leetcode.com/problems/basic-calculator-iii https://leetcode.com/problems/lru-cache
6 332 772 Reconstruct Itinerary Basic Calculator III 36.7% 41.3% Medium Hard 0.08302143328026106 0.13720112151348504 https://leetcode.com/problems/reconstruct-itinerary https://leetcode.com/problems/basic-calculator-iii
7 224 332 Basic Calculator Reconstruct Itinerary 36.8% 36.7% Hard Medium 0.0813456394539524 0.08302143328026106 https://leetcode.com/problems/basic-calculator https://leetcode.com/problems/reconstruct-itinerary
8 632 224 Smallest Range Covering Elements from K Lists Basic Calculator 52.4% 36.8% Hard Hard 0.07082605256861242 0.0813456394539524 https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists https://leetcode.com/problems/basic-calculator
9 68 632 Text Justification Smallest Range Covering Elements from K Lists 27.7% 52.4% Hard Hard 0.06116036187169583 0.07082605256861242 https://leetcode.com/problems/text-justification https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
10 305 68 Number of Islands II Text Justification 40.1% 27.7% Hard Hard 0.06007812394328337 0.06116036187169583 https://leetcode.com/problems/number-of-islands-ii https://leetcode.com/problems/text-justification
11 212 305 Word Search II Number of Islands II 34.9% 40.1% Hard Hard 0.05999879858378973 0.06007812394328337 https://leetcode.com/problems/word-search-ii https://leetcode.com/problems/number-of-islands-ii
12 839 212 Similar String Groups Word Search II 38.6% 34.9% Hard Hard 0.05480823649499502 0.05999879858378973 https://leetcode.com/problems/similar-string-groups https://leetcode.com/problems/word-search-ii
13 282 839 Expression Add Operators Similar String Groups 35.5% 38.6% Hard Hard 0.049982640867735496 0.05480823649499502 https://leetcode.com/problems/expression-add-operators https://leetcode.com/problems/similar-string-groups
14 986 282 Interval List Intersections Expression Add Operators 67.3% 35.5% Medium Hard 0.04703983015489417 0.049982640867735496 https://leetcode.com/problems/interval-list-intersections https://leetcode.com/problems/expression-add-operators
15 733 986 Flood Fill Interval List Intersections 55.3% 67.3% Easy Medium 0.04413292021115189 0.04703983015489417 https://leetcode.com/problems/flood-fill https://leetcode.com/problems/interval-list-intersections
16 642 733 Design Search Autocomplete System Flood Fill 44.7% 55.3% Hard Easy 0.04334372921647208 0.04413292021115189 https://leetcode.com/problems/design-search-autocomplete-system https://leetcode.com/problems/flood-fill
17 716 642 Max Stack Design Search Autocomplete System 42.6% 44.7% Easy Hard 0.042695919196489414 0.04334372921647208 https://leetcode.com/problems/max-stack https://leetcode.com/problems/design-search-autocomplete-system
18 56 716 Merge Intervals Max Stack 39.3% 42.6% Medium Easy 0.04173304225331761 0.042695919196489414 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/max-stack
19 1031 56 Maximum Sum of Two Non-Overlapping Subarrays Merge Intervals 57.9% 39.3% Medium Medium 0.03711000965123125 0.04173304225331761 https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays https://leetcode.com/problems/merge-intervals
20 658 1031 Find K Closest Elements Maximum Sum of Two Non-Overlapping Subarrays 40.9% 57.9% Medium Medium 0.03699558767659505 0.03711000965123125 https://leetcode.com/problems/find-k-closest-elements https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays
21 139 658 Word Break Find K Closest Elements 40.1% 40.9% Medium Medium 0.03451593709018879 0.03699558767659505 https://leetcode.com/problems/word-break https://leetcode.com/problems/find-k-closest-elements
22 480 139 Sliding Window Median Word Break 37.2% 40.1% Hard Medium 0.03373001037669306 0.03451593709018879 https://leetcode.com/problems/sliding-window-median https://leetcode.com/problems/word-break
23 79 480 Word Search Sliding Window Median 35.6% 37.2% Medium Hard 0.03318208821436187 0.03373001037669306 https://leetcode.com/problems/word-search https://leetcode.com/problems/sliding-window-median
24 253 79 Meeting Rooms II Word Search 45.7% 35.6% Medium Medium 0.03193246767820989 0.03318208821436187 https://leetcode.com/problems/meeting-rooms-ii https://leetcode.com/problems/word-search
25 1146 253 Snapshot Array Meeting Rooms II 37.0% 45.7% Medium Medium 0.0317991816929387 0.03193246767820989 https://leetcode.com/problems/snapshot-array https://leetcode.com/problems/meeting-rooms-ii
26 460 1146 LFU Cache Snapshot Array 34.2% 37.0% Hard Medium 0.030962225603966897 0.0317991816929387 https://leetcode.com/problems/lfu-cache https://leetcode.com/problems/snapshot-array
27 311 460 Sparse Matrix Multiplication LFU Cache 61.9% 34.2% Medium Hard 0.027702602549335792 0.030962225603966897 https://leetcode.com/problems/sparse-matrix-multiplication https://leetcode.com/problems/lfu-cache
28 200 311 Number of Islands Sparse Matrix Multiplication 46.8% 61.9% Medium Medium 0.025712029212602353 0.027702602549335792 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/sparse-matrix-multiplication
29 362 200 Design Hit Counter Number of Islands 63.7% 46.8% Medium Medium 0.025382073271417165 0.025712029212602353 https://leetcode.com/problems/design-hit-counter https://leetcode.com/problems/number-of-islands
30 310 362 Minimum Height Trees Design Hit Counter 32.3% 63.7% Medium Medium 0.02446605215440636 0.025382073271417165 https://leetcode.com/problems/minimum-height-trees https://leetcode.com/problems/design-hit-counter
31 127 310 Word Ladder Minimum Height Trees 29.6% 32.3% Medium Medium 0.023704813655166343 0.02446605215440636 https://leetcode.com/problems/word-ladder https://leetcode.com/problems/minimum-height-trees
32 295 127 Find Median from Data Stream Word Ladder 44.3% 29.6% Hard Medium 0.0201349084090559 0.023704813655166343 https://leetcode.com/problems/find-median-from-data-stream https://leetcode.com/problems/word-ladder
33 341 295 Flatten Nested List Iterator Find Median from Data Stream 52.9% 44.3% Medium Hard 0.019980684690483426 0.0201349084090559 https://leetcode.com/problems/flatten-nested-list-iterator https://leetcode.com/problems/find-median-from-data-stream
34 42 341 Trapping Rain Water Flatten Nested List Iterator 48.9% 52.9% Hard Medium 0.017290251352643615 0.019980684690483426 https://leetcode.com/problems/trapping-rain-water https://leetcode.com/problems/flatten-nested-list-iterator
35 415 42 Add Strings Trapping Rain Water 47.5% 48.9% Easy Hard 0.016991158247219373 0.017290251352643615 https://leetcode.com/problems/add-strings https://leetcode.com/problems/trapping-rain-water
36 340 415 Longest Substring with At Most K Distinct Characters Add Strings 44.1% 47.5% Hard Easy 0.016122880486563188 0.016991158247219373 https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters https://leetcode.com/problems/add-strings
37 54 340 Spiral Matrix Longest Substring with At Most K Distinct Characters 34.1% 44.1% Medium Hard 0.014776167707688753 0.016122880486563188 https://leetcode.com/problems/spiral-matrix https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
38 653 54 Two Sum IV - Input is a BST Spiral Matrix 55.5% 34.1% Easy Medium 0.014224990931347289 0.014776167707688753 https://leetcode.com/problems/two-sum-iv-input-is-a-bst https://leetcode.com/problems/spiral-matrix
39 76 653 Minimum Window Substring Two Sum IV - Input is a BST 34.6% 55.5% Hard Easy 0.013966707481708198 0.014224990931347289 https://leetcode.com/problems/minimum-window-substring https://leetcode.com/problems/two-sum-iv-input-is-a-bst
40 557 76 Reverse Words in a String III Minimum Window Substring 69.8% 34.6% Easy Hard 0.013731764001315941 0.013966707481708198 https://leetcode.com/problems/reverse-words-in-a-string-iii https://leetcode.com/problems/minimum-window-substring
41 329 557 Longest Increasing Path in a Matrix Reverse Words in a String III 43.4% 69.8% Hard Easy 0.013400535537482126 0.013731764001315941 https://leetcode.com/problems/longest-increasing-path-in-a-matrix https://leetcode.com/problems/reverse-words-in-a-string-iii
42 91 329 Decode Ways Longest Increasing Path in a Matrix 24.7% 43.4% Medium Hard 0.013379120336324091 0.013400535537482126 https://leetcode.com/problems/decode-ways https://leetcode.com/problems/longest-increasing-path-in-a-matrix
43 39 91 Combination Sum Decode Ways 56.1% 24.7% Medium Medium 0.012815211692867591 0.013379120336324091 https://leetcode.com/problems/combination-sum https://leetcode.com/problems/decode-ways
44 227 39 Basic Calculator II Combination Sum 36.9% 56.1% Medium Medium 0.01239941490503826 0.012815211692867591 https://leetcode.com/problems/basic-calculator-ii https://leetcode.com/problems/combination-sum
45 169 227 Majority Element Basic Calculator II 58.7% 36.9% Easy Medium 0.010558521365115802 0.01239941490503826 https://leetcode.com/problems/majority-element https://leetcode.com/problems/basic-calculator-ii
46 234 169 Palindrome Linked List Majority Element 39.3% 58.7% Easy Easy 0.010171877938733932 0.010558521365115802 https://leetcode.com/problems/palindrome-linked-list https://leetcode.com/problems/majority-element
47 22 234 Generate Parentheses Palindrome Linked List 62.7% 39.3% Medium Easy 0.009785877810632554 0.010171877938733932 https://leetcode.com/problems/generate-parentheses https://leetcode.com/problems/palindrome-linked-list
48 63 22 Unique Paths II Generate Parentheses 34.6% 62.7% Medium Medium 0.008712753874961187 0.009785877810632554 https://leetcode.com/problems/unique-paths-ii https://leetcode.com/problems/generate-parentheses
49 49 63 Group Anagrams Unique Paths II 56.9% 34.6% Medium Medium 0.008538951314232168 0.008712753874961187 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/unique-paths-ii
50 394 49 Decode String Group Anagrams 50.0% 56.9% Medium Medium 0.008166644000272283 0.008538951314232168 https://leetcode.com/problems/decode-string https://leetcode.com/problems/group-anagrams
51 14 394 Longest Common Prefix Decode String 35.4% 50.0% Easy Medium 0.00745530292090591 0.008166644000272283 https://leetcode.com/problems/longest-common-prefix https://leetcode.com/problems/decode-string
52 297 14 Serialize and Deserialize Binary Tree Longest Common Prefix 47.5% 35.4% Hard Easy 0.007077170374085099 0.00745530292090591 https://leetcode.com/problems/serialize-and-deserialize-binary-tree https://leetcode.com/problems/longest-common-prefix
53 155 297 Min Stack Serialize and Deserialize Binary Tree 44.5% 47.5% Easy Hard 0.00474891074128171 0.007077170374085099 https://leetcode.com/problems/min-stack https://leetcode.com/problems/serialize-and-deserialize-binary-tree
54 62 155 Unique Paths Min Stack 54.1% 44.5% Medium Easy 0.004621080312067025 0.00474891074128171 https://leetcode.com/problems/unique-paths https://leetcode.com/problems/min-stack
55 560 62 Subarray Sum Equals K Unique Paths 43.9% 54.1% Medium Medium 0.004279454482267064 0.004621080312067025 https://leetcode.com/problems/subarray-sum-equals-k https://leetcode.com/problems/unique-paths
56 242 560 Valid Anagram Subarray Sum Equals K 56.9% 43.9% Easy Medium 0.004154123743115972 0.004279454482267064 https://leetcode.com/problems/valid-anagram https://leetcode.com/problems/subarray-sum-equals-k
57 189 242 Rotate Array Valid Anagram 34.7% 56.9% Easy Easy 0.004029826126500844 0.004154123743115972 https://leetcode.com/problems/rotate-array https://leetcode.com/problems/valid-anagram
58 238 189 Product of Array Except Self Rotate Array 60.1% 34.7% Medium Easy 0.003930436424724545 0.004029826126500844 https://leetcode.com/problems/product-of-array-except-self https://leetcode.com/problems/rotate-array
59 215 238 Kth Largest Element in an Array Product of Array Except Self 55.4% 60.1% Medium Medium 0.003902443976931749 0.003930436424724545 https://leetcode.com/problems/kth-largest-element-in-an-array https://leetcode.com/problems/product-of-array-except-self
60 347 215 Top K Frequent Elements Kth Largest Element in an Array 61.2% 55.4% Medium Medium 0.0033396446491217604 0.003902443976931749 https://leetcode.com/problems/top-k-frequent-elements https://leetcode.com/problems/kth-largest-element-in-an-array
61 344 347 Reverse String Top K Frequent Elements 68.5% 61.2% Easy Medium 0.003269579502519813 0.0033396446491217604 https://leetcode.com/problems/reverse-string https://leetcode.com/problems/top-k-frequent-elements
62 33 344 Search in Rotated Sorted Array Reverse String 34.5% 68.5% Medium Easy 0.003229976968332634 0.003269579502519813 https://leetcode.com/problems/search-in-rotated-sorted-array https://leetcode.com/problems/reverse-string
63 140 33 Word Break II Search in Rotated Sorted Array 32.6% 34.5% Hard Medium 0.0027070942357783584 0.003229976968332634 https://leetcode.com/problems/word-break-ii https://leetcode.com/problems/search-in-rotated-sorted-array
64 15 140 3Sum Word Break II 26.8% 32.6% Medium Hard 0.0021990113314367685 0.0027070942357783584 https://leetcode.com/problems/3sum https://leetcode.com/problems/word-break-ii
65 121 15 Best Time to Buy and Sell Stock 3Sum 50.5% 26.8% Easy Medium 0.0021239321954525975 0.0021990113314367685 https://leetcode.com/problems/best-time-to-buy-and-sell-stock https://leetcode.com/problems/3sum
66 210 121 Course Schedule II Best Time to Buy and Sell Stock 40.7% 50.5% Medium Easy 0.0019086707135282834 0.0021239321954525975 https://leetcode.com/problems/course-schedule-ii https://leetcode.com/problems/best-time-to-buy-and-sell-stock
67 1 210 Two Sum Course Schedule II 45.6% 40.7% Easy Medium 0.00184543512358731 0.0019086707135282834 https://leetcode.com/problems/two-sum https://leetcode.com/problems/course-schedule-ii
68 3 1 Longest Substring Without Repeating Characters Two Sum 30.4% 45.6% Medium Easy 0.0015556336509412823 0.00184543512358731 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/two-sum
69 3 Longest Substring Without Repeating Characters 30.4% Medium 0.0015556336509412823 https://leetcode.com/problems/longest-substring-without-repeating-characters