Files
LeetCode-Questions-CompanyWise/amazon_alltime.csv
Krishna Kumar Dey fb5f78b55e 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)

```
2023-04-01 11:07:49 +05:30

88 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
2937Reorder Data in Log Files54.3%Easy5.669086974531991https://leetcode.com/problems/reorder-data-in-log-files
3200Number of Islands46.8%Medium5.5619953379074385https://leetcode.com/problems/number-of-islands
41192Critical Connections in a Network48.6%Hard5.451163696788967https://leetcode.com/problems/critical-connections-in-a-network
51Two Sum45.6%Easy5.340332055670496https://leetcode.com/problems/two-sum
6146LRU Cache33.2%Medium5.266473618736184https://leetcode.com/problems/lru-cache
7973K Closest Points to Origin63.8%Medium5.155641977617712https://leetcode.com/problems/k-closest-points-to-origin
8819Most Common Word44.8%Easy5.044810336499242https://leetcode.com/problems/most-common-word
9138Copy List with Random Pointer36.4%Medium5.028653490396094https://leetcode.com/problems/copy-list-with-random-pointer
105Longest Palindromic Substring29.5%Medium4.9178218492776224https://leetcode.com/problems/longest-palindromic-substring
11994Rotting Oranges49.2%Medium4.806990208159151https://leetcode.com/problems/rotting-oranges
1242Trapping Rain Water48.9%Hard4.697248826330039https://leetcode.com/problems/trapping-rain-water
1323Merge k Sorted Lists40.2%Hard4.599324597310145https://leetcode.com/problems/merge-k-sorted-lists
14763Partition Labels76.1%Medium4.548324962256519https://leetcode.com/problems/partition-labels
152Add Two Numbers33.9%Medium4.4374933211380485https://leetcode.com/problems/add-two-numbers
1620Valid Parentheses39.0%Easy4.362623996011495https://leetcode.com/problems/valid-parentheses
1721Merge Two Sorted Lists53.5%Easy4.322317225718424https://leetcode.com/problems/merge-two-sorted-lists
18127Word Ladder29.6%Medium4.310600785424381https://leetcode.com/problems/word-ladder
19295Find Median from Data Stream44.3%Hard4.2919882291467175https://leetcode.com/problems/find-median-from-data-stream
20297Serialize and Deserialize Binary Tree47.5%Hard4.29109371663071https://leetcode.com/problems/serialize-and-deserialize-binary-tree
21692Top K Frequent Words51.8%Medium4.255293916882421https://leetcode.com/problems/top-k-frequent-words
22572Subtree of Another Tree44.1%Easy4.159077466360555https://leetcode.com/problems/subtree-of-another-tree
23240Search a 2D Matrix II43.2%Medium4.048245825242085https://leetcode.com/problems/search-a-2d-matrix-ii
24126Word Ladder II22.1%Hard4.024013333632092https://leetcode.com/problems/word-ladder-ii
25472Concatenated Words43.7%Hard3.9215983336727347https://leetcode.com/problems/concatenated-words
26642Design Search Autocomplete System44.7%Hard3.8667846655909375https://leetcode.com/problems/design-search-autocomplete-system
27957Prison Cells After N Days40.7%Medium3.8492305425836575https://leetcode.com/problems/prison-cells-after-n-days
28121Best Time to Buy and Sell Stock50.5%Easy3.8154100052812234https://leetcode.com/problems/best-time-to-buy-and-sell-stock
29273Integer to English Words27.1%Hard3.751742974770793https://leetcode.com/problems/integer-to-english-words
304Median of Two Sorted Arrays29.6%Hard3.7294575736470525https://leetcode.com/problems/median-of-two-sorted-arrays
313Longest Substring Without Repeating Characters30.4%Medium3.673122324413377https://leetcode.com/problems/longest-substring-without-repeating-characters
32253Meeting Rooms II45.7%Medium3.650908416088221https://leetcode.com/problems/meeting-rooms-ii
3317Letter Combinations of a Phone Number46.8%Medium3.646488617199801https://leetcode.com/problems/letter-combinations-of-a-phone-number
34348Design Tic-Tac-Toe54.3%Medium3.644912199818459https://leetcode.com/problems/design-tic-tac-toe
35139Word Break40.1%Medium3.568929344215992https://leetcode.com/problems/word-break
36155Min Stack44.5%Easy3.5435069249614877https://leetcode.com/problems/min-stack
3748Rotate Image56.7%Medium3.5414589493287463https://leetcode.com/problems/rotate-image
38236Lowest Common Ancestor of a Binary Tree45.7%Medium3.5247783696000754https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
39238Product of Array Except Self60.1%Medium3.514882900018146https://leetcode.com/problems/product-of-array-except-self
40212Word Search II34.9%Hard3.4837901561793956https://leetcode.com/problems/word-search-ii
4112Integer to Roman55.1%Medium3.4609849174972926https://leetcode.com/problems/integer-to-roman
42239Sliding Window Maximum43.0%Hard3.433795326058728https://leetcode.com/problems/sliding-window-maximum
43269Alien Dictionary33.3%Hard3.377668409524585https://leetcode.com/problems/alien-dictionary
44460LFU Cache34.2%Hard3.3776519095965654https://leetcode.com/problems/lfu-cache
45153Sum26.8%Medium3.3710842155526985https://leetcode.com/problems/3sum
4633Search in Rotated Sorted Array34.5%Medium3.3666485807729396https://leetcode.com/problems/search-in-rotated-sorted-array
47675Cut Off Trees for Golf Event34.6%Hard3.36225540086527https://leetcode.com/problems/cut-off-trees-for-golf-event
48588Design In-Memory File System45.9%Hard3.360532016478895https://leetcode.com/problems/design-in-memory-file-system
49909Snakes and Ladders38.4%Medium3.343741372618161https://leetcode.com/problems/snakes-and-ladders
50165Compare Version Numbers27.4%Medium3.2759201587167275https://leetcode.com/problems/compare-version-numbers
5156Merge Intervals39.3%Medium3.274551916823998https://leetcode.com/problems/merge-intervals
52380Insert Delete GetRandom O(1)47.5%Medium3.264575909538694https://leetcode.com/problems/insert-delete-getrandom-o1
5353Maximum Subarray46.5%Easy3.2518398869431175https://leetcode.com/problems/maximum-subarray
5449Group Anagrams56.9%Medium3.2464298158187788https://leetcode.com/problems/group-anagrams
55545Boundary of Binary Tree38.9%Medium3.2370535533630154https://leetcode.com/problems/boundary-of-binary-tree
5611Container With Most Water50.8%Medium3.1775832534023336https://leetcode.com/problems/container-with-most-water
5776Minimum Window Substring34.6%Hard3.1730470473640895https://leetcode.com/problems/minimum-window-substring
5854Spiral Matrix34.1%Medium3.1133021060526898https://leetcode.com/problems/spiral-matrix
591152Analyze User Website Visit Pattern43.5%Medium3.092908705843992https://leetcode.com/problems/analyze-user-website-visit-pattern
6045Jump Game II30.6%Hard3.0792002097019933https://leetcode.com/problems/jump-game-ii
61206Reverse Linked List62.5%Easy3.0671059105253646https://leetcode.com/problems/reverse-linked-list
621167Minimum Cost to Connect Sticks62.8%Medium3.0601766637553607https://leetcode.com/problems/minimum-cost-to-connect-sticks
63277Find the Celebrity41.8%Medium2.94934502263689https://leetcode.com/problems/find-the-celebrity
64124Binary Tree Maximum Path Sum34.3%Hard2.9289335381500554https://leetcode.com/problems/binary-tree-maximum-path-sum
65322Coin Change35.5%Medium2.9225882870663615https://leetcode.com/problems/coin-change
66863All Nodes Distance K in Binary Tree55.4%Medium2.8584437554191786https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
67694Number of Distinct Islands56.0%Medium2.8410258837930096https://leetcode.com/problems/number-of-distinct-islands
68103Binary Tree Zigzag Level Order Traversal48.3%Medium2.828681880742103https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
69733Flood Fill55.3%Easy2.79988479636092https://leetcode.com/problems/flood-fill
7025Reverse Nodes in k-Group42.1%Hard2.7613797410092618https://leetcode.com/problems/reverse-nodes-in-k-group
71341Flatten Nested List Iterator52.9%Medium2.754450954511437https://leetcode.com/problems/flatten-nested-list-iterator
7298Validate Binary Search Tree27.8%Medium2.737334189986096https://leetcode.com/problems/validate-binary-search-tree
73490The Maze51.4%Medium2.6684292618304393https://leetcode.com/problems/the-maze
74208Implement Trie (Prefix Tree)49.4%Medium2.65382797633134https://leetcode.com/problems/implement-trie-prefix-tree
75535Encode and Decode TinyURL79.9%Medium2.648278198910626https://leetcode.com/problems/encode-and-decode-tinyurl
761268Search Suggestions System63.2%Medium2.6191388654944228https://leetcode.com/problems/search-suggestions-system
77224Basic Calculator36.8%Hard2.6186476779233394https://leetcode.com/problems/basic-calculator
7899Recover Binary Search Tree39.7%Hard2.5927917375731657https://leetcode.com/problems/recover-binary-search-tree
79289Game of Life54.5%Medium2.5856365392630773https://leetcode.com/problems/game-of-life
80438Find All Anagrams in a String43.3%Medium2.5722353072335498https://leetcode.com/problems/find-all-anagrams-in-a-string
81116Populating Next Right Pointers in Each Node45.2%Medium2.57096386118438https://leetcode.com/problems/populating-next-right-pointers-in-each-node
8222Generate Parentheses62.7%Medium2.5685235165995333https://leetcode.com/problems/generate-parentheses
83218The Skyline Problem34.6%Hard2.559475345285509https://leetcode.com/problems/the-skyline-problem
84772Basic Calculator III41.3%Hard2.55813888845901https://leetcode.com/problems/basic-calculator-iii
85314Binary Tree Vertical Order Traversal45.3%Medium2.550800170263845https://leetcode.com/problems/binary-tree-vertical-order-traversal
86387First Unique Character in a String53.4%Easy2.54799745525127https://leetcode.com/problems/first-unique-character-in-a-string
87105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium2.5404024506810825https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
88215Kth Largest Element in an Array55.4%Medium2.5347978538534184https://leetcode.com/problems/kth-largest-element-in-an-array
89102Binary Tree Level Order Traversal54.6%Medium2.5203331450038857https://leetcode.com/problems/binary-tree-level-order-traversal
90207Course Schedule43.1%Medium2.503721648394562https://leetcode.com/problems/course-schedule
9191Decode Ways24.7%Medium2.490602261668241https://leetcode.com/problems/decode-ways
92140Word Break II32.6%Hard2.479095544790561https://leetcode.com/problems/word-break-ii
9364Minimum Path Sum54.5%Medium2.4716559596617222https://leetcode.com/problems/minimum-path-sum
9484Largest Rectangle in Histogram35.2%Hard2.4467234894421694https://leetcode.com/problems/largest-rectangle-in-histogram
95866Prime Palindrome24.9%Medium2.426668322236189https://leetcode.com/problems/prime-palindrome
9613Roman to Integer55.7%Easy2.416073231744048https://leetcode.com/problems/roman-to-integer
97227Basic Calculator II36.9%Medium2.4100145835028153https://leetcode.com/problems/basic-calculator-ii
98117Populating Next Right Pointers in Each Node II39.1%Medium2.3950274761670123https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii
99505The Maze II47.7%Medium2.3775245123756745https://leetcode.com/problems/the-maze-ii
100449Serialize and Deserialize BST52.0%Medium2.355719394696847https://leetcode.com/problems/serialize-and-deserialize-bst
10155Jump Game34.6%Medium2.354033209232933https://leetcode.com/problems/jump-game
102695Max Area of Island62.7%Medium2.3328594765055053https://leetcode.com/problems/max-area-of-island
103362Design Hit Counter63.7%Medium2.3302202652283723https://leetcode.com/problems/design-hit-counter
104235Lowest Common Ancestor of a Binary Search Tree49.9%Easy2.3282029797125845https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
10593Restore IP Addresses35.6%Medium2.3249869771549077https://leetcode.com/problems/restore-ip-addresses
1061000Minimum Cost to Merge Stones39.8%Hard2.285269832848969https://leetcode.com/problems/minimum-cost-to-merge-stones
10774Search a 2D Matrix36.5%Medium2.2752799670533843https://leetcode.com/problems/search-a-2d-matrix
1088String to Integer (atoi)15.4%Medium2.240034398814754https://leetcode.com/problems/string-to-integer-atoi
1091102Path With Maximum Minimum Value49.2%Medium2.236364097993119https://leetcode.com/problems/path-with-maximum-minimum-value
110221Maximal Square37.7%Medium2.2359845035549557https://leetcode.com/problems/maximal-square
111543Diameter of Binary Tree48.4%Easy2.2300472912033396https://leetcode.com/problems/diameter-of-binary-tree
112101Symmetric Tree46.8%Easy2.218229616099434https://leetcode.com/problems/symmetric-tree
113711Number of Distinct Islands II47.3%Hard2.1972245773362196https://leetcode.com/problems/number-of-distinct-islands-ii
114173Binary Search Tree Iterator56.6%Medium2.1894746276945916https://leetcode.com/problems/binary-search-tree-iterator
115445Add Two Numbers II54.5%Medium2.1695498551799988https://leetcode.com/problems/add-two-numbers-ii
116143Reorder List37.1%Medium2.148764391721176https://leetcode.com/problems/reorder-list
11731Next Permutation32.6%Medium2.1484244000997346https://leetcode.com/problems/next-permutation
118134Gas Station38.5%Medium2.142566589871282https://leetcode.com/problems/gas-station
119234Palindrome Linked List39.3%Easy2.134538085279358https://leetcode.com/problems/palindrome-linked-list
120199Binary Tree Right Side View54.1%Medium2.1265239954461888https://leetcode.com/problems/binary-tree-right-side-view
12172Edit Distance44.8%Hard2.121008287749178https://leetcode.com/problems/edit-distance
122149Max Points on a Line16.9%Hard2.1126877423916333https://leetcode.com/problems/max-points-on-a-line
12379Word Search35.6%Medium2.1111316640536213https://leetcode.com/problems/word-search
124347Top K Frequent Elements61.2%Medium2.101870619522738https://leetcode.com/problems/top-k-frequent-elements
12562Unique Paths54.1%Medium2.0850418565392053https://leetcode.com/problems/unique-paths
126631Design Excel Sum Formula31.6%Hard2.0739919369122712https://leetcode.com/problems/design-excel-sum-formula
127394Decode String50.0%Medium2.0663903647082917https://leetcode.com/problems/decode-string
128353Design Snake Game34.2%Medium2.0643120655473823https://leetcode.com/problems/design-snake-game
129384Shuffle an Array52.8%Medium2.051144428767012https://leetcode.com/problems/shuffle-an-array
130323Number of Connected Components in an Undirected Graph56.0%Medium2.0420691989817303https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph
131133Clone Graph34.8%Medium2.032877757580115https://leetcode.com/problems/clone-graph
132706Design HashMap61.3%Easy1.9992790950371089https://leetcode.com/problems/design-hashmap
133336Palindrome Pairs33.7%Hard1.9947738093111118https://leetcode.com/problems/palindrome-pairs
134682Baseball Game63.7%Easy1.9698767413574847https://leetcode.com/problems/baseball-game
135759Employee Free Time66.2%Hard1.9498164040223784https://leetcode.com/problems/employee-free-time
136281Zigzag Iterator58.4%Medium1.9424197441155449https://leetcode.com/problems/zigzag-iterator
1371091Shortest Path in Binary Matrix38.2%Medium1.9257261904488205https://leetcode.com/problems/shortest-path-in-binary-matrix
1381120Maximum Average Subtree61.9%Medium1.9180337795270583https://leetcode.com/problems/maximum-average-subtree
139185Department Top Three Salaries34.5%Hard1.9085241431117688https://leetcode.com/problems/department-top-three-salaries
140150Evaluate Reverse Polish Notation36.3%Medium1.9012041599672846https://leetcode.com/problems/evaluate-reverse-polish-notation
14110Regular Expression Matching26.8%Hard1.8952971922607https://leetcode.com/problems/regular-expression-matching
142564Find the Closest Palindrome19.7%Hard1.8891939196134606https://leetcode.com/problems/find-the-closest-palindrome
14371Simplify Path32.6%Medium1.888682852832007https://leetcode.com/problems/simplify-path
1441099Two Sum Less Than K60.6%Easy1.8844097937561664https://leetcode.com/problems/two-sum-less-than-k
14596Unique Binary Search Trees52.9%Medium1.883023885568637https://leetcode.com/problems/unique-binary-search-trees
146417Pacific Atlantic Water Flow41.1%Medium1.8768501431988962https://leetcode.com/problems/pacific-atlantic-water-flow
1471279Traffic Light Controlled Intersection74.3%Easy1.8726661078408553https://leetcode.com/problems/traffic-light-controlled-intersection
148122Best Time to Buy and Sell Stock II57.0%Easy1.8525949058444695https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
149895Maximum Frequency Stack60.6%Hard1.8490817503358836https://leetcode.com/problems/maximum-frequency-stack
15097Interleaving String31.5%Hard1.83971213304063https://leetcode.com/problems/interleaving-string
151286Walls and Gates54.5%Medium1.8391208816311395https://leetcode.com/problems/walls-and-gates
152640Solve the Equation42.0%Medium1.833456992769655https://leetcode.com/problems/solve-the-equation
15339Combination Sum56.1%Medium1.817926014095787https://leetcode.com/problems/combination-sum
15459Spiral Matrix II53.9%Medium1.8176193109460805https://leetcode.com/problems/spiral-matrix-ii
155317Shortest Distance from All Buildings41.4%Hard1.8109171432609883https://leetcode.com/problems/shortest-distance-from-all-buildings
156529Minesweeper59.1%Medium1.7898723201494031https://leetcode.com/problems/minesweeper
157169Majority Element58.7%Easy1.7889052208605918https://leetcode.com/problems/majority-element
158152Maximum Product Subarray31.7%Medium1.7713469853694581https://leetcode.com/problems/maximum-product-subarray
159503Next Greater Element II56.5%Medium1.770513630608183https://leetcode.com/problems/next-greater-element-ii
160210Course Schedule II40.7%Medium1.7702354394987208https://leetcode.com/problems/course-schedule-ii
161167Two Sum II - Input array is sorted54.1%Easy1.7588952422994573https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
16278Subsets62.0%Medium1.755791978967868https://leetcode.com/problems/subsets
163312Burst Balloons51.8%Hard1.7426298809449383https://leetcode.com/problems/burst-balloons
16488Merge Sorted Array39.4%Easy1.741132376248305https://leetcode.com/problems/merge-sorted-array
165315Count of Smaller Numbers After Self41.5%Hard1.7376152797037996https://leetcode.com/problems/count-of-smaller-numbers-after-self
166211Add and Search Word - Data structure design38.1%Medium1.727663895328723https://leetcode.com/problems/add-and-search-word-data-structure-design
167252Meeting Rooms54.6%Easy1.727286498219969https://leetcode.com/problems/meeting-rooms
16892Reverse Linked List II38.8%Medium1.7268015729532826https://leetcode.com/problems/reverse-linked-list-ii
1691155Number of Dice Rolls With Target Sum49.0%Medium1.7200707644102335https://leetcode.com/problems/number-of-dice-rolls-with-target-sum
170160Intersection of Two Linked Lists40.6%Easy1.7175192044428398https://leetcode.com/problems/intersection-of-two-linked-lists
171538Convert BST to Greater Tree55.4%Easy1.7154361234077207https://leetcode.com/problems/convert-bst-to-greater-tree
17236Valid Sudoku48.7%Medium1.7143211698041672https://leetcode.com/problems/valid-sudoku
173261Graph Valid Tree42.2%Medium1.7120554575780782https://leetcode.com/problems/graph-valid-tree
17441First Missing Positive32.0%Hard1.7077985883022846https://leetcode.com/problems/first-missing-positive
17575Sort Colors47.3%Medium1.7055667578592613https://leetcode.com/problems/sort-colors
176332Reconstruct Itinerary36.7%Medium1.70247908836567https://leetcode.com/problems/reconstruct-itinerary
177388Longest Absolute File Path41.8%Medium1.701920835619497https://leetcode.com/problems/longest-absolute-file-path
178980Unique Paths III73.3%Hard1.6945957207744073https://leetcode.com/problems/unique-paths-iii
17932Longest Valid Parentheses28.4%Hard1.6919770613401734https://leetcode.com/problems/longest-valid-parentheses
180128Longest Consecutive Sequence45.1%Hard1.6865841637000685https://leetcode.com/problems/longest-consecutive-sequence
181653Two Sum IV - Input is a BST55.5%Easy1.6840881035040853https://leetcode.com/problems/two-sum-iv-input-is-a-bst
182153Find Minimum in Rotated Sorted Array45.1%Medium1.6770877689648518https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
18346Permutations63.5%Medium1.6727146787726128https://leetcode.com/problems/permutations
18457Insert Interval33.5%Hard1.663668453758183https://leetcode.com/problems/insert-interval
185560Subarray Sum Equals K43.9%Medium1.6592537569720698https://leetcode.com/problems/subarray-sum-equals-k
186228Summary Ranges39.5%Medium1.6567376779326932https://leetcode.com/problems/summary-ranges
18719Remove Nth Node From End of List35.2%Medium1.65214258899559https://leetcode.com/problems/remove-nth-node-from-end-of-list
188815Bus Routes42.5%Hard1.6520112554791415https://leetcode.com/problems/bus-routes
189109Convert Sorted List to Binary Search Tree47.7%Medium1.6493576818898796https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
190177Nth Highest Salary31.4%Medium1.6455495908564486https://leetcode.com/problems/nth-highest-salary
191489Robot Room Cleaner69.7%Hard1.6324326136038003https://leetcode.com/problems/robot-room-cleaner
192268Missing Number51.7%Easy1.6320760079492722https://leetcode.com/problems/missing-number
193767Reorganize String48.7%Medium1.629188040780247https://leetcode.com/problems/reorganize-string
194123Best Time to Buy and Sell Stock III37.5%Hard1.6269507084661998https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
195496Next Greater Element I63.8%Easy1.6232949470955267https://leetcode.com/problems/next-greater-element-i
196179Largest Number28.8%Medium1.6163944622274604https://leetcode.com/problems/largest-number
197739Daily Temperatures63.3%Medium1.6160707692725675https://leetcode.com/problems/daily-temperatures
198135Candy31.6%Hard1.6085311570447844https://leetcode.com/problems/candy
199333Largest BST Subtree35.8%Medium1.6081890830491932https://leetcode.com/problems/largest-bst-subtree
200716Max Stack42.6%Easy1.5967072751794937https://leetcode.com/problems/max-stack
201983Minimum Cost For Tickets60.5%Medium1.5900124782015408https://leetcode.com/problems/minimum-cost-for-tickets
202284Peeking Iterator45.7%Medium1.5734095705907016https://leetcode.com/problems/peeking-iterator
203703Kth Largest Element in a Stream49.7%Easy1.5707712794799118https://leetcode.com/problems/kth-largest-element-in-a-stream
204403Frog Jump39.7%Hard1.5648607913227532https://leetcode.com/problems/frog-jump
205987Vertical Order Traversal of a Binary Tree36.6%Medium1.5645723589490914https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree
2061135Connecting Cities With Minimum Cost57.5%Medium1.55814461804655https://leetcode.com/problems/connecting-cities-with-minimum-cost
20724Swap Nodes in Pairs50.4%Medium1.5573641606589284https://leetcode.com/problems/swap-nodes-in-pairs
208437Path Sum III47.2%Medium1.5554113655450712https://leetcode.com/problems/path-sum-iii
209300Longest Increasing Subsequence42.6%Medium1.5490046156762238https://leetcode.com/problems/longest-increasing-subsequence
21085Maximal Rectangle37.7%Hard1.537804933809427https://leetcode.com/problems/maximal-rectangle
211456132 Pattern28.9%Medium1.525732992790649https://leetcode.com/problems/132-pattern
212141Linked List Cycle41.1%Easy1.522542660710357https://leetcode.com/problems/linked-list-cycle
213113Path Sum II46.7%Medium1.5150515928584396https://leetcode.com/problems/path-sum-ii
214285Inorder Successor in BST40.4%Medium1.510518743584091https://leetcode.com/problems/inorder-successor-in-bst
215373Find K Pairs with Smallest Sums36.7%Medium1.5084295594383275https://leetcode.com/problems/find-k-pairs-with-smallest-sums
216188Best Time to Buy and Sell Stock IV28.0%Hard1.5043549047564093https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv
217346Moving Average from Data Stream70.9%Easy1.5026900216652235https://leetcode.com/problems/moving-average-from-data-stream
218163Sum Closest46.0%Medium1.502292150830875https://leetcode.com/problems/3sum-closest
21970Climbing Stairs47.8%Easy1.4992054591551138https://leetcode.com/problems/climbing-stairs
22051N-Queens46.6%Hard1.4985525208443042https://leetcode.com/problems/n-queens
221556Next Greater Element III31.7%Medium1.4953904059628045https://leetcode.com/problems/next-greater-element-iii
222148Sort List42.3%Medium1.4930623365455966https://leetcode.com/problems/sort-list
223287Find the Duplicate Number55.5%Medium1.4924096601235335https://leetcode.com/problems/find-the-duplicate-number
224518Coin Change 250.2%Medium1.4888697222870522https://leetcode.com/problems/coin-change-2
225176Second Highest Salary31.6%Easy1.4884959036034955https://leetcode.com/problems/second-highest-salary
226120Triangle44.2%Medium1.484114863291384https://leetcode.com/problems/triangle
227184Sum33.7%Medium1.4782493997995902https://leetcode.com/problems/4sum
228270Closest Binary Search Tree Value48.5%Easy1.4782231041316831https://leetcode.com/problems/closest-binary-search-tree-value
229378Kth Smallest Element in a Sorted Matrix54.3%Medium1.4775268731337763https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
230540Single Element in a Sorted Array57.9%Medium1.4535722160879798https://leetcode.com/problems/single-element-in-a-sorted-array
231205Isomorphic Strings39.8%Easy1.4257801948697113https://leetcode.com/problems/isomorphic-strings
23263Unique Paths II34.6%Medium1.4252857596598822https://leetcode.com/problems/unique-paths-ii
2331044Longest Duplicate Substring31.9%Hard1.4233794786674083https://leetcode.com/problems/longest-duplicate-substring
23473Set Matrix Zeroes43.1%Medium1.412093837666145https://leetcode.com/problems/set-matrix-zeroes
235480Sliding Window Median37.2%Hard1.4100242881620002https://leetcode.com/problems/sliding-window-median
23668Text Justification27.7%Hard1.4086426277269546https://leetcode.com/problems/text-justification
237232Implement Queue using Stacks49.6%Easy1.405609167303699https://leetcode.com/problems/implement-queue-using-stacks
238628Maximum Product of Three Numbers47.1%Easy1.395625688548775https://leetcode.com/problems/maximum-product-of-three-numbers
239442Find All Duplicates in an Array67.8%Medium1.3879078561527354https://leetcode.com/problems/find-all-duplicates-in-an-array
240229Majority Element II35.6%Medium1.3878563920773275https://leetcode.com/problems/majority-element-ii
24114Longest Common Prefix35.4%Easy1.3846092304355875https://leetcode.com/problems/longest-common-prefix
242787Cheapest Flights Within K Stops39.3%Medium1.3785446949130122https://leetcode.com/problems/cheapest-flights-within-k-stops
243340Longest Substring with At Most K Distinct Characters44.1%Hard1.376802072444063https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
244325Maximum Size Subarray Sum Equals k46.8%Medium1.3718223285113562https://leetcode.com/problems/maximum-size-subarray-sum-equals-k
24544Wildcard Matching24.7%Hard1.3612330189496715https://leetcode.com/problems/wildcard-matching
246770Basic Calculator IV48.1%Hard1.349926716949016https://leetcode.com/problems/basic-calculator-iv
247136Single Number65.5%Easy1.3484621511838726https://leetcode.com/problems/single-number
248298Binary Tree Longest Consecutive Sequence47.1%Medium1.3468042514132559https://leetcode.com/problems/binary-tree-longest-consecutive-sequence
249329Longest Increasing Path in a Matrix43.4%Hard1.3445409323873254https://leetcode.com/problems/longest-increasing-path-in-a-matrix
250943Find the Shortest Superstring42.9%Hard1.3440770366239985https://leetcode.com/problems/find-the-shortest-superstring
251636Exclusive Time of Functions52.0%Medium1.337457727469282https://leetcode.com/problems/exclusive-time-of-functions
252369Plus One Linked List58.2%Medium1.3373637376483105https://leetcode.com/problems/plus-one-linked-list
253836Rectangle Overlap48.6%Easy1.3093762375177274https://leetcode.com/problems/rectangle-overlap
254104Maximum Depth of Binary Tree66.0%Easy1.3036892816187777https://leetcode.com/problems/maximum-depth-of-binary-tree
25528Implement strStr()34.5%Easy1.3004317080961885https://leetcode.com/problems/implement-strstr
256652Find Duplicate Subtrees50.2%Medium1.2947555287452976https://leetcode.com/problems/find-duplicate-subtrees
2576ZigZag Conversion36.3%Medium1.2945919484397381https://leetcode.com/problems/zigzag-conversion
258399Evaluate Division51.6%Medium1.2776123973076763https://leetcode.com/problems/evaluate-division
259516Longest Palindromic Subsequence53.2%Medium1.2647788135797973https://leetcode.com/problems/longest-palindromic-subsequence
260678Valid Parenthesis String31.0%Medium1.2621550094401792https://leetcode.com/problems/valid-parenthesis-string
26130Substring with Concatenation of All Words25.4%Hard1.2576954927329822https://leetcode.com/problems/substring-with-concatenation-of-all-words
262242Valid Anagram56.9%Easy1.2523912240430903https://leetcode.com/problems/valid-anagram
263349Intersection of Two Arrays62.5%Easy1.2500304774974387https://leetcode.com/problems/intersection-of-two-arrays
264688Knight Probability in Chessboard48.9%Medium1.2499797771635763https://leetcode.com/problems/knight-probability-in-chessboard
265981Time Based Key-Value Store53.1%Medium1.2475237673763375https://leetcode.com/problems/time-based-key-value-store
266344Reverse String68.5%Easy1.246073823348854https://leetcode.com/problems/reverse-string
2671011Capacity To Ship Packages Within D Days58.1%Medium1.2456439416601042https://leetcode.com/problems/capacity-to-ship-packages-within-d-days
268301Remove Invalid Parentheses43.3%Hard1.2420369009788985https://leetcode.com/problems/remove-invalid-parentheses
26929Divide Two Integers16.4%Medium1.2393242049042936https://leetcode.com/problems/divide-two-integers
270112Path Sum41.2%Easy1.229277243236903https://leetcode.com/problems/path-sum
2711038Binary Search Tree to Greater Sum Tree80.8%Medium1.2017796795353952https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
2721100Find K-Length Substrings With No Repeated Characters72.7%Medium1.184336829809077https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters
27350Pow(x;n)30.3%Medium1.1768920107434977https://leetcode.com/problems/powx-n
274997Find the Town Judge50.1%Easy1.1748732874596588https://leetcode.com/problems/find-the-town-judge
27537Sudoku Solver43.6%Hard1.1707049260761857https://leetcode.com/problems/sudoku-solver
276805Split Array With Same Average26.4%Hard1.1685097282854882https://leetcode.com/problems/split-array-with-same-average
277225Implement Stack using Queues45.1%Easy1.1607390767279342https://leetcode.com/problems/implement-stack-using-queues
278854K-Similar Strings38.2%Hard1.159451415301https://leetcode.com/problems/k-similar-strings
279230Kth Smallest Element in a BST60.2%Medium1.1554440075543555https://leetcode.com/problems/kth-smallest-element-in-a-bst
280721Accounts Merge48.8%Medium1.132047679382686https://leetcode.com/problems/accounts-merge
281622Design Circular Queue43.7%Medium1.1151322814092532https://leetcode.com/problems/design-circular-queue
282409Longest Palindrome50.3%Easy1.111534519336826https://leetcode.com/problems/longest-palindrome
28354201 Matrix39.8%Medium1.0983100368900796https://leetcode.com/problems/01-matrix
284726Number of Atoms49.0%Hard1.0953173927712572https://leetcode.com/problems/number-of-atoms
285426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium1.0936982738656806https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
286352Data Stream as Disjoint Intervals47.3%Hard1.08883225961447https://leetcode.com/problems/data-stream-as-disjoint-intervals
287794Valid Tic-Tac-Toe State32.6%Medium1.084013489246957https://leetcode.com/problems/valid-tic-tac-toe-state
288430Flatten a Multilevel Doubly Linked List55.1%Medium1.0759104468012752https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
289257Binary Tree Paths51.5%Easy1.0701785650709081https://leetcode.com/problems/binary-tree-paths
290130Surrounded Regions28.1%Medium1.0580786465917589https://leetcode.com/problems/surrounded-regions
291283Move Zeroes57.8%Easy1.0574179950057128https://leetcode.com/problems/move-zeroes
29294Binary Tree Inorder Traversal63.3%Medium1.0494187495898502https://leetcode.com/problems/binary-tree-inorder-traversal
293131Palindrome Partitioning47.5%Medium1.0478776380798687https://leetcode.com/problems/palindrome-partitioning
29481Search in Rotated Sorted Array II33.0%Medium1.0428016537891152https://leetcode.com/problems/search-in-rotated-sorted-array-ii
295187Repeated DNA Sequences38.9%Medium1.0291054104877544https://leetcode.com/problems/repeated-dna-sequences
296266Palindrome Permutation61.9%Easy1.0274940178688448https://leetcode.com/problems/palindrome-permutation
2977Reverse Integer25.8%Easy1.0261569402361814https://leetcode.com/problems/reverse-integer
298381Insert Delete GetRandom O(1) - Duplicates allowed34.1%Hard1.0261327161577256https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed
299498Diagonal Traverse48.2%Medium1.025668325492283https://leetcode.com/problems/diagonal-traverse
3001219Path with Maximum Gold65.1%Medium1.0200550109500872https://leetcode.com/problems/path-with-maximum-gold
301547Friend Circles58.6%Medium1.019483411931132https://leetcode.com/problems/friend-circles
30286Partition List41.5%Medium1.013118527145907https://leetcode.com/problems/partition-list
3031032Stream of Characters48.3%Hard0.9999747005961613https://leetcode.com/problems/stream-of-characters
304508Most Frequent Subtree Sum57.9%Medium0.9932954993707267https://leetcode.com/problems/most-frequent-subtree-sum
305226Invert Binary Tree65.0%Easy0.9901067136378103https://leetcode.com/problems/invert-binary-tree
306279Perfect Squares47.4%Medium0.9886113934537812https://leetcode.com/problems/perfect-squares
307181Employees Earning More Than Their Managers56.9%Easy0.985579855770324https://leetcode.com/problems/employees-earning-more-than-their-managers
308114Flatten Binary Tree to Linked List49.3%Medium0.9793142651665018https://leetcode.com/problems/flatten-binary-tree-to-linked-list
309647Palindromic Substrings60.6%Medium0.9683364874723026https://leetcode.com/problems/palindromic-substrings
310412Fizz Buzz62.3%Easy0.9624576401607463https://leetcode.com/problems/fizz-buzz
311108Convert Sorted Array to Binary Search Tree57.9%Easy0.9591890988977407https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
3121236Web Crawler64.3%Medium0.9555114450274365https://leetcode.com/problems/web-crawler
3131214Two Sum BSTs67.6%Medium0.9540069312030179https://leetcode.com/problems/two-sum-bsts
314993Cousins in Binary Tree52.0%Easy0.9498877429645217https://leetcode.com/problems/cousins-in-binary-tree
315635Design Log Storage System58.6%Medium0.9448109538225702https://leetcode.com/problems/design-log-storage-system
316186Reverse Words in a String II43.3%Medium0.9444616088408514https://leetcode.com/problems/reverse-words-in-a-string-ii
31761Rotate List30.0%Medium0.9394615984241457https://leetcode.com/problems/rotate-list
3181010Pairs of Songs With Total Durations Divisible by 6047.4%Easy0.9309111851217717https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60
31934Find First and Last Position of Element in Sorted Array36.2%Medium0.9308485059516647https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
320175Combine Two Tables60.8%Easy0.922030457564559https://leetcode.com/problems/combine-two-tables
321272Closest Binary Search Tree Value II50.5%Hard0.9186409092191087https://leetcode.com/problems/closest-binary-search-tree-value-ii
322847Shortest Path Visiting All Nodes52.0%Hard0.9162907318741551https://leetcode.com/problems/shortest-path-visiting-all-nodes
323243Shortest Word Distance61.0%Easy0.9156661872509607https://leetcode.com/problems/shortest-word-distance
324204Count Primes31.5%Easy0.9131630637003949https://leetcode.com/problems/count-primes
325142Linked List Cycle II37.3%Medium0.9090523469129539https://leetcode.com/problems/linked-list-cycle-ii
32669Sqrt(x)33.9%Easy0.9075570519054004https://leetcode.com/problems/sqrtx
327419Battleships in a Board70.0%Medium0.9066054261396913https://leetcode.com/problems/battleships-in-a-board
3289Palindrome Number48.4%Easy0.9052618550446729https://leetcode.com/problems/palindrome-number
329166Fraction to Recurring Decimal21.6%Medium0.9045168564220636https://leetcode.com/problems/fraction-to-recurring-decimal
3301046Last Stone Weight62.2%Easy0.9036810503424428https://leetcode.com/problems/last-stone-weight
331463Island Perimeter65.7%Easy0.8977583255430246https://leetcode.com/problems/island-perimeter
332406Queue Reconstruction by Height66.9%Medium0.8962159099714784https://leetcode.com/problems/queue-reconstruction-by-height
333978Longest Turbulent Subarray46.6%Medium0.8950133334268702https://leetcode.com/problems/longest-turbulent-subarray
334162Find Peak Element43.3%Medium0.8892686044386049https://leetcode.com/problems/find-peak-element
335366Find Leaves of Binary Tree70.6%Medium0.8839553512312186https://leetcode.com/problems/find-leaves-of-binary-tree
336690Employee Importance57.3%Easy0.8612515751610689https://leetcode.com/problems/employee-importance
337698Partition to K Equal Sum Subsets45.0%Medium0.8606112189040876https://leetcode.com/problems/partition-to-k-equal-sum-subsets
338528Random Pick with Weight43.9%Medium0.8537872448627086https://leetcode.com/problems/random-pick-with-weight
33938Count and Say44.6%Easy0.8451621282279073https://leetcode.com/problems/count-and-say
340986Interval List Intersections67.3%Medium0.8448005501549813https://leetcode.com/problems/interval-list-intersections
341699Falling Squares41.8%Hard0.8425641237370047https://leetcode.com/problems/falling-squares
342708Insert into a Sorted Circular Linked List31.6%Medium0.8412486926027506https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list
343316Remove Duplicate Letters35.8%Hard0.8355264862628056https://leetcode.com/problems/remove-duplicate-letters
344110Balanced Binary Tree43.5%Easy0.8264802107756979https://leetcode.com/problems/balanced-binary-tree
3451024Video Stitching49.2%Medium0.8252998676956634https://leetcode.com/problems/video-stitching
346428Serialize and Deserialize N-ary Tree59.4%Hard0.8248969236980369https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree
347443String Compression41.3%Easy0.8171356348259033https://leetcode.com/problems/string-compression
348402Remove K Digits28.4%Medium0.8014370748648341https://leetcode.com/problems/remove-k-digits
349361Bomb Enemy46.0%Medium0.7976598792954321https://leetcode.com/problems/bomb-enemy
350233Number of Digit One31.3%Hard0.795650018929816https://leetcode.com/problems/number-of-digit-one
351658Find K Closest Elements40.9%Medium0.7930910425507767https://leetcode.com/problems/find-k-closest-elements
352451Sort Characters By Frequency63.0%Medium0.7861677199821956https://leetcode.com/problems/sort-characters-by-frequency
353351Android Unlock Patterns48.4%Medium0.7857399673877702https://leetcode.com/problems/android-unlock-patterns
354350Intersection of Two Arrays II51.4%Easy0.7772102863639844https://leetcode.com/problems/intersection-of-two-arrays-ii
355632Smallest Range Covering Elements from K Lists52.4%Hard0.7767122589059875https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
356159Longest Substring with At Most Two Distinct Characters49.4%Medium0.771917623430825https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters
357843Guess the Word46.1%Hard0.7713993774596936https://leetcode.com/problems/guess-the-word
358421Maximum XOR of Two Numbers in an Array53.5%Medium0.7687845947655654https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array
359198House Robber42.0%Easy0.7668348963511045https://leetcode.com/problems/house-robber
360432All O`one Data Structure32.4%Hard0.7611889165572873https://leetcode.com/problems/all-oone-data-structure
361992Subarrays with K Different Integers48.6%Hard0.7610084034915754https://leetcode.com/problems/subarrays-with-k-different-integers
362785Is Graph Bipartite?47.5%Medium0.7560954548741816https://leetcode.com/problems/is-graph-bipartite
363280Wiggle Sort63.8%Medium0.7489731078762181https://leetcode.com/problems/wiggle-sort
364337House Robber III50.6%Medium0.7463018264794276https://leetcode.com/problems/house-robber-iii
365807Max Increase to Keep City Skyline83.7%Medium0.7460467230427119https://leetcode.com/problems/max-increase-to-keep-city-skyline
366465Optimal Account Balancing46.9%Hard0.7448354308022082https://leetcode.com/problems/optimal-account-balancing
367410Split Array Largest Sum44.5%Hard0.7441136241519729https://leetcode.com/problems/split-array-largest-sum
368189Rotate Array34.7%Easy0.7416200263554233https://leetcode.com/problems/rotate-array
369125Valid Palindrome36.7%Easy0.7351769408009121https://leetcode.com/problems/valid-palindrome
3701197Minimum Knight Moves36.1%Medium0.7348429454547184https://leetcode.com/problems/minimum-knight-moves
371662Maximum Width of Binary Tree41.0%Medium0.7347174711149875https://leetcode.com/problems/maximum-width-of-binary-tree
3721083Sales Analysis II50.5%Easy0.7337661087783554https://leetcode.com/problems/sales-analysis-ii
37383Remove Duplicates from Sorted List45.4%Easy0.730981926104529https://leetcode.com/problems/remove-duplicates-from-sorted-list
37440Combination Sum II48.2%Medium0.7232478059561983https://leetcode.com/problems/combination-sum-ii
3751215Stepping Numbers41.6%Medium0.7221347174331976https://leetcode.com/problems/stepping-numbers
376735Asteroid Collision41.0%Medium0.7215266298498505https://leetcode.com/problems/asteroid-collision
37782Remove Duplicates from Sorted List II36.8%Medium0.7214631006772332https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
378310Minimum Height Trees32.3%Medium0.7161015166290298https://leetcode.com/problems/minimum-height-trees
379737Sentence Similarity II45.8%Medium0.7142005897577777https://leetcode.com/problems/sentence-similarity-ii
380129Sum Root to Leaf Numbers49.1%Medium0.7121953755306398https://leetcode.com/problems/sum-root-to-leaf-numbers
381171Excel Sheet Column Number55.9%Easy0.7011365705934242https://leetcode.com/problems/excel-sheet-column-number
382328Odd Even Linked List55.7%Medium0.7005054248546695https://leetcode.com/problems/odd-even-linked-list
383617Merge Two Binary Trees74.1%Easy0.6951157871118873https://leetcode.com/problems/merge-two-binary-trees
3841429First Unique Number47.0%Medium0.6890063878939139https://leetcode.com/problems/first-unique-number
3851086High Five79.7%Easy0.6845809442085066https://leetcode.com/problems/high-five
386231Power of Two43.7%Easy0.682325628816767https://leetcode.com/problems/power-of-two
387525Contiguous Array42.8%Medium0.6818617943282788https://leetcode.com/problems/contiguous-array
38865Valid Number15.3%Hard0.6815191425648263https://leetcode.com/problems/valid-number
389151Reverse Words in a String21.9%Medium0.6738045182437734https://leetcode.com/problems/reverse-words-in-a-string
390164Maximum Gap35.5%Hard0.669776346792018https://leetcode.com/problems/maximum-gap
391356Line Reflection31.8%Medium0.6661590358422984https://leetcode.com/problems/line-reflection
392509Fibonacci Number67.2%Easy0.664818212517161https://leetcode.com/problems/fibonacci-number
393161One Edit Distance32.3%Medium0.6540741942599814https://leetcode.com/problems/one-edit-distance
394901Online Stock Span60.2%Medium0.6528732814220053https://leetcode.com/problems/online-stock-span
395202Happy Number50.4%Easy0.6446045105137912https://leetcode.com/problems/happy-number
3961229Meeting Scheduler52.7%Medium0.6314473591904302https://leetcode.com/problems/meeting-scheduler
397517Super Washing Machines38.3%Hard0.6257058997644127https://leetcode.com/problems/super-washing-machines
3981275Find Winner on a Tic Tac Toe Game52.8%Easy0.6257058997644127https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game
3991022Sum of Root To Leaf Binary Numbers67.2%Easy0.6177234187427034https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers
40090Subsets II47.1%Medium0.6039160468320026https://leetcode.com/problems/subsets-ii
401775Global and Local Inversions42.1%Medium0.6030598245224211https://leetcode.com/problems/global-and-local-inversions
40226Remove Duplicates from Sorted Array45.1%Easy0.599298406136https://leetcode.com/problems/remove-duplicates-from-sorted-array
403433Minimum Genetic Mutation41.8%Medium0.5978370007556205https://leetcode.com/problems/minimum-genetic-mutation
404137Single Number II52.4%Medium0.5915614413251872https://leetcode.com/problems/single-number-ii
405184Department Highest Salary36.7%Medium0.5872611788154078https://leetcode.com/problems/department-highest-salary
4061004Max Consecutive Ones III59.1%Medium0.5826782301065547https://leetcode.com/problems/max-consecutive-ones-iii
407407Trapping Rain Water II42.4%Hard0.5801132920909243https://leetcode.com/problems/trapping-rain-water-ii
408377Combination Sum IV45.3%Medium0.5650260806636703https://leetcode.com/problems/combination-sum-iv
409106Construct Binary Tree from Inorder and Postorder Traversal47.2%Medium0.5648490640754893https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
4101166Design File System56.8%Medium0.5632107588532816https://leetcode.com/problems/design-file-system
411634Find the Derangement of An Array40.1%Medium0.5623075796011341https://leetcode.com/problems/find-the-derangement-of-an-array
412725Split Linked List in Parts52.2%Medium0.5618008463726617https://leetcode.com/problems/split-linked-list-in-parts
413729My Calendar I51.8%Medium0.5604105952365035https://leetcode.com/problems/my-calendar-i
414132Palindrome Partitioning II30.2%Hard0.5586434981164835https://leetcode.com/problems/palindrome-partitioning-ii
415929Unique Email Addresses67.4%Easy0.5581981986897957https://leetcode.com/problems/unique-email-addresses
416250Count Univalue Subtrees52.0%Medium0.558033091746432https://leetcode.com/problems/count-univalue-subtrees
417118Pascal's Triangle52.5%Easy0.5577273046973674https://leetcode.com/problems/pascals-triangle
418217Contains Duplicate56.0%Easy0.5572210986447601https://leetcode.com/problems/contains-duplicate
41960Permutation Sequence38.4%Hard0.556508587092674https://leetcode.com/problems/permutation-sequence
420296Best Meeting Point57.5%Hard0.5549418894757348https://leetcode.com/problems/best-meeting-point
42166Plus One43.0%Easy0.5511076914704698https://leetcode.com/problems/plus-one
422355Design Twitter30.3%Medium0.5507956812780529https://leetcode.com/problems/design-twitter
423715Range Module38.5%Hard0.537142932083364https://leetcode.com/problems/range-module
424765Couples Holding Hands54.3%Hard0.5357102670818683https://leetcode.com/problems/couples-holding-hands
425611Valid Triangle Number48.4%Medium0.5280674302004967https://leetcode.com/problems/valid-triangle-number
426299Bulls and Cows42.4%Easy0.5254422055488193https://leetcode.com/problems/bulls-and-cows
427415Add Strings47.5%Easy0.523163516336748https://leetcode.com/problems/add-strings
428209Minimum Size Subarray Sum38.2%Medium0.521415737867371https://leetcode.com/problems/minimum-size-subarray-sum
429557Reverse Words in a String III69.8%Easy0.517303044429081https://leetcode.com/problems/reverse-words-in-a-string-iii
430719Find K-th Smallest Pair Distance31.5%Hard0.516327700919974https://leetcode.com/problems/find-k-th-smallest-pair-distance
431335Self Crossing28.0%Hard0.5141813316129631https://leetcode.com/problems/self-crossing
432393UTF-8 Validation37.5%Medium0.5140462384660329https://leetcode.com/problems/utf-8-validation
433192Word Frequency25.8%Medium0.5129680991436376https://leetcode.com/problems/word-frequency
4341057Campus Bikes57.7%Medium0.50861323348305https://leetcode.com/problems/campus-bikes
435701Insert into a Binary Search Tree77.7%Medium0.5073781550220846https://leetcode.com/problems/insert-into-a-binary-search-tree
436771Jewels and Stones86.4%Easy0.5067229036260024https://leetcode.com/problems/jewels-and-stones
437686Repeated String Match32.3%Easy0.5010216236693699https://leetcode.com/problems/repeated-string-match
438541Reverse String II48.4%Easy0.4958227557080944https://leetcode.com/problems/reverse-string-ii
439637Average of Levels in Binary Tree63.1%Easy0.49521712604881535https://leetcode.com/problems/average-of-levels-in-binary-tree
440163Missing Ranges24.3%Medium0.49182267664037527https://leetcode.com/problems/missing-ranges
441743Network Delay Time45.0%Medium0.48760195419344177https://leetcode.com/problems/network-delay-time
442365Water and Jug Problem30.6%Medium0.4868470419092762https://leetcode.com/problems/water-and-jug-problem
443319Bulb Switcher45.4%Medium0.47849024312305427https://leetcode.com/problems/bulb-switcher
444395Longest Substring with At Least K Repeating Characters41.4%Medium0.47817067841927885https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
445339Nested List Weight Sum74.0%Easy0.47534247019457115https://leetcode.com/problems/nested-list-weight-sum
4461031Maximum Sum of Two Non-Overlapping Subarrays57.9%Medium0.4730707544530479https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays
4471122Relative Sort Array67.7%Easy0.47087303251728985https://leetcode.com/problems/relative-sort-array
44889Gray Code49.1%Medium0.4705903115740917https://leetcode.com/problems/gray-code
449111Minimum Depth of Binary Tree37.4%Easy0.46967145850692316https://leetcode.com/problems/minimum-depth-of-binary-tree
450371Sum of Two Integers50.7%Medium0.46902935876434837https://leetcode.com/problems/sum-of-two-integers
451558Logical OR of Two Binary Grids Represented as Quad-Trees44.6%Medium0.46813621507094005https://leetcode.com/problems/logical-or-of-two-binary-grids-represented-as-quad-trees
452844Backspace String Compare46.4%Easy0.46741819242485527https://leetcode.com/problems/backspace-string-compare
453354Russian Doll Envelopes35.6%Hard0.4663991837410869https://leetcode.com/problems/russian-doll-envelopes
454773Sliding Puzzle59.3%Hard0.4639613147897729https://leetcode.com/problems/sliding-puzzle
4551161Maximum Level Sum of a Binary Tree72.2%Medium0.4628414913460726https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree
456413Arithmetic Slices57.9%Medium0.45994965206977856https://leetcode.com/problems/arithmetic-slices
457515Find Largest Value in Each Tree Row61.1%Medium0.4594054982539122https://leetcode.com/problems/find-largest-value-in-each-tree-row
458427Construct Quad Tree61.4%Medium0.45857493342211275https://leetcode.com/problems/construct-quad-tree
459450Delete Node in a BST43.1%Medium0.44849234002437544https://leetcode.com/problems/delete-node-in-a-bst
460100Same Tree53.4%Easy0.44698994480168297https://leetcode.com/problems/same-tree
461468Validate IP Address24.1%Medium0.44558510189758965https://leetcode.com/problems/validate-ip-address
462305Number of Islands II40.1%Hard0.44293784687708265https://leetcode.com/problems/number-of-islands-ii
4631002Find Common Characters67.6%Easy0.4408703809219226https://leetcode.com/problems/find-common-characters
4641172Dinner Plate Stacks38.2%Hard0.44059619962982216https://leetcode.com/problems/dinner-plate-stacks
4651360Number of Days Between Two Dates48.8%Easy0.44059619962982216https://leetcode.com/problems/number-of-days-between-two-dates
4661019Next Greater Node In Linked List57.4%Medium0.4355749095795348https://leetcode.com/problems/next-greater-node-in-linked-list
467473Matchsticks to Square37.7%Medium0.42800127313057745https://leetcode.com/problems/matchsticks-to-square
468727Minimum Window Subsequence41.8%Hard0.4254657748148339https://leetcode.com/problems/minimum-window-subsequence
469183Customers Who Never Order53.4%Easy0.4236099358143671https://leetcode.com/problems/customers-who-never-order
4701130Minimum Cost Tree From Leaf Values66.1%Medium0.4220078582401725https://leetcode.com/problems/minimum-cost-tree-from-leaf-values
471683K Empty Slots35.6%Hard0.41948151008170015https://leetcode.com/problems/k-empty-slots
47243Multiply Strings33.9%Medium0.41658056324552584https://leetcode.com/problems/multiply-strings
473849Maximize Distance to Closest Person42.6%Easy0.414728332240037https://leetcode.com/problems/maximize-distance-to-closest-person
474178Rank Scores45.8%Medium0.41347358083650193https://leetcode.com/problems/rank-scores
475222Count Complete Tree Nodes46.8%Medium0.4108610156284672https://leetcode.com/problems/count-complete-tree-nodes
476304Range Sum Query 2D - Immutable38.6%Medium0.40837971232824516https://leetcode.com/problems/range-sum-query-2d-immutable
4771094Car Pooling56.7%Medium0.4068302960335043https://leetcode.com/problems/car-pooling
4781066Campus Bikes II54.2%Medium0.40032370860774574https://leetcode.com/problems/campus-bikes-ii
479416Partition Equal Subset Sum43.7%Medium0.3992663644674847https://leetcode.com/problems/partition-equal-subset-sum
4801335Minimum Difficulty of a Job Schedule57.6%Hard0.3963047387095001https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule
481241Different Ways to Add Parentheses55.2%Medium0.3951916126129905https://leetcode.com/problems/different-ways-to-add-parentheses
482145Binary Tree Postorder Traversal55.0%Hard0.39389551485438606https://leetcode.com/problems/binary-tree-postorder-traversal
4831373Maximum Sum BST in Binary Tree40.2%Hard0.39318708633975535https://leetcode.com/problems/maximum-sum-bst-in-binary-tree
484687Longest Univalue Path36.2%Easy0.3931020393744504https://leetcode.com/problems/longest-univalue-path
48547Permutations II46.4%Medium0.38954315509757903https://leetcode.com/problems/permutations-ii
4861188Design Bounded Blocking Queue70.5%Medium0.3828597229337993https://leetcode.com/problems/design-bounded-blocking-queue
487237Delete Node in a Linked List63.8%Easy0.3822006606760044https://leetcode.com/problems/delete-node-in-a-linked-list
4881074Number of Submatrices That Sum to Target60.4%Hard0.37929539037477966https://leetcode.com/problems/number-of-submatrices-that-sum-to-target
489646Maximum Length of Pair Chain51.9%Medium0.378500746469809https://leetcode.com/problems/maximum-length-of-pair-chain
490924Minimize Malware Spread42.0%Hard0.3764775712349121https://leetcode.com/problems/minimize-malware-spread
491321Create Maximum Number27.0%Hard0.3764775712349121https://leetcode.com/problems/create-maximum-number
4921084Sales Analysis III54.3%Easy0.37640587636823386https://leetcode.com/problems/sales-analysis-iii
493567Permutation in String44.4%Medium0.3753991491719517https://leetcode.com/problems/permutation-in-string
494307Range Sum Query - Mutable34.6%Medium0.3752202920857025https://leetcode.com/problems/range-sum-query-mutable
495969Pancake Sorting67.5%Medium0.37351350830156205https://leetcode.com/problems/pancake-sorting
496889Construct Binary Tree from Preorder and Postorder Traversal66.2%Medium0.3731218633879398https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal
497115Distinct Subsequences38.3%Hard0.3722680298677468https://leetcode.com/problems/distinct-subsequences
4981081Smallest Subsequence of Distinct Characters50.4%Medium0.3663623820944218https://leetcode.com/problems/smallest-subsequence-of-distinct-characters
4991143Longest Common Subsequence58.4%Medium0.3610805787559445https://leetcode.com/problems/longest-common-subsequence
500214Shortest Palindrome29.8%Hard0.35493429946094834https://leetcode.com/problems/shortest-palindrome
501345Reverse Vowels of a String44.2%Easy0.35407324785389366https://leetcode.com/problems/reverse-vowels-of-a-string
502783Minimum Distance Between BST Nodes52.6%Easy0.35395059925228556https://leetcode.com/problems/minimum-distance-between-bst-nodes
503264Ugly Number II42.0%Medium0.3507924879588455https://leetcode.com/problems/ugly-number-ii
504180Consecutive Numbers39.7%Medium0.3460521052264211https://leetcode.com/problems/consecutive-numbers
505618Students Report By Geography55.0%Hard0.34560472018448546https://leetcode.com/problems/students-report-by-geography
506107Binary Tree Level Order Traversal II53.5%Easy0.3453169851749328https://leetcode.com/problems/binary-tree-level-order-traversal-ii
507905Sort Array By Parity74.1%Easy0.341971477151261https://leetcode.com/problems/sort-array-by-parity
508860Lemonade Change51.6%Easy0.34144324934323333https://leetcode.com/problems/lemonade-change
509581Shortest Unsorted Continuous Subarray31.1%Easy0.34097135874647316https://leetcode.com/problems/shortest-unsorted-continuous-subarray
510334Increasing Triplet Subsequence40.0%Medium0.33981980987317617https://leetcode.com/problems/increasing-triplet-subsequence
511390Elimination Game44.5%Medium0.33790695709687324https://leetcode.com/problems/elimination-game
512579Find Cumulative Salary of an Employee37.0%Hard0.3371880562652357https://leetcode.com/problems/find-cumulative-salary-of-an-employee
513262Trips and Users32.7%Hard0.3362391635517509https://leetcode.com/problems/trips-and-users
5141405Longest Happy String49.0%Medium0.3360157198362929https://leetcode.com/problems/longest-happy-string
515420Strong Password Checker14.0%Hard0.3319626461152379https://leetcode.com/problems/strong-password-checker
516827Making A Large Island45.7%Hard0.32879599515977564https://leetcode.com/problems/making-a-large-island
5171315Sum of Nodes with Even-Valued Grandparent83.5%Medium0.3281156420302715https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent
5181062Longest Repeating Substring57.2%Medium0.32609152056665214https://leetcode.com/problems/longest-repeating-substring
519447Number of Boomerangs51.8%Easy0.3247560447092981https://leetcode.com/problems/number-of-boomerangs
520532K-diff Pairs in an Array31.6%Easy0.32423966818557853https://leetcode.com/problems/k-diff-pairs-in-an-array
5211311Get Watched Videos by Your Friends43.1%Medium0.320742934712669https://leetcode.com/problems/get-watched-videos-by-your-friends
522290Word Pattern37.0%Easy0.31921312869964363https://leetcode.com/problems/word-pattern
523876Middle of the Linked List68.4%Easy0.31848852159290625https://leetcode.com/problems/middle-of-the-linked-list
524710Random Pick with Blacklist32.5%Hard0.3161972427598021https://leetcode.com/problems/random-pick-with-blacklist
525918Maximum Sum Circular Subarray33.7%Medium0.31591744682247913https://leetcode.com/problems/maximum-sum-circular-subarray
526191Number of 1 Bits49.8%Easy0.31300105238363085https://leetcode.com/problems/number-of-1-bits
527873Length of Longest Fibonacci Subsequence48.0%Medium0.31191034127655376https://leetcode.com/problems/length-of-longest-fibonacci-subsequence
528586Customer Placing the Largest Number of Orders73.0%Easy0.31151852060629215https://leetcode.com/problems/customer-placing-the-largest-number-of-orders
529383Ransom Note53.1%Easy0.3074846997479606https://leetcode.com/problems/ransom-note
530174Dungeon Game32.3%Hard0.3059581624329951https://leetcode.com/problems/dungeon-game
531657Robot Return to Origin73.5%Easy0.30573014232348383https://leetcode.com/problems/robot-return-to-origin
532841Keys and Rooms64.3%Medium0.29751446360416467https://leetcode.com/problems/keys-and-rooms
5331244Design A Leaderboard60.7%Medium0.29681946470121906https://leetcode.com/problems/design-a-leaderboard
534938Range Sum of BST81.3%Easy0.29622071217852625https://leetcode.com/problems/range-sum-of-bst
53595Unique Binary Search Trees II40.6%Medium0.2958298345782864https://leetcode.com/problems/unique-binary-search-trees-ii
536203Remove Linked List Elements38.6%Easy0.2939088371982251https://leetcode.com/problems/remove-linked-list-elements
537359Logger Rate Limiter70.8%Easy0.2929871246814741https://leetcode.com/problems/logger-rate-limiter
538919Complete Binary Tree Inserter57.3%Medium0.2914344220703314https://leetcode.com/problems/complete-binary-tree-inserter
539796Rotate String49.6%Easy0.28922092887241174https://leetcode.com/problems/rotate-string
540559Maximum Depth of N-ary Tree68.7%Easy0.28802684059861955https://leetcode.com/problems/maximum-depth-of-n-ary-tree
541158Read N Characters Given Read4 II - Call multiple times33.8%Hard0.2815251347893198https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times
5421104Path In Zigzag Labelled Binary Tree72.0%Medium0.2805718342692762https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree
543382Linked List Random Node52.1%Medium0.2802157173642045https://leetcode.com/problems/linked-list-random-node
544732My Calendar III60.0%Hard0.27958486221916157https://leetcode.com/problems/my-calendar-iii
5451007Minimum Domino Rotations For Equal Row50.0%Medium0.27549355590928376https://leetcode.com/problems/minimum-domino-rotations-for-equal-row
546244Shortest Word Distance II52.3%Medium0.2752286113804943https://leetcode.com/problems/shortest-word-distance-ii
54777Combinations54.7%Medium0.2744115848838137https://leetcode.com/problems/combinations
548414Third Maximum Number30.5%Easy0.2737911401418798https://leetcode.com/problems/third-maximum-number
5491108Defanging an IP Address87.5%Easy0.27075020558154145https://leetcode.com/problems/defanging-an-ip-address
5501013Partition Array Into Three Parts With Equal Sum51.8%Easy0.26329061932762177https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum
551119Pascal's Triangle II49.0%Easy0.26169674611472327https://leetcode.com/problems/pascals-triangle-ii
5521139Largest 1-Bordered Square47.5%Medium0.26159729523649006https://leetcode.com/problems/largest-1-bordered-square
553746Min Cost Climbing Stairs50.3%Easy0.2611871459932078https://leetcode.com/problems/min-cost-climbing-stairs
554453Minimum Moves to Equal Array Elements50.2%Easy0.2605310833858301https://leetcode.com/problems/minimum-moves-to-equal-array-elements
555466Count The Repetitions28.2%Hard0.2561688067457042https://leetcode.com/problems/count-the-repetitions
556570Managers with at Least 5 Direct Reports66.0%Medium0.2553466918088445https://leetcode.com/problems/managers-with-at-least-5-direct-reports
557609Find Duplicate File in System59.5%Medium0.25388017696233983https://leetcode.com/problems/find-duplicate-file-in-system
558762Prime Number of Set Bits in Binary Representation63.2%Easy0.24779329788232723https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation
559368Largest Divisible Subset38.0%Medium0.24478743843120496https://leetcode.com/problems/largest-divisible-subset
560881Boats to Save People46.8%Medium0.24320527953164725https://leetcode.com/problems/boats-to-save-people
561452Minimum Number of Arrows to Burst Balloons49.6%Medium0.23843368813228313https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons
562731My Calendar II49.1%Medium0.2363887780642304https://leetcode.com/problems/my-calendar-ii
5631047Remove All Adjacent Duplicates In String68.6%Easy0.2360081947291865https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
564779K-th Symbol in Grammar37.2%Medium0.23530220106260638https://leetcode.com/problems/k-th-symbol-in-grammar
5651270All People Report to the Given Manager87.1%Medium0.23499359123170555https://leetcode.com/problems/all-people-report-to-the-given-manager
566507Perfect Number35.5%Easy0.2349381278070467https://leetcode.com/problems/perfect-number
56735Search Insert Position42.6%Easy0.23269259712738788https://leetcode.com/problems/search-insert-position
568397Integer Replacement32.9%Medium0.2322522675124501https://leetcode.com/problems/integer-replacement
569811Subdomain Visit Count69.9%Easy0.22553001977328802https://leetcode.com/problems/subdomain-visit-count
570311Sparse Matrix Multiplication61.9%Medium0.22538822116803361https://leetcode.com/problems/sparse-matrix-multiplication
571939Minimum Area Rectangle51.8%Medium0.2169226914391073https://leetcode.com/problems/minimum-area-rectangle
572435Non-overlapping Intervals42.9%Medium0.21564992524002305https://leetcode.com/problems/non-overlapping-intervals
573669Trim a Binary Search Tree63.0%Easy0.21245865121419338https://leetcode.com/problems/trim-a-binary-search-tree
574626Exchange Seats62.3%Medium0.21032769554231237https://leetcode.com/problems/exchange-seats
575741Cherry Pickup33.9%Hard0.20909179785855941https://leetcode.com/problems/cherry-pickup
576862Shortest Subarray with Sum at Least K24.6%Hard0.20824207700141184https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k
5771249Minimum Remove to Make Valid Parentheses62.5%Medium0.20778369616335468https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses
5781202Smallest String With Swaps46.5%Medium0.2071597101203954https://leetcode.com/problems/smallest-string-with-swaps
579604Design Compressed String Iterator37.5%Easy0.20585205420414873https://leetcode.com/problems/design-compressed-string-iterator
5801008Construct Binary Search Tree from Preorder Traversal78.4%Medium0.2053974398608136https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
5811254Number of Closed Islands60.5%Medium0.20312468442371787https://leetcode.com/problems/number-of-closed-islands
5821375Bulb Switcher III62.6%Medium0.19622624370172712https://leetcode.com/problems/bulb-switcher-iii
5831060Missing Element in Sorted Array54.5%Medium0.1950605825713844https://leetcode.com/problems/missing-element-in-sorted-array
584601Human Traffic of Stadium41.7%Hard0.19431370583921848https://leetcode.com/problems/human-traffic-of-stadium
5851198Find Smallest Common Element in All Rows74.9%Medium0.19105523676270922https://leetcode.com/problems/find-smallest-common-element-in-all-rows
586756Pyramid Transition Matrix54.6%Medium0.19105523676270922https://leetcode.com/problems/pyramid-transition-matrix
587358Rearrange String k Distance Apart34.9%Hard0.19004360288786493https://leetcode.com/problems/rearrange-string-k-distance-apart
588995Minimum Number of K Consecutive Bit Flips46.8%Hard0.19004360288786493https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips
589864Shortest Path to Get All Keys40.1%Hard0.18924199963852842https://leetcode.com/problems/shortest-path-to-get-all-keys
590549Binary Tree Longest Consecutive Sequence II47.0%Medium0.1884471502206373https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii
591900RLE Iterator53.5%Medium0.1884471502206373https://leetcode.com/problems/rle-iterator
592681Next Closest Time45.0%Medium0.18812615225992188https://leetcode.com/problems/next-closest-time
593684Redundant Connection57.4%Medium0.18726735344577217https://leetcode.com/problems/redundant-connection
594219Contains Duplicate II37.7%Easy0.18696862869341266https://leetcode.com/problems/contains-duplicate-ii
595792Number of Matching Subsequences47.4%Medium0.18571714579509285https://leetcode.com/problems/number-of-matching-subsequences
596852Peak Index in a Mountain Array71.6%Easy0.18496356625679328https://leetcode.com/problems/peak-index-in-a-mountain-array
597536Construct Binary Tree from String48.3%Medium0.18195193934380316https://leetcode.com/problems/construct-binary-tree-from-string
5981153String Transforms Into Another String35.8%Hard0.1816986978513639https://leetcode.com/problems/string-transforms-into-another-string
5991245Tree Diameter60.1%Medium0.17869178874337593https://leetcode.com/problems/tree-diameter
600871Minimum Number of Refueling Stops31.4%Hard0.1769307081590782https://leetcode.com/problems/minimum-number-of-refueling-stops
601486Predict the Winner47.9%Medium0.17647417648741714https://leetcode.com/problems/predict-the-winner
6021027Longest Arithmetic Sequence53.4%Medium0.17589066646366422https://leetcode.com/problems/longest-arithmetic-sequence
603977Squares of a Sorted Array72.1%Easy0.17482111400082578https://leetcode.com/problems/squares-of-a-sorted-array
604523Continuous Subarray Sum24.6%Medium0.1741156174236314https://leetcode.com/problems/continuous-subarray-sum
605670Maximum Swap43.6%Medium0.1735948056557174https://leetcode.com/problems/maximum-swap
6061248Count Number of Nice Subarrays56.4%Medium0.17228309044709728https://leetcode.com/problems/count-number-of-nice-subarrays
607561Array Partition I72.0%Easy0.1718099871189421https://leetcode.com/problems/array-partition-i
608856Score of Parentheses60.5%Medium0.17135825199668508https://leetcode.com/problems/score-of-parentheses
609707Design Linked List24.5%Medium0.1704321711045546https://leetcode.com/problems/design-linked-list
6101162As Far from Land as Possible43.5%Medium0.16935823314801637https://leetcode.com/problems/as-far-from-land-as-possible
6111430Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree44.8%Medium0.16917873135476025https://leetcode.com/problems/check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree
6121026Maximum Difference Between Node and Ancestor66.0%Medium0.16783472482771206https://leetcode.com/problems/maximum-difference-between-node-and-ancestor
613963Minimum Area Rectangle II50.9%Medium0.16635770580494058https://leetcode.com/problems/minimum-area-rectangle-ii
614493Reverse Pairs25.2%Hard0.16229864091884685https://leetcode.com/problems/reverse-pairs
6151048Longest String Chain54.7%Medium0.1620789500230524https://leetcode.com/problems/longest-string-chain
616338Counting Bits69.5%Medium0.16135546223447686https://leetcode.com/problems/counting-bits
617720Longest Word in Dictionary48.2%Easy0.16082720489992372https://leetcode.com/problems/longest-word-in-dictionary
618404Sum of Left Leaves50.9%Easy0.15911645633949173https://leetcode.com/problems/sum-of-left-leaves
619724Find Pivot Index44.0%Easy0.15773063591797515https://leetcode.com/problems/find-pivot-index
620539Minimum Time Difference51.5%Medium0.1560250946216086https://leetcode.com/problems/minimum-time-difference
621979Distribute Coins in Binary Tree68.9%Medium0.15348688956060175https://leetcode.com/problems/distribute-coins-in-binary-tree
6221242Web Crawler Multithreaded45.9%Medium0.14953173397096375https://leetcode.com/problems/web-crawler-multithreaded
6231395Count Number of Teams82.0%Medium0.14944218199941725https://leetcode.com/problems/count-number-of-teams
624951Flip Equivalent Binary Trees65.8%Medium0.14837588033337445https://leetcode.com/problems/flip-equivalent-binary-trees
625942DI String Match72.6%Easy0.14637953510237162https://leetcode.com/problems/di-string-match
626213House Robber II36.5%Medium0.14496687187568924https://leetcode.com/problems/house-robber-ii
627714Best Time to Buy and Sell Stock with Transaction Fee54.7%Medium0.14277339081142018https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee
628376Wiggle Subsequence39.6%Medium0.13923405573670475https://leetcode.com/problems/wiggle-subsequence
629673Number of Longest Increasing Subsequence35.7%Medium0.13850969523609932https://leetcode.com/problems/number-of-longest-increasing-subsequence
6301005Maximize Sum Of Array After K Negations51.3%Easy0.13804422079620546https://leetcode.com/problems/maximize-sum-of-array-after-k-negations
631855Exam Room43.1%Medium0.13804422079620546https://leetcode.com/problems/exam-room
632702Search in a Sorted Array of Unknown Size66.9%Medium0.13783247452391326https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size
633429N-ary Tree Level Order Traversal65.0%Medium0.13727657783562877https://leetcode.com/problems/n-ary-tree-level-order-traversal
634392Is Subsequence49.2%Easy0.13635210822080704https://leetcode.com/problems/is-subsequence
6351479Sales by Day of the Week83.4%Hard0.1348842676899421https://leetcode.com/problems/sales-by-day-of-the-week
6361160Find Words That Can Be Formed by Characters67.4%Easy0.13367440299301808https://leetcode.com/problems/find-words-that-can-be-formed-by-characters
637309Best Time to Buy and Sell Stock with Cooldown47.4%Medium0.1308880619194785https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown
638958Check Completeness of a Binary Tree52.1%Medium0.12884496089089562https://leetcode.com/problems/check-completeness-of-a-binary-tree
639974Subarray Sums Divisible by K48.9%Medium0.12838116664820678https://leetcode.com/problems/subarray-sums-divisible-by-k
6401117Building H2O52.6%Medium0.12796988096337653https://leetcode.com/problems/building-h2o
6411059All Paths from Source Lead to Destination44.7%Medium0.12675170563914387https://leetcode.com/problems/all-paths-from-source-lead-to-destination
642475Heaters33.1%Easy0.12639521210572593https://leetcode.com/problems/heaters
6431233Remove Sub-Folders from the Filesystem59.5%Medium0.12412606741381713https://leetcode.com/problems/remove-sub-folders-from-the-filesystem
644621Task Scheduler50.1%Medium0.12387972474581618https://leetcode.com/problems/task-scheduler
645890Find and Replace Pattern73.4%Medium0.12361395596717664https://leetcode.com/problems/find-and-replace-pattern
646912Sort an Array63.9%Medium0.12293768624504794https://leetcode.com/problems/sort-an-array
647654Maximum Binary Tree79.9%Medium0.1223420071097352https://leetcode.com/problems/maximum-binary-tree
6481114Print in Order65.7%Easy0.12136085700426744https://leetcode.com/problems/print-in-order
649784Letter Case Permutation64.6%Medium0.12039533767007705https://leetcode.com/problems/letter-case-permutation
650839Similar String Groups38.6%Hard0.11934675763256619https://leetcode.com/problems/similar-string-groups
651904Fruit Into Baskets42.5%Medium0.11884814773398159https://leetcode.com/problems/fruit-into-baskets
6521299Replace Elements with Greatest Element on Right Side75.4%Easy0.11806716692694107https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side
6531179Reformat Department Table80.6%Easy0.11735060321721236https://leetcode.com/problems/reformat-department-table
654144Binary Tree Preorder Traversal55.7%Medium0.11676314775563798https://leetcode.com/problems/binary-tree-preorder-traversal
65567924 Game46.4%Hard0.11641035184441127https://leetcode.com/problems/24-game
65667Add Binary45.2%Easy0.11349055756044761https://leetcode.com/problems/add-binary
657671Second Minimum Node In a Binary Tree42.7%Easy0.11343592966337171https://leetcode.com/problems/second-minimum-node-in-a-binary-tree
6581068Product Sales Analysis I83.1%Easy0.11247798342669027https://leetcode.com/problems/product-sales-analysis-i
659842Split Array into Fibonacci Sequence36.3%Medium0.1118483001365689https://leetcode.com/problems/split-array-into-fibonacci-sequence
660196Delete Duplicate Emails41.1%Easy0.111723209445655https://leetcode.com/problems/delete-duplicate-emails
661742Closest Leaf in a Binary Tree43.6%Medium0.11060987154397002https://leetcode.com/problems/closest-leaf-in-a-binary-tree
662966Vowel Spellchecker47.2%Medium0.10676797542570607https://leetcode.com/problems/vowel-spellchecker
663249Group Shifted Strings55.1%Medium0.10612998860684858https://leetcode.com/problems/group-shifted-strings
664172Factorial Trailing Zeroes37.8%Easy0.10582552380384787https://leetcode.com/problems/factorial-trailing-zeroes
6651266Minimum Time Visiting All Points79.6%Easy0.10382761269697846https://leetcode.com/problems/minimum-time-visiting-all-points
666396Rotate Function36.3%Medium0.10345133738802471https://leetcode.com/problems/rotate-function
667267Palindrome Permutation II36.4%Medium0.10345133738802471https://leetcode.com/problems/palindrome-permutation-ii
668485Max Consecutive Ones54.6%Easy0.10247866928293739https://leetcode.com/problems/max-consecutive-ones
66927Remove Element48.2%Easy0.1022417784451716https://leetcode.com/problems/remove-element
6701110Delete Nodes And Return Forest67.0%Medium0.09952518917751453https://leetcode.com/problems/delete-nodes-and-return-forest
671661Image Smoother51.5%Easy0.09933718986563198https://leetcode.com/problems/image-smoother
6721023Camelcase Matching57.0%Medium0.09860197680453955https://leetcode.com/problems/camelcase-matching
673461Hamming Distance72.8%Easy0.09762873497741681https://leetcode.com/problems/hamming-distance
674752Open the Lock51.8%Medium0.09491410658218381https://leetcode.com/problems/open-the-lock
675605Can Place Flowers31.6%Easy0.09485779345867706https://leetcode.com/problems/can-place-flowers
676826Most Profit Assigning Work38.5%Medium0.09287412500644375https://leetcode.com/problems/most-profit-assigning-work
677367Valid Perfect Square41.7%Easy0.09021620582372886https://leetcode.com/problems/valid-perfect-square
678791Custom Sort String65.7%Medium0.0900495525024912https://leetcode.com/problems/custom-sort-string
679216Combination Sum III56.6%Medium0.08753534870714555https://leetcode.com/problems/combination-sum-iii
6801247Minimum Swaps to Make Strings Equal60.1%Medium0.08626034428440695https://leetcode.com/problems/minimum-swaps-to-make-strings-equal
681916Word Subsets47.8%Medium0.08479653666007693https://leetcode.com/problems/word-subsets
682582Kill Process60.8%Medium0.08355588569097351https://leetcode.com/problems/kill-process
683921Minimum Add to Make Parentheses Valid73.7%Medium0.08307836859709818https://leetcode.com/problems/minimum-add-to-make-parentheses-valid
684459Repeated Substring Pattern42.2%Easy0.08299213342780958https://leetcode.com/problems/repeated-substring-pattern
685278First Bad Version35.7%Easy0.08295984140240989https://leetcode.com/problems/first-bad-version
686884Uncommon Words from Two Sentences63.3%Easy0.07990051073053109https://leetcode.com/problems/uncommon-words-from-two-sentences
687875Koko Eating Bananas52.1%Medium0.07919704166119315https://leetcode.com/problems/koko-eating-bananas
688705Design HashSet64.3%Easy0.07497265011507567https://leetcode.com/problems/design-hashset
689674Longest Continuous Increasing Subsequence45.9%Easy0.07393666594345284https://leetcode.com/problems/longest-continuous-increasing-subsequence
6901082Sales Analysis I71.8%Easy0.07145896398214495https://leetcode.com/problems/sales-analysis-i
691260Single Number III64.3%Medium0.0705621783378718https://leetcode.com/problems/single-number-iii
6921146Snapshot Array37.0%Medium0.07017687679183775https://leetcode.com/problems/snapshot-array
693953Verifying an Alien Dictionary54.1%Easy0.06882134150506931https://leetcode.com/problems/verifying-an-alien-dictionary
694814Binary Tree Pruning74.5%Medium0.06872933215218067https://leetcode.com/problems/binary-tree-pruning
6951337The K Weakest Rows in a Matrix68.8%Easy0.06857217312147021https://leetcode.com/problems/the-k-weakest-rows-in-a-matrix
6961495Friendly Movies Streamed Last Month52.6%Easy0.06851994643675606https://leetcode.com/problems/friendly-movies-streamed-last-month
697872Leaf-Similar Trees64.5%Easy0.06831507518298836https://leetcode.com/problems/leaf-similar-trees
698584Find Customer Referee72.3%Easy0.06592172080482424https://leetcode.com/problems/find-customer-referee
6991332Remove Palindromic Subsequences60.1%Easy0.06581321856957176https://leetcode.com/problems/remove-palindromic-subsequences
7001029Two City Scheduling56.1%Easy0.06371581438610768https://leetcode.com/problems/two-city-scheduling
7011251Average Selling Price81.6%Easy0.06222847139840936https://leetcode.com/problems/average-selling-price
702801Minimum Swaps To Make Sequences Increasing38.9%Medium0.06146327443046864https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing
7031069Product Sales Analysis II82.9%Easy0.06080900459560568https://leetcode.com/problems/product-sales-analysis-ii
704931Minimum Falling Path Sum62.5%Medium0.05914995982464103https://leetcode.com/problems/minimum-falling-path-sum
70552N-Queens II57.9%Hard0.058155920157074034https://leetcode.com/problems/n-queens-ii
70680Remove Duplicates from Sorted Array II44.0%Medium0.05798725765034936https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii
707922Sort Array By Parity II69.3%Easy0.057671328304390014https://leetcode.com/problems/sort-array-by-parity-ii
7081221Split a String in Balanced Strings83.3%Easy0.05362640133807673https://leetcode.com/problems/split-a-string-in-balanced-strings
7091303Find the Team Size87.8%Easy0.05155780966485001https://leetcode.com/problems/find-the-team-size
7101339Maximum Product of Splitted Binary Tree37.2%Medium0.05064373281875492https://leetcode.com/problems/maximum-product-of-splitted-binary-tree
7111128Number of Equivalent Domino Pairs47.3%Easy0.04951506452738057https://leetcode.com/problems/number-of-equivalent-domino-pairs
7121267Count Servers that Communicate57.9%Medium0.04902942724031861https://leetcode.com/problems/count-servers-that-communicate
7131051Height Checker71.1%Easy0.04510347333459475https://leetcode.com/problems/height-checker
7141382Balance a Binary Search Tree74.8%Medium0.04480032475536626https://leetcode.com/problems/balance-a-binary-search-tree
7151456Maximum Number of Vowels in a Substring of Given Length52.4%Medium0.04220035449037644https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length
716704Binary Search52.1%Easy0.04172704422666836https://leetcode.com/problems/binary-search
717965Univalued Binary Tree67.7%Easy0.04151887834779356https://leetcode.com/problems/univalued-binary-tree
718590N-ary Tree Postorder Traversal72.1%Easy0.040454954692313666https://leetcode.com/problems/n-ary-tree-postorder-traversal
7191049Last Stone Weight II44.2%Medium0.03902934390573525https://leetcode.com/problems/last-stone-weight-ii
720797All Paths From Source to Target77.9%Medium0.03881156536434583https://leetcode.com/problems/all-paths-from-source-to-target
7211511Customer Order Frequency76.8%Easy0.0383924310382344https://leetcode.com/problems/customer-order-frequency
722606Construct String from Binary Tree54.1%Easy0.03711000965123125https://leetcode.com/problems/construct-string-from-binary-tree
723190Reverse Bits39.8%Easy0.03645276030534425https://leetcode.com/problems/reverse-bits
7241304Find N Unique Integers Sum up to Zero76.3%Easy0.035408891906255915https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero
7251325Delete Leaves With a Given Value73.0%Medium0.03478611608541555https://leetcode.com/problems/delete-leaves-with-a-given-value
7261344Angle Between Hands of a Clock61.4%Medium0.030822048819935596https://leetcode.com/problems/angle-between-hands-of-a-clock
727501Find Mode in Binary Search Tree42.4%Easy0.029808466297826082https://leetcode.com/problems/find-mode-in-binary-search-tree
728303Range Sum Query - Immutable44.7%Easy0.029549096691749193https://leetcode.com/problems/range-sum-query-immutable
729665Non-decreasing Array19.5%Easy0.029053044062689753https://leetcode.com/problems/non-decreasing-array
7301520Maximum Number of Non-Overlapping Substrings32.8%Hard0.021485667755491482https://leetcode.com/problems/maximum-number-of-non-overlapping-substrings
731154Find Minimum in Rotated Sorted Array II41.6%Hard0.01898490812303644https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii
732389Find the Difference55.3%Easy0.016978336534417868https://leetcode.com/problems/find-the-difference
7331365How Many Numbers Are Smaller Than the Current Number85.6%Easy0.015926721367078105https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number
7341351Count Negative Numbers in a Sorted Matrix76.5%Easy0.013016779950191773https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix
7351431Kids With the Greatest Number of Candies88.9%Easy0.005927699633275225https://leetcode.com/problems/kids-with-the-greatest-number-of-candies
736663Equal Tree Partition39.5%Medium0https://leetcode.com/problems/equal-tree-partition
737537Complex Number Multiplication67.4%Medium0https://leetcode.com/problems/complex-number-multiplication
738553Optimal Division56.8%Medium0https://leetcode.com/problems/optimal-division
739645Set Mismatch42.1%Easy0https://leetcode.com/problems/set-mismatch
740738Monotone Increasing Digits44.3%Medium0https://leetcode.com/problems/monotone-increasing-digits
741776Split BST55.8%Medium0https://leetcode.com/problems/split-bst
742851Loud and Rich51.6%Medium0https://leetcode.com/problems/loud-and-rich
743899Orderly Queue52.2%Hard0https://leetcode.com/problems/orderly-queue
744902Numbers At Most N Given Digit Set31.5%Hard0https://leetcode.com/problems/numbers-at-most-n-given-digit-set
7451067Digit Count in Range40.0%Hard0https://leetcode.com/problems/digit-count-in-range
7461065Index Pairs of a String60.7%Easy0https://leetcode.com/problems/index-pairs-of-a-string
7471085Sum of Digits in the Minimum Number74.6%Easy0https://leetcode.com/problems/sum-of-digits-in-the-minimum-number
7481118Number of Days in a Month57.4%Easy0https://leetcode.com/problems/number-of-days-in-a-month
7491119Remove Vowels from a String89.9%Easy0https://leetcode.com/problems/remove-vowels-from-a-string
7501134Armstrong Number78.2%Easy0https://leetcode.com/problems/armstrong-number
7511028Recover a Tree From Preorder Traversal69.9%Hard0https://leetcode.com/problems/recover-a-tree-from-preorder-traversal
7521133Largest Unique Number66.8%Easy0https://leetcode.com/problems/largest-unique-number
7531035Uncrossed Lines56.1%Medium0https://leetcode.com/problems/uncrossed-lines
7541045Customers Who Bought All Products67.7%Medium0https://leetcode.com/problems/customers-who-bought-all-products
7551050Actors and Directors Who Cooperated At Least Three Times71.7%Easy0https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times
7561054Distant Barcodes43.2%Medium0https://leetcode.com/problems/distant-barcodes
7571070Product Sales Analysis III48.9%Medium0https://leetcode.com/problems/product-sales-analysis-iii
7581080Insufficient Nodes in Root to Leaf Paths49.3%Medium0https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths
7591259Handshakes That Don't Cross53.5%Hard0https://leetcode.com/problems/handshakes-that-dont-cross
7601288Remove Covered Intervals57.9%Medium0https://leetcode.com/problems/remove-covered-intervals
7611129Shortest Path with Alternating Colors38.9%Medium0https://leetcode.com/problems/shortest-path-with-alternating-colors
7621362Closest Divisors56.8%Medium0https://leetcode.com/problems/closest-divisors
7631363Largest Multiple of Three33.5%Hard0https://leetcode.com/problems/largest-multiple-of-three
7641175Prime Arrangements51.0%Easy0https://leetcode.com/problems/prime-arrangements
7651176Diet Plan Performance53.8%Easy0https://leetcode.com/problems/diet-plan-performance
7661255Maximum Score Words Formed by Letters69.4%Hard0https://leetcode.com/problems/maximum-score-words-formed-by-letters
7671260Shift 2D Grid61.4%Easy0https://leetcode.com/problems/shift-2d-grid
7681305All Elements in Two Binary Search Trees76.1%Medium0https://leetcode.com/problems/all-elements-in-two-binary-search-trees
7691327List the Products Ordered in a Period76.4%Easy0https://leetcode.com/problems/list-the-products-ordered-in-a-period
7701350Students With Invalid Departments89.5%Easy0https://leetcode.com/problems/students-with-invalid-departments
7711404Number of Steps to Reduce a Number in Binary Representation to One50.4%Medium0https://leetcode.com/problems/number-of-steps-to-reduce-a-number-in-binary-representation-to-one
7721408String Matching in an Array61.4%Easy0https://leetcode.com/problems/string-matching-in-an-array
7731409Queries on a Permutation With Key81.7%Medium0https://leetcode.com/problems/queries-on-a-permutation-with-key
7741421NPV Queries80.6%Medium0https://leetcode.com/problems/npv-queries
7751457Pseudo-Palindromic Paths in a Binary Tree67.3%Medium0https://leetcode.com/problems/pseudo-palindromic-paths-in-a-binary-tree
7761489Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree50.6%Hard0https://leetcode.com/problems/find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
7771496Path Crossing55.9%Easy0https://leetcode.com/problems/path-crossing
7781485Clone Binary Tree With Random Pointer81.0%Medium0https://leetcode.com/problems/clone-binary-tree-with-random-pointer
7791502Can Make Arithmetic Progression From Sequence73.3%Easy0https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence
7801490Clone N-ary Tree84.5%Medium0https://leetcode.com/problems/clone-n-ary-tree
7811533Find the Index of the Large Integer57.1%Medium0https://leetcode.com/problems/find-the-index-of-the-large-integer