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 @@
206,Reverse Linked List,62.5%,Easy,0.5096020824537725, https://leetcode.com/problems/reverse-linked-list
1,Two Sum,45.6%,Easy,0.47406700041221206, https://leetcode.com/problems/two-sum
1235,Maximum Profit in Job Scheduling,44.0%,Hard,0.4102843945441133, https://leetcode.com/problems/maximum-profit-in-job-scheduling
56,Merge Intervals,39.3%,Medium,0.3513205757185784, https://leetcode.com/problems/merge-intervals
146,LRU Cache,33.2%,Medium,0.28753796985047964, https://leetcode.com/problems/lru-cache
1290,Convert Binary Number in a Linked List to Integer,80.4%,Easy,0.27867750935869917, https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer
2,Add Two Numbers,33.9%,Medium,0.23433638113782154, https://leetcode.com/problems/add-two-numbers
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.23357430753991837, https://leetcode.com/problems/longest-substring-without-repeating-characters
48,Rotate Image,56.7%,Medium,0.22339894653970727, https://leetcode.com/problems/rotate-image
909,Snakes and Ladders,38.4%,Medium,0.2176811889223697, https://leetcode.com/problems/snakes-and-ladders
344,Reverse String,68.5%,Easy,0.21237677460220186, https://leetcode.com/problems/reverse-string
468,Validate IP Address,24.1%,Medium,0.19827548473619627, https://leetcode.com/problems/validate-ip-address
246,Strobogrammatic Number,45.0%,Easy,0.187957697907993, https://leetcode.com/problems/strobogrammatic-number
394,Decode String,50.0%,Medium,0.18648126820299707, https://leetcode.com/problems/decode-string
5,Longest Palindromic Substring,29.5%,Medium,0.1696048381235884, https://leetcode.com/problems/longest-palindromic-substring
235,Lowest Common Ancestor of a Binary Search Tree,49.9%,Easy,0.15450422411236212, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
191,Number of 1 Bits,49.8%,Easy,0.1413992905633252, https://leetcode.com/problems/number-of-1-bits
91,Decode Ways,24.7%,Medium,0.13946258598914826, https://leetcode.com/problems/decode-ways
198,House Robber,42.0%,Easy,0.12709898426651453, https://leetcode.com/problems/house-robber
25,Reverse Nodes in k-Group,42.1%,Hard,0.11843859582750475, https://leetcode.com/problems/reverse-nodes-in-k-group
53,Maximum Subarray,46.5%,Easy,0.11514006965309906, https://leetcode.com/problems/maximum-subarray
247,Strobogrammatic Number II,47.6%,Medium,0.1040197878075301, https://leetcode.com/problems/strobogrammatic-number-ii
88,Merge Sorted Array,39.4%,Easy,0.10303644235421959, https://leetcode.com/problems/merge-sorted-array
200,Number of Islands,46.8%,Medium,0.09910455319823885, https://leetcode.com/problems/number-of-islands
20,Valid Parentheses,39.0%,Easy,0.09286263438126167, https://leetcode.com/problems/valid-parentheses
141,Linked List Cycle,41.1%,Easy,0.08387846684791357, https://leetcode.com/problems/linked-list-cycle
905,Sort Array By Parity,74.1%,Easy,0.08328510247304294, https://leetcode.com/problems/sort-array-by-parity
143,Reorder List,37.1%,Medium,0.07027335591777661, https://leetcode.com/problems/reorder-list
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.06233349258151901, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
237,Delete Node in a Linked List,63.8%,Easy,0.06126915938306008, https://leetcode.com/problems/delete-node-in-a-linked-list
160,Intersection of Two Linked Lists,40.6%,Easy,0.05844735064567987, https://leetcode.com/problems/intersection-of-two-linked-lists
54,Spiral Matrix,34.1%,Medium,0.05783815482970009, https://leetcode.com/problems/spiral-matrix
14,Longest Common Prefix,35.4%,Easy,0.051846064173015856, https://leetcode.com/problems/longest-common-prefix
33,Search in Rotated Sorted Array,34.5%,Medium,0.05046797817178903, https://leetcode.com/problems/search-in-rotated-sorted-array
23,Merge k Sorted Lists,40.2%,Hard,0.04853398505532907, https://leetcode.com/problems/merge-k-sorted-lists
445,Add Two Numbers II,54.5%,Medium,0.04843561709959499, https://leetcode.com/problems/add-two-numbers-ii
26,Remove Duplicates from Sorted Array,45.1%,Easy,0.0476757427679509, https://leetcode.com/problems/remove-duplicates-from-sorted-array
8,String to Integer (atoi),15.4%,Medium,0.04549614908874012, https://leetcode.com/problems/string-to-integer-atoi
102,Binary Tree Level Order Traversal,54.6%,Medium,0.04369064305418892, https://leetcode.com/problems/binary-tree-level-order-traversal
241,Different Ways to Add Parentheses,55.2%,Medium,0.03880215185647971, https://leetcode.com/problems/different-ways-to-add-parentheses
628,Maximum Product of Three Numbers,47.1%,Easy,0.03681397312271631, https://leetcode.com/problems/maximum-product-of-three-numbers
242,Valid Anagram,56.9%,Easy,0.03678011874543614, https://leetcode.com/problems/valid-anagram
189,Rotate Array,34.7%,Easy,0.03569682997206547, https://leetcode.com/problems/rotate-array
21,Merge Two Sorted Lists,53.5%,Easy,0.03548634253021285, https://leetcode.com/problems/merge-two-sorted-lists
108,Convert Sorted Array to Binary Search Tree,57.9%,Easy,0.03421710570764629, https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
384,Shuffle an Array,52.8%,Medium,0.03399118781703353, https://leetcode.com/problems/shuffle-an-array
253,Meeting Rooms II,45.7%,Medium,0.03193246767820989, https://leetcode.com/problems/meeting-rooms-ii
17,Letter Combinations of a Phone Number,46.8%,Medium,0.027199239804368825, https://leetcode.com/problems/letter-combinations-of-a-phone-number
125,Valid Palindrome,36.7%,Easy,0.02462208292471368, https://leetcode.com/problems/valid-palindrome
605,Can Place Flowers,31.6%,Easy,0.02457126073050533, https://leetcode.com/problems/can-place-flowers
151,Reverse Words in a String,21.9%,Medium,0.024321004216273485, https://leetcode.com/problems/reverse-words-in-a-string
144,Binary Tree Preorder Traversal,55.7%,Medium,0.024170360927813044, https://leetcode.com/problems/binary-tree-preorder-traversal
212,Word Search II,34.9%,Hard,0.02201654487096149, https://leetcode.com/problems/word-search-ii
15,3Sum,26.8%,Medium,0.019619157889188592, https://leetcode.com/problems/3sum
19,Remove Nth Node From End of List,35.2%,Medium,0.019074355670058666, https://leetcode.com/problems/remove-nth-node-from-end-of-list
450,Delete Node in a BST,43.1%,Medium,0.018536211907915243, https://leetcode.com/problems/delete-node-in-a-bst
234,Palindrome Linked List,39.3%,Easy,0.01801241989645556, https://leetcode.com/problems/palindrome-linked-list
412,Fizz Buzz,62.3%,Easy,0.016051709010507904, https://leetcode.com/problems/fizz-buzz
110,Balanced Binary Tree,43.5%,Easy,0.015742847432510365, https://leetcode.com/problems/balanced-binary-tree
7,Reverse Integer,25.8%,Easy,0.011576347096986317, https://leetcode.com/problems/reverse-integer
207,Course Schedule,43.1%,Medium,0.01113459480911671, https://leetcode.com/problems/course-schedule
739,Daily Temperatures,63.3%,Medium,0.010032690121814417, https://leetcode.com/problems/daily-temperatures
22,Generate Parentheses,62.7%,Medium,0.009785877810632554, https://leetcode.com/problems/generate-parentheses
46,Permutations,63.5%,Medium,0.009461803137288448, https://leetcode.com/problems/permutations
279,Perfect Squares,47.4%,Medium,0.009216655104924008, https://leetcode.com/problems/perfect-squares
49,Group Anagrams,56.9%,Medium,0.008538951314232168, https://leetcode.com/problems/group-anagrams
173,Binary Search Tree Iterator,56.6%,Medium,0.008489015324911316, https://leetcode.com/problems/binary-search-tree-iterator
876,Middle of the Linked List,68.4%,Easy,0.007624893975696915, https://leetcode.com/problems/middle-of-the-linked-list
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
206,Reverse Linked List,62.5%,Easy,0.5096020824537725, https://leetcode.com/problems/reverse-linked-list
1,Two Sum,45.6%,Easy,0.47406700041221206, https://leetcode.com/problems/two-sum
1235,Maximum Profit in Job Scheduling,44.0%,Hard,0.4102843945441133, https://leetcode.com/problems/maximum-profit-in-job-scheduling
56,Merge Intervals,39.3%,Medium,0.3513205757185784, https://leetcode.com/problems/merge-intervals
146,LRU Cache,33.2%,Medium,0.28753796985047964, https://leetcode.com/problems/lru-cache
1290,Convert Binary Number in a Linked List to Integer,80.4%,Easy,0.27867750935869917, https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer
2,Add Two Numbers,33.9%,Medium,0.23433638113782154, https://leetcode.com/problems/add-two-numbers
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.23357430753991837, https://leetcode.com/problems/longest-substring-without-repeating-characters
48,Rotate Image,56.7%,Medium,0.22339894653970727, https://leetcode.com/problems/rotate-image
909,Snakes and Ladders,38.4%,Medium,0.2176811889223697, https://leetcode.com/problems/snakes-and-ladders
344,Reverse String,68.5%,Easy,0.21237677460220186, https://leetcode.com/problems/reverse-string
468,Validate IP Address,24.1%,Medium,0.19827548473619627, https://leetcode.com/problems/validate-ip-address
246,Strobogrammatic Number,45.0%,Easy,0.187957697907993, https://leetcode.com/problems/strobogrammatic-number
394,Decode String,50.0%,Medium,0.18648126820299707, https://leetcode.com/problems/decode-string
5,Longest Palindromic Substring,29.5%,Medium,0.1696048381235884, https://leetcode.com/problems/longest-palindromic-substring
235,Lowest Common Ancestor of a Binary Search Tree,49.9%,Easy,0.15450422411236212, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
191,Number of 1 Bits,49.8%,Easy,0.1413992905633252, https://leetcode.com/problems/number-of-1-bits
91,Decode Ways,24.7%,Medium,0.13946258598914826, https://leetcode.com/problems/decode-ways
198,House Robber,42.0%,Easy,0.12709898426651453, https://leetcode.com/problems/house-robber
25,Reverse Nodes in k-Group,42.1%,Hard,0.11843859582750475, https://leetcode.com/problems/reverse-nodes-in-k-group
53,Maximum Subarray,46.5%,Easy,0.11514006965309906, https://leetcode.com/problems/maximum-subarray
247,Strobogrammatic Number II,47.6%,Medium,0.1040197878075301, https://leetcode.com/problems/strobogrammatic-number-ii
88,Merge Sorted Array,39.4%,Easy,0.10303644235421959, https://leetcode.com/problems/merge-sorted-array
200,Number of Islands,46.8%,Medium,0.09910455319823885, https://leetcode.com/problems/number-of-islands
20,Valid Parentheses,39.0%,Easy,0.09286263438126167, https://leetcode.com/problems/valid-parentheses
141,Linked List Cycle,41.1%,Easy,0.08387846684791357, https://leetcode.com/problems/linked-list-cycle
905,Sort Array By Parity,74.1%,Easy,0.08328510247304294, https://leetcode.com/problems/sort-array-by-parity
143,Reorder List,37.1%,Medium,0.07027335591777661, https://leetcode.com/problems/reorder-list
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.06233349258151901, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
237,Delete Node in a Linked List,63.8%,Easy,0.06126915938306008, https://leetcode.com/problems/delete-node-in-a-linked-list
160,Intersection of Two Linked Lists,40.6%,Easy,0.05844735064567987, https://leetcode.com/problems/intersection-of-two-linked-lists
54,Spiral Matrix,34.1%,Medium,0.05783815482970009, https://leetcode.com/problems/spiral-matrix
14,Longest Common Prefix,35.4%,Easy,0.051846064173015856, https://leetcode.com/problems/longest-common-prefix
33,Search in Rotated Sorted Array,34.5%,Medium,0.05046797817178903, https://leetcode.com/problems/search-in-rotated-sorted-array
23,Merge k Sorted Lists,40.2%,Hard,0.04853398505532907, https://leetcode.com/problems/merge-k-sorted-lists
445,Add Two Numbers II,54.5%,Medium,0.04843561709959499, https://leetcode.com/problems/add-two-numbers-ii
26,Remove Duplicates from Sorted Array,45.1%,Easy,0.0476757427679509, https://leetcode.com/problems/remove-duplicates-from-sorted-array
8,String to Integer (atoi),15.4%,Medium,0.04549614908874012, https://leetcode.com/problems/string-to-integer-atoi
102,Binary Tree Level Order Traversal,54.6%,Medium,0.04369064305418892, https://leetcode.com/problems/binary-tree-level-order-traversal
241,Different Ways to Add Parentheses,55.2%,Medium,0.03880215185647971, https://leetcode.com/problems/different-ways-to-add-parentheses
628,Maximum Product of Three Numbers,47.1%,Easy,0.03681397312271631, https://leetcode.com/problems/maximum-product-of-three-numbers
242,Valid Anagram,56.9%,Easy,0.03678011874543614, https://leetcode.com/problems/valid-anagram
189,Rotate Array,34.7%,Easy,0.03569682997206547, https://leetcode.com/problems/rotate-array
21,Merge Two Sorted Lists,53.5%,Easy,0.03548634253021285, https://leetcode.com/problems/merge-two-sorted-lists
108,Convert Sorted Array to Binary Search Tree,57.9%,Easy,0.03421710570764629, https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
384,Shuffle an Array,52.8%,Medium,0.03399118781703353, https://leetcode.com/problems/shuffle-an-array
253,Meeting Rooms II,45.7%,Medium,0.03193246767820989, https://leetcode.com/problems/meeting-rooms-ii
17,Letter Combinations of a Phone Number,46.8%,Medium,0.027199239804368825, https://leetcode.com/problems/letter-combinations-of-a-phone-number
125,Valid Palindrome,36.7%,Easy,0.02462208292471368, https://leetcode.com/problems/valid-palindrome
605,Can Place Flowers,31.6%,Easy,0.02457126073050533, https://leetcode.com/problems/can-place-flowers
151,Reverse Words in a String,21.9%,Medium,0.024321004216273485, https://leetcode.com/problems/reverse-words-in-a-string
144,Binary Tree Preorder Traversal,55.7%,Medium,0.024170360927813044, https://leetcode.com/problems/binary-tree-preorder-traversal
212,Word Search II,34.9%,Hard,0.02201654487096149, https://leetcode.com/problems/word-search-ii
15,3Sum,26.8%,Medium,0.019619157889188592, https://leetcode.com/problems/3sum
19,Remove Nth Node From End of List,35.2%,Medium,0.019074355670058666, https://leetcode.com/problems/remove-nth-node-from-end-of-list
450,Delete Node in a BST,43.1%,Medium,0.018536211907915243, https://leetcode.com/problems/delete-node-in-a-bst
234,Palindrome Linked List,39.3%,Easy,0.01801241989645556, https://leetcode.com/problems/palindrome-linked-list
412,Fizz Buzz,62.3%,Easy,0.016051709010507904, https://leetcode.com/problems/fizz-buzz
110,Balanced Binary Tree,43.5%,Easy,0.015742847432510365, https://leetcode.com/problems/balanced-binary-tree
7,Reverse Integer,25.8%,Easy,0.011576347096986317, https://leetcode.com/problems/reverse-integer
207,Course Schedule,43.1%,Medium,0.01113459480911671, https://leetcode.com/problems/course-schedule
739,Daily Temperatures,63.3%,Medium,0.010032690121814417, https://leetcode.com/problems/daily-temperatures
22,Generate Parentheses,62.7%,Medium,0.009785877810632554, https://leetcode.com/problems/generate-parentheses
46,Permutations,63.5%,Medium,0.009461803137288448, https://leetcode.com/problems/permutations
279,Perfect Squares,47.4%,Medium,0.009216655104924008, https://leetcode.com/problems/perfect-squares
49,Group Anagrams,56.9%,Medium,0.008538951314232168, https://leetcode.com/problems/group-anagrams
173,Binary Search Tree Iterator,56.6%,Medium,0.008489015324911316, https://leetcode.com/problems/binary-search-tree-iterator
876,Middle of the Linked List,68.4%,Easy,0.007624893975696915, https://leetcode.com/problems/middle-of-the-linked-list
1 206 ID Reverse Linked List Title 62.5% Acceptance Easy Difficulty 0.5096020824537725 Frequency https://leetcode.com/problems/reverse-linked-list Leetcode Question Link
2 1 206 Two Sum Reverse Linked List 45.6% 62.5% Easy Easy 0.47406700041221206 0.5096020824537725 https://leetcode.com/problems/two-sum https://leetcode.com/problems/reverse-linked-list
3 1235 1 Maximum Profit in Job Scheduling Two Sum 44.0% 45.6% Hard Easy 0.4102843945441133 0.47406700041221206 https://leetcode.com/problems/maximum-profit-in-job-scheduling https://leetcode.com/problems/two-sum
4 56 1235 Merge Intervals Maximum Profit in Job Scheduling 39.3% 44.0% Medium Hard 0.3513205757185784 0.4102843945441133 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/maximum-profit-in-job-scheduling
5 146 56 LRU Cache Merge Intervals 33.2% 39.3% Medium Medium 0.28753796985047964 0.3513205757185784 https://leetcode.com/problems/lru-cache https://leetcode.com/problems/merge-intervals
6 1290 146 Convert Binary Number in a Linked List to Integer LRU Cache 80.4% 33.2% Easy Medium 0.27867750935869917 0.28753796985047964 https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer https://leetcode.com/problems/lru-cache
7 2 1290 Add Two Numbers Convert Binary Number in a Linked List to Integer 33.9% 80.4% Medium Easy 0.23433638113782154 0.27867750935869917 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer
8 3 2 Longest Substring Without Repeating Characters Add Two Numbers 30.4% 33.9% Medium Medium 0.23357430753991837 0.23433638113782154 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/add-two-numbers
9 48 3 Rotate Image Longest Substring Without Repeating Characters 56.7% 30.4% Medium Medium 0.22339894653970727 0.23357430753991837 https://leetcode.com/problems/rotate-image https://leetcode.com/problems/longest-substring-without-repeating-characters
10 909 48 Snakes and Ladders Rotate Image 38.4% 56.7% Medium Medium 0.2176811889223697 0.22339894653970727 https://leetcode.com/problems/snakes-and-ladders https://leetcode.com/problems/rotate-image
11 344 909 Reverse String Snakes and Ladders 68.5% 38.4% Easy Medium 0.21237677460220186 0.2176811889223697 https://leetcode.com/problems/reverse-string https://leetcode.com/problems/snakes-and-ladders
12 468 344 Validate IP Address Reverse String 24.1% 68.5% Medium Easy 0.19827548473619627 0.21237677460220186 https://leetcode.com/problems/validate-ip-address https://leetcode.com/problems/reverse-string
13 246 468 Strobogrammatic Number Validate IP Address 45.0% 24.1% Easy Medium 0.187957697907993 0.19827548473619627 https://leetcode.com/problems/strobogrammatic-number https://leetcode.com/problems/validate-ip-address
14 394 246 Decode String Strobogrammatic Number 50.0% 45.0% Medium Easy 0.18648126820299707 0.187957697907993 https://leetcode.com/problems/decode-string https://leetcode.com/problems/strobogrammatic-number
15 5 394 Longest Palindromic Substring Decode String 29.5% 50.0% Medium Medium 0.1696048381235884 0.18648126820299707 https://leetcode.com/problems/longest-palindromic-substring https://leetcode.com/problems/decode-string
16 235 5 Lowest Common Ancestor of a Binary Search Tree Longest Palindromic Substring 49.9% 29.5% Easy Medium 0.15450422411236212 0.1696048381235884 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree https://leetcode.com/problems/longest-palindromic-substring
17 191 235 Number of 1 Bits Lowest Common Ancestor of a Binary Search Tree 49.8% 49.9% Easy Easy 0.1413992905633252 0.15450422411236212 https://leetcode.com/problems/number-of-1-bits https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
18 91 191 Decode Ways Number of 1 Bits 24.7% 49.8% Medium Easy 0.13946258598914826 0.1413992905633252 https://leetcode.com/problems/decode-ways https://leetcode.com/problems/number-of-1-bits
19 198 91 House Robber Decode Ways 42.0% 24.7% Easy Medium 0.12709898426651453 0.13946258598914826 https://leetcode.com/problems/house-robber https://leetcode.com/problems/decode-ways
20 25 198 Reverse Nodes in k-Group House Robber 42.1% 42.0% Hard Easy 0.11843859582750475 0.12709898426651453 https://leetcode.com/problems/reverse-nodes-in-k-group https://leetcode.com/problems/house-robber
21 53 25 Maximum Subarray Reverse Nodes in k-Group 46.5% 42.1% Easy Hard 0.11514006965309906 0.11843859582750475 https://leetcode.com/problems/maximum-subarray https://leetcode.com/problems/reverse-nodes-in-k-group
22 247 53 Strobogrammatic Number II Maximum Subarray 47.6% 46.5% Medium Easy 0.1040197878075301 0.11514006965309906 https://leetcode.com/problems/strobogrammatic-number-ii https://leetcode.com/problems/maximum-subarray
23 88 247 Merge Sorted Array Strobogrammatic Number II 39.4% 47.6% Easy Medium 0.10303644235421959 0.1040197878075301 https://leetcode.com/problems/merge-sorted-array https://leetcode.com/problems/strobogrammatic-number-ii
24 200 88 Number of Islands Merge Sorted Array 46.8% 39.4% Medium Easy 0.09910455319823885 0.10303644235421959 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/merge-sorted-array
25 20 200 Valid Parentheses Number of Islands 39.0% 46.8% Easy Medium 0.09286263438126167 0.09910455319823885 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/number-of-islands
26 141 20 Linked List Cycle Valid Parentheses 41.1% 39.0% Easy Easy 0.08387846684791357 0.09286263438126167 https://leetcode.com/problems/linked-list-cycle https://leetcode.com/problems/valid-parentheses
27 905 141 Sort Array By Parity Linked List Cycle 74.1% 41.1% Easy Easy 0.08328510247304294 0.08387846684791357 https://leetcode.com/problems/sort-array-by-parity https://leetcode.com/problems/linked-list-cycle
28 143 905 Reorder List Sort Array By Parity 37.1% 74.1% Medium Easy 0.07027335591777661 0.08328510247304294 https://leetcode.com/problems/reorder-list https://leetcode.com/problems/sort-array-by-parity
29 121 143 Best Time to Buy and Sell Stock Reorder List 50.5% 37.1% Easy Medium 0.06233349258151901 0.07027335591777661 https://leetcode.com/problems/best-time-to-buy-and-sell-stock https://leetcode.com/problems/reorder-list
30 237 121 Delete Node in a Linked List Best Time to Buy and Sell Stock 63.8% 50.5% Easy Easy 0.06126915938306008 0.06233349258151901 https://leetcode.com/problems/delete-node-in-a-linked-list https://leetcode.com/problems/best-time-to-buy-and-sell-stock
31 160 237 Intersection of Two Linked Lists Delete Node in a Linked List 40.6% 63.8% Easy Easy 0.05844735064567987 0.06126915938306008 https://leetcode.com/problems/intersection-of-two-linked-lists https://leetcode.com/problems/delete-node-in-a-linked-list
32 54 160 Spiral Matrix Intersection of Two Linked Lists 34.1% 40.6% Medium Easy 0.05783815482970009 0.05844735064567987 https://leetcode.com/problems/spiral-matrix https://leetcode.com/problems/intersection-of-two-linked-lists
33 14 54 Longest Common Prefix Spiral Matrix 35.4% 34.1% Easy Medium 0.051846064173015856 0.05783815482970009 https://leetcode.com/problems/longest-common-prefix https://leetcode.com/problems/spiral-matrix
34 33 14 Search in Rotated Sorted Array Longest Common Prefix 34.5% 35.4% Medium Easy 0.05046797817178903 0.051846064173015856 https://leetcode.com/problems/search-in-rotated-sorted-array https://leetcode.com/problems/longest-common-prefix
35 23 33 Merge k Sorted Lists Search in Rotated Sorted Array 40.2% 34.5% Hard Medium 0.04853398505532907 0.05046797817178903 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/search-in-rotated-sorted-array
36 445 23 Add Two Numbers II Merge k Sorted Lists 54.5% 40.2% Medium Hard 0.04843561709959499 0.04853398505532907 https://leetcode.com/problems/add-two-numbers-ii https://leetcode.com/problems/merge-k-sorted-lists
37 26 445 Remove Duplicates from Sorted Array Add Two Numbers II 45.1% 54.5% Easy Medium 0.0476757427679509 0.04843561709959499 https://leetcode.com/problems/remove-duplicates-from-sorted-array https://leetcode.com/problems/add-two-numbers-ii
38 8 26 String to Integer (atoi) Remove Duplicates from Sorted Array 15.4% 45.1% Medium Easy 0.04549614908874012 0.0476757427679509 https://leetcode.com/problems/string-to-integer-atoi https://leetcode.com/problems/remove-duplicates-from-sorted-array
39 102 8 Binary Tree Level Order Traversal String to Integer (atoi) 54.6% 15.4% Medium Medium 0.04369064305418892 0.04549614908874012 https://leetcode.com/problems/binary-tree-level-order-traversal https://leetcode.com/problems/string-to-integer-atoi
40 241 102 Different Ways to Add Parentheses Binary Tree Level Order Traversal 55.2% 54.6% Medium Medium 0.03880215185647971 0.04369064305418892 https://leetcode.com/problems/different-ways-to-add-parentheses https://leetcode.com/problems/binary-tree-level-order-traversal
41 628 241 Maximum Product of Three Numbers Different Ways to Add Parentheses 47.1% 55.2% Easy Medium 0.03681397312271631 0.03880215185647971 https://leetcode.com/problems/maximum-product-of-three-numbers https://leetcode.com/problems/different-ways-to-add-parentheses
42 242 628 Valid Anagram Maximum Product of Three Numbers 56.9% 47.1% Easy Easy 0.03678011874543614 0.03681397312271631 https://leetcode.com/problems/valid-anagram https://leetcode.com/problems/maximum-product-of-three-numbers
43 189 242 Rotate Array Valid Anagram 34.7% 56.9% Easy Easy 0.03569682997206547 0.03678011874543614 https://leetcode.com/problems/rotate-array https://leetcode.com/problems/valid-anagram
44 21 189 Merge Two Sorted Lists Rotate Array 53.5% 34.7% Easy Easy 0.03548634253021285 0.03569682997206547 https://leetcode.com/problems/merge-two-sorted-lists https://leetcode.com/problems/rotate-array
45 108 21 Convert Sorted Array to Binary Search Tree Merge Two Sorted Lists 57.9% 53.5% Easy Easy 0.03421710570764629 0.03548634253021285 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree https://leetcode.com/problems/merge-two-sorted-lists
46 384 108 Shuffle an Array Convert Sorted Array to Binary Search Tree 52.8% 57.9% Medium Easy 0.03399118781703353 0.03421710570764629 https://leetcode.com/problems/shuffle-an-array https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
47 253 384 Meeting Rooms II Shuffle an Array 45.7% 52.8% Medium Medium 0.03193246767820989 0.03399118781703353 https://leetcode.com/problems/meeting-rooms-ii https://leetcode.com/problems/shuffle-an-array
48 17 253 Letter Combinations of a Phone Number Meeting Rooms II 46.8% 45.7% Medium Medium 0.027199239804368825 0.03193246767820989 https://leetcode.com/problems/letter-combinations-of-a-phone-number https://leetcode.com/problems/meeting-rooms-ii
49 125 17 Valid Palindrome Letter Combinations of a Phone Number 36.7% 46.8% Easy Medium 0.02462208292471368 0.027199239804368825 https://leetcode.com/problems/valid-palindrome https://leetcode.com/problems/letter-combinations-of-a-phone-number
50 605 125 Can Place Flowers Valid Palindrome 31.6% 36.7% Easy Easy 0.02457126073050533 0.02462208292471368 https://leetcode.com/problems/can-place-flowers https://leetcode.com/problems/valid-palindrome
51 151 605 Reverse Words in a String Can Place Flowers 21.9% 31.6% Medium Easy 0.024321004216273485 0.02457126073050533 https://leetcode.com/problems/reverse-words-in-a-string https://leetcode.com/problems/can-place-flowers
52 144 151 Binary Tree Preorder Traversal Reverse Words in a String 55.7% 21.9% Medium Medium 0.024170360927813044 0.024321004216273485 https://leetcode.com/problems/binary-tree-preorder-traversal https://leetcode.com/problems/reverse-words-in-a-string
53 212 144 Word Search II Binary Tree Preorder Traversal 34.9% 55.7% Hard Medium 0.02201654487096149 0.024170360927813044 https://leetcode.com/problems/word-search-ii https://leetcode.com/problems/binary-tree-preorder-traversal
54 15 212 3Sum Word Search II 26.8% 34.9% Medium Hard 0.019619157889188592 0.02201654487096149 https://leetcode.com/problems/3sum https://leetcode.com/problems/word-search-ii
55 19 15 Remove Nth Node From End of List 3Sum 35.2% 26.8% Medium Medium 0.019074355670058666 0.019619157889188592 https://leetcode.com/problems/remove-nth-node-from-end-of-list https://leetcode.com/problems/3sum
56 450 19 Delete Node in a BST Remove Nth Node From End of List 43.1% 35.2% Medium Medium 0.018536211907915243 0.019074355670058666 https://leetcode.com/problems/delete-node-in-a-bst https://leetcode.com/problems/remove-nth-node-from-end-of-list
57 234 450 Palindrome Linked List Delete Node in a BST 39.3% 43.1% Easy Medium 0.01801241989645556 0.018536211907915243 https://leetcode.com/problems/palindrome-linked-list https://leetcode.com/problems/delete-node-in-a-bst
58 412 234 Fizz Buzz Palindrome Linked List 62.3% 39.3% Easy Easy 0.016051709010507904 0.01801241989645556 https://leetcode.com/problems/fizz-buzz https://leetcode.com/problems/palindrome-linked-list
59 110 412 Balanced Binary Tree Fizz Buzz 43.5% 62.3% Easy Easy 0.015742847432510365 0.016051709010507904 https://leetcode.com/problems/balanced-binary-tree https://leetcode.com/problems/fizz-buzz
60 7 110 Reverse Integer Balanced Binary Tree 25.8% 43.5% Easy Easy 0.011576347096986317 0.015742847432510365 https://leetcode.com/problems/reverse-integer https://leetcode.com/problems/balanced-binary-tree
61 207 7 Course Schedule Reverse Integer 43.1% 25.8% Medium Easy 0.01113459480911671 0.011576347096986317 https://leetcode.com/problems/course-schedule https://leetcode.com/problems/reverse-integer
62 739 207 Daily Temperatures Course Schedule 63.3% 43.1% Medium Medium 0.010032690121814417 0.01113459480911671 https://leetcode.com/problems/daily-temperatures https://leetcode.com/problems/course-schedule
63 22 739 Generate Parentheses Daily Temperatures 62.7% 63.3% Medium Medium 0.009785877810632554 0.010032690121814417 https://leetcode.com/problems/generate-parentheses https://leetcode.com/problems/daily-temperatures
64 46 22 Permutations Generate Parentheses 63.5% 62.7% Medium Medium 0.009461803137288448 0.009785877810632554 https://leetcode.com/problems/permutations https://leetcode.com/problems/generate-parentheses
65 279 46 Perfect Squares Permutations 47.4% 63.5% Medium Medium 0.009216655104924008 0.009461803137288448 https://leetcode.com/problems/perfect-squares https://leetcode.com/problems/permutations
66 49 279 Group Anagrams Perfect Squares 56.9% 47.4% Medium Medium 0.008538951314232168 0.009216655104924008 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/perfect-squares
67 173 49 Binary Search Tree Iterator Group Anagrams 56.6% 56.9% Medium Medium 0.008489015324911316 0.008538951314232168 https://leetcode.com/problems/binary-search-tree-iterator https://leetcode.com/problems/group-anagrams
68 876 173 Middle of the Linked List Binary Search Tree Iterator 68.4% 56.6% Easy Medium 0.007624893975696915 0.008489015324911316 https://leetcode.com/problems/middle-of-the-linked-list https://leetcode.com/problems/binary-search-tree-iterator
69 876 Middle of the Linked List 68.4% Easy 0.007624893975696915 https://leetcode.com/problems/middle-of-the-linked-list