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 @@
757,Set Intersection Size At Least Two,40.1%,Hard,0.5396314899631808, https://leetcode.com/problems/set-intersection-size-at-least-two
529,Minesweeper,59.1%,Medium,0.4349614506910173, https://leetcode.com/problems/minesweeper
305,Number of Islands II,40.1%,Hard,0.32714090919232863, https://leetcode.com/problems/number-of-islands-ii
1136,Parallel Courses,61.1%,Hard,0.2858421455297737, https://leetcode.com/problems/parallel-courses
773,Sliding Puzzle,59.3%,Hard,0.26329061932762177, https://leetcode.com/problems/sliding-puzzle
527,Word Abbreviation,54.3%,Hard,0.24362208265775043, https://leetcode.com/problems/word-abbreviation
427,Construct Quad Tree,61.4%,Medium,0.13580154115906176, https://leetcode.com/problems/construct-quad-tree
1188,Design Bounded Blocking Queue,70.5%,Medium,0.11030454201470608, https://leetcode.com/problems/design-bounded-blocking-queue
267,Palindrome Permutation II,36.4%,Medium,0.10345133738802471, https://leetcode.com/problems/palindrome-permutation-ii
1281,Subtract the Product and Sum of Digits of an Integer,85.2%,Easy,0.09413791982746433, https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer
128,Longest Consecutive Sequence,45.1%,Hard,0.0786603197723907, https://leetcode.com/problems/longest-consecutive-sequence
969,Pancake Sorting,67.5%,Medium,0.04908961019652358, https://leetcode.com/problems/pancake-sorting
2,Add Two Numbers,33.9%,Medium,0.033650830145699084, https://leetcode.com/problems/add-two-numbers
228,Summary Ranges,39.5%,Medium,0.03157326191609021, https://leetcode.com/problems/summary-ranges
239,Sliding Window Maximum,43.0%,Hard,0.031228142547585713, https://leetcode.com/problems/sliding-window-maximum
56,Merge Intervals,39.3%,Medium,0.030829638084076787, https://leetcode.com/problems/merge-intervals
445,Add Two Numbers II,54.5%,Medium,0.02753309435998931, https://leetcode.com/problems/add-two-numbers-ii
1038,Binary Search Tree to Greater Sum Tree,80.8%,Medium,0.025446665661164262, https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
149,Max Points on a Line,16.9%,Hard,0.02484599858653081, https://leetcode.com/problems/max-points-on-a-line
238,Product of Array Except Self,60.1%,Medium,0.024315533698358247, https://leetcode.com/problems/product-of-array-except-self
395,Longest Substring with At Least K Repeating Characters,41.4%,Medium,0.024228925974379843, https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
426,Convert Binary Search Tree to Sorted Doubly Linked List,59.1%,Medium,0.024214258120594613, https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
282,Expression Add Operators,35.5%,Hard,0.022523474667082946, https://leetcode.com/problems/expression-add-operators
74,Search a 2D Matrix,36.5%,Medium,0.020896975877216107, https://leetcode.com/problems/search-a-2d-matrix
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
146,LRU Cache,33.2%,Medium,0.01827577993873683, https://leetcode.com/problems/lru-cache
1,Two Sum,45.6%,Easy,0.016487580637467636, https://leetcode.com/problems/two-sum
23,Merge k Sorted Lists,40.2%,Hard,0.016108271385328228, https://leetcode.com/problems/merge-k-sorted-lists
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.01585377577217724, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
85,Maximal Rectangle,37.7%,Hard,0.013333530869465187, https://leetcode.com/problems/maximal-rectangle
57,Insert Interval,33.5%,Hard,0.013119243592498872, https://leetcode.com/problems/insert-interval
852,Peak Index in a Mountain Array,71.6%,Easy,0.012618463959211509, https://leetcode.com/problems/peak-index-in-a-mountain-array
227,Basic Calculator II,36.9%,Medium,0.01239941490503826, https://leetcode.com/problems/basic-calculator-ii
986,Interval List Intersections,67.3%,Medium,0.011969023795320735, https://leetcode.com/problems/interval-list-intersections
130,Surrounded Regions,28.1%,Medium,0.011965443385675322, https://leetcode.com/problems/surrounded-regions
211,Add and Search Word - Data structure design,38.1%,Medium,0.010438508143923443, https://leetcode.com/problems/add-and-search-word-data-structure-design
72,Edit Distance,44.8%,Hard,0.010017614452317782, https://leetcode.com/problems/edit-distance
380,Insert Delete GetRandom O(1),47.5%,Medium,0.009820849864094454, https://leetcode.com/problems/insert-delete-getrandom-o1
42,Trapping Rain Water,48.9%,Hard,0.009762524655659178, https://leetcode.com/problems/trapping-rain-water
34,Find First and Last Position of Element in Sorted Array,36.2%,Medium,0.009531951009811851, https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
46,Permutations,63.5%,Medium,0.009461803137288448, https://leetcode.com/problems/permutations
32,Longest Valid Parentheses,28.4%,Hard,0.009111680351255843, https://leetcode.com/problems/longest-valid-parentheses
438,Find All Anagrams in a String,43.3%,Medium,0.008126822460497498, https://leetcode.com/problems/find-all-anagrams-in-a-string
54,Spiral Matrix,34.1%,Medium,0.0065941551175130245, https://leetcode.com/problems/spiral-matrix
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.006208067119374334, https://leetcode.com/problems/longest-substring-without-repeating-characters
127,Word Ladder,29.6%,Medium,0.005979091056058075, https://leetcode.com/problems/word-ladder
39,Combination Sum,56.1%,Medium,0.005715934396440999, https://leetcode.com/problems/combination-sum
152,Maximum Product Subarray,31.7%,Medium,0.005590510716885066, https://leetcode.com/problems/maximum-product-subarray
300,Longest Increasing Subsequence,42.6%,Medium,0.005264555460003242, https://leetcode.com/problems/longest-increasing-subsequence
48,Rotate Image,56.7%,Medium,0.0050955524266001265, https://leetcode.com/problems/rotate-image
53,Maximum Subarray,46.5%,Easy,0.004869349014182134, https://leetcode.com/problems/maximum-subarray
17,Letter Combinations of a Phone Number,46.8%,Medium,0.0044018999217624675, https://leetcode.com/problems/letter-combinations-of-a-phone-number
242,Valid Anagram,56.9%,Easy,0.004154123743115972, https://leetcode.com/problems/valid-anagram
49,Group Anagrams,56.9%,Medium,0.0038040939835560453, https://leetcode.com/problems/group-anagrams
200,Number of Islands,46.8%,Medium,0.0028897578265903614, https://leetcode.com/problems/number-of-islands
20,Valid Parentheses,39.0%,Easy,0.0023005704055949323, https://leetcode.com/problems/valid-parentheses
15,3Sum,26.8%,Medium,0.0021990113314367685, https://leetcode.com/problems/3sum
210,Course Schedule II,40.7%,Medium,0.0019086707135282834, https://leetcode.com/problems/course-schedule-ii
50,Pow(x;n),30.3%,Medium,0.0014016892647828818, https://leetcode.com/problems/powx-n
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
757,Set Intersection Size At Least Two,40.1%,Hard,0.5396314899631808, https://leetcode.com/problems/set-intersection-size-at-least-two
529,Minesweeper,59.1%,Medium,0.4349614506910173, https://leetcode.com/problems/minesweeper
305,Number of Islands II,40.1%,Hard,0.32714090919232863, https://leetcode.com/problems/number-of-islands-ii
1136,Parallel Courses,61.1%,Hard,0.2858421455297737, https://leetcode.com/problems/parallel-courses
773,Sliding Puzzle,59.3%,Hard,0.26329061932762177, https://leetcode.com/problems/sliding-puzzle
527,Word Abbreviation,54.3%,Hard,0.24362208265775043, https://leetcode.com/problems/word-abbreviation
427,Construct Quad Tree,61.4%,Medium,0.13580154115906176, https://leetcode.com/problems/construct-quad-tree
1188,Design Bounded Blocking Queue,70.5%,Medium,0.11030454201470608, https://leetcode.com/problems/design-bounded-blocking-queue
267,Palindrome Permutation II,36.4%,Medium,0.10345133738802471, https://leetcode.com/problems/palindrome-permutation-ii
1281,Subtract the Product and Sum of Digits of an Integer,85.2%,Easy,0.09413791982746433, https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer
128,Longest Consecutive Sequence,45.1%,Hard,0.0786603197723907, https://leetcode.com/problems/longest-consecutive-sequence
969,Pancake Sorting,67.5%,Medium,0.04908961019652358, https://leetcode.com/problems/pancake-sorting
2,Add Two Numbers,33.9%,Medium,0.033650830145699084, https://leetcode.com/problems/add-two-numbers
228,Summary Ranges,39.5%,Medium,0.03157326191609021, https://leetcode.com/problems/summary-ranges
239,Sliding Window Maximum,43.0%,Hard,0.031228142547585713, https://leetcode.com/problems/sliding-window-maximum
56,Merge Intervals,39.3%,Medium,0.030829638084076787, https://leetcode.com/problems/merge-intervals
445,Add Two Numbers II,54.5%,Medium,0.02753309435998931, https://leetcode.com/problems/add-two-numbers-ii
1038,Binary Search Tree to Greater Sum Tree,80.8%,Medium,0.025446665661164262, https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
149,Max Points on a Line,16.9%,Hard,0.02484599858653081, https://leetcode.com/problems/max-points-on-a-line
238,Product of Array Except Self,60.1%,Medium,0.024315533698358247, https://leetcode.com/problems/product-of-array-except-self
395,Longest Substring with At Least K Repeating Characters,41.4%,Medium,0.024228925974379843, https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
426,Convert Binary Search Tree to Sorted Doubly Linked List,59.1%,Medium,0.024214258120594613, https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
282,Expression Add Operators,35.5%,Hard,0.022523474667082946, https://leetcode.com/problems/expression-add-operators
74,Search a 2D Matrix,36.5%,Medium,0.020896975877216107, https://leetcode.com/problems/search-a-2d-matrix
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
146,LRU Cache,33.2%,Medium,0.01827577993873683, https://leetcode.com/problems/lru-cache
1,Two Sum,45.6%,Easy,0.016487580637467636, https://leetcode.com/problems/two-sum
23,Merge k Sorted Lists,40.2%,Hard,0.016108271385328228, https://leetcode.com/problems/merge-k-sorted-lists
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.01585377577217724, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
85,Maximal Rectangle,37.7%,Hard,0.013333530869465187, https://leetcode.com/problems/maximal-rectangle
57,Insert Interval,33.5%,Hard,0.013119243592498872, https://leetcode.com/problems/insert-interval
852,Peak Index in a Mountain Array,71.6%,Easy,0.012618463959211509, https://leetcode.com/problems/peak-index-in-a-mountain-array
227,Basic Calculator II,36.9%,Medium,0.01239941490503826, https://leetcode.com/problems/basic-calculator-ii
986,Interval List Intersections,67.3%,Medium,0.011969023795320735, https://leetcode.com/problems/interval-list-intersections
130,Surrounded Regions,28.1%,Medium,0.011965443385675322, https://leetcode.com/problems/surrounded-regions
211,Add and Search Word - Data structure design,38.1%,Medium,0.010438508143923443, https://leetcode.com/problems/add-and-search-word-data-structure-design
72,Edit Distance,44.8%,Hard,0.010017614452317782, https://leetcode.com/problems/edit-distance
380,Insert Delete GetRandom O(1),47.5%,Medium,0.009820849864094454, https://leetcode.com/problems/insert-delete-getrandom-o1
42,Trapping Rain Water,48.9%,Hard,0.009762524655659178, https://leetcode.com/problems/trapping-rain-water
34,Find First and Last Position of Element in Sorted Array,36.2%,Medium,0.009531951009811851, https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
46,Permutations,63.5%,Medium,0.009461803137288448, https://leetcode.com/problems/permutations
32,Longest Valid Parentheses,28.4%,Hard,0.009111680351255843, https://leetcode.com/problems/longest-valid-parentheses
438,Find All Anagrams in a String,43.3%,Medium,0.008126822460497498, https://leetcode.com/problems/find-all-anagrams-in-a-string
54,Spiral Matrix,34.1%,Medium,0.0065941551175130245, https://leetcode.com/problems/spiral-matrix
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.006208067119374334, https://leetcode.com/problems/longest-substring-without-repeating-characters
127,Word Ladder,29.6%,Medium,0.005979091056058075, https://leetcode.com/problems/word-ladder
39,Combination Sum,56.1%,Medium,0.005715934396440999, https://leetcode.com/problems/combination-sum
152,Maximum Product Subarray,31.7%,Medium,0.005590510716885066, https://leetcode.com/problems/maximum-product-subarray
300,Longest Increasing Subsequence,42.6%,Medium,0.005264555460003242, https://leetcode.com/problems/longest-increasing-subsequence
48,Rotate Image,56.7%,Medium,0.0050955524266001265, https://leetcode.com/problems/rotate-image
53,Maximum Subarray,46.5%,Easy,0.004869349014182134, https://leetcode.com/problems/maximum-subarray
17,Letter Combinations of a Phone Number,46.8%,Medium,0.0044018999217624675, https://leetcode.com/problems/letter-combinations-of-a-phone-number
242,Valid Anagram,56.9%,Easy,0.004154123743115972, https://leetcode.com/problems/valid-anagram
49,Group Anagrams,56.9%,Medium,0.0038040939835560453, https://leetcode.com/problems/group-anagrams
200,Number of Islands,46.8%,Medium,0.0028897578265903614, https://leetcode.com/problems/number-of-islands
20,Valid Parentheses,39.0%,Easy,0.0023005704055949323, https://leetcode.com/problems/valid-parentheses
15,3Sum,26.8%,Medium,0.0021990113314367685, https://leetcode.com/problems/3sum
210,Course Schedule II,40.7%,Medium,0.0019086707135282834, https://leetcode.com/problems/course-schedule-ii
50,Pow(x;n),30.3%,Medium,0.0014016892647828818, https://leetcode.com/problems/powx-n
1 757 ID Set Intersection Size At Least Two Title 40.1% Acceptance Hard Difficulty 0.5396314899631808 Frequency https://leetcode.com/problems/set-intersection-size-at-least-two Leetcode Question Link
2 529 757 Minesweeper Set Intersection Size At Least Two 59.1% 40.1% Medium Hard 0.4349614506910173 0.5396314899631808 https://leetcode.com/problems/minesweeper https://leetcode.com/problems/set-intersection-size-at-least-two
3 305 529 Number of Islands II Minesweeper 40.1% 59.1% Hard Medium 0.32714090919232863 0.4349614506910173 https://leetcode.com/problems/number-of-islands-ii https://leetcode.com/problems/minesweeper
4 1136 305 Parallel Courses Number of Islands II 61.1% 40.1% Hard Hard 0.2858421455297737 0.32714090919232863 https://leetcode.com/problems/parallel-courses https://leetcode.com/problems/number-of-islands-ii
5 773 1136 Sliding Puzzle Parallel Courses 59.3% 61.1% Hard Hard 0.26329061932762177 0.2858421455297737 https://leetcode.com/problems/sliding-puzzle https://leetcode.com/problems/parallel-courses
6 527 773 Word Abbreviation Sliding Puzzle 54.3% 59.3% Hard Hard 0.24362208265775043 0.26329061932762177 https://leetcode.com/problems/word-abbreviation https://leetcode.com/problems/sliding-puzzle
7 427 527 Construct Quad Tree Word Abbreviation 61.4% 54.3% Medium Hard 0.13580154115906176 0.24362208265775043 https://leetcode.com/problems/construct-quad-tree https://leetcode.com/problems/word-abbreviation
8 1188 427 Design Bounded Blocking Queue Construct Quad Tree 70.5% 61.4% Medium Medium 0.11030454201470608 0.13580154115906176 https://leetcode.com/problems/design-bounded-blocking-queue https://leetcode.com/problems/construct-quad-tree
9 267 1188 Palindrome Permutation II Design Bounded Blocking Queue 36.4% 70.5% Medium Medium 0.10345133738802471 0.11030454201470608 https://leetcode.com/problems/palindrome-permutation-ii https://leetcode.com/problems/design-bounded-blocking-queue
10 1281 267 Subtract the Product and Sum of Digits of an Integer Palindrome Permutation II 85.2% 36.4% Easy Medium 0.09413791982746433 0.10345133738802471 https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer https://leetcode.com/problems/palindrome-permutation-ii
11 128 1281 Longest Consecutive Sequence Subtract the Product and Sum of Digits of an Integer 45.1% 85.2% Hard Easy 0.0786603197723907 0.09413791982746433 https://leetcode.com/problems/longest-consecutive-sequence https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer
12 969 128 Pancake Sorting Longest Consecutive Sequence 67.5% 45.1% Medium Hard 0.04908961019652358 0.0786603197723907 https://leetcode.com/problems/pancake-sorting https://leetcode.com/problems/longest-consecutive-sequence
13 2 969 Add Two Numbers Pancake Sorting 33.9% 67.5% Medium Medium 0.033650830145699084 0.04908961019652358 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/pancake-sorting
14 228 2 Summary Ranges Add Two Numbers 39.5% 33.9% Medium Medium 0.03157326191609021 0.033650830145699084 https://leetcode.com/problems/summary-ranges https://leetcode.com/problems/add-two-numbers
15 239 228 Sliding Window Maximum Summary Ranges 43.0% 39.5% Hard Medium 0.031228142547585713 0.03157326191609021 https://leetcode.com/problems/sliding-window-maximum https://leetcode.com/problems/summary-ranges
16 56 239 Merge Intervals Sliding Window Maximum 39.3% 43.0% Medium Hard 0.030829638084076787 0.031228142547585713 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/sliding-window-maximum
17 445 56 Add Two Numbers II Merge Intervals 54.5% 39.3% Medium Medium 0.02753309435998931 0.030829638084076787 https://leetcode.com/problems/add-two-numbers-ii https://leetcode.com/problems/merge-intervals
18 1038 445 Binary Search Tree to Greater Sum Tree Add Two Numbers II 80.8% 54.5% Medium Medium 0.025446665661164262 0.02753309435998931 https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree https://leetcode.com/problems/add-two-numbers-ii
19 149 1038 Max Points on a Line Binary Search Tree to Greater Sum Tree 16.9% 80.8% Hard Medium 0.02484599858653081 0.025446665661164262 https://leetcode.com/problems/max-points-on-a-line https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
20 238 149 Product of Array Except Self Max Points on a Line 60.1% 16.9% Medium Hard 0.024315533698358247 0.02484599858653081 https://leetcode.com/problems/product-of-array-except-self https://leetcode.com/problems/max-points-on-a-line
21 395 238 Longest Substring with At Least K Repeating Characters Product of Array Except Self 41.4% 60.1% Medium Medium 0.024228925974379843 0.024315533698358247 https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters https://leetcode.com/problems/product-of-array-except-self
22 426 395 Convert Binary Search Tree to Sorted Doubly Linked List Longest Substring with At Least K Repeating Characters 59.1% 41.4% Medium Medium 0.024214258120594613 0.024228925974379843 https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
23 282 426 Expression Add Operators Convert Binary Search Tree to Sorted Doubly Linked List 35.5% 59.1% Hard Medium 0.022523474667082946 0.024214258120594613 https://leetcode.com/problems/expression-add-operators https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
24 74 282 Search a 2D Matrix Expression Add Operators 36.5% 35.5% Medium Hard 0.020896975877216107 0.022523474667082946 https://leetcode.com/problems/search-a-2d-matrix https://leetcode.com/problems/expression-add-operators
25 341 74 Flatten Nested List Iterator Search a 2D Matrix 52.9% 36.5% Medium Medium 0.019980684690483426 0.020896975877216107 https://leetcode.com/problems/flatten-nested-list-iterator https://leetcode.com/problems/search-a-2d-matrix
26 146 341 LRU Cache Flatten Nested List Iterator 33.2% 52.9% Medium Medium 0.01827577993873683 0.019980684690483426 https://leetcode.com/problems/lru-cache https://leetcode.com/problems/flatten-nested-list-iterator
27 1 146 Two Sum LRU Cache 45.6% 33.2% Easy Medium 0.016487580637467636 0.01827577993873683 https://leetcode.com/problems/two-sum https://leetcode.com/problems/lru-cache
28 23 1 Merge k Sorted Lists Two Sum 40.2% 45.6% Hard Easy 0.016108271385328228 0.016487580637467636 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/two-sum
29 297 23 Serialize and Deserialize Binary Tree Merge k Sorted Lists 47.5% 40.2% Hard Hard 0.01585377577217724 0.016108271385328228 https://leetcode.com/problems/serialize-and-deserialize-binary-tree https://leetcode.com/problems/merge-k-sorted-lists
30 85 297 Maximal Rectangle Serialize and Deserialize Binary Tree 37.7% 47.5% Hard Hard 0.013333530869465187 0.01585377577217724 https://leetcode.com/problems/maximal-rectangle https://leetcode.com/problems/serialize-and-deserialize-binary-tree
31 57 85 Insert Interval Maximal Rectangle 33.5% 37.7% Hard Hard 0.013119243592498872 0.013333530869465187 https://leetcode.com/problems/insert-interval https://leetcode.com/problems/maximal-rectangle
32 852 57 Peak Index in a Mountain Array Insert Interval 71.6% 33.5% Easy Hard 0.012618463959211509 0.013119243592498872 https://leetcode.com/problems/peak-index-in-a-mountain-array https://leetcode.com/problems/insert-interval
33 227 852 Basic Calculator II Peak Index in a Mountain Array 36.9% 71.6% Medium Easy 0.01239941490503826 0.012618463959211509 https://leetcode.com/problems/basic-calculator-ii https://leetcode.com/problems/peak-index-in-a-mountain-array
34 986 227 Interval List Intersections Basic Calculator II 67.3% 36.9% Medium Medium 0.011969023795320735 0.01239941490503826 https://leetcode.com/problems/interval-list-intersections https://leetcode.com/problems/basic-calculator-ii
35 130 986 Surrounded Regions Interval List Intersections 28.1% 67.3% Medium Medium 0.011965443385675322 0.011969023795320735 https://leetcode.com/problems/surrounded-regions https://leetcode.com/problems/interval-list-intersections
36 211 130 Add and Search Word - Data structure design Surrounded Regions 38.1% 28.1% Medium Medium 0.010438508143923443 0.011965443385675322 https://leetcode.com/problems/add-and-search-word-data-structure-design https://leetcode.com/problems/surrounded-regions
37 72 211 Edit Distance Add and Search Word - Data structure design 44.8% 38.1% Hard Medium 0.010017614452317782 0.010438508143923443 https://leetcode.com/problems/edit-distance https://leetcode.com/problems/add-and-search-word-data-structure-design
38 380 72 Insert Delete GetRandom O(1) Edit Distance 47.5% 44.8% Medium Hard 0.009820849864094454 0.010017614452317782 https://leetcode.com/problems/insert-delete-getrandom-o1 https://leetcode.com/problems/edit-distance
39 42 380 Trapping Rain Water Insert Delete GetRandom O(1) 48.9% 47.5% Hard Medium 0.009762524655659178 0.009820849864094454 https://leetcode.com/problems/trapping-rain-water https://leetcode.com/problems/insert-delete-getrandom-o1
40 34 42 Find First and Last Position of Element in Sorted Array Trapping Rain Water 36.2% 48.9% Medium Hard 0.009531951009811851 0.009762524655659178 https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array https://leetcode.com/problems/trapping-rain-water
41 46 34 Permutations Find First and Last Position of Element in Sorted Array 63.5% 36.2% Medium Medium 0.009461803137288448 0.009531951009811851 https://leetcode.com/problems/permutations https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
42 32 46 Longest Valid Parentheses Permutations 28.4% 63.5% Hard Medium 0.009111680351255843 0.009461803137288448 https://leetcode.com/problems/longest-valid-parentheses https://leetcode.com/problems/permutations
43 438 32 Find All Anagrams in a String Longest Valid Parentheses 43.3% 28.4% Medium Hard 0.008126822460497498 0.009111680351255843 https://leetcode.com/problems/find-all-anagrams-in-a-string https://leetcode.com/problems/longest-valid-parentheses
44 54 438 Spiral Matrix Find All Anagrams in a String 34.1% 43.3% Medium Medium 0.0065941551175130245 0.008126822460497498 https://leetcode.com/problems/spiral-matrix https://leetcode.com/problems/find-all-anagrams-in-a-string
45 3 54 Longest Substring Without Repeating Characters Spiral Matrix 30.4% 34.1% Medium Medium 0.006208067119374334 0.0065941551175130245 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/spiral-matrix
46 127 3 Word Ladder Longest Substring Without Repeating Characters 29.6% 30.4% Medium Medium 0.005979091056058075 0.006208067119374334 https://leetcode.com/problems/word-ladder https://leetcode.com/problems/longest-substring-without-repeating-characters
47 39 127 Combination Sum Word Ladder 56.1% 29.6% Medium Medium 0.005715934396440999 0.005979091056058075 https://leetcode.com/problems/combination-sum https://leetcode.com/problems/word-ladder
48 152 39 Maximum Product Subarray Combination Sum 31.7% 56.1% Medium Medium 0.005590510716885066 0.005715934396440999 https://leetcode.com/problems/maximum-product-subarray https://leetcode.com/problems/combination-sum
49 300 152 Longest Increasing Subsequence Maximum Product Subarray 42.6% 31.7% Medium Medium 0.005264555460003242 0.005590510716885066 https://leetcode.com/problems/longest-increasing-subsequence https://leetcode.com/problems/maximum-product-subarray
50 48 300 Rotate Image Longest Increasing Subsequence 56.7% 42.6% Medium Medium 0.0050955524266001265 0.005264555460003242 https://leetcode.com/problems/rotate-image https://leetcode.com/problems/longest-increasing-subsequence
51 53 48 Maximum Subarray Rotate Image 46.5% 56.7% Easy Medium 0.004869349014182134 0.0050955524266001265 https://leetcode.com/problems/maximum-subarray https://leetcode.com/problems/rotate-image
52 17 53 Letter Combinations of a Phone Number Maximum Subarray 46.8% 46.5% Medium Easy 0.0044018999217624675 0.004869349014182134 https://leetcode.com/problems/letter-combinations-of-a-phone-number https://leetcode.com/problems/maximum-subarray
53 242 17 Valid Anagram Letter Combinations of a Phone Number 56.9% 46.8% Easy Medium 0.004154123743115972 0.0044018999217624675 https://leetcode.com/problems/valid-anagram https://leetcode.com/problems/letter-combinations-of-a-phone-number
54 49 242 Group Anagrams Valid Anagram 56.9% 56.9% Medium Easy 0.0038040939835560453 0.004154123743115972 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/valid-anagram
55 200 49 Number of Islands Group Anagrams 46.8% 56.9% Medium Medium 0.0028897578265903614 0.0038040939835560453 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/group-anagrams
56 20 200 Valid Parentheses Number of Islands 39.0% 46.8% Easy Medium 0.0023005704055949323 0.0028897578265903614 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/number-of-islands
57 15 20 3Sum Valid Parentheses 26.8% 39.0% Medium Easy 0.0021990113314367685 0.0023005704055949323 https://leetcode.com/problems/3sum https://leetcode.com/problems/valid-parentheses
58 210 15 Course Schedule II 3Sum 40.7% 26.8% Medium Medium 0.0019086707135282834 0.0021990113314367685 https://leetcode.com/problems/course-schedule-ii https://leetcode.com/problems/3sum
59 50 210 Pow(x;n) Course Schedule II 30.3% 40.7% Medium Medium 0.0014016892647828818 0.0019086707135282834 https://leetcode.com/problems/powx-n https://leetcode.com/problems/course-schedule-ii
60 50 Pow(x;n) 30.3% Medium 0.0014016892647828818 https://leetcode.com/problems/powx-n