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,53 +1,54 @@
366,Find Leaves of Binary Tree,70.6%,Medium,0.5289140003341137, https://leetcode.com/problems/find-leaves-of-binary-tree
981,Time Based Key-Value Store,53.1%,Medium,0.40162982547051973, https://leetcode.com/problems/time-based-key-value-store
860,Lemonade Change,51.6%,Easy,0.3967602828188025, https://leetcode.com/problems/lemonade-change
1120,Maximum Average Subtree,61.9%,Medium,0.2694761079552085, https://leetcode.com/problems/maximum-average-subtree
1071,Greatest Common Divisor of Strings,52.9%,Easy,0.25580276615686737, https://leetcode.com/problems/greatest-common-divisor-of-strings
821,Shortest Distance to a Character,66.9%,Easy,0.24320527953164725, https://leetcode.com/problems/shortest-distance-to-a-character
17,Letter Combinations of a Phone Number,46.8%,Medium,0.22166457131988548, https://leetcode.com/problems/letter-combinations-of-a-phone-number
362,Design Hit Counter,63.7%,Medium,0.20812125379246896, https://leetcode.com/problems/design-hit-counter
253,Meeting Rooms II,45.7%,Medium,0.12203276379668937, https://leetcode.com/problems/meeting-rooms-ii
284,Peeking Iterator,45.7%,Medium,0.11901099827011974, https://leetcode.com/problems/peeking-iterator
1223,Dice Roll Simulation,45.6%,Medium,0.10212949507637983, https://leetcode.com/problems/dice-roll-simulation
300,Longest Increasing Subsequence,42.6%,Medium,0.10155280044326445, https://leetcode.com/problems/longest-increasing-subsequence
23,Merge k Sorted Lists,40.2%,Hard,0.09666556212354038, https://leetcode.com/problems/merge-k-sorted-lists
20,Valid Parentheses,39.0%,Easy,0.09286263438126167, https://leetcode.com/problems/valid-parentheses
359,Logger Rate Limiter,70.8%,Easy,0.08167803101426718, https://leetcode.com/problems/logger-rate-limiter
1366,Rank Teams by Votes,53.8%,Medium,0.07223355735937158, https://leetcode.com/problems/rank-teams-by-votes
200,Number of Islands,46.8%,Medium,0.06985103785996453, https://leetcode.com/problems/number-of-islands
706,Design HashMap,61.3%,Easy,0.0683442674369718, https://leetcode.com/problems/design-hashmap
98,Validate Binary Search Tree,27.8%,Medium,0.057985181512132535, https://leetcode.com/problems/validate-binary-search-tree
540,Single Element in a Sorted Array,57.9%,Medium,0.042721256704769804, https://leetcode.com/problems/single-element-in-a-sorted-array
844,Backspace String Compare,46.4%,Easy,0.041499730906752734, https://leetcode.com/problems/backspace-string-compare
31,Next Permutation,32.6%,Medium,0.03686102113159897, https://leetcode.com/problems/next-permutation
394,Decode String,50.0%,Medium,0.03227387813668991, https://leetcode.com/problems/decode-string
150,Evaluate Reverse Polish Notation,36.3%,Medium,0.031526253646773944, https://leetcode.com/problems/evaluate-reverse-polish-notation
547,Friend Circles,58.6%,Medium,0.027307522052851193, https://leetcode.com/problems/friend-circles
123,Best Time to Buy and Sell Stock III,37.5%,Hard,0.02516207671950806, https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
713,Subarray Product Less Than K,39.1%,Medium,0.02473842915612247, https://leetcode.com/problems/subarray-product-less-than-k
647,Palindromic Substrings,60.6%,Medium,0.023250853650202817, https://leetcode.com/problems/palindromic-substrings
199,Binary Tree Right Side View,54.1%,Medium,0.022539339846061532, https://leetcode.com/problems/binary-tree-right-side-view
101,Symmetric Tree,46.8%,Easy,0.02109782896463587, https://leetcode.com/problems/symmetric-tree
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
53,Maximum Subarray,46.5%,Easy,0.019336728821707075, https://leetcode.com/problems/maximum-subarray
173,Binary Search Tree Iterator,56.6%,Medium,0.01899993824490396, https://leetcode.com/problems/binary-search-tree-iterator
872,Leaf-Similar Trees,64.5%,Easy,0.01752125418714782, https://leetcode.com/problems/leaf-similar-trees
46,Permutations,63.5%,Medium,0.016759583649075344, https://leetcode.com/problems/permutations
680,Valid Palindrome II,36.6%,Easy,0.01632541245860885, https://leetcode.com/problems/valid-palindrome-ii
701,Insert into a Binary Search Tree,77.7%,Medium,0.015522236371561826, https://leetcode.com/problems/insert-into-a-binary-search-tree
528,Random Pick with Weight,43.9%,Medium,0.014831565905995232, https://leetcode.com/problems/random-pick-with-weight
227,Basic Calculator II,36.9%,Medium,0.01239941490503826, https://leetcode.com/problems/basic-calculator-ii
543,Diameter of Binary Tree,48.4%,Easy,0.011898606798495848, https://leetcode.com/problems/diameter-of-binary-tree
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.009683242444739549, https://leetcode.com/problems/longest-substring-without-repeating-characters
295,Find Median from Data Stream,44.3%,Hard,0.00899893586856953, https://leetcode.com/problems/find-median-from-data-stream
21,Merge Two Sorted Lists,53.5%,Easy,0.008990339814651234, https://leetcode.com/problems/merge-two-sorted-lists
215,Kth Largest Element in an Array,55.4%,Medium,0.008759180089881562, https://leetcode.com/problems/kth-largest-element-in-an-array
78,Subsets,62.0%,Medium,0.008278192969371254, https://leetcode.com/problems/subsets
102,Binary Tree Level Order Traversal,54.6%,Medium,0.008169238497129479, https://leetcode.com/problems/binary-tree-level-order-traversal
692,Top K Frequent Words,51.8%,Medium,0.007516006820935329, https://leetcode.com/problems/top-k-frequent-words
136,Single Number,65.5%,Easy,0.006445166968713385, https://leetcode.com/problems/single-number
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.0047725193990346675, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.004714210262726446, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
22,Generate Parentheses,62.7%,Medium,0.0043611059090124735, https://leetcode.com/problems/generate-parentheses
56,Merge Intervals,39.3%,Medium,0.0034728286335985107, https://leetcode.com/problems/merge-intervals
1307,Verbal Arithmetic Puzzle,37.7%,Hard,0, https://leetcode.com/problems/verbal-arithmetic-puzzle
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
366,Find Leaves of Binary Tree,70.6%,Medium,0.5289140003341137, https://leetcode.com/problems/find-leaves-of-binary-tree
981,Time Based Key-Value Store,53.1%,Medium,0.40162982547051973, https://leetcode.com/problems/time-based-key-value-store
860,Lemonade Change,51.6%,Easy,0.3967602828188025, https://leetcode.com/problems/lemonade-change
1120,Maximum Average Subtree,61.9%,Medium,0.2694761079552085, https://leetcode.com/problems/maximum-average-subtree
1071,Greatest Common Divisor of Strings,52.9%,Easy,0.25580276615686737, https://leetcode.com/problems/greatest-common-divisor-of-strings
821,Shortest Distance to a Character,66.9%,Easy,0.24320527953164725, https://leetcode.com/problems/shortest-distance-to-a-character
17,Letter Combinations of a Phone Number,46.8%,Medium,0.22166457131988548, https://leetcode.com/problems/letter-combinations-of-a-phone-number
362,Design Hit Counter,63.7%,Medium,0.20812125379246896, https://leetcode.com/problems/design-hit-counter
253,Meeting Rooms II,45.7%,Medium,0.12203276379668937, https://leetcode.com/problems/meeting-rooms-ii
284,Peeking Iterator,45.7%,Medium,0.11901099827011974, https://leetcode.com/problems/peeking-iterator
1223,Dice Roll Simulation,45.6%,Medium,0.10212949507637983, https://leetcode.com/problems/dice-roll-simulation
300,Longest Increasing Subsequence,42.6%,Medium,0.10155280044326445, https://leetcode.com/problems/longest-increasing-subsequence
23,Merge k Sorted Lists,40.2%,Hard,0.09666556212354038, https://leetcode.com/problems/merge-k-sorted-lists
20,Valid Parentheses,39.0%,Easy,0.09286263438126167, https://leetcode.com/problems/valid-parentheses
359,Logger Rate Limiter,70.8%,Easy,0.08167803101426718, https://leetcode.com/problems/logger-rate-limiter
1366,Rank Teams by Votes,53.8%,Medium,0.07223355735937158, https://leetcode.com/problems/rank-teams-by-votes
200,Number of Islands,46.8%,Medium,0.06985103785996453, https://leetcode.com/problems/number-of-islands
706,Design HashMap,61.3%,Easy,0.0683442674369718, https://leetcode.com/problems/design-hashmap
98,Validate Binary Search Tree,27.8%,Medium,0.057985181512132535, https://leetcode.com/problems/validate-binary-search-tree
540,Single Element in a Sorted Array,57.9%,Medium,0.042721256704769804, https://leetcode.com/problems/single-element-in-a-sorted-array
844,Backspace String Compare,46.4%,Easy,0.041499730906752734, https://leetcode.com/problems/backspace-string-compare
31,Next Permutation,32.6%,Medium,0.03686102113159897, https://leetcode.com/problems/next-permutation
394,Decode String,50.0%,Medium,0.03227387813668991, https://leetcode.com/problems/decode-string
150,Evaluate Reverse Polish Notation,36.3%,Medium,0.031526253646773944, https://leetcode.com/problems/evaluate-reverse-polish-notation
547,Friend Circles,58.6%,Medium,0.027307522052851193, https://leetcode.com/problems/friend-circles
123,Best Time to Buy and Sell Stock III,37.5%,Hard,0.02516207671950806, https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
713,Subarray Product Less Than K,39.1%,Medium,0.02473842915612247, https://leetcode.com/problems/subarray-product-less-than-k
647,Palindromic Substrings,60.6%,Medium,0.023250853650202817, https://leetcode.com/problems/palindromic-substrings
199,Binary Tree Right Side View,54.1%,Medium,0.022539339846061532, https://leetcode.com/problems/binary-tree-right-side-view
101,Symmetric Tree,46.8%,Easy,0.02109782896463587, https://leetcode.com/problems/symmetric-tree
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
53,Maximum Subarray,46.5%,Easy,0.019336728821707075, https://leetcode.com/problems/maximum-subarray
173,Binary Search Tree Iterator,56.6%,Medium,0.01899993824490396, https://leetcode.com/problems/binary-search-tree-iterator
872,Leaf-Similar Trees,64.5%,Easy,0.01752125418714782, https://leetcode.com/problems/leaf-similar-trees
46,Permutations,63.5%,Medium,0.016759583649075344, https://leetcode.com/problems/permutations
680,Valid Palindrome II,36.6%,Easy,0.01632541245860885, https://leetcode.com/problems/valid-palindrome-ii
701,Insert into a Binary Search Tree,77.7%,Medium,0.015522236371561826, https://leetcode.com/problems/insert-into-a-binary-search-tree
528,Random Pick with Weight,43.9%,Medium,0.014831565905995232, https://leetcode.com/problems/random-pick-with-weight
227,Basic Calculator II,36.9%,Medium,0.01239941490503826, https://leetcode.com/problems/basic-calculator-ii
543,Diameter of Binary Tree,48.4%,Easy,0.011898606798495848, https://leetcode.com/problems/diameter-of-binary-tree
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.009683242444739549, https://leetcode.com/problems/longest-substring-without-repeating-characters
295,Find Median from Data Stream,44.3%,Hard,0.00899893586856953, https://leetcode.com/problems/find-median-from-data-stream
21,Merge Two Sorted Lists,53.5%,Easy,0.008990339814651234, https://leetcode.com/problems/merge-two-sorted-lists
215,Kth Largest Element in an Array,55.4%,Medium,0.008759180089881562, https://leetcode.com/problems/kth-largest-element-in-an-array
78,Subsets,62.0%,Medium,0.008278192969371254, https://leetcode.com/problems/subsets
102,Binary Tree Level Order Traversal,54.6%,Medium,0.008169238497129479, https://leetcode.com/problems/binary-tree-level-order-traversal
692,Top K Frequent Words,51.8%,Medium,0.007516006820935329, https://leetcode.com/problems/top-k-frequent-words
136,Single Number,65.5%,Easy,0.006445166968713385, https://leetcode.com/problems/single-number
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.0047725193990346675, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.004714210262726446, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
22,Generate Parentheses,62.7%,Medium,0.0043611059090124735, https://leetcode.com/problems/generate-parentheses
56,Merge Intervals,39.3%,Medium,0.0034728286335985107, https://leetcode.com/problems/merge-intervals
1307,Verbal Arithmetic Puzzle,37.7%,Hard,0, https://leetcode.com/problems/verbal-arithmetic-puzzle
1 366 ID Find Leaves of Binary Tree Title 70.6% Acceptance Medium Difficulty 0.5289140003341137 Frequency https://leetcode.com/problems/find-leaves-of-binary-tree Leetcode Question Link
2 981 366 Time Based Key-Value Store Find Leaves of Binary Tree 53.1% 70.6% Medium Medium 0.40162982547051973 0.5289140003341137 https://leetcode.com/problems/time-based-key-value-store https://leetcode.com/problems/find-leaves-of-binary-tree
3 860 981 Lemonade Change Time Based Key-Value Store 51.6% 53.1% Easy Medium 0.3967602828188025 0.40162982547051973 https://leetcode.com/problems/lemonade-change https://leetcode.com/problems/time-based-key-value-store
4 1120 860 Maximum Average Subtree Lemonade Change 61.9% 51.6% Medium Easy 0.2694761079552085 0.3967602828188025 https://leetcode.com/problems/maximum-average-subtree https://leetcode.com/problems/lemonade-change
5 1071 1120 Greatest Common Divisor of Strings Maximum Average Subtree 52.9% 61.9% Easy Medium 0.25580276615686737 0.2694761079552085 https://leetcode.com/problems/greatest-common-divisor-of-strings https://leetcode.com/problems/maximum-average-subtree
6 821 1071 Shortest Distance to a Character Greatest Common Divisor of Strings 66.9% 52.9% Easy Easy 0.24320527953164725 0.25580276615686737 https://leetcode.com/problems/shortest-distance-to-a-character https://leetcode.com/problems/greatest-common-divisor-of-strings
7 17 821 Letter Combinations of a Phone Number Shortest Distance to a Character 46.8% 66.9% Medium Easy 0.22166457131988548 0.24320527953164725 https://leetcode.com/problems/letter-combinations-of-a-phone-number https://leetcode.com/problems/shortest-distance-to-a-character
8 362 17 Design Hit Counter Letter Combinations of a Phone Number 63.7% 46.8% Medium Medium 0.20812125379246896 0.22166457131988548 https://leetcode.com/problems/design-hit-counter https://leetcode.com/problems/letter-combinations-of-a-phone-number
9 253 362 Meeting Rooms II Design Hit Counter 45.7% 63.7% Medium Medium 0.12203276379668937 0.20812125379246896 https://leetcode.com/problems/meeting-rooms-ii https://leetcode.com/problems/design-hit-counter
10 284 253 Peeking Iterator Meeting Rooms II 45.7% 45.7% Medium Medium 0.11901099827011974 0.12203276379668937 https://leetcode.com/problems/peeking-iterator https://leetcode.com/problems/meeting-rooms-ii
11 1223 284 Dice Roll Simulation Peeking Iterator 45.6% 45.7% Medium Medium 0.10212949507637983 0.11901099827011974 https://leetcode.com/problems/dice-roll-simulation https://leetcode.com/problems/peeking-iterator
12 300 1223 Longest Increasing Subsequence Dice Roll Simulation 42.6% 45.6% Medium Medium 0.10155280044326445 0.10212949507637983 https://leetcode.com/problems/longest-increasing-subsequence https://leetcode.com/problems/dice-roll-simulation
13 23 300 Merge k Sorted Lists Longest Increasing Subsequence 40.2% 42.6% Hard Medium 0.09666556212354038 0.10155280044326445 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/longest-increasing-subsequence
14 20 23 Valid Parentheses Merge k Sorted Lists 39.0% 40.2% Easy Hard 0.09286263438126167 0.09666556212354038 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/merge-k-sorted-lists
15 359 20 Logger Rate Limiter Valid Parentheses 70.8% 39.0% Easy Easy 0.08167803101426718 0.09286263438126167 https://leetcode.com/problems/logger-rate-limiter https://leetcode.com/problems/valid-parentheses
16 1366 359 Rank Teams by Votes Logger Rate Limiter 53.8% 70.8% Medium Easy 0.07223355735937158 0.08167803101426718 https://leetcode.com/problems/rank-teams-by-votes https://leetcode.com/problems/logger-rate-limiter
17 200 1366 Number of Islands Rank Teams by Votes 46.8% 53.8% Medium Medium 0.06985103785996453 0.07223355735937158 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/rank-teams-by-votes
18 706 200 Design HashMap Number of Islands 61.3% 46.8% Easy Medium 0.0683442674369718 0.06985103785996453 https://leetcode.com/problems/design-hashmap https://leetcode.com/problems/number-of-islands
19 98 706 Validate Binary Search Tree Design HashMap 27.8% 61.3% Medium Easy 0.057985181512132535 0.0683442674369718 https://leetcode.com/problems/validate-binary-search-tree https://leetcode.com/problems/design-hashmap
20 540 98 Single Element in a Sorted Array Validate Binary Search Tree 57.9% 27.8% Medium Medium 0.042721256704769804 0.057985181512132535 https://leetcode.com/problems/single-element-in-a-sorted-array https://leetcode.com/problems/validate-binary-search-tree
21 844 540 Backspace String Compare Single Element in a Sorted Array 46.4% 57.9% Easy Medium 0.041499730906752734 0.042721256704769804 https://leetcode.com/problems/backspace-string-compare https://leetcode.com/problems/single-element-in-a-sorted-array
22 31 844 Next Permutation Backspace String Compare 32.6% 46.4% Medium Easy 0.03686102113159897 0.041499730906752734 https://leetcode.com/problems/next-permutation https://leetcode.com/problems/backspace-string-compare
23 394 31 Decode String Next Permutation 50.0% 32.6% Medium Medium 0.03227387813668991 0.03686102113159897 https://leetcode.com/problems/decode-string https://leetcode.com/problems/next-permutation
24 150 394 Evaluate Reverse Polish Notation Decode String 36.3% 50.0% Medium Medium 0.031526253646773944 0.03227387813668991 https://leetcode.com/problems/evaluate-reverse-polish-notation https://leetcode.com/problems/decode-string
25 547 150 Friend Circles Evaluate Reverse Polish Notation 58.6% 36.3% Medium Medium 0.027307522052851193 0.031526253646773944 https://leetcode.com/problems/friend-circles https://leetcode.com/problems/evaluate-reverse-polish-notation
26 123 547 Best Time to Buy and Sell Stock III Friend Circles 37.5% 58.6% Hard Medium 0.02516207671950806 0.027307522052851193 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii https://leetcode.com/problems/friend-circles
27 713 123 Subarray Product Less Than K Best Time to Buy and Sell Stock III 39.1% 37.5% Medium Hard 0.02473842915612247 0.02516207671950806 https://leetcode.com/problems/subarray-product-less-than-k https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
28 647 713 Palindromic Substrings Subarray Product Less Than K 60.6% 39.1% Medium Medium 0.023250853650202817 0.02473842915612247 https://leetcode.com/problems/palindromic-substrings https://leetcode.com/problems/subarray-product-less-than-k
29 199 647 Binary Tree Right Side View Palindromic Substrings 54.1% 60.6% Medium Medium 0.022539339846061532 0.023250853650202817 https://leetcode.com/problems/binary-tree-right-side-view https://leetcode.com/problems/palindromic-substrings
30 101 199 Symmetric Tree Binary Tree Right Side View 46.8% 54.1% Easy Medium 0.02109782896463587 0.022539339846061532 https://leetcode.com/problems/symmetric-tree https://leetcode.com/problems/binary-tree-right-side-view
31 341 101 Flatten Nested List Iterator Symmetric Tree 52.9% 46.8% Medium Easy 0.019980684690483426 0.02109782896463587 https://leetcode.com/problems/flatten-nested-list-iterator https://leetcode.com/problems/symmetric-tree
32 53 341 Maximum Subarray Flatten Nested List Iterator 46.5% 52.9% Easy Medium 0.019336728821707075 0.019980684690483426 https://leetcode.com/problems/maximum-subarray https://leetcode.com/problems/flatten-nested-list-iterator
33 173 53 Binary Search Tree Iterator Maximum Subarray 56.6% 46.5% Medium Easy 0.01899993824490396 0.019336728821707075 https://leetcode.com/problems/binary-search-tree-iterator https://leetcode.com/problems/maximum-subarray
34 872 173 Leaf-Similar Trees Binary Search Tree Iterator 64.5% 56.6% Easy Medium 0.01752125418714782 0.01899993824490396 https://leetcode.com/problems/leaf-similar-trees https://leetcode.com/problems/binary-search-tree-iterator
35 46 872 Permutations Leaf-Similar Trees 63.5% 64.5% Medium Easy 0.016759583649075344 0.01752125418714782 https://leetcode.com/problems/permutations https://leetcode.com/problems/leaf-similar-trees
36 680 46 Valid Palindrome II Permutations 36.6% 63.5% Easy Medium 0.01632541245860885 0.016759583649075344 https://leetcode.com/problems/valid-palindrome-ii https://leetcode.com/problems/permutations
37 701 680 Insert into a Binary Search Tree Valid Palindrome II 77.7% 36.6% Medium Easy 0.015522236371561826 0.01632541245860885 https://leetcode.com/problems/insert-into-a-binary-search-tree https://leetcode.com/problems/valid-palindrome-ii
38 528 701 Random Pick with Weight Insert into a Binary Search Tree 43.9% 77.7% Medium Medium 0.014831565905995232 0.015522236371561826 https://leetcode.com/problems/random-pick-with-weight https://leetcode.com/problems/insert-into-a-binary-search-tree
39 227 528 Basic Calculator II Random Pick with Weight 36.9% 43.9% Medium Medium 0.01239941490503826 0.014831565905995232 https://leetcode.com/problems/basic-calculator-ii https://leetcode.com/problems/random-pick-with-weight
40 543 227 Diameter of Binary Tree Basic Calculator II 48.4% 36.9% Easy Medium 0.011898606798495848 0.01239941490503826 https://leetcode.com/problems/diameter-of-binary-tree https://leetcode.com/problems/basic-calculator-ii
41 3 543 Longest Substring Without Repeating Characters Diameter of Binary Tree 30.4% 48.4% Medium Easy 0.009683242444739549 0.011898606798495848 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/diameter-of-binary-tree
42 295 3 Find Median from Data Stream Longest Substring Without Repeating Characters 44.3% 30.4% Hard Medium 0.00899893586856953 0.009683242444739549 https://leetcode.com/problems/find-median-from-data-stream https://leetcode.com/problems/longest-substring-without-repeating-characters
43 21 295 Merge Two Sorted Lists Find Median from Data Stream 53.5% 44.3% Easy Hard 0.008990339814651234 0.00899893586856953 https://leetcode.com/problems/merge-two-sorted-lists https://leetcode.com/problems/find-median-from-data-stream
44 215 21 Kth Largest Element in an Array Merge Two Sorted Lists 55.4% 53.5% Medium Easy 0.008759180089881562 0.008990339814651234 https://leetcode.com/problems/kth-largest-element-in-an-array https://leetcode.com/problems/merge-two-sorted-lists
45 78 215 Subsets Kth Largest Element in an Array 62.0% 55.4% Medium Medium 0.008278192969371254 0.008759180089881562 https://leetcode.com/problems/subsets https://leetcode.com/problems/kth-largest-element-in-an-array
46 102 78 Binary Tree Level Order Traversal Subsets 54.6% 62.0% Medium Medium 0.008169238497129479 0.008278192969371254 https://leetcode.com/problems/binary-tree-level-order-traversal https://leetcode.com/problems/subsets
47 692 102 Top K Frequent Words Binary Tree Level Order Traversal 51.8% 54.6% Medium Medium 0.007516006820935329 0.008169238497129479 https://leetcode.com/problems/top-k-frequent-words https://leetcode.com/problems/binary-tree-level-order-traversal
48 136 692 Single Number Top K Frequent Words 65.5% 51.8% Easy Medium 0.006445166968713385 0.007516006820935329 https://leetcode.com/problems/single-number https://leetcode.com/problems/top-k-frequent-words
49 121 136 Best Time to Buy and Sell Stock Single Number 50.5% 65.5% Easy Easy 0.0047725193990346675 0.006445166968713385 https://leetcode.com/problems/best-time-to-buy-and-sell-stock https://leetcode.com/problems/single-number
50 236 121 Lowest Common Ancestor of a Binary Tree Best Time to Buy and Sell Stock 45.7% 50.5% Medium Easy 0.004714210262726446 0.0047725193990346675 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree https://leetcode.com/problems/best-time-to-buy-and-sell-stock
51 22 236 Generate Parentheses Lowest Common Ancestor of a Binary Tree 62.7% 45.7% Medium Medium 0.0043611059090124735 0.004714210262726446 https://leetcode.com/problems/generate-parentheses https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
52 56 22 Merge Intervals Generate Parentheses 39.3% 62.7% Medium Medium 0.0034728286335985107 0.0043611059090124735 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/generate-parentheses
53 1307 56 Verbal Arithmetic Puzzle Merge Intervals 37.7% 39.3% Hard Medium 0 0.0034728286335985107 https://leetcode.com/problems/verbal-arithmetic-puzzle https://leetcode.com/problems/merge-intervals
54 1307 Verbal Arithmetic Puzzle 37.7% Hard 0 https://leetcode.com/problems/verbal-arithmetic-puzzle