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,174 +1,175 @@
554,Brick Wall,50.0%,Medium,0.5628369978035019, https://leetcode.com/problems/brick-wall
352,Data Stream as Disjoint Intervals,47.3%,Hard,0.4990377527312547, https://leetcode.com/problems/data-stream-as-disjoint-intervals
362,Design Hit Counter,63.7%,Medium,0.4137338521213525, https://leetcode.com/problems/design-hit-counter
146,LRU Cache,33.2%,Medium,0.32842995151145027, https://leetcode.com/problems/lru-cache
425,Word Squares,47.7%,Hard,0.24312605090154807, https://leetcode.com/problems/word-squares
403,Frog Jump,39.7%,Hard,0.21218417576199058, https://leetcode.com/problems/frog-jump
706,Design HashMap,61.3%,Easy,0.1960785423771685, https://leetcode.com/problems/design-hashmap
253,Meeting Rooms II,45.7%,Medium,0.18465102561460048, https://leetcode.com/problems/meeting-rooms-ii
23,Merge k Sorted Lists,40.2%,Hard,0.18142464262604538, https://leetcode.com/problems/merge-k-sorted-lists
636,Exclusive Time of Functions,51.9%,Medium,0.17494800586305592, https://leetcode.com/problems/exclusive-time-of-functions
415,Add Strings,47.5%,Easy,0.17429245611868044, https://leetcode.com/problems/add-strings
56,Merge Intervals,39.3%,Medium,0.1574006175650271, https://leetcode.com/problems/merge-intervals
450,Delete Node in a BST,43.1%,Medium,0.15561959910053247, https://leetcode.com/problems/delete-node-in-a-bst
1242,Web Crawler Multithreaded,45.9%,Medium,0.14953173397096375, https://leetcode.com/problems/web-crawler-multithreaded
227,Basic Calculator II,36.9%,Medium,0.14222709959207652, https://leetcode.com/problems/basic-calculator-ii
1044,Longest Duplicate Substring,31.9%,Hard,0.1351378186727963, https://leetcode.com/problems/longest-duplicate-substring
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.13437443205326582, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
200,Number of Islands,46.8%,Medium,0.13260852442964066, https://leetcode.com/problems/number-of-islands
692,Top K Frequent Words,51.8%,Medium,0.1139616691735821, https://leetcode.com/problems/top-k-frequent-words
1188,Design Bounded Blocking Queue,70.5%,Medium,0.11030454201470608, https://leetcode.com/problems/design-bounded-blocking-queue
230,Kth Smallest Element in a BST,60.2%,Medium,0.09685471541555685, https://leetcode.com/problems/kth-smallest-element-in-a-bst
75,Sort Colors,47.3%,Medium,0.09653792704264727, https://leetcode.com/problems/sort-colors
394,Decode String,50.0%,Medium,0.09572009987565212, https://leetcode.com/problems/decode-string
1236,Web Crawler,64.3%,Medium,0.09531017980432487, https://leetcode.com/problems/web-crawler
33,Search in Rotated Sorted Array,34.5%,Medium,0.09336717401169674, https://leetcode.com/problems/search-in-rotated-sorted-array
545,Boundary of Binary Tree,38.9%,Medium,0.091248671465145, https://leetcode.com/problems/boundary-of-binary-tree
722,Remove Comments,34.6%,Medium,0.08890352514166767, https://leetcode.com/problems/remove-comments
380,Insert Delete GetRandom O(1),47.5%,Medium,0.08509738264123867, https://leetcode.com/problems/insert-delete-getrandom-o1
1212,Team Scores in Football Tournament,55.8%,Medium,0.08269171584511335, https://leetcode.com/problems/team-scores-in-football-tournament
54,Spiral Matrix,34.1%,Medium,0.07792846120043545, https://leetcode.com/problems/spiral-matrix
599,Minimum Index Sum of Two Lists,50.7%,Easy,0.0753494372417868, https://leetcode.com/problems/minimum-index-sum-of-two-lists
138,Copy List with Random Pointer,36.4%,Medium,0.07332029537109397, https://leetcode.com/problems/copy-list-with-random-pointer
505,The Maze II,47.7%,Medium,0.07133147800542972, https://leetcode.com/problems/the-maze-ii
232,Implement Queue using Stacks,49.6%,Easy,0.06827657958623828, https://leetcode.com/problems/implement-queue-using-stacks
349,Intersection of Two Arrays,62.5%,Easy,0.06343503822912192, https://leetcode.com/problems/intersection-of-two-arrays
73,Set Matrix Zeroes,43.1%,Medium,0.061431799532484045, https://leetcode.com/problems/set-matrix-zeroes
238,Product of Array Except Self,60.1%,Medium,0.061105194807639235, https://leetcode.com/problems/product-of-array-except-self
1170,Compare Strings by Frequency of the Smallest Character,58.7%,Easy,0.060901617340111645, https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character
305,Number of Islands II,40.1%,Hard,0.06007812394328337, https://leetcode.com/problems/number-of-islands-ii
1190,Reverse Substrings Between Each Pair of Parentheses,61.5%,Medium,0.06007812394328337, https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses
355,Design Twitter,30.3%,Medium,0.05824061998094904, https://leetcode.com/problems/design-twitter
741,Cherry Pickup,33.9%,Hard,0.056512210263342307, https://leetcode.com/problems/cherry-pickup
53,Maximum Subarray,46.5%,Easy,0.052816160704876255, https://leetcode.com/problems/maximum-subarray
894,All Possible Full Binary Trees,75.2%,Medium,0.052436651273043935, https://leetcode.com/problems/all-possible-full-binary-trees
173,Binary Search Tree Iterator,56.6%,Medium,0.0519111767751893, https://leetcode.com/problems/binary-search-tree-iterator
449,Serialize and Deserialize BST,52.0%,Medium,0.049844204077291364, https://leetcode.com/problems/serialize-and-deserialize-bst
609,Find Duplicate File in System,59.5%,Medium,0.045205436768046794, https://leetcode.com/problems/find-duplicate-file-in-system
535,Encode and Decode TinyURL,79.9%,Medium,0.041978881338661234, https://leetcode.com/problems/encode-and-decode-tinyurl
503,Next Greater Element II,56.5%,Medium,0.041944638750466105, https://leetcode.com/problems/next-greater-element-ii
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.041648587234261826, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
92,Reverse Linked List II,38.8%,Medium,0.041073535208287514, https://leetcode.com/problems/reverse-linked-list-ii
243,Shortest Word Distance,61.0%,Easy,0.040780370344928096, https://leetcode.com/problems/shortest-word-distance
652,Find Duplicate Subtrees,50.2%,Medium,0.040573516447166516, https://leetcode.com/problems/find-duplicate-subtrees
37,Sudoku Solver,43.6%,Hard,0.040527833612118376, https://leetcode.com/problems/sudoku-solver
126,Word Ladder II,22.1%,Hard,0.04004093605556132, https://leetcode.com/problems/word-ladder-ii
1,Two Sum,45.6%,Easy,0.03943855709894935, https://leetcode.com/problems/two-sum
863,All Nodes Distance K in Binary Tree,55.4%,Medium,0.037756162417993476, https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
20,Valid Parentheses,39.0%,Easy,0.03618871742239114, https://leetcode.com/problems/valid-parentheses
43,Multiply Strings,33.9%,Medium,0.03608871558298825, https://leetcode.com/problems/multiply-strings
139,Word Break,40.1%,Medium,0.03451593709018879, https://leetcode.com/problems/word-break
12,Integer to Roman,55.1%,Medium,0.03370158881097552, https://leetcode.com/problems/integer-to-roman
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.033453179586686504, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
694,Number of Distinct Islands,56.0%,Medium,0.03278982282299087, https://leetcode.com/problems/number-of-distinct-islands
1197,Minimum Knight Moves,36.1%,Medium,0.02969780239174205, https://leetcode.com/problems/minimum-knight-moves
767,Reorganize String,48.7%,Medium,0.02967576814611661, https://leetcode.com/problems/reorganize-string
155,Min Stack,44.5%,Easy,0.029317296678520607, https://leetcode.com/problems/min-stack
456,132 Pattern,28.9%,Medium,0.029306126585499394, https://leetcode.com/problems/132-pattern
57,Insert Interval,33.5%,Hard,0.02927990558056596, https://leetcode.com/problems/insert-interval
116,Populating Next Right Pointers in Each Node,45.2%,Medium,0.02902961467511413, https://leetcode.com/problems/populating-next-right-pointers-in-each-node
204,Count Primes,31.5%,Easy,0.02799343042200216, https://leetcode.com/problems/count-primes
114,Flatten Binary Tree to Linked List,49.3%,Medium,0.02730545069026746, https://leetcode.com/problems/flatten-binary-tree-to-linked-list
21,Merge Two Sorted Lists,53.5%,Easy,0.02728150490352749, https://leetcode.com/problems/merge-two-sorted-lists
17,Letter Combinations of a Phone Number,46.8%,Medium,0.027199239804368825, https://leetcode.com/problems/letter-combinations-of-a-phone-number
42,Trapping Rain Water,48.9%,Hard,0.02688623073425064, https://leetcode.com/problems/trapping-rain-water
1305,All Elements in Two Binary Search Trees,76.1%,Medium,0.026282721799194744, https://leetcode.com/problems/all-elements-in-two-binary-search-trees
34,Find First and Last Position of Element in Sorted Array,36.2%,Medium,0.026256496787488606, https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
41,First Missing Positive,32.0%,Hard,0.02540222313806603, https://leetcode.com/problems/first-missing-positive
125,Valid Palindrome,36.7%,Easy,0.02462208292471368, https://leetcode.com/problems/valid-palindrome
836,Rectangle Overlap,48.6%,Easy,0.024228925974379843, https://leetcode.com/problems/rectangle-overlap
4,Median of Two Sorted Arrays,29.6%,Hard,0.024130115852798662, https://leetcode.com/problems/median-of-two-sorted-arrays
127,Word Ladder,29.6%,Medium,0.023704813655166343, https://leetcode.com/problems/word-ladder
844,Backspace String Compare,46.4%,Easy,0.0235551325028849, https://leetcode.com/problems/backspace-string-compare
973,K Closest Points to Origin,63.8%,Medium,0.022897394173017796, https://leetcode.com/problems/k-closest-points-to-origin
622,Design Circular Queue,43.8%,Medium,0.02246023667974994, https://leetcode.com/problems/design-circular-queue
981,Time Based Key-Value Store,53.1%,Medium,0.02226024024151985, https://leetcode.com/problems/time-based-key-value-store
113,Path Sum II,46.7%,Medium,0.021882711249507664, https://leetcode.com/problems/path-sum-ii
958,Check Completeness of a Binary Tree,52.1%,Medium,0.021763644636359686, https://leetcode.com/problems/check-completeness-of-a-binary-tree
543,Diameter of Binary Tree,48.4%,Easy,0.02105617995251665, https://leetcode.com/problems/diameter-of-binary-tree
94,Binary Tree Inorder Traversal,63.3%,Medium,0.020787312070811408, https://leetcode.com/problems/binary-tree-inorder-traversal
32,Longest Valid Parentheses,28.4%,Hard,0.020385756924473915, https://leetcode.com/problems/longest-valid-parentheses
5,Longest Palindromic Substring,29.5%,Medium,0.020329346568668867, https://leetcode.com/problems/longest-palindromic-substring
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
207,Course Schedule,43.1%,Medium,0.019709926055136454, https://leetcode.com/problems/course-schedule
721,Accounts Merge,48.8%,Medium,0.01888630262874805, https://leetcode.com/problems/accounts-merge
209,Minimum Size Subarray Sum,38.2%,Medium,0.018832948333092125, https://leetcode.com/problems/minimum-size-subarray-sum
965,Univalued Binary Tree,67.7%,Easy,0.018665964249802672, https://leetcode.com/problems/univalued-binary-tree
1008,Construct Binary Search Tree from Preorder Traversal,78.4%,Medium,0.01844220088035248, https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
347,Top K Frequent Elements,61.2%,Medium,0.018049036874660983, https://leetcode.com/problems/top-k-frequent-elements
314,Binary Tree Vertical Order Traversal,45.3%,Medium,0.018010392274465332, https://leetcode.com/problems/binary-tree-vertical-order-traversal
38,Count and Say,44.6%,Easy,0.01753063983505879, https://leetcode.com/problems/count-and-say
289,Game of Life,54.5%,Medium,0.0173239499317743, https://leetcode.com/problems/game-of-life
402,Remove K Digits,28.4%,Medium,0.016863806052004816, https://leetcode.com/problems/remove-k-digits
242,Valid Anagram,56.9%,Easy,0.016513947375674708, https://leetcode.com/problems/valid-anagram
51,N-Queens,46.6%,Hard,0.016393809775676407, https://leetcode.com/problems/n-queens
71,Simplify Path,32.6%,Medium,0.016260520871780308, https://leetcode.com/problems/simplify-path
322,Coin Change,35.5%,Medium,0.016022774188122292, https://leetcode.com/problems/coin-change
938,Range Sum of BST,81.3%,Easy,0.015707129205357877, https://leetcode.com/problems/range-sum-of-bst
49,Group Anagrams,56.9%,Medium,0.01513031227798415, https://leetcode.com/problems/group-anagrams
206,Reverse Linked List,62.5%,Easy,0.01453513961911317, https://leetcode.com/problems/reverse-linked-list
150,Evaluate Reverse Polish Notation,36.3%,Medium,0.01413451093490476, https://leetcode.com/problems/evaluate-reverse-polish-notation
76,Minimum Window Substring,34.6%,Hard,0.013966707481708198, https://leetcode.com/problems/minimum-window-substring
179,Largest Number,28.8%,Medium,0.013865040137171665, https://leetcode.com/problems/largest-number
13,Roman to Integer,55.7%,Easy,0.013645103403569418, https://leetcode.com/problems/roman-to-integer
496,Next Greater Element I,63.8%,Easy,0.013201511858535894, https://leetcode.com/problems/next-greater-element-i
1047,Remove All Adjacent Duplicates In String,68.6%,Easy,0.013059277989179281, https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
695,Max Area of Island,62.7%,Medium,0.012686500631003836, https://leetcode.com/problems/max-area-of-island
445,Add Two Numbers II,54.5%,Medium,0.01233061245747872, https://leetcode.com/problems/add-two-numbers-ii
112,Path Sum,41.2%,Easy,0.012265076074932503, https://leetcode.com/problems/path-sum
437,Path Sum III,47.2%,Medium,0.012128711446614806, https://leetcode.com/problems/path-sum-iii
273,Integer to English Words,27.1%,Hard,0.012081089250339716, https://leetcode.com/problems/integer-to-english-words
88,Merge Sorted Array,39.4%,Easy,0.011986958032982505, https://leetcode.com/problems/merge-sorted-array
986,Interval List Intersections,67.3%,Medium,0.011969023795320735, https://leetcode.com/problems/interval-list-intersections
300,Longest Increasing Subsequence,42.6%,Medium,0.011806512586989004, https://leetcode.com/problems/longest-increasing-subsequence
98,Validate Binary Search Tree,27.8%,Medium,0.01172346369605921, https://leetcode.com/problems/validate-binary-search-tree
264,Ugly Number II,42.0%,Medium,0.011604423810414601, https://leetcode.com/problems/ugly-number-ii
205,Isomorphic Strings,39.8%,Easy,0.011544139746865315, https://leetcode.com/problems/isomorphic-strings
283,Move Zeroes,57.8%,Easy,0.01149190266804209, https://leetcode.com/problems/move-zeroes
2,Add Two Numbers,33.9%,Medium,0.010507388732168088, https://leetcode.com/problems/add-two-numbers
62,Unique Paths,54.1%,Medium,0.010367562048856941, https://leetcode.com/problems/unique-paths
819,Most Common Word,44.8%,Easy,0.010269666637456105, https://leetcode.com/problems/most-common-word
46,Permutations,63.5%,Medium,0.009461803137288448, https://leetcode.com/problems/permutations
208,Implement Trie (Prefix Tree),49.4%,Medium,0.009105457856626612, https://leetcode.com/problems/implement-trie-prefix-tree
15,3Sum,26.8%,Medium,0.00876717944353383, https://leetcode.com/problems/3sum
215,Kth Largest Element in an Array,55.4%,Medium,0.008759180089881562, https://leetcode.com/problems/kth-largest-element-in-an-array
617,Merge Two Binary Trees,74.1%,Easy,0.008262802639833214, https://leetcode.com/problems/merge-two-binary-trees
235,Lowest Common Ancestor of a Binary Search Tree,49.9%,Easy,0.00821697310228087, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
438,Find All Anagrams in a String,43.3%,Medium,0.008126822460497498, https://leetcode.com/problems/find-all-anagrams-in-a-string
239,Sliding Window Maximum,43.0%,Hard,0.007898935224534491, https://leetcode.com/problems/sliding-window-maximum
141,Linked List Cycle,41.1%,Easy,0.007843861028908454, https://leetcode.com/problems/linked-list-cycle
26,Remove Duplicates from Sorted Array,45.1%,Easy,0.007782518973063169, https://leetcode.com/problems/remove-duplicates-from-sorted-array
101,Symmetric Tree,46.8%,Easy,0.007646596306528098, https://leetcode.com/problems/symmetric-tree
876,Middle of the Linked List,68.4%,Easy,0.007624893975696915, https://leetcode.com/problems/middle-of-the-linked-list
240,Search a 2D Matrix II,43.2%,Medium,0.0075829747244553335, https://leetcode.com/problems/search-a-2d-matrix-ii
344,Reverse String,68.5%,Easy,0.00734157796234515, https://leetcode.com/problems/reverse-string
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
10,Regular Expression Matching,26.8%,Hard,0.0071865203293987245, https://leetcode.com/problems/regular-expression-matching
412,Fizz Buzz,62.3%,Easy,0.007165921026143679, https://leetcode.com/problems/fizz-buzz
136,Single Number,65.5%,Easy,0.006445166968713385, https://leetcode.com/problems/single-number
24,Swap Nodes in Pairs,50.4%,Medium,0.0062218275061505365, https://leetcode.com/problems/swap-nodes-in-pairs
91,Decode Ways,24.7%,Medium,0.005968385368349129, https://leetcode.com/problems/decode-ways
199,Binary Tree Right Side View,54.1%,Medium,0.0056826406650506926, https://leetcode.com/problems/binary-tree-right-side-view
105,Construct Binary Tree from Preorder and Inorder Traversal,48.8%,Medium,0.005628268691614718, https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
50,Pow(x;n),30.3%,Medium,0.0055950070772402055, https://leetcode.com/problems/powx-n
108,Convert Sorted Array to Binary Search Tree,57.9%,Easy,0.005554027051374908, https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
55,Jump Game,34.6%,Medium,0.005022612266291382, https://leetcode.com/problems/jump-game
160,Intersection of Two Linked Lists,40.6%,Easy,0.004901369939720486, https://leetcode.com/problems/intersection-of-two-linked-lists
169,Majority Element,58.7%,Easy,0.004706444738837472, https://leetcode.com/problems/majority-element
7,Reverse Integer,25.8%,Easy,0.00418293972984512, https://leetcode.com/problems/reverse-integer
28,Implement strStr(),34.5%,Easy,0.003943222775040032, https://leetcode.com/problems/implement-strstr
977,Squares of a Sorted Array,72.1%,Easy,0.003891055492966611, https://leetcode.com/problems/squares-of-a-sorted-array
217,Contains Duplicate,56.0%,Easy,0.0037979536727587773, https://leetcode.com/problems/contains-duplicate
8,String to Integer (atoi),15.4%,Medium,0.0037925521897059712, https://leetcode.com/problems/string-to-integer-atoi
153,Find Minimum in Rotated Sorted Array,45.1%,Medium,0.0037558729598054378, https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.003496778759264278, https://leetcode.com/problems/longest-substring-without-repeating-characters
151,Reverse Words in a String,21.9%,Medium,0.003456091915988908, https://leetcode.com/problems/reverse-words-in-a-string
70,Climbing Stairs,47.8%,Easy,0.00339085548316782, https://leetcode.com/problems/climbing-stairs
122,Best Time to Buy and Sell Stock II,57.0%,Easy,0.0033545821461532107, https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
14,Longest Common Prefix,35.4%,Easy,0.003320331762984143, https://leetcode.com/problems/longest-common-prefix
19,Remove Nth Node From End of List,35.2%,Medium,0.003076452203393495, https://leetcode.com/problems/remove-nth-node-from-end-of-list
9,Palindrome Number,48.4%,Easy,0.0030379001110948244, https://leetcode.com/problems/palindrome-number
140,Word Break II,32.6%,Hard,0.0027070942357783584, https://leetcode.com/problems/word-break-ii
621,Task Scheduler,50.1%,Medium,0.002341784338144407, https://leetcode.com/problems/task-scheduler
210,Course Schedule II,40.7%,Medium,0.0019086707135282834, https://leetcode.com/problems/course-schedule-ii
79,Word Search,35.6%,Medium,0.0016647248725526849, https://leetcode.com/problems/word-search
ID,Title,Acceptance,Difficulty,Frequency,Leetcode Question Link
554,Brick Wall,50.0%,Medium,0.5628369978035019, https://leetcode.com/problems/brick-wall
352,Data Stream as Disjoint Intervals,47.3%,Hard,0.4990377527312547, https://leetcode.com/problems/data-stream-as-disjoint-intervals
362,Design Hit Counter,63.7%,Medium,0.4137338521213525, https://leetcode.com/problems/design-hit-counter
146,LRU Cache,33.2%,Medium,0.32842995151145027, https://leetcode.com/problems/lru-cache
425,Word Squares,47.7%,Hard,0.24312605090154807, https://leetcode.com/problems/word-squares
403,Frog Jump,39.7%,Hard,0.21218417576199058, https://leetcode.com/problems/frog-jump
706,Design HashMap,61.3%,Easy,0.1960785423771685, https://leetcode.com/problems/design-hashmap
253,Meeting Rooms II,45.7%,Medium,0.18465102561460048, https://leetcode.com/problems/meeting-rooms-ii
23,Merge k Sorted Lists,40.2%,Hard,0.18142464262604538, https://leetcode.com/problems/merge-k-sorted-lists
636,Exclusive Time of Functions,51.9%,Medium,0.17494800586305592, https://leetcode.com/problems/exclusive-time-of-functions
415,Add Strings,47.5%,Easy,0.17429245611868044, https://leetcode.com/problems/add-strings
56,Merge Intervals,39.3%,Medium,0.1574006175650271, https://leetcode.com/problems/merge-intervals
450,Delete Node in a BST,43.1%,Medium,0.15561959910053247, https://leetcode.com/problems/delete-node-in-a-bst
1242,Web Crawler Multithreaded,45.9%,Medium,0.14953173397096375, https://leetcode.com/problems/web-crawler-multithreaded
227,Basic Calculator II,36.9%,Medium,0.14222709959207652, https://leetcode.com/problems/basic-calculator-ii
1044,Longest Duplicate Substring,31.9%,Hard,0.1351378186727963, https://leetcode.com/problems/longest-duplicate-substring
297,Serialize and Deserialize Binary Tree,47.5%,Hard,0.13437443205326582, https://leetcode.com/problems/serialize-and-deserialize-binary-tree
200,Number of Islands,46.8%,Medium,0.13260852442964066, https://leetcode.com/problems/number-of-islands
692,Top K Frequent Words,51.8%,Medium,0.1139616691735821, https://leetcode.com/problems/top-k-frequent-words
1188,Design Bounded Blocking Queue,70.5%,Medium,0.11030454201470608, https://leetcode.com/problems/design-bounded-blocking-queue
230,Kth Smallest Element in a BST,60.2%,Medium,0.09685471541555685, https://leetcode.com/problems/kth-smallest-element-in-a-bst
75,Sort Colors,47.3%,Medium,0.09653792704264727, https://leetcode.com/problems/sort-colors
394,Decode String,50.0%,Medium,0.09572009987565212, https://leetcode.com/problems/decode-string
1236,Web Crawler,64.3%,Medium,0.09531017980432487, https://leetcode.com/problems/web-crawler
33,Search in Rotated Sorted Array,34.5%,Medium,0.09336717401169674, https://leetcode.com/problems/search-in-rotated-sorted-array
545,Boundary of Binary Tree,38.9%,Medium,0.091248671465145, https://leetcode.com/problems/boundary-of-binary-tree
722,Remove Comments,34.6%,Medium,0.08890352514166767, https://leetcode.com/problems/remove-comments
380,Insert Delete GetRandom O(1),47.5%,Medium,0.08509738264123867, https://leetcode.com/problems/insert-delete-getrandom-o1
1212,Team Scores in Football Tournament,55.8%,Medium,0.08269171584511335, https://leetcode.com/problems/team-scores-in-football-tournament
54,Spiral Matrix,34.1%,Medium,0.07792846120043545, https://leetcode.com/problems/spiral-matrix
599,Minimum Index Sum of Two Lists,50.7%,Easy,0.0753494372417868, https://leetcode.com/problems/minimum-index-sum-of-two-lists
138,Copy List with Random Pointer,36.4%,Medium,0.07332029537109397, https://leetcode.com/problems/copy-list-with-random-pointer
505,The Maze II,47.7%,Medium,0.07133147800542972, https://leetcode.com/problems/the-maze-ii
232,Implement Queue using Stacks,49.6%,Easy,0.06827657958623828, https://leetcode.com/problems/implement-queue-using-stacks
349,Intersection of Two Arrays,62.5%,Easy,0.06343503822912192, https://leetcode.com/problems/intersection-of-two-arrays
73,Set Matrix Zeroes,43.1%,Medium,0.061431799532484045, https://leetcode.com/problems/set-matrix-zeroes
238,Product of Array Except Self,60.1%,Medium,0.061105194807639235, https://leetcode.com/problems/product-of-array-except-self
1170,Compare Strings by Frequency of the Smallest Character,58.7%,Easy,0.060901617340111645, https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character
305,Number of Islands II,40.1%,Hard,0.06007812394328337, https://leetcode.com/problems/number-of-islands-ii
1190,Reverse Substrings Between Each Pair of Parentheses,61.5%,Medium,0.06007812394328337, https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses
355,Design Twitter,30.3%,Medium,0.05824061998094904, https://leetcode.com/problems/design-twitter
741,Cherry Pickup,33.9%,Hard,0.056512210263342307, https://leetcode.com/problems/cherry-pickup
53,Maximum Subarray,46.5%,Easy,0.052816160704876255, https://leetcode.com/problems/maximum-subarray
894,All Possible Full Binary Trees,75.2%,Medium,0.052436651273043935, https://leetcode.com/problems/all-possible-full-binary-trees
173,Binary Search Tree Iterator,56.6%,Medium,0.0519111767751893, https://leetcode.com/problems/binary-search-tree-iterator
449,Serialize and Deserialize BST,52.0%,Medium,0.049844204077291364, https://leetcode.com/problems/serialize-and-deserialize-bst
609,Find Duplicate File in System,59.5%,Medium,0.045205436768046794, https://leetcode.com/problems/find-duplicate-file-in-system
535,Encode and Decode TinyURL,79.9%,Medium,0.041978881338661234, https://leetcode.com/problems/encode-and-decode-tinyurl
503,Next Greater Element II,56.5%,Medium,0.041944638750466105, https://leetcode.com/problems/next-greater-element-ii
236,Lowest Common Ancestor of a Binary Tree,45.7%,Medium,0.041648587234261826, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
92,Reverse Linked List II,38.8%,Medium,0.041073535208287514, https://leetcode.com/problems/reverse-linked-list-ii
243,Shortest Word Distance,61.0%,Easy,0.040780370344928096, https://leetcode.com/problems/shortest-word-distance
652,Find Duplicate Subtrees,50.2%,Medium,0.040573516447166516, https://leetcode.com/problems/find-duplicate-subtrees
37,Sudoku Solver,43.6%,Hard,0.040527833612118376, https://leetcode.com/problems/sudoku-solver
126,Word Ladder II,22.1%,Hard,0.04004093605556132, https://leetcode.com/problems/word-ladder-ii
1,Two Sum,45.6%,Easy,0.03943855709894935, https://leetcode.com/problems/two-sum
863,All Nodes Distance K in Binary Tree,55.4%,Medium,0.037756162417993476, https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
20,Valid Parentheses,39.0%,Easy,0.03618871742239114, https://leetcode.com/problems/valid-parentheses
43,Multiply Strings,33.9%,Medium,0.03608871558298825, https://leetcode.com/problems/multiply-strings
139,Word Break,40.1%,Medium,0.03451593709018879, https://leetcode.com/problems/word-break
12,Integer to Roman,55.1%,Medium,0.03370158881097552, https://leetcode.com/problems/integer-to-roman
121,Best Time to Buy and Sell Stock,50.5%,Easy,0.033453179586686504, https://leetcode.com/problems/best-time-to-buy-and-sell-stock
694,Number of Distinct Islands,56.0%,Medium,0.03278982282299087, https://leetcode.com/problems/number-of-distinct-islands
1197,Minimum Knight Moves,36.1%,Medium,0.02969780239174205, https://leetcode.com/problems/minimum-knight-moves
767,Reorganize String,48.7%,Medium,0.02967576814611661, https://leetcode.com/problems/reorganize-string
155,Min Stack,44.5%,Easy,0.029317296678520607, https://leetcode.com/problems/min-stack
456,132 Pattern,28.9%,Medium,0.029306126585499394, https://leetcode.com/problems/132-pattern
57,Insert Interval,33.5%,Hard,0.02927990558056596, https://leetcode.com/problems/insert-interval
116,Populating Next Right Pointers in Each Node,45.2%,Medium,0.02902961467511413, https://leetcode.com/problems/populating-next-right-pointers-in-each-node
204,Count Primes,31.5%,Easy,0.02799343042200216, https://leetcode.com/problems/count-primes
114,Flatten Binary Tree to Linked List,49.3%,Medium,0.02730545069026746, https://leetcode.com/problems/flatten-binary-tree-to-linked-list
21,Merge Two Sorted Lists,53.5%,Easy,0.02728150490352749, https://leetcode.com/problems/merge-two-sorted-lists
17,Letter Combinations of a Phone Number,46.8%,Medium,0.027199239804368825, https://leetcode.com/problems/letter-combinations-of-a-phone-number
42,Trapping Rain Water,48.9%,Hard,0.02688623073425064, https://leetcode.com/problems/trapping-rain-water
1305,All Elements in Two Binary Search Trees,76.1%,Medium,0.026282721799194744, https://leetcode.com/problems/all-elements-in-two-binary-search-trees
34,Find First and Last Position of Element in Sorted Array,36.2%,Medium,0.026256496787488606, https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
41,First Missing Positive,32.0%,Hard,0.02540222313806603, https://leetcode.com/problems/first-missing-positive
125,Valid Palindrome,36.7%,Easy,0.02462208292471368, https://leetcode.com/problems/valid-palindrome
836,Rectangle Overlap,48.6%,Easy,0.024228925974379843, https://leetcode.com/problems/rectangle-overlap
4,Median of Two Sorted Arrays,29.6%,Hard,0.024130115852798662, https://leetcode.com/problems/median-of-two-sorted-arrays
127,Word Ladder,29.6%,Medium,0.023704813655166343, https://leetcode.com/problems/word-ladder
844,Backspace String Compare,46.4%,Easy,0.0235551325028849, https://leetcode.com/problems/backspace-string-compare
973,K Closest Points to Origin,63.8%,Medium,0.022897394173017796, https://leetcode.com/problems/k-closest-points-to-origin
622,Design Circular Queue,43.8%,Medium,0.02246023667974994, https://leetcode.com/problems/design-circular-queue
981,Time Based Key-Value Store,53.1%,Medium,0.02226024024151985, https://leetcode.com/problems/time-based-key-value-store
113,Path Sum II,46.7%,Medium,0.021882711249507664, https://leetcode.com/problems/path-sum-ii
958,Check Completeness of a Binary Tree,52.1%,Medium,0.021763644636359686, https://leetcode.com/problems/check-completeness-of-a-binary-tree
543,Diameter of Binary Tree,48.4%,Easy,0.02105617995251665, https://leetcode.com/problems/diameter-of-binary-tree
94,Binary Tree Inorder Traversal,63.3%,Medium,0.020787312070811408, https://leetcode.com/problems/binary-tree-inorder-traversal
32,Longest Valid Parentheses,28.4%,Hard,0.020385756924473915, https://leetcode.com/problems/longest-valid-parentheses
5,Longest Palindromic Substring,29.5%,Medium,0.020329346568668867, https://leetcode.com/problems/longest-palindromic-substring
341,Flatten Nested List Iterator,52.9%,Medium,0.019980684690483426, https://leetcode.com/problems/flatten-nested-list-iterator
207,Course Schedule,43.1%,Medium,0.019709926055136454, https://leetcode.com/problems/course-schedule
721,Accounts Merge,48.8%,Medium,0.01888630262874805, https://leetcode.com/problems/accounts-merge
209,Minimum Size Subarray Sum,38.2%,Medium,0.018832948333092125, https://leetcode.com/problems/minimum-size-subarray-sum
965,Univalued Binary Tree,67.7%,Easy,0.018665964249802672, https://leetcode.com/problems/univalued-binary-tree
1008,Construct Binary Search Tree from Preorder Traversal,78.4%,Medium,0.01844220088035248, https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
347,Top K Frequent Elements,61.2%,Medium,0.018049036874660983, https://leetcode.com/problems/top-k-frequent-elements
314,Binary Tree Vertical Order Traversal,45.3%,Medium,0.018010392274465332, https://leetcode.com/problems/binary-tree-vertical-order-traversal
38,Count and Say,44.6%,Easy,0.01753063983505879, https://leetcode.com/problems/count-and-say
289,Game of Life,54.5%,Medium,0.0173239499317743, https://leetcode.com/problems/game-of-life
402,Remove K Digits,28.4%,Medium,0.016863806052004816, https://leetcode.com/problems/remove-k-digits
242,Valid Anagram,56.9%,Easy,0.016513947375674708, https://leetcode.com/problems/valid-anagram
51,N-Queens,46.6%,Hard,0.016393809775676407, https://leetcode.com/problems/n-queens
71,Simplify Path,32.6%,Medium,0.016260520871780308, https://leetcode.com/problems/simplify-path
322,Coin Change,35.5%,Medium,0.016022774188122292, https://leetcode.com/problems/coin-change
938,Range Sum of BST,81.3%,Easy,0.015707129205357877, https://leetcode.com/problems/range-sum-of-bst
49,Group Anagrams,56.9%,Medium,0.01513031227798415, https://leetcode.com/problems/group-anagrams
206,Reverse Linked List,62.5%,Easy,0.01453513961911317, https://leetcode.com/problems/reverse-linked-list
150,Evaluate Reverse Polish Notation,36.3%,Medium,0.01413451093490476, https://leetcode.com/problems/evaluate-reverse-polish-notation
76,Minimum Window Substring,34.6%,Hard,0.013966707481708198, https://leetcode.com/problems/minimum-window-substring
179,Largest Number,28.8%,Medium,0.013865040137171665, https://leetcode.com/problems/largest-number
13,Roman to Integer,55.7%,Easy,0.013645103403569418, https://leetcode.com/problems/roman-to-integer
496,Next Greater Element I,63.8%,Easy,0.013201511858535894, https://leetcode.com/problems/next-greater-element-i
1047,Remove All Adjacent Duplicates In String,68.6%,Easy,0.013059277989179281, https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
695,Max Area of Island,62.7%,Medium,0.012686500631003836, https://leetcode.com/problems/max-area-of-island
445,Add Two Numbers II,54.5%,Medium,0.01233061245747872, https://leetcode.com/problems/add-two-numbers-ii
112,Path Sum,41.2%,Easy,0.012265076074932503, https://leetcode.com/problems/path-sum
437,Path Sum III,47.2%,Medium,0.012128711446614806, https://leetcode.com/problems/path-sum-iii
273,Integer to English Words,27.1%,Hard,0.012081089250339716, https://leetcode.com/problems/integer-to-english-words
88,Merge Sorted Array,39.4%,Easy,0.011986958032982505, https://leetcode.com/problems/merge-sorted-array
986,Interval List Intersections,67.3%,Medium,0.011969023795320735, https://leetcode.com/problems/interval-list-intersections
300,Longest Increasing Subsequence,42.6%,Medium,0.011806512586989004, https://leetcode.com/problems/longest-increasing-subsequence
98,Validate Binary Search Tree,27.8%,Medium,0.01172346369605921, https://leetcode.com/problems/validate-binary-search-tree
264,Ugly Number II,42.0%,Medium,0.011604423810414601, https://leetcode.com/problems/ugly-number-ii
205,Isomorphic Strings,39.8%,Easy,0.011544139746865315, https://leetcode.com/problems/isomorphic-strings
283,Move Zeroes,57.8%,Easy,0.01149190266804209, https://leetcode.com/problems/move-zeroes
2,Add Two Numbers,33.9%,Medium,0.010507388732168088, https://leetcode.com/problems/add-two-numbers
62,Unique Paths,54.1%,Medium,0.010367562048856941, https://leetcode.com/problems/unique-paths
819,Most Common Word,44.8%,Easy,0.010269666637456105, https://leetcode.com/problems/most-common-word
46,Permutations,63.5%,Medium,0.009461803137288448, https://leetcode.com/problems/permutations
208,Implement Trie (Prefix Tree),49.4%,Medium,0.009105457856626612, https://leetcode.com/problems/implement-trie-prefix-tree
15,3Sum,26.8%,Medium,0.00876717944353383, https://leetcode.com/problems/3sum
215,Kth Largest Element in an Array,55.4%,Medium,0.008759180089881562, https://leetcode.com/problems/kth-largest-element-in-an-array
617,Merge Two Binary Trees,74.1%,Easy,0.008262802639833214, https://leetcode.com/problems/merge-two-binary-trees
235,Lowest Common Ancestor of a Binary Search Tree,49.9%,Easy,0.00821697310228087, https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
438,Find All Anagrams in a String,43.3%,Medium,0.008126822460497498, https://leetcode.com/problems/find-all-anagrams-in-a-string
239,Sliding Window Maximum,43.0%,Hard,0.007898935224534491, https://leetcode.com/problems/sliding-window-maximum
141,Linked List Cycle,41.1%,Easy,0.007843861028908454, https://leetcode.com/problems/linked-list-cycle
26,Remove Duplicates from Sorted Array,45.1%,Easy,0.007782518973063169, https://leetcode.com/problems/remove-duplicates-from-sorted-array
101,Symmetric Tree,46.8%,Easy,0.007646596306528098, https://leetcode.com/problems/symmetric-tree
876,Middle of the Linked List,68.4%,Easy,0.007624893975696915, https://leetcode.com/problems/middle-of-the-linked-list
240,Search a 2D Matrix II,43.2%,Medium,0.0075829747244553335, https://leetcode.com/problems/search-a-2d-matrix-ii
344,Reverse String,68.5%,Easy,0.00734157796234515, https://leetcode.com/problems/reverse-string
36,Valid Sudoku,48.7%,Medium,0.007258242715805398, https://leetcode.com/problems/valid-sudoku
10,Regular Expression Matching,26.8%,Hard,0.0071865203293987245, https://leetcode.com/problems/regular-expression-matching
412,Fizz Buzz,62.3%,Easy,0.007165921026143679, https://leetcode.com/problems/fizz-buzz
136,Single Number,65.5%,Easy,0.006445166968713385, https://leetcode.com/problems/single-number
24,Swap Nodes in Pairs,50.4%,Medium,0.0062218275061505365, https://leetcode.com/problems/swap-nodes-in-pairs
91,Decode Ways,24.7%,Medium,0.005968385368349129, https://leetcode.com/problems/decode-ways
199,Binary Tree Right Side View,54.1%,Medium,0.0056826406650506926, https://leetcode.com/problems/binary-tree-right-side-view
105,Construct Binary Tree from Preorder and Inorder Traversal,48.8%,Medium,0.005628268691614718, https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
50,Pow(x;n),30.3%,Medium,0.0055950070772402055, https://leetcode.com/problems/powx-n
108,Convert Sorted Array to Binary Search Tree,57.9%,Easy,0.005554027051374908, https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
55,Jump Game,34.6%,Medium,0.005022612266291382, https://leetcode.com/problems/jump-game
160,Intersection of Two Linked Lists,40.6%,Easy,0.004901369939720486, https://leetcode.com/problems/intersection-of-two-linked-lists
169,Majority Element,58.7%,Easy,0.004706444738837472, https://leetcode.com/problems/majority-element
7,Reverse Integer,25.8%,Easy,0.00418293972984512, https://leetcode.com/problems/reverse-integer
28,Implement strStr(),34.5%,Easy,0.003943222775040032, https://leetcode.com/problems/implement-strstr
977,Squares of a Sorted Array,72.1%,Easy,0.003891055492966611, https://leetcode.com/problems/squares-of-a-sorted-array
217,Contains Duplicate,56.0%,Easy,0.0037979536727587773, https://leetcode.com/problems/contains-duplicate
8,String to Integer (atoi),15.4%,Medium,0.0037925521897059712, https://leetcode.com/problems/string-to-integer-atoi
153,Find Minimum in Rotated Sorted Array,45.1%,Medium,0.0037558729598054378, https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
3,Longest Substring Without Repeating Characters,30.4%,Medium,0.003496778759264278, https://leetcode.com/problems/longest-substring-without-repeating-characters
151,Reverse Words in a String,21.9%,Medium,0.003456091915988908, https://leetcode.com/problems/reverse-words-in-a-string
70,Climbing Stairs,47.8%,Easy,0.00339085548316782, https://leetcode.com/problems/climbing-stairs
122,Best Time to Buy and Sell Stock II,57.0%,Easy,0.0033545821461532107, https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
14,Longest Common Prefix,35.4%,Easy,0.003320331762984143, https://leetcode.com/problems/longest-common-prefix
19,Remove Nth Node From End of List,35.2%,Medium,0.003076452203393495, https://leetcode.com/problems/remove-nth-node-from-end-of-list
9,Palindrome Number,48.4%,Easy,0.0030379001110948244, https://leetcode.com/problems/palindrome-number
140,Word Break II,32.6%,Hard,0.0027070942357783584, https://leetcode.com/problems/word-break-ii
621,Task Scheduler,50.1%,Medium,0.002341784338144407, https://leetcode.com/problems/task-scheduler
210,Course Schedule II,40.7%,Medium,0.0019086707135282834, https://leetcode.com/problems/course-schedule-ii
79,Word Search,35.6%,Medium,0.0016647248725526849, https://leetcode.com/problems/word-search
1 554 ID Brick Wall Title 50.0% Acceptance Medium Difficulty 0.5628369978035019 Frequency https://leetcode.com/problems/brick-wall Leetcode Question Link
2 352 554 Data Stream as Disjoint Intervals Brick Wall 47.3% 50.0% Hard Medium 0.4990377527312547 0.5628369978035019 https://leetcode.com/problems/data-stream-as-disjoint-intervals https://leetcode.com/problems/brick-wall
3 362 352 Design Hit Counter Data Stream as Disjoint Intervals 63.7% 47.3% Medium Hard 0.4137338521213525 0.4990377527312547 https://leetcode.com/problems/design-hit-counter https://leetcode.com/problems/data-stream-as-disjoint-intervals
4 146 362 LRU Cache Design Hit Counter 33.2% 63.7% Medium Medium 0.32842995151145027 0.4137338521213525 https://leetcode.com/problems/lru-cache https://leetcode.com/problems/design-hit-counter
5 425 146 Word Squares LRU Cache 47.7% 33.2% Hard Medium 0.24312605090154807 0.32842995151145027 https://leetcode.com/problems/word-squares https://leetcode.com/problems/lru-cache
6 403 425 Frog Jump Word Squares 39.7% 47.7% Hard Hard 0.21218417576199058 0.24312605090154807 https://leetcode.com/problems/frog-jump https://leetcode.com/problems/word-squares
7 706 403 Design HashMap Frog Jump 61.3% 39.7% Easy Hard 0.1960785423771685 0.21218417576199058 https://leetcode.com/problems/design-hashmap https://leetcode.com/problems/frog-jump
8 253 706 Meeting Rooms II Design HashMap 45.7% 61.3% Medium Easy 0.18465102561460048 0.1960785423771685 https://leetcode.com/problems/meeting-rooms-ii https://leetcode.com/problems/design-hashmap
9 23 253 Merge k Sorted Lists Meeting Rooms II 40.2% 45.7% Hard Medium 0.18142464262604538 0.18465102561460048 https://leetcode.com/problems/merge-k-sorted-lists https://leetcode.com/problems/meeting-rooms-ii
10 636 23 Exclusive Time of Functions Merge k Sorted Lists 51.9% 40.2% Medium Hard 0.17494800586305592 0.18142464262604538 https://leetcode.com/problems/exclusive-time-of-functions https://leetcode.com/problems/merge-k-sorted-lists
11 415 636 Add Strings Exclusive Time of Functions 47.5% 51.9% Easy Medium 0.17429245611868044 0.17494800586305592 https://leetcode.com/problems/add-strings https://leetcode.com/problems/exclusive-time-of-functions
12 56 415 Merge Intervals Add Strings 39.3% 47.5% Medium Easy 0.1574006175650271 0.17429245611868044 https://leetcode.com/problems/merge-intervals https://leetcode.com/problems/add-strings
13 450 56 Delete Node in a BST Merge Intervals 43.1% 39.3% Medium Medium 0.15561959910053247 0.1574006175650271 https://leetcode.com/problems/delete-node-in-a-bst https://leetcode.com/problems/merge-intervals
14 1242 450 Web Crawler Multithreaded Delete Node in a BST 45.9% 43.1% Medium Medium 0.14953173397096375 0.15561959910053247 https://leetcode.com/problems/web-crawler-multithreaded https://leetcode.com/problems/delete-node-in-a-bst
15 227 1242 Basic Calculator II Web Crawler Multithreaded 36.9% 45.9% Medium Medium 0.14222709959207652 0.14953173397096375 https://leetcode.com/problems/basic-calculator-ii https://leetcode.com/problems/web-crawler-multithreaded
16 1044 227 Longest Duplicate Substring Basic Calculator II 31.9% 36.9% Hard Medium 0.1351378186727963 0.14222709959207652 https://leetcode.com/problems/longest-duplicate-substring https://leetcode.com/problems/basic-calculator-ii
17 297 1044 Serialize and Deserialize Binary Tree Longest Duplicate Substring 47.5% 31.9% Hard Hard 0.13437443205326582 0.1351378186727963 https://leetcode.com/problems/serialize-and-deserialize-binary-tree https://leetcode.com/problems/longest-duplicate-substring
18 200 297 Number of Islands Serialize and Deserialize Binary Tree 46.8% 47.5% Medium Hard 0.13260852442964066 0.13437443205326582 https://leetcode.com/problems/number-of-islands https://leetcode.com/problems/serialize-and-deserialize-binary-tree
19 692 200 Top K Frequent Words Number of Islands 51.8% 46.8% Medium Medium 0.1139616691735821 0.13260852442964066 https://leetcode.com/problems/top-k-frequent-words https://leetcode.com/problems/number-of-islands
20 1188 692 Design Bounded Blocking Queue Top K Frequent Words 70.5% 51.8% Medium Medium 0.11030454201470608 0.1139616691735821 https://leetcode.com/problems/design-bounded-blocking-queue https://leetcode.com/problems/top-k-frequent-words
21 230 1188 Kth Smallest Element in a BST Design Bounded Blocking Queue 60.2% 70.5% Medium Medium 0.09685471541555685 0.11030454201470608 https://leetcode.com/problems/kth-smallest-element-in-a-bst https://leetcode.com/problems/design-bounded-blocking-queue
22 75 230 Sort Colors Kth Smallest Element in a BST 47.3% 60.2% Medium Medium 0.09653792704264727 0.09685471541555685 https://leetcode.com/problems/sort-colors https://leetcode.com/problems/kth-smallest-element-in-a-bst
23 394 75 Decode String Sort Colors 50.0% 47.3% Medium Medium 0.09572009987565212 0.09653792704264727 https://leetcode.com/problems/decode-string https://leetcode.com/problems/sort-colors
24 1236 394 Web Crawler Decode String 64.3% 50.0% Medium Medium 0.09531017980432487 0.09572009987565212 https://leetcode.com/problems/web-crawler https://leetcode.com/problems/decode-string
25 33 1236 Search in Rotated Sorted Array Web Crawler 34.5% 64.3% Medium Medium 0.09336717401169674 0.09531017980432487 https://leetcode.com/problems/search-in-rotated-sorted-array https://leetcode.com/problems/web-crawler
26 545 33 Boundary of Binary Tree Search in Rotated Sorted Array 38.9% 34.5% Medium Medium 0.091248671465145 0.09336717401169674 https://leetcode.com/problems/boundary-of-binary-tree https://leetcode.com/problems/search-in-rotated-sorted-array
27 722 545 Remove Comments Boundary of Binary Tree 34.6% 38.9% Medium Medium 0.08890352514166767 0.091248671465145 https://leetcode.com/problems/remove-comments https://leetcode.com/problems/boundary-of-binary-tree
28 380 722 Insert Delete GetRandom O(1) Remove Comments 47.5% 34.6% Medium Medium 0.08509738264123867 0.08890352514166767 https://leetcode.com/problems/insert-delete-getrandom-o1 https://leetcode.com/problems/remove-comments
29 1212 380 Team Scores in Football Tournament Insert Delete GetRandom O(1) 55.8% 47.5% Medium Medium 0.08269171584511335 0.08509738264123867 https://leetcode.com/problems/team-scores-in-football-tournament https://leetcode.com/problems/insert-delete-getrandom-o1
30 54 1212 Spiral Matrix Team Scores in Football Tournament 34.1% 55.8% Medium Medium 0.07792846120043545 0.08269171584511335 https://leetcode.com/problems/spiral-matrix https://leetcode.com/problems/team-scores-in-football-tournament
31 599 54 Minimum Index Sum of Two Lists Spiral Matrix 50.7% 34.1% Easy Medium 0.0753494372417868 0.07792846120043545 https://leetcode.com/problems/minimum-index-sum-of-two-lists https://leetcode.com/problems/spiral-matrix
32 138 599 Copy List with Random Pointer Minimum Index Sum of Two Lists 36.4% 50.7% Medium Easy 0.07332029537109397 0.0753494372417868 https://leetcode.com/problems/copy-list-with-random-pointer https://leetcode.com/problems/minimum-index-sum-of-two-lists
33 505 138 The Maze II Copy List with Random Pointer 47.7% 36.4% Medium Medium 0.07133147800542972 0.07332029537109397 https://leetcode.com/problems/the-maze-ii https://leetcode.com/problems/copy-list-with-random-pointer
34 232 505 Implement Queue using Stacks The Maze II 49.6% 47.7% Easy Medium 0.06827657958623828 0.07133147800542972 https://leetcode.com/problems/implement-queue-using-stacks https://leetcode.com/problems/the-maze-ii
35 349 232 Intersection of Two Arrays Implement Queue using Stacks 62.5% 49.6% Easy Easy 0.06343503822912192 0.06827657958623828 https://leetcode.com/problems/intersection-of-two-arrays https://leetcode.com/problems/implement-queue-using-stacks
36 73 349 Set Matrix Zeroes Intersection of Two Arrays 43.1% 62.5% Medium Easy 0.061431799532484045 0.06343503822912192 https://leetcode.com/problems/set-matrix-zeroes https://leetcode.com/problems/intersection-of-two-arrays
37 238 73 Product of Array Except Self Set Matrix Zeroes 60.1% 43.1% Medium Medium 0.061105194807639235 0.061431799532484045 https://leetcode.com/problems/product-of-array-except-self https://leetcode.com/problems/set-matrix-zeroes
38 1170 238 Compare Strings by Frequency of the Smallest Character Product of Array Except Self 58.7% 60.1% Easy Medium 0.060901617340111645 0.061105194807639235 https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character https://leetcode.com/problems/product-of-array-except-self
39 305 1170 Number of Islands II Compare Strings by Frequency of the Smallest Character 40.1% 58.7% Hard Easy 0.06007812394328337 0.060901617340111645 https://leetcode.com/problems/number-of-islands-ii https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character
40 1190 305 Reverse Substrings Between Each Pair of Parentheses Number of Islands II 61.5% 40.1% Medium Hard 0.06007812394328337 0.06007812394328337 https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses https://leetcode.com/problems/number-of-islands-ii
41 355 1190 Design Twitter Reverse Substrings Between Each Pair of Parentheses 30.3% 61.5% Medium Medium 0.05824061998094904 0.06007812394328337 https://leetcode.com/problems/design-twitter https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses
42 741 355 Cherry Pickup Design Twitter 33.9% 30.3% Hard Medium 0.056512210263342307 0.05824061998094904 https://leetcode.com/problems/cherry-pickup https://leetcode.com/problems/design-twitter
43 53 741 Maximum Subarray Cherry Pickup 46.5% 33.9% Easy Hard 0.052816160704876255 0.056512210263342307 https://leetcode.com/problems/maximum-subarray https://leetcode.com/problems/cherry-pickup
44 894 53 All Possible Full Binary Trees Maximum Subarray 75.2% 46.5% Medium Easy 0.052436651273043935 0.052816160704876255 https://leetcode.com/problems/all-possible-full-binary-trees https://leetcode.com/problems/maximum-subarray
45 173 894 Binary Search Tree Iterator All Possible Full Binary Trees 56.6% 75.2% Medium Medium 0.0519111767751893 0.052436651273043935 https://leetcode.com/problems/binary-search-tree-iterator https://leetcode.com/problems/all-possible-full-binary-trees
46 449 173 Serialize and Deserialize BST Binary Search Tree Iterator 52.0% 56.6% Medium Medium 0.049844204077291364 0.0519111767751893 https://leetcode.com/problems/serialize-and-deserialize-bst https://leetcode.com/problems/binary-search-tree-iterator
47 609 449 Find Duplicate File in System Serialize and Deserialize BST 59.5% 52.0% Medium Medium 0.045205436768046794 0.049844204077291364 https://leetcode.com/problems/find-duplicate-file-in-system https://leetcode.com/problems/serialize-and-deserialize-bst
48 535 609 Encode and Decode TinyURL Find Duplicate File in System 79.9% 59.5% Medium Medium 0.041978881338661234 0.045205436768046794 https://leetcode.com/problems/encode-and-decode-tinyurl https://leetcode.com/problems/find-duplicate-file-in-system
49 503 535 Next Greater Element II Encode and Decode TinyURL 56.5% 79.9% Medium Medium 0.041944638750466105 0.041978881338661234 https://leetcode.com/problems/next-greater-element-ii https://leetcode.com/problems/encode-and-decode-tinyurl
50 236 503 Lowest Common Ancestor of a Binary Tree Next Greater Element II 45.7% 56.5% Medium Medium 0.041648587234261826 0.041944638750466105 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree https://leetcode.com/problems/next-greater-element-ii
51 92 236 Reverse Linked List II Lowest Common Ancestor of a Binary Tree 38.8% 45.7% Medium Medium 0.041073535208287514 0.041648587234261826 https://leetcode.com/problems/reverse-linked-list-ii https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
52 243 92 Shortest Word Distance Reverse Linked List II 61.0% 38.8% Easy Medium 0.040780370344928096 0.041073535208287514 https://leetcode.com/problems/shortest-word-distance https://leetcode.com/problems/reverse-linked-list-ii
53 652 243 Find Duplicate Subtrees Shortest Word Distance 50.2% 61.0% Medium Easy 0.040573516447166516 0.040780370344928096 https://leetcode.com/problems/find-duplicate-subtrees https://leetcode.com/problems/shortest-word-distance
54 37 652 Sudoku Solver Find Duplicate Subtrees 43.6% 50.2% Hard Medium 0.040527833612118376 0.040573516447166516 https://leetcode.com/problems/sudoku-solver https://leetcode.com/problems/find-duplicate-subtrees
55 126 37 Word Ladder II Sudoku Solver 22.1% 43.6% Hard Hard 0.04004093605556132 0.040527833612118376 https://leetcode.com/problems/word-ladder-ii https://leetcode.com/problems/sudoku-solver
56 1 126 Two Sum Word Ladder II 45.6% 22.1% Easy Hard 0.03943855709894935 0.04004093605556132 https://leetcode.com/problems/two-sum https://leetcode.com/problems/word-ladder-ii
57 863 1 All Nodes Distance K in Binary Tree Two Sum 55.4% 45.6% Medium Easy 0.037756162417993476 0.03943855709894935 https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree https://leetcode.com/problems/two-sum
58 20 863 Valid Parentheses All Nodes Distance K in Binary Tree 39.0% 55.4% Easy Medium 0.03618871742239114 0.037756162417993476 https://leetcode.com/problems/valid-parentheses https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
59 43 20 Multiply Strings Valid Parentheses 33.9% 39.0% Medium Easy 0.03608871558298825 0.03618871742239114 https://leetcode.com/problems/multiply-strings https://leetcode.com/problems/valid-parentheses
60 139 43 Word Break Multiply Strings 40.1% 33.9% Medium Medium 0.03451593709018879 0.03608871558298825 https://leetcode.com/problems/word-break https://leetcode.com/problems/multiply-strings
61 12 139 Integer to Roman Word Break 55.1% 40.1% Medium Medium 0.03370158881097552 0.03451593709018879 https://leetcode.com/problems/integer-to-roman https://leetcode.com/problems/word-break
62 121 12 Best Time to Buy and Sell Stock Integer to Roman 50.5% 55.1% Easy Medium 0.033453179586686504 0.03370158881097552 https://leetcode.com/problems/best-time-to-buy-and-sell-stock https://leetcode.com/problems/integer-to-roman
63 694 121 Number of Distinct Islands Best Time to Buy and Sell Stock 56.0% 50.5% Medium Easy 0.03278982282299087 0.033453179586686504 https://leetcode.com/problems/number-of-distinct-islands https://leetcode.com/problems/best-time-to-buy-and-sell-stock
64 1197 694 Minimum Knight Moves Number of Distinct Islands 36.1% 56.0% Medium Medium 0.02969780239174205 0.03278982282299087 https://leetcode.com/problems/minimum-knight-moves https://leetcode.com/problems/number-of-distinct-islands
65 767 1197 Reorganize String Minimum Knight Moves 48.7% 36.1% Medium Medium 0.02967576814611661 0.02969780239174205 https://leetcode.com/problems/reorganize-string https://leetcode.com/problems/minimum-knight-moves
66 155 767 Min Stack Reorganize String 44.5% 48.7% Easy Medium 0.029317296678520607 0.02967576814611661 https://leetcode.com/problems/min-stack https://leetcode.com/problems/reorganize-string
67 456 155 132 Pattern Min Stack 28.9% 44.5% Medium Easy 0.029306126585499394 0.029317296678520607 https://leetcode.com/problems/132-pattern https://leetcode.com/problems/min-stack
68 57 456 Insert Interval 132 Pattern 33.5% 28.9% Hard Medium 0.02927990558056596 0.029306126585499394 https://leetcode.com/problems/insert-interval https://leetcode.com/problems/132-pattern
69 116 57 Populating Next Right Pointers in Each Node Insert Interval 45.2% 33.5% Medium Hard 0.02902961467511413 0.02927990558056596 https://leetcode.com/problems/populating-next-right-pointers-in-each-node https://leetcode.com/problems/insert-interval
70 204 116 Count Primes Populating Next Right Pointers in Each Node 31.5% 45.2% Easy Medium 0.02799343042200216 0.02902961467511413 https://leetcode.com/problems/count-primes https://leetcode.com/problems/populating-next-right-pointers-in-each-node
71 114 204 Flatten Binary Tree to Linked List Count Primes 49.3% 31.5% Medium Easy 0.02730545069026746 0.02799343042200216 https://leetcode.com/problems/flatten-binary-tree-to-linked-list https://leetcode.com/problems/count-primes
72 21 114 Merge Two Sorted Lists Flatten Binary Tree to Linked List 53.5% 49.3% Easy Medium 0.02728150490352749 0.02730545069026746 https://leetcode.com/problems/merge-two-sorted-lists https://leetcode.com/problems/flatten-binary-tree-to-linked-list
73 17 21 Letter Combinations of a Phone Number Merge Two Sorted Lists 46.8% 53.5% Medium Easy 0.027199239804368825 0.02728150490352749 https://leetcode.com/problems/letter-combinations-of-a-phone-number https://leetcode.com/problems/merge-two-sorted-lists
74 42 17 Trapping Rain Water Letter Combinations of a Phone Number 48.9% 46.8% Hard Medium 0.02688623073425064 0.027199239804368825 https://leetcode.com/problems/trapping-rain-water https://leetcode.com/problems/letter-combinations-of-a-phone-number
75 1305 42 All Elements in Two Binary Search Trees Trapping Rain Water 76.1% 48.9% Medium Hard 0.026282721799194744 0.02688623073425064 https://leetcode.com/problems/all-elements-in-two-binary-search-trees https://leetcode.com/problems/trapping-rain-water
76 34 1305 Find First and Last Position of Element in Sorted Array All Elements in Two Binary Search Trees 36.2% 76.1% Medium Medium 0.026256496787488606 0.026282721799194744 https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array https://leetcode.com/problems/all-elements-in-two-binary-search-trees
77 41 34 First Missing Positive Find First and Last Position of Element in Sorted Array 32.0% 36.2% Hard Medium 0.02540222313806603 0.026256496787488606 https://leetcode.com/problems/first-missing-positive https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
78 125 41 Valid Palindrome First Missing Positive 36.7% 32.0% Easy Hard 0.02462208292471368 0.02540222313806603 https://leetcode.com/problems/valid-palindrome https://leetcode.com/problems/first-missing-positive
79 836 125 Rectangle Overlap Valid Palindrome 48.6% 36.7% Easy Easy 0.024228925974379843 0.02462208292471368 https://leetcode.com/problems/rectangle-overlap https://leetcode.com/problems/valid-palindrome
80 4 836 Median of Two Sorted Arrays Rectangle Overlap 29.6% 48.6% Hard Easy 0.024130115852798662 0.024228925974379843 https://leetcode.com/problems/median-of-two-sorted-arrays https://leetcode.com/problems/rectangle-overlap
81 127 4 Word Ladder Median of Two Sorted Arrays 29.6% 29.6% Medium Hard 0.023704813655166343 0.024130115852798662 https://leetcode.com/problems/word-ladder https://leetcode.com/problems/median-of-two-sorted-arrays
82 844 127 Backspace String Compare Word Ladder 46.4% 29.6% Easy Medium 0.0235551325028849 0.023704813655166343 https://leetcode.com/problems/backspace-string-compare https://leetcode.com/problems/word-ladder
83 973 844 K Closest Points to Origin Backspace String Compare 63.8% 46.4% Medium Easy 0.022897394173017796 0.0235551325028849 https://leetcode.com/problems/k-closest-points-to-origin https://leetcode.com/problems/backspace-string-compare
84 622 973 Design Circular Queue K Closest Points to Origin 43.8% 63.8% Medium Medium 0.02246023667974994 0.022897394173017796 https://leetcode.com/problems/design-circular-queue https://leetcode.com/problems/k-closest-points-to-origin
85 981 622 Time Based Key-Value Store Design Circular Queue 53.1% 43.8% Medium Medium 0.02226024024151985 0.02246023667974994 https://leetcode.com/problems/time-based-key-value-store https://leetcode.com/problems/design-circular-queue
86 113 981 Path Sum II Time Based Key-Value Store 46.7% 53.1% Medium Medium 0.021882711249507664 0.02226024024151985 https://leetcode.com/problems/path-sum-ii https://leetcode.com/problems/time-based-key-value-store
87 958 113 Check Completeness of a Binary Tree Path Sum II 52.1% 46.7% Medium Medium 0.021763644636359686 0.021882711249507664 https://leetcode.com/problems/check-completeness-of-a-binary-tree https://leetcode.com/problems/path-sum-ii
88 543 958 Diameter of Binary Tree Check Completeness of a Binary Tree 48.4% 52.1% Easy Medium 0.02105617995251665 0.021763644636359686 https://leetcode.com/problems/diameter-of-binary-tree https://leetcode.com/problems/check-completeness-of-a-binary-tree
89 94 543 Binary Tree Inorder Traversal Diameter of Binary Tree 63.3% 48.4% Medium Easy 0.020787312070811408 0.02105617995251665 https://leetcode.com/problems/binary-tree-inorder-traversal https://leetcode.com/problems/diameter-of-binary-tree
90 32 94 Longest Valid Parentheses Binary Tree Inorder Traversal 28.4% 63.3% Hard Medium 0.020385756924473915 0.020787312070811408 https://leetcode.com/problems/longest-valid-parentheses https://leetcode.com/problems/binary-tree-inorder-traversal
91 5 32 Longest Palindromic Substring Longest Valid Parentheses 29.5% 28.4% Medium Hard 0.020329346568668867 0.020385756924473915 https://leetcode.com/problems/longest-palindromic-substring https://leetcode.com/problems/longest-valid-parentheses
92 341 5 Flatten Nested List Iterator Longest Palindromic Substring 52.9% 29.5% Medium Medium 0.019980684690483426 0.020329346568668867 https://leetcode.com/problems/flatten-nested-list-iterator https://leetcode.com/problems/longest-palindromic-substring
93 207 341 Course Schedule Flatten Nested List Iterator 43.1% 52.9% Medium Medium 0.019709926055136454 0.019980684690483426 https://leetcode.com/problems/course-schedule https://leetcode.com/problems/flatten-nested-list-iterator
94 721 207 Accounts Merge Course Schedule 48.8% 43.1% Medium Medium 0.01888630262874805 0.019709926055136454 https://leetcode.com/problems/accounts-merge https://leetcode.com/problems/course-schedule
95 209 721 Minimum Size Subarray Sum Accounts Merge 38.2% 48.8% Medium Medium 0.018832948333092125 0.01888630262874805 https://leetcode.com/problems/minimum-size-subarray-sum https://leetcode.com/problems/accounts-merge
96 965 209 Univalued Binary Tree Minimum Size Subarray Sum 67.7% 38.2% Easy Medium 0.018665964249802672 0.018832948333092125 https://leetcode.com/problems/univalued-binary-tree https://leetcode.com/problems/minimum-size-subarray-sum
97 1008 965 Construct Binary Search Tree from Preorder Traversal Univalued Binary Tree 78.4% 67.7% Medium Easy 0.01844220088035248 0.018665964249802672 https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal https://leetcode.com/problems/univalued-binary-tree
98 347 1008 Top K Frequent Elements Construct Binary Search Tree from Preorder Traversal 61.2% 78.4% Medium Medium 0.018049036874660983 0.01844220088035248 https://leetcode.com/problems/top-k-frequent-elements https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
99 314 347 Binary Tree Vertical Order Traversal Top K Frequent Elements 45.3% 61.2% Medium Medium 0.018010392274465332 0.018049036874660983 https://leetcode.com/problems/binary-tree-vertical-order-traversal https://leetcode.com/problems/top-k-frequent-elements
100 38 314 Count and Say Binary Tree Vertical Order Traversal 44.6% 45.3% Easy Medium 0.01753063983505879 0.018010392274465332 https://leetcode.com/problems/count-and-say https://leetcode.com/problems/binary-tree-vertical-order-traversal
101 289 38 Game of Life Count and Say 54.5% 44.6% Medium Easy 0.0173239499317743 0.01753063983505879 https://leetcode.com/problems/game-of-life https://leetcode.com/problems/count-and-say
102 402 289 Remove K Digits Game of Life 28.4% 54.5% Medium Medium 0.016863806052004816 0.0173239499317743 https://leetcode.com/problems/remove-k-digits https://leetcode.com/problems/game-of-life
103 242 402 Valid Anagram Remove K Digits 56.9% 28.4% Easy Medium 0.016513947375674708 0.016863806052004816 https://leetcode.com/problems/valid-anagram https://leetcode.com/problems/remove-k-digits
104 51 242 N-Queens Valid Anagram 46.6% 56.9% Hard Easy 0.016393809775676407 0.016513947375674708 https://leetcode.com/problems/n-queens https://leetcode.com/problems/valid-anagram
105 71 51 Simplify Path N-Queens 32.6% 46.6% Medium Hard 0.016260520871780308 0.016393809775676407 https://leetcode.com/problems/simplify-path https://leetcode.com/problems/n-queens
106 322 71 Coin Change Simplify Path 35.5% 32.6% Medium Medium 0.016022774188122292 0.016260520871780308 https://leetcode.com/problems/coin-change https://leetcode.com/problems/simplify-path
107 938 322 Range Sum of BST Coin Change 81.3% 35.5% Easy Medium 0.015707129205357877 0.016022774188122292 https://leetcode.com/problems/range-sum-of-bst https://leetcode.com/problems/coin-change
108 49 938 Group Anagrams Range Sum of BST 56.9% 81.3% Medium Easy 0.01513031227798415 0.015707129205357877 https://leetcode.com/problems/group-anagrams https://leetcode.com/problems/range-sum-of-bst
109 206 49 Reverse Linked List Group Anagrams 62.5% 56.9% Easy Medium 0.01453513961911317 0.01513031227798415 https://leetcode.com/problems/reverse-linked-list https://leetcode.com/problems/group-anagrams
110 150 206 Evaluate Reverse Polish Notation Reverse Linked List 36.3% 62.5% Medium Easy 0.01413451093490476 0.01453513961911317 https://leetcode.com/problems/evaluate-reverse-polish-notation https://leetcode.com/problems/reverse-linked-list
111 76 150 Minimum Window Substring Evaluate Reverse Polish Notation 34.6% 36.3% Hard Medium 0.013966707481708198 0.01413451093490476 https://leetcode.com/problems/minimum-window-substring https://leetcode.com/problems/evaluate-reverse-polish-notation
112 179 76 Largest Number Minimum Window Substring 28.8% 34.6% Medium Hard 0.013865040137171665 0.013966707481708198 https://leetcode.com/problems/largest-number https://leetcode.com/problems/minimum-window-substring
113 13 179 Roman to Integer Largest Number 55.7% 28.8% Easy Medium 0.013645103403569418 0.013865040137171665 https://leetcode.com/problems/roman-to-integer https://leetcode.com/problems/largest-number
114 496 13 Next Greater Element I Roman to Integer 63.8% 55.7% Easy Easy 0.013201511858535894 0.013645103403569418 https://leetcode.com/problems/next-greater-element-i https://leetcode.com/problems/roman-to-integer
115 1047 496 Remove All Adjacent Duplicates In String Next Greater Element I 68.6% 63.8% Easy Easy 0.013059277989179281 0.013201511858535894 https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string https://leetcode.com/problems/next-greater-element-i
116 695 1047 Max Area of Island Remove All Adjacent Duplicates In String 62.7% 68.6% Medium Easy 0.012686500631003836 0.013059277989179281 https://leetcode.com/problems/max-area-of-island https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
117 445 695 Add Two Numbers II Max Area of Island 54.5% 62.7% Medium Medium 0.01233061245747872 0.012686500631003836 https://leetcode.com/problems/add-two-numbers-ii https://leetcode.com/problems/max-area-of-island
118 112 445 Path Sum Add Two Numbers II 41.2% 54.5% Easy Medium 0.012265076074932503 0.01233061245747872 https://leetcode.com/problems/path-sum https://leetcode.com/problems/add-two-numbers-ii
119 437 112 Path Sum III Path Sum 47.2% 41.2% Medium Easy 0.012128711446614806 0.012265076074932503 https://leetcode.com/problems/path-sum-iii https://leetcode.com/problems/path-sum
120 273 437 Integer to English Words Path Sum III 27.1% 47.2% Hard Medium 0.012081089250339716 0.012128711446614806 https://leetcode.com/problems/integer-to-english-words https://leetcode.com/problems/path-sum-iii
121 88 273 Merge Sorted Array Integer to English Words 39.4% 27.1% Easy Hard 0.011986958032982505 0.012081089250339716 https://leetcode.com/problems/merge-sorted-array https://leetcode.com/problems/integer-to-english-words
122 986 88 Interval List Intersections Merge Sorted Array 67.3% 39.4% Medium Easy 0.011969023795320735 0.011986958032982505 https://leetcode.com/problems/interval-list-intersections https://leetcode.com/problems/merge-sorted-array
123 300 986 Longest Increasing Subsequence Interval List Intersections 42.6% 67.3% Medium Medium 0.011806512586989004 0.011969023795320735 https://leetcode.com/problems/longest-increasing-subsequence https://leetcode.com/problems/interval-list-intersections
124 98 300 Validate Binary Search Tree Longest Increasing Subsequence 27.8% 42.6% Medium Medium 0.01172346369605921 0.011806512586989004 https://leetcode.com/problems/validate-binary-search-tree https://leetcode.com/problems/longest-increasing-subsequence
125 264 98 Ugly Number II Validate Binary Search Tree 42.0% 27.8% Medium Medium 0.011604423810414601 0.01172346369605921 https://leetcode.com/problems/ugly-number-ii https://leetcode.com/problems/validate-binary-search-tree
126 205 264 Isomorphic Strings Ugly Number II 39.8% 42.0% Easy Medium 0.011544139746865315 0.011604423810414601 https://leetcode.com/problems/isomorphic-strings https://leetcode.com/problems/ugly-number-ii
127 283 205 Move Zeroes Isomorphic Strings 57.8% 39.8% Easy Easy 0.01149190266804209 0.011544139746865315 https://leetcode.com/problems/move-zeroes https://leetcode.com/problems/isomorphic-strings
128 2 283 Add Two Numbers Move Zeroes 33.9% 57.8% Medium Easy 0.010507388732168088 0.01149190266804209 https://leetcode.com/problems/add-two-numbers https://leetcode.com/problems/move-zeroes
129 62 2 Unique Paths Add Two Numbers 54.1% 33.9% Medium Medium 0.010367562048856941 0.010507388732168088 https://leetcode.com/problems/unique-paths https://leetcode.com/problems/add-two-numbers
130 819 62 Most Common Word Unique Paths 44.8% 54.1% Easy Medium 0.010269666637456105 0.010367562048856941 https://leetcode.com/problems/most-common-word https://leetcode.com/problems/unique-paths
131 46 819 Permutations Most Common Word 63.5% 44.8% Medium Easy 0.009461803137288448 0.010269666637456105 https://leetcode.com/problems/permutations https://leetcode.com/problems/most-common-word
132 208 46 Implement Trie (Prefix Tree) Permutations 49.4% 63.5% Medium Medium 0.009105457856626612 0.009461803137288448 https://leetcode.com/problems/implement-trie-prefix-tree https://leetcode.com/problems/permutations
133 15 208 3Sum Implement Trie (Prefix Tree) 26.8% 49.4% Medium Medium 0.00876717944353383 0.009105457856626612 https://leetcode.com/problems/3sum https://leetcode.com/problems/implement-trie-prefix-tree
134 215 15 Kth Largest Element in an Array 3Sum 55.4% 26.8% Medium Medium 0.008759180089881562 0.00876717944353383 https://leetcode.com/problems/kth-largest-element-in-an-array https://leetcode.com/problems/3sum
135 617 215 Merge Two Binary Trees Kth Largest Element in an Array 74.1% 55.4% Easy Medium 0.008262802639833214 0.008759180089881562 https://leetcode.com/problems/merge-two-binary-trees https://leetcode.com/problems/kth-largest-element-in-an-array
136 235 617 Lowest Common Ancestor of a Binary Search Tree Merge Two Binary Trees 49.9% 74.1% Easy Easy 0.00821697310228087 0.008262802639833214 https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree https://leetcode.com/problems/merge-two-binary-trees
137 438 235 Find All Anagrams in a String Lowest Common Ancestor of a Binary Search Tree 43.3% 49.9% Medium Easy 0.008126822460497498 0.00821697310228087 https://leetcode.com/problems/find-all-anagrams-in-a-string https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
138 239 438 Sliding Window Maximum Find All Anagrams in a String 43.0% 43.3% Hard Medium 0.007898935224534491 0.008126822460497498 https://leetcode.com/problems/sliding-window-maximum https://leetcode.com/problems/find-all-anagrams-in-a-string
139 141 239 Linked List Cycle Sliding Window Maximum 41.1% 43.0% Easy Hard 0.007843861028908454 0.007898935224534491 https://leetcode.com/problems/linked-list-cycle https://leetcode.com/problems/sliding-window-maximum
140 26 141 Remove Duplicates from Sorted Array Linked List Cycle 45.1% 41.1% Easy Easy 0.007782518973063169 0.007843861028908454 https://leetcode.com/problems/remove-duplicates-from-sorted-array https://leetcode.com/problems/linked-list-cycle
141 101 26 Symmetric Tree Remove Duplicates from Sorted Array 46.8% 45.1% Easy Easy 0.007646596306528098 0.007782518973063169 https://leetcode.com/problems/symmetric-tree https://leetcode.com/problems/remove-duplicates-from-sorted-array
142 876 101 Middle of the Linked List Symmetric Tree 68.4% 46.8% Easy Easy 0.007624893975696915 0.007646596306528098 https://leetcode.com/problems/middle-of-the-linked-list https://leetcode.com/problems/symmetric-tree
143 240 876 Search a 2D Matrix II Middle of the Linked List 43.2% 68.4% Medium Easy 0.0075829747244553335 0.007624893975696915 https://leetcode.com/problems/search-a-2d-matrix-ii https://leetcode.com/problems/middle-of-the-linked-list
144 344 240 Reverse String Search a 2D Matrix II 68.5% 43.2% Easy Medium 0.00734157796234515 0.0075829747244553335 https://leetcode.com/problems/reverse-string https://leetcode.com/problems/search-a-2d-matrix-ii
145 36 344 Valid Sudoku Reverse String 48.7% 68.5% Medium Easy 0.007258242715805398 0.00734157796234515 https://leetcode.com/problems/valid-sudoku https://leetcode.com/problems/reverse-string
146 10 36 Regular Expression Matching Valid Sudoku 26.8% 48.7% Hard Medium 0.0071865203293987245 0.007258242715805398 https://leetcode.com/problems/regular-expression-matching https://leetcode.com/problems/valid-sudoku
147 412 10 Fizz Buzz Regular Expression Matching 62.3% 26.8% Easy Hard 0.007165921026143679 0.0071865203293987245 https://leetcode.com/problems/fizz-buzz https://leetcode.com/problems/regular-expression-matching
148 136 412 Single Number Fizz Buzz 65.5% 62.3% Easy Easy 0.006445166968713385 0.007165921026143679 https://leetcode.com/problems/single-number https://leetcode.com/problems/fizz-buzz
149 24 136 Swap Nodes in Pairs Single Number 50.4% 65.5% Medium Easy 0.0062218275061505365 0.006445166968713385 https://leetcode.com/problems/swap-nodes-in-pairs https://leetcode.com/problems/single-number
150 91 24 Decode Ways Swap Nodes in Pairs 24.7% 50.4% Medium Medium 0.005968385368349129 0.0062218275061505365 https://leetcode.com/problems/decode-ways https://leetcode.com/problems/swap-nodes-in-pairs
151 199 91 Binary Tree Right Side View Decode Ways 54.1% 24.7% Medium Medium 0.0056826406650506926 0.005968385368349129 https://leetcode.com/problems/binary-tree-right-side-view https://leetcode.com/problems/decode-ways
152 105 199 Construct Binary Tree from Preorder and Inorder Traversal Binary Tree Right Side View 48.8% 54.1% Medium Medium 0.005628268691614718 0.0056826406650506926 https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal https://leetcode.com/problems/binary-tree-right-side-view
153 50 105 Pow(x;n) Construct Binary Tree from Preorder and Inorder Traversal 30.3% 48.8% Medium Medium 0.0055950070772402055 0.005628268691614718 https://leetcode.com/problems/powx-n https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
154 108 50 Convert Sorted Array to Binary Search Tree Pow(x;n) 57.9% 30.3% Easy Medium 0.005554027051374908 0.0055950070772402055 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree https://leetcode.com/problems/powx-n
155 55 108 Jump Game Convert Sorted Array to Binary Search Tree 34.6% 57.9% Medium Easy 0.005022612266291382 0.005554027051374908 https://leetcode.com/problems/jump-game https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
156 160 55 Intersection of Two Linked Lists Jump Game 40.6% 34.6% Easy Medium 0.004901369939720486 0.005022612266291382 https://leetcode.com/problems/intersection-of-two-linked-lists https://leetcode.com/problems/jump-game
157 169 160 Majority Element Intersection of Two Linked Lists 58.7% 40.6% Easy Easy 0.004706444738837472 0.004901369939720486 https://leetcode.com/problems/majority-element https://leetcode.com/problems/intersection-of-two-linked-lists
158 7 169 Reverse Integer Majority Element 25.8% 58.7% Easy Easy 0.00418293972984512 0.004706444738837472 https://leetcode.com/problems/reverse-integer https://leetcode.com/problems/majority-element
159 28 7 Implement strStr() Reverse Integer 34.5% 25.8% Easy Easy 0.003943222775040032 0.00418293972984512 https://leetcode.com/problems/implement-strstr https://leetcode.com/problems/reverse-integer
160 977 28 Squares of a Sorted Array Implement strStr() 72.1% 34.5% Easy Easy 0.003891055492966611 0.003943222775040032 https://leetcode.com/problems/squares-of-a-sorted-array https://leetcode.com/problems/implement-strstr
161 217 977 Contains Duplicate Squares of a Sorted Array 56.0% 72.1% Easy Easy 0.0037979536727587773 0.003891055492966611 https://leetcode.com/problems/contains-duplicate https://leetcode.com/problems/squares-of-a-sorted-array
162 8 217 String to Integer (atoi) Contains Duplicate 15.4% 56.0% Medium Easy 0.0037925521897059712 0.0037979536727587773 https://leetcode.com/problems/string-to-integer-atoi https://leetcode.com/problems/contains-duplicate
163 153 8 Find Minimum in Rotated Sorted Array String to Integer (atoi) 45.1% 15.4% Medium Medium 0.0037558729598054378 0.0037925521897059712 https://leetcode.com/problems/find-minimum-in-rotated-sorted-array https://leetcode.com/problems/string-to-integer-atoi
164 3 153 Longest Substring Without Repeating Characters Find Minimum in Rotated Sorted Array 30.4% 45.1% Medium Medium 0.003496778759264278 0.0037558729598054378 https://leetcode.com/problems/longest-substring-without-repeating-characters https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
165 151 3 Reverse Words in a String Longest Substring Without Repeating Characters 21.9% 30.4% Medium Medium 0.003456091915988908 0.003496778759264278 https://leetcode.com/problems/reverse-words-in-a-string https://leetcode.com/problems/longest-substring-without-repeating-characters
166 70 151 Climbing Stairs Reverse Words in a String 47.8% 21.9% Easy Medium 0.00339085548316782 0.003456091915988908 https://leetcode.com/problems/climbing-stairs https://leetcode.com/problems/reverse-words-in-a-string
167 122 70 Best Time to Buy and Sell Stock II Climbing Stairs 57.0% 47.8% Easy Easy 0.0033545821461532107 0.00339085548316782 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii https://leetcode.com/problems/climbing-stairs
168 14 122 Longest Common Prefix Best Time to Buy and Sell Stock II 35.4% 57.0% Easy Easy 0.003320331762984143 0.0033545821461532107 https://leetcode.com/problems/longest-common-prefix https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
169 19 14 Remove Nth Node From End of List Longest Common Prefix 35.2% 35.4% Medium Easy 0.003076452203393495 0.003320331762984143 https://leetcode.com/problems/remove-nth-node-from-end-of-list https://leetcode.com/problems/longest-common-prefix
170 9 19 Palindrome Number Remove Nth Node From End of List 48.4% 35.2% Easy Medium 0.0030379001110948244 0.003076452203393495 https://leetcode.com/problems/palindrome-number https://leetcode.com/problems/remove-nth-node-from-end-of-list
171 140 9 Word Break II Palindrome Number 32.6% 48.4% Hard Easy 0.0027070942357783584 0.0030379001110948244 https://leetcode.com/problems/word-break-ii https://leetcode.com/problems/palindrome-number
172 621 140 Task Scheduler Word Break II 50.1% 32.6% Medium Hard 0.002341784338144407 0.0027070942357783584 https://leetcode.com/problems/task-scheduler https://leetcode.com/problems/word-break-ii
173 210 621 Course Schedule II Task Scheduler 40.7% 50.1% Medium Medium 0.0019086707135282834 0.002341784338144407 https://leetcode.com/problems/course-schedule-ii https://leetcode.com/problems/task-scheduler
174 79 210 Word Search Course Schedule II 35.6% 40.7% Medium Medium 0.0016647248725526849 0.0019086707135282834 https://leetcode.com/problems/word-search https://leetcode.com/problems/course-schedule-ii
175 79 Word Search 35.6% Medium 0.0016647248725526849 https://leetcode.com/problems/word-search