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,59 +1,60 @@
336,Palindrome Pairs,33.7%,Hard,5.9749009408191585, https://leetcode.com/problems/palindrome-pairs
755,Pour Water,43.3%,Medium,5.821525282662105, https://leetcode.com/problems/pour-water
751,IP to CIDR,61.7%,Medium,4.677479721248074, https://leetcode.com/problems/ip-to-cidr
251,Flatten 2D Vector,45.7%,Medium,4.501060978905473, https://leetcode.com/problems/flatten-2d-vector
269,Alien Dictionary,33.3%,Hard,3.3570154174914424, https://leetcode.com/problems/alien-dictionary
68,Text Justification,27.7%,Hard,3.0293920300570387, https://leetcode.com/problems/text-justification
1166,Design File System,56.8%,Medium,2.7214059922837657, https://leetcode.com/problems/design-file-system
787,Cheapest Flights Within K Stops,39.3%,Medium,2.66336088062552, https://leetcode.com/problems/cheapest-flights-within-k-stops
773,Sliding Puzzle,59.3%,Hard,2.4717685123505686, https://leetcode.com/problems/sliding-puzzle
341,Flatten Nested List Iterator,52.9%,Medium,1.766208769110585, https://leetcode.com/problems/flatten-nested-list-iterator
166,Fraction to Recurring Decimal,21.6%,Medium,1.6639068207955374, https://leetcode.com/problems/fraction-to-recurring-decimal
39,Combination Sum,56.1%,Medium,1.6445826005250566, https://leetcode.com/problems/combination-sum
324,Wiggle Sort II,29.9%,Medium,1.2959351403605768, https://leetcode.com/problems/wiggle-sort-ii
875,Koko Eating Bananas,52.1%,Medium,1.2072640854100087, https://leetcode.com/problems/koko-eating-bananas
42,Trapping Rain Water,48.9%,Hard,1.1037585327659545, https://leetcode.com/problems/trapping-rain-water
1,Two Sum,45.6%,Easy,1.0889331084185998, https://leetcode.com/problems/two-sum
1058,Minimize Rounding Error to Meet Target,41.7%,Medium,1.042653635020065, https://leetcode.com/problems/minimize-rounding-error-to-meet-target
759,Employee Free Time,66.2%,Hard,0.9190267116930299, https://leetcode.com/problems/employee-free-time
756,Pyramid Transition Matrix,54.6%,Medium,0.8397506547518208, https://leetcode.com/problems/pyramid-transition-matrix
864,Shortest Path to Get All Keys,40.1%,Hard,0.6061358035703156, https://leetcode.com/problems/shortest-path-to-get-all-keys
1257,Smallest Common Region,58.8%,Medium,0.5049690916532777, https://leetcode.com/problems/smallest-common-region
843,Guess the Word,46.1%,Hard,0.45092748218492174, https://leetcode.com/problems/guess-the-word
212,Word Search II,34.9%,Hard,0.3492519632676119, https://leetcode.com/problems/word-search-ii
588,Design In-Memory File System,45.9%,Hard,0.31913702461966714, https://leetcode.com/problems/design-in-memory-file-system
322,Coin Change,35.5%,Medium,0.2559919879212256, https://leetcode.com/problems/coin-change
2,Add Two Numbers,33.9%,Medium,0.2512393123206071, https://leetcode.com/problems/add-two-numbers
10,Regular Expression Matching,26.8%,Hard,0.23083119919105394, https://leetcode.com/problems/regular-expression-matching
1235,Maximum Profit in Job Scheduling,44.0%,Hard,0.23015822831359434, https://leetcode.com/problems/maximum-profit-in-job-scheduling
299,Bulls and Cows,42.4%,Easy,0.1826623303532244, https://leetcode.com/problems/bulls-and-cows
76,Minimum Window Substring,34.6%,Hard,0.1731900290370625, https://leetcode.com/problems/minimum-window-substring
219,Contains Duplicate II,37.7%,Easy,0.14617994030648507, https://leetcode.com/problems/contains-duplicate-ii
385,Mini Parser,33.8%,Medium,0.13176927763112334, https://leetcode.com/problems/mini-parser
198,House Robber,42.0%,Easy,0.12709898426651453, https://leetcode.com/problems/house-robber
5,Longest Palindromic Substring,29.5%,Medium,0.12076411655886263, https://leetcode.com/problems/longest-palindromic-substring
220,Contains Duplicate III,20.9%,Medium,0.09599691440839975, https://leetcode.com/problems/contains-duplicate-iii
280,Wiggle Sort,63.8%,Medium,0.09561417737468547, https://leetcode.com/problems/wiggle-sort
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.07288369759447264, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
20,Valid Parentheses,39.0%,Easy,0.06735240264428982, https://leetcode.com/problems/valid-parentheses
4,Median of Two Sorted Arrays,29.6%,Hard,0.0606476084726819, https://leetcode.com/problems/median-of-two-sorted-arrays
160,Intersection of Two Linked Lists,40.6%,Easy,0.043270781043381126, https://leetcode.com/problems/intersection-of-two-linked-lists
202,Happy Number,50.4%,Easy,0.03853744444187023, https://leetcode.com/problems/happy-number
21,Merge Two Sorted Lists,53.5%,Easy,0.03548634253021285, https://leetcode.com/problems/merge-two-sorted-lists
136,Single Number,65.5%,Easy,0.03459819810553353, https://leetcode.com/problems/single-number
108,Convert Sorted Array to Binary Search Tree,57.9%,Easy,0.03421710570764629, https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
23,Merge k Sorted Lists,40.2%,Hard,0.0250564321052577, https://leetcode.com/problems/merge-k-sorted-lists
215,Kth Largest Element in an Array,55.4%,Medium,0.02414409892936099, https://leetcode.com/problems/kth-largest-element-in-an-array
622,Design Circular Queue,43.7%,Medium,0.02246023667974994, https://leetcode.com/problems/design-circular-queue
221,Maximal Square,37.7%,Medium,0.022108490754203434, https://leetcode.com/problems/maximal-square
217,Contains Duplicate,56.0%,Easy,0.015106027431013205, https://leetcode.com/problems/contains-duplicate
211,Add and Search Word - Data structure design,38.1%,Medium,0.010438508143923443, https://leetcode.com/problems/add-and-search-word-data-structure-design
953,Verifying an Alien Dictionary,54.1%,Easy,0.007884921592696038, https://leetcode.com/problems/verifying-an-alien-dictionary
190,Reverse Bits,39.8%,Easy,0.007306635849167308, https://leetcode.com/problems/reverse-bits
34,Find First and Last Position of Element in Sorted Array,36.2%,Medium,0.004247643638268045, https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
227,Basic Calculator II,36.9%,Medium,0, https://leetcode.com/problems/basic-calculator-ii
415,Add Strings,47.5%,Easy,0, https://leetcode.com/problems/add-strings
1017,Convert to Base -2,59.0%,Medium,0, https://leetcode.com/problems/convert-to-base-2
1041,Robot Bounded In Circle,49.6%,Medium,0, https://leetcode.com/problems/robot-bounded-in-circle
1284,Minimum Number of Flips to Convert Binary Matrix to Zero Matrix,69.5%,Hard,0, https://leetcode.com/problems/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix
1298,Maximum Candies You Can Get from Boxes,58.8%,Hard,0, https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
336,Palindrome Pairs,33.7%,Hard,5.9749009408191585, https://leetcode.com/problems/palindrome-pairs
755,Pour Water,43.3%,Medium,5.821525282662105, https://leetcode.com/problems/pour-water
751,IP to CIDR,61.7%,Medium,4.677479721248074, https://leetcode.com/problems/ip-to-cidr
251,Flatten 2D Vector,45.7%,Medium,4.501060978905473, https://leetcode.com/problems/flatten-2d-vector
269,Alien Dictionary,33.3%,Hard,3.3570154174914424, https://leetcode.com/problems/alien-dictionary
68,Text Justification,27.7%,Hard,3.0293920300570387, https://leetcode.com/problems/text-justification
1166,Design File System,56.8%,Medium,2.7214059922837657, https://leetcode.com/problems/design-file-system
787,Cheapest Flights Within K Stops,39.3%,Medium,2.66336088062552, https://leetcode.com/problems/cheapest-flights-within-k-stops
773,Sliding Puzzle,59.3%,Hard,2.4717685123505686, https://leetcode.com/problems/sliding-puzzle
341,Flatten Nested List Iterator,52.9%,Medium,1.766208769110585, https://leetcode.com/problems/flatten-nested-list-iterator
166,Fraction to Recurring Decimal,21.6%,Medium,1.6639068207955374, https://leetcode.com/problems/fraction-to-recurring-decimal
39,Combination Sum,56.1%,Medium,1.6445826005250566, https://leetcode.com/problems/combination-sum
324,Wiggle Sort II,29.9%,Medium,1.2959351403605768, https://leetcode.com/problems/wiggle-sort-ii
875,Koko Eating Bananas,52.1%,Medium,1.2072640854100087, https://leetcode.com/problems/koko-eating-bananas
42,Trapping Rain Water,48.9%,Hard,1.1037585327659545, https://leetcode.com/problems/trapping-rain-water
1,Two Sum,45.6%,Easy,1.0889331084185998, https://leetcode.com/problems/two-sum
1058,Minimize Rounding Error to Meet Target,41.7%,Medium,1.042653635020065, https://leetcode.com/problems/minimize-rounding-error-to-meet-target
759,Employee Free Time,66.2%,Hard,0.9190267116930299, https://leetcode.com/problems/employee-free-time
756,Pyramid Transition Matrix,54.6%,Medium,0.8397506547518208, https://leetcode.com/problems/pyramid-transition-matrix
864,Shortest Path to Get All Keys,40.1%,Hard,0.6061358035703156, https://leetcode.com/problems/shortest-path-to-get-all-keys
1257,Smallest Common Region,58.8%,Medium,0.5049690916532777, https://leetcode.com/problems/smallest-common-region
843,Guess the Word,46.1%,Hard,0.45092748218492174, https://leetcode.com/problems/guess-the-word
212,Word Search II,34.9%,Hard,0.3492519632676119, https://leetcode.com/problems/word-search-ii
588,Design In-Memory File System,45.9%,Hard,0.31913702461966714, https://leetcode.com/problems/design-in-memory-file-system
322,Coin Change,35.5%,Medium,0.2559919879212256, https://leetcode.com/problems/coin-change
2,Add Two Numbers,33.9%,Medium,0.2512393123206071, https://leetcode.com/problems/add-two-numbers
10,Regular Expression Matching,26.8%,Hard,0.23083119919105394, https://leetcode.com/problems/regular-expression-matching
1235,Maximum Profit in Job Scheduling,44.0%,Hard,0.23015822831359434, https://leetcode.com/problems/maximum-profit-in-job-scheduling
299,Bulls and Cows,42.4%,Easy,0.1826623303532244, https://leetcode.com/problems/bulls-and-cows
76,Minimum Window Substring,34.6%,Hard,0.1731900290370625, https://leetcode.com/problems/minimum-window-substring
219,Contains Duplicate II,37.7%,Easy,0.14617994030648507, https://leetcode.com/problems/contains-duplicate-ii
385,Mini Parser,33.8%,Medium,0.13176927763112334, https://leetcode.com/problems/mini-parser
198,House Robber,42.0%,Easy,0.12709898426651453, https://leetcode.com/problems/house-robber
5,Longest Palindromic Substring,29.5%,Medium,0.12076411655886263, https://leetcode.com/problems/longest-palindromic-substring
220,Contains Duplicate III,20.9%,Medium,0.09599691440839975, https://leetcode.com/problems/contains-duplicate-iii
280,Wiggle Sort,63.8%,Medium,0.09561417737468547, https://leetcode.com/problems/wiggle-sort
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.07288369759447264, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
20,Valid Parentheses,39.0%,Easy,0.06735240264428982, https://leetcode.com/problems/valid-parentheses
4,Median of Two Sorted Arrays,29.6%,Hard,0.0606476084726819, https://leetcode.com/problems/median-of-two-sorted-arrays
160,Intersection of Two Linked Lists,40.6%,Easy,0.043270781043381126, https://leetcode.com/problems/intersection-of-two-linked-lists
202,Happy Number,50.4%,Easy,0.03853744444187023, https://leetcode.com/problems/happy-number
21,Merge Two Sorted Lists,53.5%,Easy,0.03548634253021285, https://leetcode.com/problems/merge-two-sorted-lists
136,Single Number,65.5%,Easy,0.03459819810553353, https://leetcode.com/problems/single-number
108,Convert Sorted Array to Binary Search Tree,57.9%,Easy,0.03421710570764629, https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
23,Merge k Sorted Lists,40.2%,Hard,0.0250564321052577, https://leetcode.com/problems/merge-k-sorted-lists
215,Kth Largest Element in an Array,55.4%,Medium,0.02414409892936099, https://leetcode.com/problems/kth-largest-element-in-an-array
622,Design Circular Queue,43.7%,Medium,0.02246023667974994, https://leetcode.com/problems/design-circular-queue
221,Maximal Square,37.7%,Medium,0.022108490754203434, https://leetcode.com/problems/maximal-square
217,Contains Duplicate,56.0%,Easy,0.015106027431013205, https://leetcode.com/problems/contains-duplicate
211,Add and Search Word - Data structure design,38.1%,Medium,0.010438508143923443, https://leetcode.com/problems/add-and-search-word-data-structure-design
953,Verifying an Alien Dictionary,54.1%,Easy,0.007884921592696038, https://leetcode.com/problems/verifying-an-alien-dictionary
190,Reverse Bits,39.8%,Easy,0.007306635849167308, https://leetcode.com/problems/reverse-bits
34,Find First and Last Position of Element in Sorted Array,36.2%,Medium,0.004247643638268045, https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
227,Basic Calculator II,36.9%,Medium,0, https://leetcode.com/problems/basic-calculator-ii
415,Add Strings,47.5%,Easy,0, https://leetcode.com/problems/add-strings
1017,Convert to Base -2,59.0%,Medium,0, https://leetcode.com/problems/convert-to-base-2
1041,Robot Bounded In Circle,49.6%,Medium,0, https://leetcode.com/problems/robot-bounded-in-circle
1284,Minimum Number of Flips to Convert Binary Matrix to Zero Matrix,69.5%,Hard,0, https://leetcode.com/problems/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix
1298,Maximum Candies You Can Get from Boxes,58.8%,Hard,0, https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes
1 336 ID Palindrome Pairs Title 33.7% Acceptance Hard Difficulty 5.9749009408191585 Frequency https://leetcode.com/problems/palindrome-pairs Leetcode Question Link
2 755 336 Pour Water Palindrome Pairs 43.3% 33.7% Medium Hard 5.821525282662105 5.9749009408191585 https://leetcode.com/problems/pour-water https://leetcode.com/problems/palindrome-pairs
3 751 755 IP to CIDR Pour Water 61.7% 43.3% Medium Medium 4.677479721248074 5.821525282662105 https://leetcode.com/problems/ip-to-cidr https://leetcode.com/problems/pour-water
4 251 751 Flatten 2D Vector IP to CIDR 45.7% 61.7% Medium Medium 4.501060978905473 4.677479721248074 https://leetcode.com/problems/flatten-2d-vector https://leetcode.com/problems/ip-to-cidr
5 269 251 Alien Dictionary Flatten 2D Vector 33.3% 45.7% Hard Medium 3.3570154174914424 4.501060978905473 https://leetcode.com/problems/alien-dictionary https://leetcode.com/problems/flatten-2d-vector
6 68 269 Text Justification Alien Dictionary 27.7% 33.3% Hard Hard 3.0293920300570387 3.3570154174914424 https://leetcode.com/problems/text-justification https://leetcode.com/problems/alien-dictionary
7 1166 68 Design File System Text Justification 56.8% 27.7% Medium Hard 2.7214059922837657 3.0293920300570387 https://leetcode.com/problems/design-file-system https://leetcode.com/problems/text-justification
8 787 1166 Cheapest Flights Within K Stops Design File System 39.3% 56.8% Medium Medium 2.66336088062552 2.7214059922837657 https://leetcode.com/problems/cheapest-flights-within-k-stops https://leetcode.com/problems/design-file-system
9 773 787 Sliding Puzzle Cheapest Flights Within K Stops 59.3% 39.3% Hard Medium 2.4717685123505686 2.66336088062552 https://leetcode.com/problems/sliding-puzzle https://leetcode.com/problems/cheapest-flights-within-k-stops
10 341 773 Flatten Nested List Iterator Sliding Puzzle 52.9% 59.3% Medium Hard 1.766208769110585 2.4717685123505686 https://leetcode.com/problems/flatten-nested-list-iterator https://leetcode.com/problems/sliding-puzzle
11 166 341 Fraction to Recurring Decimal Flatten Nested List Iterator 21.6% 52.9% Medium Medium 1.6639068207955374 1.766208769110585 https://leetcode.com/problems/fraction-to-recurring-decimal https://leetcode.com/problems/flatten-nested-list-iterator
12 39 166 Combination Sum Fraction to Recurring Decimal 56.1% 21.6% Medium Medium 1.6445826005250566 1.6639068207955374 https://leetcode.com/problems/combination-sum https://leetcode.com/problems/fraction-to-recurring-decimal
13 324 39 Wiggle Sort II Combination Sum 29.9% 56.1% Medium Medium 1.2959351403605768 1.6445826005250566 https://leetcode.com/problems/wiggle-sort-ii https://leetcode.com/problems/combination-sum
14 875 324 Koko Eating Bananas Wiggle Sort II 52.1% 29.9% Medium Medium 1.2072640854100087 1.2959351403605768 https://leetcode.com/problems/koko-eating-bananas https://leetcode.com/problems/wiggle-sort-ii
15 42 875 Trapping Rain Water Koko Eating Bananas 48.9% 52.1% Hard Medium 1.1037585327659545 1.2072640854100087 https://leetcode.com/problems/trapping-rain-water https://leetcode.com/problems/koko-eating-bananas
16 1 42 Two Sum Trapping Rain Water 45.6% 48.9% Easy Hard 1.0889331084185998 1.1037585327659545 https://leetcode.com/problems/two-sum https://leetcode.com/problems/trapping-rain-water
17 1058 1 Minimize Rounding Error to Meet Target Two Sum 41.7% 45.6% Medium Easy 1.042653635020065 1.0889331084185998 https://leetcode.com/problems/minimize-rounding-error-to-meet-target https://leetcode.com/problems/two-sum
18 759 1058 Employee Free Time Minimize Rounding Error to Meet Target 66.2% 41.7% Hard Medium 0.9190267116930299 1.042653635020065 https://leetcode.com/problems/employee-free-time https://leetcode.com/problems/minimize-rounding-error-to-meet-target
19 756 759 Pyramid Transition Matrix Employee Free Time 54.6% 66.2% Medium Hard 0.8397506547518208 0.9190267116930299 https://leetcode.com/problems/pyramid-transition-matrix https://leetcode.com/problems/employee-free-time
20 864 756 Shortest Path to Get All Keys Pyramid Transition Matrix 40.1% 54.6% Hard Medium 0.6061358035703156 0.8397506547518208 https://leetcode.com/problems/shortest-path-to-get-all-keys https://leetcode.com/problems/pyramid-transition-matrix
21 1257 864 Smallest Common Region Shortest Path to Get All Keys 58.8% 40.1% Medium Hard 0.5049690916532777 0.6061358035703156 https://leetcode.com/problems/smallest-common-region https://leetcode.com/problems/shortest-path-to-get-all-keys
22 843 1257 Guess the Word Smallest Common Region 46.1% 58.8% Hard Medium 0.45092748218492174 0.5049690916532777 https://leetcode.com/problems/guess-the-word https://leetcode.com/problems/smallest-common-region
23 212 843 Word Search II Guess the Word 34.9% 46.1% Hard Hard 0.3492519632676119 0.45092748218492174 https://leetcode.com/problems/word-search-ii https://leetcode.com/problems/guess-the-word
24 588 212 Design In-Memory File System Word Search II 45.9% 34.9% Hard Hard 0.31913702461966714 0.3492519632676119 https://leetcode.com/problems/design-in-memory-file-system https://leetcode.com/problems/word-search-ii
25 322 588 Coin Change Design In-Memory File System 35.5% 45.9% Medium Hard 0.2559919879212256 0.31913702461966714 https://leetcode.com/problems/coin-change https://leetcode.com/problems/design-in-memory-file-system
26 2 322 Add Two Numbers Coin Change 33.9% 35.5% Medium Medium 0.2512393123206071 0.2559919879212256 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/coin-change
27 10 2 Regular Expression Matching Add Two Numbers 26.8% 33.9% Hard Medium 0.23083119919105394 0.2512393123206071 https://leetcode.com/problems/regular-expression-matching https://leetcode.com/problems/add-two-numbers
28 1235 10 Maximum Profit in Job Scheduling Regular Expression Matching 44.0% 26.8% Hard Hard 0.23015822831359434 0.23083119919105394 https://leetcode.com/problems/maximum-profit-in-job-scheduling https://leetcode.com/problems/regular-expression-matching
29 299 1235 Bulls and Cows Maximum Profit in Job Scheduling 42.4% 44.0% Easy Hard 0.1826623303532244 0.23015822831359434 https://leetcode.com/problems/bulls-and-cows https://leetcode.com/problems/maximum-profit-in-job-scheduling
30 76 299 Minimum Window Substring Bulls and Cows 34.6% 42.4% Hard Easy 0.1731900290370625 0.1826623303532244 https://leetcode.com/problems/minimum-window-substring https://leetcode.com/problems/bulls-and-cows
31 219 76 Contains Duplicate II Minimum Window Substring 37.7% 34.6% Easy Hard 0.14617994030648507 0.1731900290370625 https://leetcode.com/problems/contains-duplicate-ii https://leetcode.com/problems/minimum-window-substring
32 385 219 Mini Parser Contains Duplicate II 33.8% 37.7% Medium Easy 0.13176927763112334 0.14617994030648507 https://leetcode.com/problems/mini-parser https://leetcode.com/problems/contains-duplicate-ii
33 198 385 House Robber Mini Parser 42.0% 33.8% Easy Medium 0.12709898426651453 0.13176927763112334 https://leetcode.com/problems/house-robber https://leetcode.com/problems/mini-parser
34 5 198 Longest Palindromic Substring House Robber 29.5% 42.0% Medium Easy 0.12076411655886263 0.12709898426651453 https://leetcode.com/problems/longest-palindromic-substring https://leetcode.com/problems/house-robber
35 220 5 Contains Duplicate III Longest Palindromic Substring 20.9% 29.5% Medium Medium 0.09599691440839975 0.12076411655886263 https://leetcode.com/problems/contains-duplicate-iii https://leetcode.com/problems/longest-palindromic-substring
36 280 220 Wiggle Sort Contains Duplicate III 63.8% 20.9% Medium Medium 0.09561417737468547 0.09599691440839975 https://leetcode.com/problems/wiggle-sort https://leetcode.com/problems/contains-duplicate-iii
37 236 280 Lowest Common Ancestor of a Binary Tree Wiggle Sort 45.7% 63.8% Medium Medium 0.07288369759447264 0.09561417737468547 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree https://leetcode.com/problems/wiggle-sort
38 20 236 Valid Parentheses Lowest Common Ancestor of a Binary Tree 39.0% 45.7% Easy Medium 0.06735240264428982 0.07288369759447264 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
39 4 20 Median of Two Sorted Arrays Valid Parentheses 29.6% 39.0% Hard Easy 0.0606476084726819 0.06735240264428982 https://leetcode.com/problems/median-of-two-sorted-arrays https://leetcode.com/problems/valid-parentheses
40 160 4 Intersection of Two Linked Lists Median of Two Sorted Arrays 40.6% 29.6% Easy Hard 0.043270781043381126 0.0606476084726819 https://leetcode.com/problems/intersection-of-two-linked-lists https://leetcode.com/problems/median-of-two-sorted-arrays
41 202 160 Happy Number Intersection of Two Linked Lists 50.4% 40.6% Easy Easy 0.03853744444187023 0.043270781043381126 https://leetcode.com/problems/happy-number https://leetcode.com/problems/intersection-of-two-linked-lists
42 21 202 Merge Two Sorted Lists Happy Number 53.5% 50.4% Easy Easy 0.03548634253021285 0.03853744444187023 https://leetcode.com/problems/merge-two-sorted-lists https://leetcode.com/problems/happy-number
43 136 21 Single Number Merge Two Sorted Lists 65.5% 53.5% Easy Easy 0.03459819810553353 0.03548634253021285 https://leetcode.com/problems/single-number https://leetcode.com/problems/merge-two-sorted-lists
44 108 136 Convert Sorted Array to Binary Search Tree Single Number 57.9% 65.5% Easy Easy 0.03421710570764629 0.03459819810553353 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree https://leetcode.com/problems/single-number
45 23 108 Merge k Sorted Lists Convert Sorted Array to Binary Search Tree 40.2% 57.9% Hard Easy 0.0250564321052577 0.03421710570764629 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
46 215 23 Kth Largest Element in an Array Merge k Sorted Lists 55.4% 40.2% Medium Hard 0.02414409892936099 0.0250564321052577 https://leetcode.com/problems/kth-largest-element-in-an-array https://leetcode.com/problems/merge-k-sorted-lists
47 622 215 Design Circular Queue Kth Largest Element in an Array 43.7% 55.4% Medium Medium 0.02246023667974994 0.02414409892936099 https://leetcode.com/problems/design-circular-queue https://leetcode.com/problems/kth-largest-element-in-an-array
48 221 622 Maximal Square Design Circular Queue 37.7% 43.7% Medium Medium 0.022108490754203434 0.02246023667974994 https://leetcode.com/problems/maximal-square https://leetcode.com/problems/design-circular-queue
49 217 221 Contains Duplicate Maximal Square 56.0% 37.7% Easy Medium 0.015106027431013205 0.022108490754203434 https://leetcode.com/problems/contains-duplicate https://leetcode.com/problems/maximal-square
50 211 217 Add and Search Word - Data structure design Contains Duplicate 38.1% 56.0% Medium Easy 0.010438508143923443 0.015106027431013205 https://leetcode.com/problems/add-and-search-word-data-structure-design https://leetcode.com/problems/contains-duplicate
51 953 211 Verifying an Alien Dictionary Add and Search Word - Data structure design 54.1% 38.1% Easy Medium 0.007884921592696038 0.010438508143923443 https://leetcode.com/problems/verifying-an-alien-dictionary https://leetcode.com/problems/add-and-search-word-data-structure-design
52 190 953 Reverse Bits Verifying an Alien Dictionary 39.8% 54.1% Easy Easy 0.007306635849167308 0.007884921592696038 https://leetcode.com/problems/reverse-bits https://leetcode.com/problems/verifying-an-alien-dictionary
53 34 190 Find First and Last Position of Element in Sorted Array Reverse Bits 36.2% 39.8% Medium Easy 0.004247643638268045 0.007306635849167308 https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array https://leetcode.com/problems/reverse-bits
54 227 34 Basic Calculator II Find First and Last Position of Element in Sorted Array 36.9% 36.2% Medium Medium 0 0.004247643638268045 https://leetcode.com/problems/basic-calculator-ii https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
55 415 227 Add Strings Basic Calculator II 47.5% 36.9% Easy Medium 0 0 https://leetcode.com/problems/add-strings https://leetcode.com/problems/basic-calculator-ii
56 1017 415 Convert to Base -2 Add Strings 59.0% 47.5% Medium Easy 0 0 https://leetcode.com/problems/convert-to-base-2 https://leetcode.com/problems/add-strings
57 1041 1017 Robot Bounded In Circle Convert to Base -2 49.6% 59.0% Medium Medium 0 0 https://leetcode.com/problems/robot-bounded-in-circle https://leetcode.com/problems/convert-to-base-2
58 1284 1041 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Robot Bounded In Circle 69.5% 49.6% Hard Medium 0 0 https://leetcode.com/problems/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix https://leetcode.com/problems/robot-bounded-in-circle
59 1298 1284 Maximum Candies You Can Get from Boxes Minimum Number of Flips to Convert Binary Matrix to Zero Matrix 58.8% 69.5% Hard Hard 0 0 https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes https://leetcode.com/problems/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix
60 1298 Maximum Candies You Can Get from Boxes 58.8% Hard 0 https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes