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