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 @@
780,Reaching Points,29.4%,Hard,0.33832960242595933, https://leetcode.com/problems/reaching-points
146,LRU Cache,33.2%,Medium,0.2585885798043696, https://leetcode.com/problems/lru-cache
1283,Find the Smallest Divisor Given a Threshold,47.6%,Medium,0.17884755718277986, https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold
706,Design HashMap,61.3%,Easy,0.1476880076475794, https://leetcode.com/problems/design-hashmap
460,LFU Cache,34.2%,Hard,0.11848160362052347, https://leetcode.com/problems/lfu-cache
532,K-diff Pairs in an Array,31.6%,Easy,0.111723209445655, https://leetcode.com/problems/k-diff-pairs-in-an-array
82,Remove Duplicates from Sorted List II,36.8%,Medium,0.1110882064011508, https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
56,Merge Intervals,39.3%,Medium,0.10005860920617055, https://leetcode.com/problems/merge-intervals
251,Flatten 2D Vector,45.7%,Medium,0.06635933243696077, https://leetcode.com/problems/flatten-2d-vector
353,Design Snake Game,34.2%,Medium,0.06053284922884233, https://leetcode.com/problems/design-snake-game
384,Shuffle an Array,52.8%,Medium,0.05965241992885116, https://leetcode.com/problems/shuffle-an-array
218,The Skyline Problem,34.6%,Hard,0.0564413109049518, https://leetcode.com/problems/the-skyline-problem
83,Remove Duplicates from Sorted List,45.4%,Easy,0.055776537457411894, https://leetcode.com/problems/remove-duplicates-from-sorted-list
642,Design Search Autocomplete System,44.7%,Hard,0.04334372921647208, https://leetcode.com/problems/design-search-autocomplete-system
895,Maximum Frequency Stack,60.6%,Hard,0.04329680575332419, https://leetcode.com/problems/maximum-frequency-stack
17,Letter Combinations of a Phone Number,46.8%,Medium,0.03893646375009422, https://leetcode.com/problems/letter-combinations-of-a-phone-number
179,Largest Number,28.8%,Medium,0.03093030069135863, https://leetcode.com/problems/largest-number
724,Find Pivot Index,44.0%,Easy,0.03089844155123413, https://leetcode.com/problems/find-pivot-index
135,Candy,31.6%,Hard,0.029764101906453892, https://leetcode.com/problems/candy
348,Design Tic-Tac-Toe,54.3%,Medium,0.024214258120594613, https://leetcode.com/problems/design-tic-tac-toe
127,Word Ladder,29.6%,Medium,0.023704813655166343, https://leetcode.com/problems/word-ladder
211,Add and Search Word - Data structure design,38.1%,Medium,0.02333525640896379, https://leetcode.com/problems/add-and-search-word-data-structure-design
207,Course Schedule,43.1%,Medium,0.019709926055136454, https://leetcode.com/problems/course-schedule
314,Binary Tree Vertical Order Traversal,45.3%,Medium,0.018010392274465332, https://leetcode.com/problems/binary-tree-vertical-order-traversal
692,Top K Frequent Words,51.8%,Medium,0.016832265743172113, https://leetcode.com/problems/top-k-frequent-words
71,Simplify Path,32.6%,Medium,0.016260520871780308, https://leetcode.com/problems/simplify-path
23,Merge k Sorted Lists,40.2%,Hard,0.016108271385328228, https://leetcode.com/problems/merge-k-sorted-lists
41,First Missing Positive,32.0%,Hard,0.014368063266920193, https://leetcode.com/problems/first-missing-positive
20,Valid Parentheses,39.0%,Easy,0.014292491180025941, https://leetcode.com/problems/valid-parentheses
557,Reverse Words in a String III,69.8%,Easy,0.013731764001315941, https://leetcode.com/problems/reverse-words-in-a-string-iii
287,Find the Duplicate Number,55.5%,Medium,0.012335682739188652, https://leetcode.com/problems/find-the-duplicate-number
547,Friend Circles,58.6%,Medium,0.012228828639434596, https://leetcode.com/problems/friend-circles
98,Validate Binary Search Tree,27.8%,Medium,0.01172346369605921, https://leetcode.com/problems/validate-binary-search-tree
205,Isomorphic Strings,39.8%,Easy,0.011544139746865315, https://leetcode.com/problems/isomorphic-strings
48,Rotate Image,56.7%,Medium,0.011428695823622754, https://leetcode.com/problems/rotate-image
232,Implement Queue using Stacks,49.6%,Easy,0.011242389348933884, https://leetcode.com/problems/implement-queue-using-stacks
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.010575891759058162, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
212,Word Search II,34.9%,Hard,0.009845021678804893, https://leetcode.com/problems/word-search-ii
380,Insert Delete GetRandom O(1),47.5%,Medium,0.009820849864094454, https://leetcode.com/problems/insert-delete-getrandom-o1
42,Trapping Rain Water,48.9%,Hard,0.009762524655659178, https://leetcode.com/problems/trapping-rain-water
295,Find Median from Data Stream,44.3%,Hard,0.00899893586856953, https://leetcode.com/problems/find-median-from-data-stream
12,Integer to Roman,55.1%,Medium,0.008532474973720734, https://leetcode.com/problems/integer-to-roman
153,Find Minimum in Rotated Sorted Array,45.1%,Medium,0.008430963288799368, https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
394,Decode String,50.0%,Medium,0.008166644000272283, https://leetcode.com/problems/decode-string
240,Search a 2D Matrix II,43.2%,Medium,0.0075829747244553335, https://leetcode.com/problems/search-a-2d-matrix-ii
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
412,Fizz Buzz,62.3%,Easy,0.007165921026143679, https://leetcode.com/problems/fizz-buzz
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.007077170374085099, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
73,Set Matrix Zeroes,43.1%,Medium,0.0070151111959223245, https://leetcode.com/problems/set-matrix-zeroes
200,Number of Islands,46.8%,Medium,0.006490251382779317, https://leetcode.com/problems/number-of-islands
76,Minimum Window Substring,34.6%,Hard,0.006231520398723243, https://leetcode.com/problems/minimum-window-substring
226,Invert Binary Tree,65.0%,Easy,0.005508138409792252, https://leetcode.com/problems/invert-binary-tree
300,Longest Increasing Subsequence,42.6%,Medium,0.005264555460003242, https://leetcode.com/problems/longest-increasing-subsequence
350,Intersection of Two Arrays II,51.4%,Easy,0.005210380421193978, https://leetcode.com/problems/intersection-of-two-arrays-ii
22,Generate Parentheses,62.7%,Medium,0.0043611059090124735, https://leetcode.com/problems/generate-parentheses
46,Permutations,63.5%,Medium,0.004216302230139218, https://leetcode.com/problems/permutations
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
139,Word Break,40.1%,Medium,0.003894465052690167, https://leetcode.com/problems/word-break
49,Group Anagrams,56.9%,Medium,0.0038040939835560453, https://leetcode.com/problems/group-anagrams
151,Reverse Words in a String,21.9%,Medium,0.003456091915988908, https://leetcode.com/problems/reverse-words-in-a-string
101,Symmetric Tree,46.8%,Easy,0.0034057078469827435, https://leetcode.com/problems/symmetric-tree
1,Two Sum,45.6%,Easy,0.003278422738041615, https://leetcode.com/problems/two-sum
33,Search in Rotated Sorted Array,34.5%,Medium,0.003229976968332634, https://leetcode.com/problems/search-in-rotated-sorted-array
15,3Sum,26.8%,Medium,0.0021990113314367685, https://leetcode.com/problems/3sum
53,Maximum Subarray,46.5%,Easy,0.002167082872150794, https://leetcode.com/problems/maximum-subarray
2,Add Two Numbers,33.9%,Medium,0.0016886191111440908, https://leetcode.com/problems/add-two-numbers
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
780,Reaching Points,29.4%,Hard,0.33832960242595933, https://leetcode.com/problems/reaching-points
146,LRU Cache,33.2%,Medium,0.2585885798043696, https://leetcode.com/problems/lru-cache
1283,Find the Smallest Divisor Given a Threshold,47.6%,Medium,0.17884755718277986, https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold
706,Design HashMap,61.3%,Easy,0.1476880076475794, https://leetcode.com/problems/design-hashmap
460,LFU Cache,34.2%,Hard,0.11848160362052347, https://leetcode.com/problems/lfu-cache
532,K-diff Pairs in an Array,31.6%,Easy,0.111723209445655, https://leetcode.com/problems/k-diff-pairs-in-an-array
82,Remove Duplicates from Sorted List II,36.8%,Medium,0.1110882064011508, https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
56,Merge Intervals,39.3%,Medium,0.10005860920617055, https://leetcode.com/problems/merge-intervals
251,Flatten 2D Vector,45.7%,Medium,0.06635933243696077, https://leetcode.com/problems/flatten-2d-vector
353,Design Snake Game,34.2%,Medium,0.06053284922884233, https://leetcode.com/problems/design-snake-game
384,Shuffle an Array,52.8%,Medium,0.05965241992885116, https://leetcode.com/problems/shuffle-an-array
218,The Skyline Problem,34.6%,Hard,0.0564413109049518, https://leetcode.com/problems/the-skyline-problem
83,Remove Duplicates from Sorted List,45.4%,Easy,0.055776537457411894, https://leetcode.com/problems/remove-duplicates-from-sorted-list
642,Design Search Autocomplete System,44.7%,Hard,0.04334372921647208, https://leetcode.com/problems/design-search-autocomplete-system
895,Maximum Frequency Stack,60.6%,Hard,0.04329680575332419, https://leetcode.com/problems/maximum-frequency-stack
17,Letter Combinations of a Phone Number,46.8%,Medium,0.03893646375009422, https://leetcode.com/problems/letter-combinations-of-a-phone-number
179,Largest Number,28.8%,Medium,0.03093030069135863, https://leetcode.com/problems/largest-number
724,Find Pivot Index,44.0%,Easy,0.03089844155123413, https://leetcode.com/problems/find-pivot-index
135,Candy,31.6%,Hard,0.029764101906453892, https://leetcode.com/problems/candy
348,Design Tic-Tac-Toe,54.3%,Medium,0.024214258120594613, https://leetcode.com/problems/design-tic-tac-toe
127,Word Ladder,29.6%,Medium,0.023704813655166343, https://leetcode.com/problems/word-ladder
211,Add and Search Word - Data structure design,38.1%,Medium,0.02333525640896379, https://leetcode.com/problems/add-and-search-word-data-structure-design
207,Course Schedule,43.1%,Medium,0.019709926055136454, https://leetcode.com/problems/course-schedule
314,Binary Tree Vertical Order Traversal,45.3%,Medium,0.018010392274465332, https://leetcode.com/problems/binary-tree-vertical-order-traversal
692,Top K Frequent Words,51.8%,Medium,0.016832265743172113, https://leetcode.com/problems/top-k-frequent-words
71,Simplify Path,32.6%,Medium,0.016260520871780308, https://leetcode.com/problems/simplify-path
23,Merge k Sorted Lists,40.2%,Hard,0.016108271385328228, https://leetcode.com/problems/merge-k-sorted-lists
41,First Missing Positive,32.0%,Hard,0.014368063266920193, https://leetcode.com/problems/first-missing-positive
20,Valid Parentheses,39.0%,Easy,0.014292491180025941, https://leetcode.com/problems/valid-parentheses
557,Reverse Words in a String III,69.8%,Easy,0.013731764001315941, https://leetcode.com/problems/reverse-words-in-a-string-iii
287,Find the Duplicate Number,55.5%,Medium,0.012335682739188652, https://leetcode.com/problems/find-the-duplicate-number
547,Friend Circles,58.6%,Medium,0.012228828639434596, https://leetcode.com/problems/friend-circles
98,Validate Binary Search Tree,27.8%,Medium,0.01172346369605921, https://leetcode.com/problems/validate-binary-search-tree
205,Isomorphic Strings,39.8%,Easy,0.011544139746865315, https://leetcode.com/problems/isomorphic-strings
48,Rotate Image,56.7%,Medium,0.011428695823622754, https://leetcode.com/problems/rotate-image
232,Implement Queue using Stacks,49.6%,Easy,0.011242389348933884, https://leetcode.com/problems/implement-queue-using-stacks
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.010575891759058162, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
212,Word Search II,34.9%,Hard,0.009845021678804893, https://leetcode.com/problems/word-search-ii
380,Insert Delete GetRandom O(1),47.5%,Medium,0.009820849864094454, https://leetcode.com/problems/insert-delete-getrandom-o1
42,Trapping Rain Water,48.9%,Hard,0.009762524655659178, https://leetcode.com/problems/trapping-rain-water
295,Find Median from Data Stream,44.3%,Hard,0.00899893586856953, https://leetcode.com/problems/find-median-from-data-stream
12,Integer to Roman,55.1%,Medium,0.008532474973720734, https://leetcode.com/problems/integer-to-roman
153,Find Minimum in Rotated Sorted Array,45.1%,Medium,0.008430963288799368, https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
394,Decode String,50.0%,Medium,0.008166644000272283, https://leetcode.com/problems/decode-string
240,Search a 2D Matrix II,43.2%,Medium,0.0075829747244553335, https://leetcode.com/problems/search-a-2d-matrix-ii
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
412,Fizz Buzz,62.3%,Easy,0.007165921026143679, https://leetcode.com/problems/fizz-buzz
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.007077170374085099, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
73,Set Matrix Zeroes,43.1%,Medium,0.0070151111959223245, https://leetcode.com/problems/set-matrix-zeroes
200,Number of Islands,46.8%,Medium,0.006490251382779317, https://leetcode.com/problems/number-of-islands
76,Minimum Window Substring,34.6%,Hard,0.006231520398723243, https://leetcode.com/problems/minimum-window-substring
226,Invert Binary Tree,65.0%,Easy,0.005508138409792252, https://leetcode.com/problems/invert-binary-tree
300,Longest Increasing Subsequence,42.6%,Medium,0.005264555460003242, https://leetcode.com/problems/longest-increasing-subsequence
350,Intersection of Two Arrays II,51.4%,Easy,0.005210380421193978, https://leetcode.com/problems/intersection-of-two-arrays-ii
22,Generate Parentheses,62.7%,Medium,0.0043611059090124735, https://leetcode.com/problems/generate-parentheses
46,Permutations,63.5%,Medium,0.004216302230139218, https://leetcode.com/problems/permutations
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
139,Word Break,40.1%,Medium,0.003894465052690167, https://leetcode.com/problems/word-break
49,Group Anagrams,56.9%,Medium,0.0038040939835560453, https://leetcode.com/problems/group-anagrams
151,Reverse Words in a String,21.9%,Medium,0.003456091915988908, https://leetcode.com/problems/reverse-words-in-a-string
101,Symmetric Tree,46.8%,Easy,0.0034057078469827435, https://leetcode.com/problems/symmetric-tree
1,Two Sum,45.6%,Easy,0.003278422738041615, https://leetcode.com/problems/two-sum
33,Search in Rotated Sorted Array,34.5%,Medium,0.003229976968332634, https://leetcode.com/problems/search-in-rotated-sorted-array
15,3Sum,26.8%,Medium,0.0021990113314367685, https://leetcode.com/problems/3sum
53,Maximum Subarray,46.5%,Easy,0.002167082872150794, https://leetcode.com/problems/maximum-subarray
2,Add Two Numbers,33.9%,Medium,0.0016886191111440908, https://leetcode.com/problems/add-two-numbers
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.0015556336509412823, https://leetcode.com/problems/longest-substring-without-repeating-characters
1 780 ID Reaching Points Title 29.4% Acceptance Hard Difficulty 0.33832960242595933 Frequency https://leetcode.com/problems/reaching-points Leetcode Question Link
2 146 780 LRU Cache Reaching Points 33.2% 29.4% Medium Hard 0.2585885798043696 0.33832960242595933 https://leetcode.com/problems/lru-cache https://leetcode.com/problems/reaching-points
3 1283 146 Find the Smallest Divisor Given a Threshold LRU Cache 47.6% 33.2% Medium Medium 0.17884755718277986 0.2585885798043696 https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold https://leetcode.com/problems/lru-cache
4 706 1283 Design HashMap Find the Smallest Divisor Given a Threshold 61.3% 47.6% Easy Medium 0.1476880076475794 0.17884755718277986 https://leetcode.com/problems/design-hashmap https://leetcode.com/problems/find-the-smallest-divisor-given-a-threshold
5 460 706 LFU Cache Design HashMap 34.2% 61.3% Hard Easy 0.11848160362052347 0.1476880076475794 https://leetcode.com/problems/lfu-cache https://leetcode.com/problems/design-hashmap
6 532 460 K-diff Pairs in an Array LFU Cache 31.6% 34.2% Easy Hard 0.111723209445655 0.11848160362052347 https://leetcode.com/problems/k-diff-pairs-in-an-array https://leetcode.com/problems/lfu-cache
7 82 532 Remove Duplicates from Sorted List II K-diff Pairs in an Array 36.8% 31.6% Medium Easy 0.1110882064011508 0.111723209445655 https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii https://leetcode.com/problems/k-diff-pairs-in-an-array
8 56 82 Merge Intervals Remove Duplicates from Sorted List II 39.3% 36.8% Medium Medium 0.10005860920617055 0.1110882064011508 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
9 251 56 Flatten 2D Vector Merge Intervals 45.7% 39.3% Medium Medium 0.06635933243696077 0.10005860920617055 https://leetcode.com/problems/flatten-2d-vector https://leetcode.com/problems/merge-intervals
10 353 251 Design Snake Game Flatten 2D Vector 34.2% 45.7% Medium Medium 0.06053284922884233 0.06635933243696077 https://leetcode.com/problems/design-snake-game https://leetcode.com/problems/flatten-2d-vector
11 384 353 Shuffle an Array Design Snake Game 52.8% 34.2% Medium Medium 0.05965241992885116 0.06053284922884233 https://leetcode.com/problems/shuffle-an-array https://leetcode.com/problems/design-snake-game
12 218 384 The Skyline Problem Shuffle an Array 34.6% 52.8% Hard Medium 0.0564413109049518 0.05965241992885116 https://leetcode.com/problems/the-skyline-problem https://leetcode.com/problems/shuffle-an-array
13 83 218 Remove Duplicates from Sorted List The Skyline Problem 45.4% 34.6% Easy Hard 0.055776537457411894 0.0564413109049518 https://leetcode.com/problems/remove-duplicates-from-sorted-list https://leetcode.com/problems/the-skyline-problem
14 642 83 Design Search Autocomplete System Remove Duplicates from Sorted List 44.7% 45.4% Hard Easy 0.04334372921647208 0.055776537457411894 https://leetcode.com/problems/design-search-autocomplete-system https://leetcode.com/problems/remove-duplicates-from-sorted-list
15 895 642 Maximum Frequency Stack Design Search Autocomplete System 60.6% 44.7% Hard Hard 0.04329680575332419 0.04334372921647208 https://leetcode.com/problems/maximum-frequency-stack https://leetcode.com/problems/design-search-autocomplete-system
16 17 895 Letter Combinations of a Phone Number Maximum Frequency Stack 46.8% 60.6% Medium Hard 0.03893646375009422 0.04329680575332419 https://leetcode.com/problems/letter-combinations-of-a-phone-number https://leetcode.com/problems/maximum-frequency-stack
17 179 17 Largest Number Letter Combinations of a Phone Number 28.8% 46.8% Medium Medium 0.03093030069135863 0.03893646375009422 https://leetcode.com/problems/largest-number https://leetcode.com/problems/letter-combinations-of-a-phone-number
18 724 179 Find Pivot Index Largest Number 44.0% 28.8% Easy Medium 0.03089844155123413 0.03093030069135863 https://leetcode.com/problems/find-pivot-index https://leetcode.com/problems/largest-number
19 135 724 Candy Find Pivot Index 31.6% 44.0% Hard Easy 0.029764101906453892 0.03089844155123413 https://leetcode.com/problems/candy https://leetcode.com/problems/find-pivot-index
20 348 135 Design Tic-Tac-Toe Candy 54.3% 31.6% Medium Hard 0.024214258120594613 0.029764101906453892 https://leetcode.com/problems/design-tic-tac-toe https://leetcode.com/problems/candy
21 127 348 Word Ladder Design Tic-Tac-Toe 29.6% 54.3% Medium Medium 0.023704813655166343 0.024214258120594613 https://leetcode.com/problems/word-ladder https://leetcode.com/problems/design-tic-tac-toe
22 211 127 Add and Search Word - Data structure design Word Ladder 38.1% 29.6% Medium Medium 0.02333525640896379 0.023704813655166343 https://leetcode.com/problems/add-and-search-word-data-structure-design https://leetcode.com/problems/word-ladder
23 207 211 Course Schedule Add and Search Word - Data structure design 43.1% 38.1% Medium Medium 0.019709926055136454 0.02333525640896379 https://leetcode.com/problems/course-schedule https://leetcode.com/problems/add-and-search-word-data-structure-design
24 314 207 Binary Tree Vertical Order Traversal Course Schedule 45.3% 43.1% Medium Medium 0.018010392274465332 0.019709926055136454 https://leetcode.com/problems/binary-tree-vertical-order-traversal https://leetcode.com/problems/course-schedule
25 692 314 Top K Frequent Words Binary Tree Vertical Order Traversal 51.8% 45.3% Medium Medium 0.016832265743172113 0.018010392274465332 https://leetcode.com/problems/top-k-frequent-words https://leetcode.com/problems/binary-tree-vertical-order-traversal
26 71 692 Simplify Path Top K Frequent Words 32.6% 51.8% Medium Medium 0.016260520871780308 0.016832265743172113 https://leetcode.com/problems/simplify-path https://leetcode.com/problems/top-k-frequent-words
27 23 71 Merge k Sorted Lists Simplify Path 40.2% 32.6% Hard Medium 0.016108271385328228 0.016260520871780308 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/simplify-path
28 41 23 First Missing Positive Merge k Sorted Lists 32.0% 40.2% Hard Hard 0.014368063266920193 0.016108271385328228 https://leetcode.com/problems/first-missing-positive https://leetcode.com/problems/merge-k-sorted-lists
29 20 41 Valid Parentheses First Missing Positive 39.0% 32.0% Easy Hard 0.014292491180025941 0.014368063266920193 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/first-missing-positive
30 557 20 Reverse Words in a String III Valid Parentheses 69.8% 39.0% Easy Easy 0.013731764001315941 0.014292491180025941 https://leetcode.com/problems/reverse-words-in-a-string-iii https://leetcode.com/problems/valid-parentheses
31 287 557 Find the Duplicate Number Reverse Words in a String III 55.5% 69.8% Medium Easy 0.012335682739188652 0.013731764001315941 https://leetcode.com/problems/find-the-duplicate-number https://leetcode.com/problems/reverse-words-in-a-string-iii
32 547 287 Friend Circles Find the Duplicate Number 58.6% 55.5% Medium Medium 0.012228828639434596 0.012335682739188652 https://leetcode.com/problems/friend-circles https://leetcode.com/problems/find-the-duplicate-number
33 98 547 Validate Binary Search Tree Friend Circles 27.8% 58.6% Medium Medium 0.01172346369605921 0.012228828639434596 https://leetcode.com/problems/validate-binary-search-tree https://leetcode.com/problems/friend-circles
34 205 98 Isomorphic Strings Validate Binary Search Tree 39.8% 27.8% Easy Medium 0.011544139746865315 0.01172346369605921 https://leetcode.com/problems/isomorphic-strings https://leetcode.com/problems/validate-binary-search-tree
35 48 205 Rotate Image Isomorphic Strings 56.7% 39.8% Medium Easy 0.011428695823622754 0.011544139746865315 https://leetcode.com/problems/rotate-image https://leetcode.com/problems/isomorphic-strings
36 232 48 Implement Queue using Stacks Rotate Image 49.6% 56.7% Easy Medium 0.011242389348933884 0.011428695823622754 https://leetcode.com/problems/implement-queue-using-stacks https://leetcode.com/problems/rotate-image
37 236 232 Lowest Common Ancestor of a Binary Tree Implement Queue using Stacks 45.7% 49.6% Medium Easy 0.010575891759058162 0.011242389348933884 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree https://leetcode.com/problems/implement-queue-using-stacks
38 212 236 Word Search II Lowest Common Ancestor of a Binary Tree 34.9% 45.7% Hard Medium 0.009845021678804893 0.010575891759058162 https://leetcode.com/problems/word-search-ii https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
39 380 212 Insert Delete GetRandom O(1) Word Search II 47.5% 34.9% Medium Hard 0.009820849864094454 0.009845021678804893 https://leetcode.com/problems/insert-delete-getrandom-o1 https://leetcode.com/problems/word-search-ii
40 42 380 Trapping Rain Water Insert Delete GetRandom O(1) 48.9% 47.5% Hard Medium 0.009762524655659178 0.009820849864094454 https://leetcode.com/problems/trapping-rain-water https://leetcode.com/problems/insert-delete-getrandom-o1
41 295 42 Find Median from Data Stream Trapping Rain Water 44.3% 48.9% Hard Hard 0.00899893586856953 0.009762524655659178 https://leetcode.com/problems/find-median-from-data-stream https://leetcode.com/problems/trapping-rain-water
42 12 295 Integer to Roman Find Median from Data Stream 55.1% 44.3% Medium Hard 0.008532474973720734 0.00899893586856953 https://leetcode.com/problems/integer-to-roman https://leetcode.com/problems/find-median-from-data-stream
43 153 12 Find Minimum in Rotated Sorted Array Integer to Roman 45.1% 55.1% Medium Medium 0.008430963288799368 0.008532474973720734 https://leetcode.com/problems/find-minimum-in-rotated-sorted-array https://leetcode.com/problems/integer-to-roman
44 394 153 Decode String Find Minimum in Rotated Sorted Array 50.0% 45.1% Medium Medium 0.008166644000272283 0.008430963288799368 https://leetcode.com/problems/decode-string https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
45 240 394 Search a 2D Matrix II Decode String 43.2% 50.0% Medium Medium 0.0075829747244553335 0.008166644000272283 https://leetcode.com/problems/search-a-2d-matrix-ii https://leetcode.com/problems/decode-string
46 36 240 Valid Sudoku Search a 2D Matrix II 48.7% 43.2% Medium Medium 0.007258242715805398 0.0075829747244553335 https://leetcode.com/problems/valid-sudoku https://leetcode.com/problems/search-a-2d-matrix-ii
47 412 36 Fizz Buzz Valid Sudoku 62.3% 48.7% Easy Medium 0.007165921026143679 0.007258242715805398 https://leetcode.com/problems/fizz-buzz https://leetcode.com/problems/valid-sudoku
48 297 412 Serialize and Deserialize Binary Tree Fizz Buzz 47.5% 62.3% Hard Easy 0.007077170374085099 0.007165921026143679 https://leetcode.com/problems/serialize-and-deserialize-binary-tree https://leetcode.com/problems/fizz-buzz
49 73 297 Set Matrix Zeroes Serialize and Deserialize Binary Tree 43.1% 47.5% Medium Hard 0.0070151111959223245 0.007077170374085099 https://leetcode.com/problems/set-matrix-zeroes https://leetcode.com/problems/serialize-and-deserialize-binary-tree
50 200 73 Number of Islands Set Matrix Zeroes 46.8% 43.1% Medium Medium 0.006490251382779317 0.0070151111959223245 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/set-matrix-zeroes
51 76 200 Minimum Window Substring Number of Islands 34.6% 46.8% Hard Medium 0.006231520398723243 0.006490251382779317 https://leetcode.com/problems/minimum-window-substring https://leetcode.com/problems/number-of-islands
52 226 76 Invert Binary Tree Minimum Window Substring 65.0% 34.6% Easy Hard 0.005508138409792252 0.006231520398723243 https://leetcode.com/problems/invert-binary-tree https://leetcode.com/problems/minimum-window-substring
53 300 226 Longest Increasing Subsequence Invert Binary Tree 42.6% 65.0% Medium Easy 0.005264555460003242 0.005508138409792252 https://leetcode.com/problems/longest-increasing-subsequence https://leetcode.com/problems/invert-binary-tree
54 350 300 Intersection of Two Arrays II Longest Increasing Subsequence 51.4% 42.6% Easy Medium 0.005210380421193978 0.005264555460003242 https://leetcode.com/problems/intersection-of-two-arrays-ii https://leetcode.com/problems/longest-increasing-subsequence
55 22 350 Generate Parentheses Intersection of Two Arrays II 62.7% 51.4% Medium Easy 0.0043611059090124735 0.005210380421193978 https://leetcode.com/problems/generate-parentheses https://leetcode.com/problems/intersection-of-two-arrays-ii
56 46 22 Permutations Generate Parentheses 63.5% 62.7% Medium Medium 0.004216302230139218 0.0043611059090124735 https://leetcode.com/problems/permutations https://leetcode.com/problems/generate-parentheses
57 238 46 Product of Array Except Self Permutations 60.1% 63.5% Medium Medium 0.003930436424724545 0.004216302230139218 https://leetcode.com/problems/product-of-array-except-self https://leetcode.com/problems/permutations
58 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
59 139 215 Word Break Kth Largest Element in an Array 40.1% 55.4% Medium Medium 0.003894465052690167 0.003902443976931749 https://leetcode.com/problems/word-break https://leetcode.com/problems/kth-largest-element-in-an-array
60 49 139 Group Anagrams Word Break 56.9% 40.1% Medium Medium 0.0038040939835560453 0.003894465052690167 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/word-break
61 151 49 Reverse Words in a String Group Anagrams 21.9% 56.9% Medium Medium 0.003456091915988908 0.0038040939835560453 https://leetcode.com/problems/reverse-words-in-a-string https://leetcode.com/problems/group-anagrams
62 101 151 Symmetric Tree Reverse Words in a String 46.8% 21.9% Easy Medium 0.0034057078469827435 0.003456091915988908 https://leetcode.com/problems/symmetric-tree https://leetcode.com/problems/reverse-words-in-a-string
63 1 101 Two Sum Symmetric Tree 45.6% 46.8% Easy Easy 0.003278422738041615 0.0034057078469827435 https://leetcode.com/problems/two-sum https://leetcode.com/problems/symmetric-tree
64 33 1 Search in Rotated Sorted Array Two Sum 34.5% 45.6% Medium Easy 0.003229976968332634 0.003278422738041615 https://leetcode.com/problems/search-in-rotated-sorted-array https://leetcode.com/problems/two-sum
65 15 33 3Sum Search in Rotated Sorted Array 26.8% 34.5% Medium Medium 0.0021990113314367685 0.003229976968332634 https://leetcode.com/problems/3sum https://leetcode.com/problems/search-in-rotated-sorted-array
66 53 15 Maximum Subarray 3Sum 46.5% 26.8% Easy Medium 0.002167082872150794 0.0021990113314367685 https://leetcode.com/problems/maximum-subarray https://leetcode.com/problems/3sum
67 2 53 Add Two Numbers Maximum Subarray 33.9% 46.5% Medium Easy 0.0016886191111440908 0.002167082872150794 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/maximum-subarray
68 3 2 Longest Substring Without Repeating Characters Add Two Numbers 30.4% 33.9% Medium Medium 0.0015556336509412823 0.0016886191111440908 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/add-two-numbers
69 3 Longest Substring Without Repeating Characters 30.4% Medium 0.0015556336509412823 https://leetcode.com/problems/longest-substring-without-repeating-characters