LeetCode-Questions-CompanyWise/amazon_2year.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

81 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
2937Reorder Data in Log Files54.3%Easy4.767247308723531https://leetcode.com/problems/reorder-data-in-log-files
31192Critical Connections in a Network48.6%Hard4.608392488817646https://leetcode.com/problems/critical-connections-in-a-network
4200Number of Islands46.8%Medium4.5237927479658https://leetcode.com/problems/number-of-islands
5973K Closest Points to Origin63.8%Medium4.3649379280599145https://leetcode.com/problems/k-closest-points-to-origin
6819Most Common Word44.8%Easy4.206083108154029https://leetcode.com/problems/most-common-word
7994Rotting Oranges49.2%Medium4.12888767326667https://leetcode.com/problems/rotting-oranges
8146LRU Cache33.2%Medium4.1259125217530634https://leetcode.com/problems/lru-cache
91Two Sum45.6%Easy3.9670577018471778https://leetcode.com/problems/two-sum
10138Copy List with Random Pointer36.4%Medium3.8082028819412925https://leetcode.com/problems/copy-list-with-random-pointer
11763Partition Labels76.1%Medium3.6493480620354073https://leetcode.com/problems/partition-labels
125Longest Palindromic Substring29.5%Medium3.6112713851966896https://leetcode.com/problems/longest-palindromic-substring
13692Top K Frequent Words51.8%Medium3.4524165652908043https://leetcode.com/problems/top-k-frequent-words
14572Subtree of Another Tree44.1%Easy3.293561745384919https://leetcode.com/problems/subtree-of-another-tree
1523Merge k Sorted Lists40.2%Hard3.275608353119414https://leetcode.com/problems/merge-k-sorted-lists
1621Merge Two Sorted Lists53.5%Easy3.1760577119891367https://leetcode.com/problems/merge-two-sorted-lists
17957Prison Cells After N Days40.7%Medium3.1619868806897298https://leetcode.com/problems/prison-cells-after-n-days
18472Concatenated Words43.7%Hard3.1035670505472908https://leetcode.com/problems/concatenated-words
19295Find Median from Data Stream44.3%Hard3.071377319923169https://leetcode.com/problems/find-median-from-data-stream
2042Trapping Rain Water48.9%Hard3.0345785163632195https://leetcode.com/problems/trapping-rain-water
21240Search a 2D Matrix II43.2%Medium2.8882389761040663https://leetcode.com/problems/search-a-2d-matrix-ii
22642Design Search Autocomplete System44.7%Hard2.850097902691714https://leetcode.com/problems/design-search-autocomplete-system
23297Serialize and Deserialize Binary Tree47.5%Hard2.691243082785829https://leetcode.com/problems/serialize-and-deserialize-binary-tree
24348Design Tic-Tac-Toe54.3%Medium2.6765966310651685https://leetcode.com/problems/design-tic-tac-toe
25127Word Ladder29.6%Medium2.6565727712956915https://leetcode.com/problems/word-ladder
26126Word Ladder II22.1%Hard2.6210965949028595https://leetcode.com/problems/word-ladder-ii
27253Meeting Rooms II45.7%Medium2.5426760894240816https://leetcode.com/problems/meeting-rooms-ii
28588Design In-Memory File System45.9%Hard2.481768900116033https://leetcode.com/problems/design-in-memory-file-system
291167Minimum Cost to Connect Sticks62.8%Medium2.423130930639536https://leetcode.com/problems/minimum-cost-to-connect-sticks
30212Word Search II34.9%Hard2.409742163556229https://leetcode.com/problems/word-search-ii
31909Snakes and Ladders38.4%Medium2.3368173292871526https://leetcode.com/problems/snakes-and-ladders
32273Integer to English Words27.1%Hard2.3215771011354915https://leetcode.com/problems/integer-to-english-words
33460LFU Cache34.2%Hard2.311351586206228https://leetcode.com/problems/lfu-cache
342Add Two Numbers33.9%Medium2.2533444302046233https://leetcode.com/problems/add-two-numbers
35545Boundary of Binary Tree38.9%Medium2.2324541765453https://leetcode.com/problems/boundary-of-binary-tree
36139Word Break40.1%Medium2.2058799303129293https://leetcode.com/problems/word-break
37694Number of Distinct Islands56.0%Medium2.1981500748571623https://leetcode.com/problems/number-of-distinct-islands
381152Analyze User Website Visit Pattern43.5%Medium2.1610636126719283https://leetcode.com/problems/analyze-user-website-visit-pattern
391268Search Suggestions System63.2%Medium2.157831912757614https://leetcode.com/problems/search-suggestions-system
401000Minimum Cost to Merge Stones39.8%Hard2.0763714386373158https://leetcode.com/problems/minimum-cost-to-merge-stones
41380Insert Delete GetRandom O(1)47.5%Medium2.0707373499375032https://leetcode.com/problems/insert-delete-getrandom-o1
42675Cut Off Trees for Golf Event34.6%Hard2.0356851106499882https://leetcode.com/problems/cut-off-trees-for-golf-event
43269Alien Dictionary33.3%Hard2.01306490259895https://leetcode.com/problems/alien-dictionary
44121Best Time to Buy and Sell Stock50.5%Easy2.0057576952331098https://leetcode.com/problems/best-time-to-buy-and-sell-stock
4549Group Anagrams56.9%Medium1.9598330557667063https://leetcode.com/problems/group-anagrams
46772Basic Calculator III41.3%Hard1.93133194589594https://leetcode.com/problems/basic-calculator-iii
47863All Nodes Distance K in Binary Tree55.4%Medium1.924676094041702https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
48155Min Stack44.5%Easy1.9215077818220445https://leetcode.com/problems/min-stack
4920Valid Parentheses39.0%Easy1.9107339238261305https://leetcode.com/problems/valid-parentheses
50153Sum26.8%Medium1.889218736497702https://leetcode.com/problems/3sum
51165Compare Version Numbers27.4%Medium1.7706467919904958https://leetcode.com/problems/compare-version-numbers
52239Sliding Window Maximum43.0%Hard1.7509567493480187https://leetcode.com/problems/sliding-window-maximum
53733Flood Fill55.3%Easy1.74755550107457https://leetcode.com/problems/flood-fill
54866Prime Palindrome24.9%Medium1.7204703854807533https://leetcode.com/problems/prime-palindrome
55238Product of Array Except Self60.1%Medium1.71425284264257https://leetcode.com/problems/product-of-array-except-self
56341Flatten Nested List Iterator52.9%Medium1.7121511329488845https://leetcode.com/problems/flatten-nested-list-iterator
57490The Maze51.4%Medium1.6829041515736798https://leetcode.com/problems/the-maze
5817Letter Combinations of a Phone Number46.8%Medium1.6822073282155063https://leetcode.com/problems/letter-combinations-of-a-phone-number
593Longest Substring Without Repeating Characters30.4%Medium1.6660170989747354https://leetcode.com/problems/longest-substring-without-repeating-characters
6045Jump Game II30.6%Hard1.6544525444028277https://leetcode.com/problems/jump-game-ii
611099Two Sum Less Than K60.6%Easy1.6416694814604238https://leetcode.com/problems/two-sum-less-than-k
62207Course Schedule43.1%Medium1.61781279723231https://leetcode.com/problems/course-schedule
6312Integer to Roman55.1%Medium1.6016095787657718https://leetcode.com/problems/integer-to-roman
641102Path With Maximum Minimum Value49.2%Medium1.586376093728572https://leetcode.com/problems/path-with-maximum-minimum-value
6533Search in Rotated Sorted Array34.5%Medium1.5791221107028763https://leetcode.com/problems/search-in-rotated-sorted-array
6656Merge Intervals39.3%Medium1.5421333498120642https://leetcode.com/problems/merge-intervals
67895Maximum Frequency Stack60.6%Hard1.5225874235471424https://leetcode.com/problems/maximum-frequency-stack
68314Binary Tree Vertical Order Traversal45.3%Medium1.5177649083529745https://leetcode.com/problems/binary-tree-vertical-order-traversal
6953Maximum Subarray46.5%Easy1.516974311835203https://leetcode.com/problems/maximum-subarray
70353Design Snake Game34.2%Medium1.506328285095676https://leetcode.com/problems/design-snake-game
71322Coin Change35.5%Medium1.4806772164640813https://leetcode.com/problems/coin-change
724Median of Two Sorted Arrays29.6%Hard1.4554565552515453https://leetcode.com/problems/median-of-two-sorted-arrays
73103Binary Tree Zigzag Level Order Traversal48.3%Medium1.4259067156727416https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
7499Recover Binary Search Tree39.7%Hard1.4089750010850042https://leetcode.com/problems/recover-binary-search-tree
7576Minimum Window Substring34.6%Hard1.3926423524495424https://leetcode.com/problems/minimum-window-substring
76706Design HashMap61.3%Easy1.3834166612922754https://leetcode.com/problems/design-hashmap
77449Serialize and Deserialize BST52.0%Medium1.3213393231925648https://leetcode.com/problems/serialize-and-deserialize-bst
78289Game of Life54.5%Medium1.3165288639550394https://leetcode.com/problems/game-of-life
7964Minimum Path Sum54.5%Medium1.3111693715773884https://leetcode.com/problems/minimum-path-sum
80140Word Break II32.6%Hard1.3055596050544398https://leetcode.com/problems/word-break-ii
81505The Maze II47.7%Medium1.2979377678520694https://leetcode.com/problems/the-maze-ii
82227Basic Calculator II36.9%Medium1.287359403895079https://leetcode.com/problems/basic-calculator-ii
83323Number of Connected Components in an Undirected Graph56.0%Medium1.2764047315524085https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph
84124Binary Tree Maximum Path Sum34.3%Hard1.270922263715394https://leetcode.com/problems/binary-tree-maximum-path-sum
85224Basic Calculator36.8%Hard1.270759854947338https://leetcode.com/problems/basic-calculator
86206Reverse Linked List62.5%Easy1.2672568786519014https://leetcode.com/problems/reverse-linked-list
87503Next Greater Element II56.5%Medium1.2578496219398863https://leetcode.com/problems/next-greater-element-ii
88387First Unique Character in a String53.4%Easy1.2577684700448748https://leetcode.com/problems/first-unique-character-in-a-string
89208Implement Trie (Prefix Tree)49.4%Medium1.2499823265022014https://leetcode.com/problems/implement-trie-prefix-tree
90543Diameter of Binary Tree48.4%Easy1.2410094815743256https://leetcode.com/problems/diameter-of-binary-tree
91535Encode and Decode TinyURL79.9%Medium1.227174226434749https://leetcode.com/problems/encode-and-decode-tinyurl
92815Bus Routes42.5%Hard1.2156017946017912https://leetcode.com/problems/bus-routes
9311Container With Most Water50.8%Medium1.2010266143542228https://leetcode.com/problems/container-with-most-water
941091Shortest Path in Binary Matrix38.2%Medium1.200913466942589https://leetcode.com/problems/shortest-path-in-binary-matrix
95362Design Hit Counter63.7%Medium1.199980268917449https://leetcode.com/problems/design-hit-counter
96489Robot Room Cleaner69.7%Hard1.1739954424366683https://leetcode.com/problems/robot-room-cleaner
97236Lowest Common Ancestor of a Binary Tree45.7%Medium1.1582287933185333https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
98277Find the Celebrity41.8%Medium1.1562032194143523https://leetcode.com/problems/find-the-celebrity
99980Unique Paths III73.3%Hard1.1561821404895873https://leetcode.com/problems/unique-paths-iii
100716Max Stack42.6%Easy1.143395891295083https://leetcode.com/problems/max-stack
10174Search a 2D Matrix36.5%Medium1.1351642692702506https://leetcode.com/problems/search-a-2d-matrix
102759Employee Free Time66.2%Hard1.1328873695767963https://leetcode.com/problems/employee-free-time
103496Next Greater Element I63.8%Easy1.1237639698973036https://leetcode.com/problems/next-greater-element-i
10497Interleaving String31.5%Hard1.1211081248375274https://leetcode.com/problems/interleaving-string
105173Binary Search Tree Iterator56.6%Medium1.114540456834975https://leetcode.com/problems/binary-search-tree-iterator
10654Spiral Matrix34.1%Medium1.1072855603632137https://leetcode.com/problems/spiral-matrix
107394Decode String50.0%Medium1.0885854207873837https://leetcode.com/problems/decode-string
10822Generate Parentheses62.7%Medium1.0741309008544615https://leetcode.com/problems/generate-parentheses
109211Add and Search Word - Data structure design38.1%Medium1.068971286476014https://leetcode.com/problems/add-and-search-word-data-structure-design
110317Shortest Distance from All Buildings41.4%Hard1.0631755099111992https://leetcode.com/problems/shortest-distance-from-all-buildings
111703Kth Largest Element in a Stream49.7%Easy1.0476504188568838https://leetcode.com/problems/kth-largest-element-in-a-stream
11293Restore IP Addresses35.6%Medium1.0301182947170724https://leetcode.com/problems/restore-ip-addresses
113640Solve the Equation42.0%Medium1.0254396827784502https://leetcode.com/problems/solve-the-equation
114445Add Two Numbers II54.5%Medium1.0248223927917601https://leetcode.com/problems/add-two-numbers-ii
115564Find the Closest Palindrome19.7%Hard1.0211247931897356https://leetcode.com/problems/find-the-closest-palindrome
116102Binary Tree Level Order Traversal54.6%Medium1.0168566877633323https://leetcode.com/problems/binary-tree-level-order-traversal
117437Path Sum III47.2%Medium1.01420443066745https://leetcode.com/problems/path-sum-iii
118631Design Excel Sum Formula31.6%Hard1.007640510462383https://leetcode.com/problems/design-excel-sum-formula
119215Kth Largest Element in an Array55.4%Medium1.0022262615303217https://leetcode.com/problems/kth-largest-element-in-an-array
120997Find the Town Judge50.1%Easy0.9903020109316887https://leetcode.com/problems/find-the-town-judge
121695Max Area of Island62.7%Medium0.988975047363172https://leetcode.com/problems/max-area-of-island
122403Frog Jump39.7%Hard0.986149938424414https://leetcode.com/problems/frog-jump
123116Populating Next Right Pointers in Each Node45.2%Medium0.9771405730638729https://leetcode.com/problems/populating-next-right-pointers-in-each-node
124726Number of Atoms49.0%Hard0.9725715677727447https://leetcode.com/problems/number-of-atoms
12555Jump Game34.6%Medium0.9675236014754398https://leetcode.com/problems/jump-game
12698Validate Binary Search Tree27.8%Medium0.9662594465630313https://leetcode.com/problems/validate-binary-search-tree
127767Reorganize String48.7%Medium0.963102782263259https://leetcode.com/problems/reorganize-string
1281044Longest Duplicate Substring31.9%Hard0.9584751419361788https://leetcode.com/problems/longest-duplicate-substring
129770Basic Calculator IV48.1%Hard0.9582549309731873https://leetcode.com/problems/basic-calculator-iv
130210Course Schedule II40.7%Medium0.9580946198777129https://leetcode.com/problems/course-schedule-ii
131739Daily Temperatures63.3%Medium0.9460428580770935https://leetcode.com/problems/daily-temperatures
132347Top K Frequent Elements61.2%Medium0.944060927263745https://leetcode.com/problems/top-k-frequent-elements
13391Decode Ways24.7%Medium0.9291972065677444https://leetcode.com/problems/decode-ways
134388Longest Absolute File Path41.8%Medium0.91753219696222https://leetcode.com/problems/longest-absolute-file-path
13557Insert Interval33.5%Hard0.8985038991641041https://leetcode.com/problems/insert-interval
136105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.8940038587005907https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
13713Roman to Integer55.7%Easy0.8933962612312258https://leetcode.com/problems/roman-to-integer
138653Two Sum IV - Input is a BST55.5%Easy0.8889872641089201https://leetcode.com/problems/two-sum-iv-input-is-a-bst
139399Evaluate Division51.6%Medium0.8812413457657069https://leetcode.com/problems/evaluate-division
140143Reorder List37.1%Medium0.8793923055639359https://leetcode.com/problems/reorder-list
14179Word Search35.6%Medium0.8759684458676714https://leetcode.com/problems/word-search
142384Shuffle an Array52.8%Medium0.8699792450691285https://leetcode.com/problems/shuffle-an-array
1431155Number of Dice Rolls With Target Sum49.0%Medium0.8666032186425704https://leetcode.com/problems/number-of-dice-rolls-with-target-sum
14425Reverse Nodes in k-Group42.1%Hard0.8575824149327572https://leetcode.com/problems/reverse-nodes-in-k-group
145252Meeting Rooms54.6%Easy0.844766213465424https://leetcode.com/problems/meeting-rooms
146221Maximal Square37.7%Medium0.8389600248044948https://leetcode.com/problems/maximal-square
147622Design Circular Queue43.7%Medium0.8231587572738468https://leetcode.com/problems/design-circular-queue
148981Time Based Key-Value Store53.1%Medium0.8180951326968029https://leetcode.com/problems/time-based-key-value-store
149333Largest BST Subtree35.8%Medium0.8169787959635177https://leetcode.com/problems/largest-bst-subtree
150185Department Top Three Salaries34.5%Hard0.8162131770102277https://leetcode.com/problems/department-top-three-salaries
151456132 Pattern28.9%Medium0.8138174114576592https://leetcode.com/problems/132-pattern
152480Sliding Window Median37.2%Hard0.8042373907743527https://leetcode.com/problems/sliding-window-median
15336Valid Sudoku48.7%Medium0.802497178015298https://leetcode.com/problems/valid-sudoku
15448Rotate Image56.7%Medium0.8008039084781219https://leetcode.com/problems/rotate-image
155628Maximum Product of Three Numbers47.1%Easy0.790349508516308https://leetcode.com/problems/maximum-product-of-three-numbers
156188Best Time to Buy and Sell Stock IV28.0%Hard0.7898945225949174https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv
157336Palindrome Pairs33.7%Hard0.7886756056728623https://leetcode.com/problems/palindrome-pairs
158199Binary Tree Right Side View54.1%Medium0.7876280977126043https://leetcode.com/problems/binary-tree-right-side-view
159556Next Greater Element III31.7%Medium0.7873680356378151https://leetcode.com/problems/next-greater-element-iii
160352Data Stream as Disjoint Intervals47.3%Hard0.7849120431121034https://leetcode.com/problems/data-stream-as-disjoint-intervals
161688Knight Probability in Chessboard48.9%Medium0.7779674428567601https://leetcode.com/problems/knight-probability-in-chessboard
162133Clone Graph34.8%Medium0.7777045685880084https://leetcode.com/problems/clone-graph
163340Longest Substring with At Most K Distinct Characters44.1%Hard0.7767156879202488https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
164286Walls and Gates54.5%Medium0.7665200207243745https://leetcode.com/problems/walls-and-gates
165117Populating Next Right Pointers in Each Node II39.1%Medium0.7633611466044863https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii
166529Minesweeper59.1%Medium0.7566953924986649https://leetcode.com/problems/minesweeper
167373Find K Pairs with Smallest Sums36.7%Medium0.7534978029618075https://leetcode.com/problems/find-k-pairs-with-smallest-sums
16839Combination Sum56.1%Medium0.7530803152298828https://leetcode.com/problems/combination-sum
169312Burst Balloons51.8%Hard0.7383294033531782https://leetcode.com/problems/burst-balloons
170540Single Element in a Sorted Array57.9%Medium0.7377254480119279https://leetcode.com/problems/single-element-in-a-sorted-array
1711038Binary Search Tree to Greater Sum Tree80.8%Medium0.7366460015524573https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
172378Kth Smallest Element in a Sorted Matrix54.3%Medium0.7208465856314515https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
173987Vertical Order Traversal of a Binary Tree36.6%Medium0.7193470381638601https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree
174109Convert Sorted List to Binary Search Tree47.7%Medium0.7182831538314877https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
1751046Last Stone Weight62.2%Easy0.7136834368003875https://leetcode.com/problems/last-stone-weight
176560Subarray Sum Equals K43.9%Medium0.7082042605360416https://leetcode.com/problems/subarray-sum-equals-k
17746Permutations63.5%Medium0.7006713538066263https://leetcode.com/problems/permutations
178332Reconstruct Itinerary36.7%Medium0.6934933810134637https://leetcode.com/problems/reconstruct-itinerary
17962Unique Paths54.1%Medium0.679976059447545https://leetcode.com/problems/unique-paths
180284Peeking Iterator45.7%Medium0.6707820311003652https://leetcode.com/problems/peeking-iterator
181417Pacific Atlantic Water Flow41.1%Medium0.666478933477784https://leetcode.com/problems/pacific-atlantic-water-flow
182261Graph Valid Tree42.2%Medium0.661701044953794https://leetcode.com/problems/graph-valid-tree
183218The Skyline Problem34.6%Hard0.6570184564714399https://leetcode.com/problems/the-skyline-problem
18484Largest Rectangle in Histogram35.2%Hard0.6538762359232341https://leetcode.com/problems/largest-rectangle-in-histogram
18532Longest Valid Parentheses28.4%Hard0.6498908753938852https://leetcode.com/problems/longest-valid-parentheses
186711Number of Distinct Islands II47.3%Hard0.6359887667199967https://leetcode.com/problems/number-of-distinct-islands-ii
187101Symmetric Tree46.8%Easy0.6277269630953998https://leetcode.com/problems/symmetric-tree
188287Find the Duplicate Number55.5%Medium0.6216243663856534https://leetcode.com/problems/find-the-duplicate-number
18941First Missing Positive32.0%Hard0.6155202158646018https://leetcode.com/problems/first-missing-positive
1901219Path with Maximum Gold65.1%Medium0.6151572787436681https://leetcode.com/problems/path-with-maximum-gold
191205Isomorphic Strings39.8%Easy0.6091659093074805https://leetcode.com/problems/isomorphic-strings
1921214Two Sum BSTs67.6%Medium0.5957174923400869https://leetcode.com/problems/two-sum-bsts
193518Coin Change 250.2%Medium0.5915614413251872https://leetcode.com/problems/coin-change-2
194721Accounts Merge48.8%Medium0.5908536653497264https://leetcode.com/problems/accounts-merge
195787Cheapest Flights Within K Stops39.3%Medium0.5893689437132485https://leetcode.com/problems/cheapest-flights-within-k-stops
196150Evaluate Reverse Polish Notation36.3%Medium0.5881819999537198https://leetcode.com/problems/evaluate-reverse-polish-notation
19710Regular Expression Matching26.8%Hard0.5850984373117593https://leetcode.com/problems/regular-expression-matching
19863Unique Paths II34.6%Medium0.5820823931819539https://leetcode.com/problems/unique-paths-ii
199134Gas Station38.5%Medium0.5687668431527801https://leetcode.com/problems/gas-station
200737Sentence Similarity II45.8%Medium0.5686930060865394https://leetcode.com/problems/sentence-similarity-ii
201978Longest Turbulent Subarray46.6%Medium0.5684623920757161https://leetcode.com/problems/longest-turbulent-subarray
202268Missing Number51.7%Easy0.5678291006201323https://leetcode.com/problems/missing-number
203992Subarrays with K Different Integers48.6%Hard0.5672611876601065https://leetcode.com/problems/subarrays-with-k-different-integers
204409Longest Palindrome50.3%Easy0.5661573229787376https://leetcode.com/problems/longest-palindrome
205300Longest Increasing Subsequence42.6%Medium0.5653677916137054https://leetcode.com/problems/longest-increasing-subsequence
206983Minimum Cost For Tickets60.5%Medium0.5629118579098171https://leetcode.com/problems/minimum-cost-for-tickets
207135Candy31.6%Hard0.5626323814748484https://leetcode.com/problems/candy
208634Find the Derangement of An Array40.1%Medium0.5623075796011341https://leetcode.com/problems/find-the-derangement-of-an-array
2098String to Integer (atoi)15.4%Medium0.5566121908772103https://leetcode.com/problems/string-to-integer-atoi
210993Cousins in Binary Tree52.0%Easy0.5551513544505905https://leetcode.com/problems/cousins-in-binary-tree
2111100Find K-Length Substrings With No Repeated Characters72.7%Medium0.5543107357057295https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters
212516Longest Palindromic Subsequence53.2%Medium0.5522281191875855https://leetcode.com/problems/longest-palindromic-subsequence
21375Sort Colors47.3%Medium0.5427432267342958https://leetcode.com/problems/sort-colors
214943Find the Shortest Superstring42.9%Hard0.5357102670818683https://leetcode.com/problems/find-the-shortest-superstring
21571Simplify Path32.6%Medium0.5262793676678309https://leetcode.com/problems/simplify-path
216547Friend Circles58.6%Medium0.5259672525715527https://leetcode.com/problems/friend-circles
2171429First Unique Number47.0%Medium0.5239621016713606https://leetcode.com/problems/first-unique-number
218153Find Minimum in Rotated Sorted Array45.1%Medium0.5222372151929279https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
21986Partition List41.5%Medium0.5141613428466489https://leetcode.com/problems/partition-list
220192Word Frequency25.8%Medium0.5129680991436376https://leetcode.com/problems/word-frequency
2211057Campus Bikes57.7%Medium0.50861323348305https://leetcode.com/problems/campus-bikes
22237Sudoku Solver43.6%Hard0.5078801135362339https://leetcode.com/problems/sudoku-solver
22385Maximal Rectangle37.7%Hard0.505442030682518https://leetcode.com/problems/maximal-rectangle
224349Intersection of Two Arrays62.5%Easy0.5048408597071582https://leetcode.com/problems/intersection-of-two-arrays
2251135Connecting Cities With Minimum Cost57.5%Medium0.501406401849499https://leetcode.com/problems/connecting-cities-with-minimum-cost
22672Edit Distance44.8%Hard0.4973447790261514https://leetcode.com/problems/edit-distance
227636Exclusive Time of Functions52.0%Medium0.49627524402791723https://leetcode.com/problems/exclusive-time-of-functions
228528Random Pick with Weight43.9%Medium0.48937950996520846https://leetcode.com/problems/random-pick-with-weight
229113Path Sum II46.7%Medium0.48815162137800294https://leetcode.com/problems/path-sum-ii
230735Asteroid Collision41.0%Medium0.48598907090432486https://leetcode.com/problems/asteroid-collision
231538Convert BST to Greater Tree55.4%Easy0.485748321807536https://leetcode.com/problems/convert-bst-to-greater-tree
2321236Web Crawler64.3%Medium0.48550781578170077https://leetcode.com/problems/web-crawler
2331011Capacity To Ship Packages Within D Days58.1%Medium0.4816807923583991https://leetcode.com/problems/capacity-to-ship-packages-within-d-days
2341032Stream of Characters48.3%Hard0.4815348268449252https://leetcode.com/problems/stream-of-characters
235301Remove Invalid Parentheses43.3%Hard0.47974654080004886https://leetcode.com/problems/remove-invalid-parentheses
236426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium0.47793775692115553https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
237163Sum Closest46.0%Medium0.4774123771930342https://leetcode.com/problems/3sum-closest
238315Count of Smaller Numbers After Self41.5%Hard0.4767121931596299https://leetcode.com/problems/count-of-smaller-numbers-after-self
239298Binary Tree Longest Consecutive Sequence47.1%Medium0.4737843520856416https://leetcode.com/problems/binary-tree-longest-consecutive-sequence
240794Valid Tic-Tac-Toe State32.6%Medium0.4724161756511195https://leetcode.com/problems/valid-tic-tac-toe-state
241176Second Highest Salary31.6%Easy0.47069912017443083https://leetcode.com/problems/second-highest-salary
242558Logical 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
24388Merge Sorted Array39.4%Easy0.46429699445861544https://leetcode.com/problems/merge-sorted-array
244272Closest Binary Search Tree Value II50.5%Hard0.462623521948113https://leetcode.com/problems/closest-binary-search-tree-value-ii
24559Spiral Matrix II53.9%Medium0.4529975257530934https://leetcode.com/problems/spiral-matrix-ii
24668Text Justification27.7%Hard0.4495613440132932https://leetcode.com/problems/text-justification
247635Design Log Storage System58.6%Medium0.4485486942444761https://leetcode.com/problems/design-log-storage-system
248285Inorder Successor in BST40.4%Medium0.44766390708014486https://leetcode.com/problems/inorder-successor-in-bst
249465Optimal Account Balancing46.9%Hard0.44746022914476763https://leetcode.com/problems/optimal-account-balancing
250120Triangle44.2%Medium0.4465801975799588https://leetcode.com/problems/triangle
25119Remove Nth Node From End of List35.2%Medium0.4456768409675064https://leetcode.com/problems/remove-nth-node-from-end-of-list
252123Best Time to Buy and Sell Stock III37.5%Hard0.44142820516401104https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
253167Two Sum II - Input array is sorted54.1%Easy0.43971022755443356https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
2541120Maximum Average Subtree61.9%Medium0.43814407233118585https://leetcode.com/problems/maximum-average-subtree
255854K-Similar Strings38.2%Hard0.43634727500236803https://leetcode.com/problems/k-similar-strings
256361Bomb Enemy46.0%Medium0.4333220626111306https://leetcode.com/problems/bomb-enemy
257356Line Reflection31.8%Medium0.4269293467764643https://leetcode.com/problems/line-reflection
258122Best Time to Buy and Sell Stock II57.0%Easy0.4220164440136994https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
2591010Pairs of Songs With Total Durations Divisible by 6047.4%Easy0.42064633523841427https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60
26096Unique Binary Search Trees52.9%Medium0.42021191912831435https://leetcode.com/problems/unique-binary-search-trees
261438Find All Anagrams in a String43.3%Medium0.42018018969304527https://leetcode.com/problems/find-all-anagrams-in-a-string
262177Nth Highest Salary31.4%Medium0.41948151008170015https://leetcode.com/problems/nth-highest-salary
263169Majority Element58.7%Easy0.4187817161007766https://leetcode.com/problems/majority-element
264228Summary Ranges39.5%Medium0.41424759968851377https://leetcode.com/problems/summary-ranges
265128Longest Consecutive Sequence45.1%Hard0.4130892250537352https://leetcode.com/problems/longest-consecutive-sequence
266366Find Leaves of Binary Tree70.6%Medium0.4130123137435473https://leetcode.com/problems/find-leaves-of-binary-tree
267149Max Points on a Line16.9%Hard0.4117347211217598https://leetcode.com/problems/max-points-on-a-line
268234Palindrome Linked List39.3%Easy0.40610862095331074https://leetcode.com/problems/palindrome-linked-list
269442Find All Duplicates in an Array67.8%Medium0.4029173360293657https://leetcode.com/problems/find-all-duplicates-in-an-array
2701066Campus Bikes II54.2%Medium0.40032370860774574https://leetcode.com/problems/campus-bikes-ii
27178Subsets62.0%Medium0.3978316012118198https://leetcode.com/problems/subsets
2721335Minimum Difficulty of a Job Schedule57.6%Hard0.3963047387095001https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule
273184Sum33.7%Medium0.3951916126129905https://leetcode.com/problems/4sum
2741197Minimum Knight Moves36.1%Medium0.39358878405685155https://leetcode.com/problems/minimum-knight-moves
275296Best Meeting Point57.5%Hard0.388507095744267https://leetcode.com/problems/best-meeting-point
2761215Stepping Numbers41.6%Medium0.3856624808119847https://leetcode.com/problems/stepping-numbers
277230Kth Smallest Element in a BST60.2%Medium0.37791604408658863https://leetcode.com/problems/kth-smallest-element-in-a-bst
278152Maximum Product Subarray31.7%Medium0.37438681518796224https://leetcode.com/problems/maximum-product-subarray
279283Move Zeroes57.8%Easy0.37259180599681807https://leetcode.com/problems/move-zeroes
2801279Traffic Light Controlled Intersection74.3%Easy0.37117603462953225https://leetcode.com/problems/traffic-light-controlled-intersection
281498Diagonal Traverse48.2%Medium0.36965808183913323https://leetcode.com/problems/diagonal-traverse
282346Moving Average from Data Stream70.9%Easy0.3685471485927166https://leetcode.com/problems/moving-average-from-data-stream
283432All O`one Data Structure32.4%Hard0.3685471485927166https://leetcode.com/problems/all-oone-data-structure
28492Reverse Linked List II38.8%Medium0.36663565313437546https://leetcode.com/problems/reverse-linked-list-ii
285647Palindromic Substrings60.6%Medium0.3658330889129942https://leetcode.com/problems/palindromic-substrings
2866ZigZag Conversion36.3%Medium0.3614824134493735https://leetcode.com/problems/zigzag-conversion
28731Next Permutation32.6%Medium0.3605125693237505https://leetcode.com/problems/next-permutation
2881083Sales Analysis II50.5%Easy0.35277564256684985https://leetcode.com/problems/sales-analysis-ii
2891022Sum of Root To Leaf Binary Numbers67.2%Easy0.34981385355878714https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers
290843Guess the Word46.1%Hard0.34967374847974886https://leetcode.com/problems/guess-the-word
291410Split Array Largest Sum44.5%Hard0.3494594321480241https://leetcode.com/problems/split-array-largest-sum
29251N-Queens46.6%Hard0.34587301090591877https://leetcode.com/problems/n-queens
293329Longest Increasing Path in a Matrix43.4%Hard0.34223732585313005https://leetcode.com/problems/longest-increasing-path-in-a-matrix
294785Is Graph Bipartite?47.5%Medium0.3413031638908785https://leetcode.com/problems/is-graph-bipartite
295148Sort List42.3%Medium0.3404883062761029https://leetcode.com/problems/sort-list
29630Substring with Concatenation of All Words25.4%Hard0.3384481668491529https://leetcode.com/problems/substring-with-concatenation-of-all-words
29714Longest Common Prefix35.4%Easy0.33820492794739787https://leetcode.com/problems/longest-common-prefix
2981130Minimum Cost Tree From Leaf Values66.1%Medium0.33787755363431937https://leetcode.com/problems/minimum-cost-tree-from-leaf-values
299715Range Module38.5%Hard0.33647223662121295https://leetcode.com/problems/range-module
300233Number of Digit One31.3%Hard0.3343430661930074https://leetcode.com/problems/number-of-digit-one
301428Serialize and Deserialize N-ary Tree59.4%Hard0.3333026618599339https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree
30228Implement strStr()34.5%Easy0.3329666353832624https://leetcode.com/problems/implement-strstr
303187Repeated DNA Sequences38.9%Medium0.3305164293012779https://leetcode.com/problems/repeated-dna-sequences
304611Valid Triangle Number48.4%Medium0.33024168687057687https://leetcode.com/problems/valid-triangle-number
305827Making A Large Island45.7%Hard0.32879599515977564https://leetcode.com/problems/making-a-large-island
306129Sum Root to Leaf Numbers49.1%Medium0.3277345401930075https://leetcode.com/problems/sum-root-to-leaf-numbers
307430Flatten a Multilevel Doubly Linked List55.1%Medium0.32335829449138764https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
308901Online Stock Span60.2%Medium0.3225465062722876https://leetcode.com/problems/online-stock-span
3091004Max Consecutive Ones III59.1%Medium0.3213847274185471https://leetcode.com/problems/max-consecutive-ones-iii
310243Shortest Word Distance61.0%Easy0.3181698955520328https://leetcode.com/problems/shortest-word-distance
311652Find Duplicate Subtrees50.2%Medium0.31675833653328983https://leetcode.com/problems/find-duplicate-subtrees
312164Maximum Gap35.5%Hard0.31669089928362504https://leetcode.com/problems/maximum-gap
313710Random Pick with Blacklist32.5%Hard0.3161972427598021https://leetcode.com/problems/random-pick-with-blacklist
3141094Car Pooling56.7%Medium0.3139727676834986https://leetcode.com/problems/car-pooling
315678Valid Parenthesis String31.0%Medium0.31306090671867376https://leetcode.com/problems/valid-parenthesis-string
31654201 Matrix39.8%Medium0.3127505293143989https://leetcode.com/problems/01-matrix
317986Interval List Intersections67.3%Medium0.31059633197465675https://leetcode.com/problems/interval-list-intersections
318682Baseball Game63.7%Easy0.30408190151928766https://leetcode.com/problems/baseball-game
319179Largest Number28.8%Medium0.2993933318726824https://leetcode.com/problems/largest-number
320235Lowest Common Ancestor of a Binary Search Tree49.9%Easy0.29906505953500556https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
3211244Design A Leaderboard60.7%Medium0.29681946470121906https://leetcode.com/problems/design-a-leaderboard
3221229Meeting Scheduler52.7%Medium0.2955601745092634https://leetcode.com/problems/meeting-scheduler
3231031Maximum Sum of Two Non-Overlapping Subarrays57.9%Medium0.2928670946738281https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays
3241275Find Winner on a Tic Tac Toe Game52.8%Easy0.2924262358737592https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game
325658Find K Closest Elements40.9%Medium0.29206941888140686https://leetcode.com/problems/find-k-closest-elements
3261166Design File System56.8%Medium0.28978070910870213https://leetcode.com/problems/design-file-system
327729My Calendar I51.8%Medium0.28814578681204955https://leetcode.com/problems/my-calendar-i
328463Island Perimeter65.7%Easy0.2871321686710828https://leetcode.com/problems/island-perimeter
329161One Edit Distance32.3%Medium0.28698931177288023https://leetcode.com/problems/one-edit-distance
330699Falling Squares41.8%Hard0.2856138193877219https://leetcode.com/problems/falling-squares
331708Insert into a Sorted Circular Linked List31.6%Medium0.28504006298894224https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list
3321104Path In Zigzag Labelled Binary Tree72.0%Medium0.2805718342692762https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree
333525Contiguous Array42.8%Medium0.2770270045517302https://leetcode.com/problems/contiguous-array
334701Insert into a Binary Search Tree77.7%Medium0.27518744386988786https://leetcode.com/problems/insert-into-a-binary-search-tree
3351172Dinner Plate Stacks38.2%Hard0.2711095169699942https://leetcode.com/problems/dinner-plate-stacks
336229Majority Element II35.6%Medium0.2683771567744578https://leetcode.com/problems/majority-element-ii
33734Find First and Last Position of Element in Sorted Array36.2%Medium0.2681513034845063https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
33824Swap Nodes in Pairs50.4%Medium0.26683115052864725https://leetcode.com/problems/swap-nodes-in-pairs
339773Sliding Puzzle59.3%Hard0.26329061932762177https://leetcode.com/problems/sliding-puzzle
340242Valid Anagram56.9%Easy0.262948481812954https://leetcode.com/problems/valid-anagram
3411139Largest 1-Bordered Square47.5%Medium0.26159729523649006https://leetcode.com/problems/largest-1-bordered-square
342690Employee Importance57.3%Easy0.26044752514150726https://leetcode.com/problems/employee-importance
3431074Number of Submatrices That Sum to Target60.4%Hard0.2586674025861649https://leetcode.com/problems/number-of-submatrices-that-sum-to-target
344508Most Frequent Subtree Sum57.9%Medium0.25863376562317586https://leetcode.com/problems/most-frequent-subtree-sum
345262Trips and Users32.7%Hard0.2574582856986366https://leetcode.com/problems/trips-and-users
346632Smallest Range Covering Elements from K Lists52.4%Hard0.2574120081490246https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
347683K Empty Slots35.6%Hard0.25708853309999324https://leetcode.com/problems/k-empty-slots
3481084Sales Analysis III54.3%Easy0.25658186347459155https://leetcode.com/problems/sales-analysis-iii
349466Count The Repetitions28.2%Hard0.2561688067457042https://leetcode.com/problems/count-the-repetitions
350325Maximum Size Subarray Sum Equals k46.8%Medium0.2525907526405108https://leetcode.com/problems/maximum-size-subarray-sum-equals-k
35129Divide Two Integers16.4%Medium0.2524087060724961https://leetcode.com/problems/divide-two-integers
352337House Robber III50.6%Medium0.24474562568123703https://leetcode.com/problems/house-robber-iii
353270Closest Binary Search Tree Value48.5%Easy0.24399544337520654https://leetcode.com/problems/closest-binary-search-tree-value
35494Binary Tree Inorder Traversal63.3%Medium0.24076588645845454https://leetcode.com/problems/binary-tree-inorder-traversal
355402Remove K Digits28.4%Medium0.24067603007585034https://leetcode.com/problems/remove-k-digits
356662Maximum Width of Binary Tree41.0%Medium0.23997959968856164https://leetcode.com/problems/maximum-width-of-binary-tree
357419Battleships in a Board70.0%Medium0.23987034511952326https://leetcode.com/problems/battleships-in-a-board
358775Global and Local Inversions42.1%Medium0.23922968906583414https://leetcode.com/problems/global-and-local-inversions
359112Path Sum41.2%Easy0.23803283926479718https://leetcode.com/problems/path-sum
3601019Next Greater Node In Linked List57.4%Medium0.2370206170237612https://leetcode.com/problems/next-greater-node-in-linked-list
361225Implement Stack using Queues45.1%Easy0.2352539271098461https://leetcode.com/problems/implement-stack-using-queues
3621188Design Bounded Blocking Queue70.5%Medium0.23300728083654992https://leetcode.com/problems/design-bounded-blocking-queue
363397Integer Replacement32.9%Medium0.2322522675124501https://leetcode.com/problems/integer-replacement
364698Partition to K Equal Sum Subsets45.0%Medium0.23205891497216208https://leetcode.com/problems/partition-to-k-equal-sum-subsets
365509Fibonacci Number67.2%Easy0.22873204718012582https://leetcode.com/problems/fibonacci-number
366369Plus One Linked List58.2%Medium0.22538822116803361https://leetcode.com/problems/plus-one-linked-list
367159Longest Substring with At Most Two Distinct Characters49.4%Medium0.22148929121818325https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters
3681122Relative Sort Array67.7%Easy0.21796115980722663https://leetcode.com/problems/relative-sort-array
369939Minimum Area Rectangle51.8%Medium0.2169226914391073https://leetcode.com/problems/minimum-area-rectangle
37040Combination Sum II48.2%Medium0.21560801183996https://leetcode.com/problems/combination-sum-ii
37181Search in Rotated Sorted Array II33.0%Medium0.21357410029805904https://leetcode.com/problems/search-in-rotated-sorted-array-ii
37290Subsets II47.1%Medium0.2089835112237315https://leetcode.com/problems/subsets-ii
373279Perfect Squares47.4%Medium0.20821790109753407https://leetcode.com/problems/perfect-squares
37483Remove Duplicates from Sorted List45.4%Easy0.20656326017269647https://leetcode.com/problems/remove-duplicates-from-sorted-list
375604Design Compressed String Iterator37.5%Easy0.20585205420414873https://leetcode.com/problems/design-compressed-string-iterator
376579Find Cumulative Salary of an Employee37.0%Hard0.20340107258500856https://leetcode.com/problems/find-cumulative-salary-of-an-employee
377443String Compression41.3%Easy0.2021974133159511https://leetcode.com/problems/string-compression
378141Linked List Cycle41.1%Easy0.2021173215788326https://leetcode.com/problems/linked-list-cycle
3791143Longest Common Subsequence58.4%Medium0.20038826657183323https://leetcode.com/problems/longest-common-subsequence
38044Wildcard Matching24.7%Hard0.19947835142380788https://leetcode.com/problems/wildcard-matching
381836Rectangle Overlap48.6%Easy0.19944370144318244https://leetcode.com/problems/rectangle-overlap
3821007Minimum Domino Rotations For Equal Row50.0%Medium0.19906748870593582https://leetcode.com/problems/minimum-domino-rotations-for-equal-row
38350Pow(x;n)30.3%Medium0.1981682603478686https://leetcode.com/problems/powx-n
3841315Sum of Nodes with Even-Valued Grandparent83.5%Medium0.19757677034220278https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent
385637Average of Levels in Binary Tree63.1%Easy0.1972664368553499https://leetcode.com/problems/average-of-levels-in-binary-tree
386214Shortest Palindrome29.8%Hard0.19671029424605424https://leetcode.com/problems/shortest-palindrome
3871062Longest Repeating Substring57.2%Medium0.19627990904466153https://leetcode.com/problems/longest-repeating-substring
3881360Number of Days Between Two Dates48.8%Easy0.19578302313828744https://leetcode.com/problems/number-of-days-between-two-dates
389581Shortest Unsorted Continuous Subarray31.1%Easy0.19466945271128616https://leetcode.com/problems/shortest-unsorted-continuous-subarray
39073Set Matrix Zeroes43.1%Medium0.19305803523368698https://leetcode.com/problems/set-matrix-zeroes
391451Sort Characters By Frequency63.0%Medium0.19214843173356422https://leetcode.com/problems/sort-characters-by-frequency
3921198Find Smallest Common Element in All Rows74.9%Medium0.19105523676270922https://leetcode.com/problems/find-smallest-common-element-in-all-rows
393756Pyramid Transition Matrix54.6%Medium0.19105523676270922https://leetcode.com/problems/pyramid-transition-matrix
394114Flatten Binary Tree to Linked List49.3%Medium0.19007687356143277https://leetcode.com/problems/flatten-binary-tree-to-linked-list
395864Shortest Path to Get All Keys40.1%Hard0.18924199963852842https://leetcode.com/problems/shortest-path-to-get-all-keys
396136Single Number65.5%Easy0.18865964400599367https://leetcode.com/problems/single-number
397900RLE Iterator53.5%Medium0.1884471502206373https://leetcode.com/problems/rle-iterator
398178Rank Scores45.8%Medium0.18843907402659216https://leetcode.com/problems/rank-scores
3997Reverse Integer25.8%Easy0.18680592133798127https://leetcode.com/problems/reverse-integer
400743Network Delay Time45.0%Medium0.18664052695637473https://leetcode.com/problems/network-delay-time
401181Employees Earning More Than Their Managers56.9%Easy0.18496356625679328https://leetcode.com/problems/employees-earning-more-than-their-managers
402307Range Sum Query - Mutable34.6%Medium0.1842870214165705https://leetcode.com/problems/range-sum-query-mutable
403137Single Number II52.4%Medium0.18373876827436816https://leetcode.com/problems/single-number-ii
404969Pancake Sorting67.5%Medium0.18336922582639836https://leetcode.com/problems/pancake-sorting
405226Invert Binary Tree65.0%Easy0.18135450553395235https://leetcode.com/problems/invert-binary-tree
406407Trapping Rain Water II42.4%Hard0.17945093763999478https://leetcode.com/problems/trapping-rain-water-ii
407163Missing Ranges24.3%Medium0.17904823144898546https://leetcode.com/problems/missing-ranges
408316Remove Duplicate Letters35.8%Hard0.17663825552387563https://leetcode.com/problems/remove-duplicate-letters
409162Find Peak Element43.3%Medium0.17622454513525765https://leetcode.com/problems/find-peak-element
410130Surrounded Regions28.1%Medium0.17613332483584074https://leetcode.com/problems/surrounded-regions
411473Matchsticks to Square37.7%Medium0.17589066646366422https://leetcode.com/problems/matchsticks-to-square
412453Minimum Moves to Equal Array Elements50.2%Easy0.17435338714477774https://leetcode.com/problems/minimum-moves-to-equal-array-elements
413415Add Strings47.5%Easy0.17429245611868044https://leetcode.com/problems/add-strings
414202Happy Number50.4%Easy0.17408932588103054https://leetcode.com/problems/happy-number
4151002Find Common Characters67.6%Easy0.17272065827709143https://leetcode.com/problems/find-common-characters
416350Intersection of Two Arrays II51.4%Easy0.1723244267089384https://leetcode.com/problems/intersection-of-two-arrays-ii
417929Unique Email Addresses67.4%Easy0.17132822097463707https://leetcode.com/problems/unique-email-addresses
418264Ugly Number II42.0%Medium0.1712203840326157https://leetcode.com/problems/ugly-number-ii
419609Find Duplicate File in System59.5%Medium0.16971838464062922https://leetcode.com/problems/find-duplicate-file-in-system
4201430Check 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
42169Sqrt(x)33.9%Easy0.1690194941008683https://leetcode.com/problems/sqrtx
422618Students Report By Geography55.0%Hard0.1684645221325284https://leetcode.com/problems/students-report-by-geography
42370Climbing Stairs47.8%Easy0.16776798899548578https://leetcode.com/problems/climbing-stairs
424805Split Array With Same Average26.4%Hard0.16635770580494058https://leetcode.com/problems/split-array-with-same-average
425963Minimum Area Rectangle II50.9%Medium0.16635770580494058https://leetcode.com/problems/minimum-area-rectangle-ii
426232Implement Queue using Stacks49.6%Easy0.16627106739678052https://leetcode.com/problems/implement-queue-using-stacks
4271024Video Stitching49.2%Medium0.16582008790006805https://leetcode.com/problems/video-stitching
428412Fizz Buzz62.3%Easy0.16533767872713678https://leetcode.com/problems/fizz-buzz
429244Shortest Word Distance II52.3%Medium0.16400297627026994https://leetcode.com/problems/shortest-word-distance-ii
430204Count Primes31.5%Easy0.1633347782917643https://leetcode.com/problems/count-primes
431110Balanced Binary Tree43.5%Easy0.16237787582661925https://leetcode.com/problems/balanced-binary-tree
432881Boats to Save People46.8%Medium0.16229864091884685https://leetcode.com/problems/boats-to-save-people
4331373Maximum Sum BST in Binary Tree40.2%Hard0.1599143845440084https://leetcode.com/problems/maximum-sum-bst-in-binary-tree
434727Minimum Window Subsequence41.8%Hard0.15970111035790735https://leetcode.com/problems/minimum-window-subsequence
435131Palindrome Partitioning47.5%Medium0.15829229898055353https://leetcode.com/problems/palindrome-partitioning
436209Minimum Size Subarray Sum38.2%Medium0.1579457507958099https://leetcode.com/problems/minimum-size-subarray-sum
437189Rotate Array34.7%Easy0.1575195768933631https://leetcode.com/problems/rotate-array
438266Palindrome Permutation61.9%Easy0.15687671513649673https://leetcode.com/problems/palindrome-permutation
439381Insert Delete GetRandom O(1) - Duplicates allowed34.1%Hard0.15656906069153992https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed
440507Perfect Number35.5%Easy0.15656906069153992https://leetcode.com/problems/perfect-number
441844Backspace String Compare46.4%Easy0.15656906069153992https://leetcode.com/problems/backspace-string-compare
442450Delete Node in a BST43.1%Medium0.15561959910053247https://leetcode.com/problems/delete-node-in-a-bst
443257Binary Tree Paths51.5%Easy0.15546387765221875https://leetcode.com/problems/binary-tree-paths
444335Self Crossing28.0%Hard0.15535044001916237https://leetcode.com/problems/self-crossing
445351Android Unlock Patterns48.4%Medium0.15521621002929656https://leetcode.com/problems/android-unlock-patterns
4461008Construct Binary Search Tree from Preorder Traversal78.4%Medium0.15488164972391183https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
447847Shortest Path Visiting All Nodes52.0%Hard0.1541506798272583https://leetcode.com/problems/shortest-path-visiting-all-nodes
448686Repeated String Match32.3%Easy0.1506602748874898https://leetcode.com/problems/repeated-string-match
4491242Web Crawler Multithreaded45.9%Medium0.14953173397096375https://leetcode.com/problems/web-crawler-multithreaded
450406Queue Reconstruction by Height66.9%Medium0.14940738524724317https://leetcode.com/problems/queue-reconstruction-by-height
451344Reverse String68.5%Easy0.14882646558712123https://leetcode.com/problems/reverse-string
452541Reverse String II48.4%Easy0.14881831452142824https://leetcode.com/problems/reverse-string-ii
45382Remove Duplicates from Sorted List II36.8%Medium0.1483524778541147https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
45461Rotate List30.0%Medium0.1480759782807871https://leetcode.com/problems/rotate-list
455849Maximize Distance to Closest Person42.6%Easy0.14723779073708934https://leetcode.com/problems/maximize-distance-to-closest-person
456241Different Ways to Add Parentheses55.2%Medium0.14691814457724592https://leetcode.com/problems/different-ways-to-add-parentheses
457104Maximum Depth of Binary Tree66.0%Easy0.14586085041092384https://leetcode.com/problems/maximum-depth-of-binary-tree
458852Peak Index in a Mountain Array71.6%Easy0.1445812288111076https://leetcode.com/problems/peak-index-in-a-mountain-array
45947Permutations II46.4%Medium0.14455786186832048https://leetcode.com/problems/permutations-ii
460310Minimum Height Trees32.3%Medium0.143926096421159https://leetcode.com/problems/minimum-height-trees
461395Longest Substring with At Least K Repeating Characters41.4%Medium0.14261022668001652https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
462183Customers Who Never Order53.4%Easy0.14230985257093545https://leetcode.com/problems/customers-who-never-order
463919Complete Binary Tree Inserter57.3%Medium0.14008879317068168https://leetcode.com/problems/complete-binary-tree-inserter
464731My Calendar II49.1%Medium0.13976194237515868https://leetcode.com/problems/my-calendar-ii
4659Palindrome Number48.4%Easy0.13896461684712066https://leetcode.com/problems/palindrome-number
466354Russian Doll Envelopes35.6%Hard0.13850969523609932https://leetcode.com/problems/russian-doll-envelopes
467771Jewels and Stones86.4%Easy0.13806778839055484https://leetcode.com/problems/jewels-and-stones
4681005Maximize Sum Of Array After K Negations51.3%Easy0.13804422079620546https://leetcode.com/problems/maximize-sum-of-array-after-k-negations
469702Search in a Sorted Array of Unknown Size66.9%Medium0.13783247452391326https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size
470250Count Univalue Subtrees52.0%Medium0.13767409129953323https://leetcode.com/problems/count-univalue-subtrees
471299Bulls and Cows42.4%Easy0.1373584160478243https://leetcode.com/problems/bulls-and-cows
4721161Maximum Level Sum of a Binary Tree72.2%Medium0.13727657783562877https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree
473427Construct Quad Tree61.4%Medium0.13580154115906176https://leetcode.com/problems/construct-quad-tree
4741405Longest Happy String49.0%Medium0.1343297958605471https://leetcode.com/problems/longest-happy-string
475732My Calendar III60.0%Hard0.13397932096347895https://leetcode.com/problems/my-calendar-iii
476938Range Sum of BST81.3%Easy0.13320152292006351https://leetcode.com/problems/range-sum-of-bst
477305Number of Islands II40.1%Hard0.1304306149462744https://leetcode.com/problems/number-of-islands-ii
478108Convert Sorted Array to Binary Search Tree57.9%Easy0.13035872370331572https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
4791117Building H2O52.6%Medium0.12796988096337653https://leetcode.com/problems/building-h2o
480567Permutation in String44.4%Medium0.1271102185315222https://leetcode.com/problems/permutation-in-string
481559Maximum Depth of N-ary Tree68.7%Easy0.126784545822395https://leetcode.com/problems/maximum-depth-of-n-ary-tree
4821059All Paths from Source Lead to Destination44.7%Medium0.12675170563914387https://leetcode.com/problems/all-paths-from-source-lead-to-destination
483359Logger Rate Limiter70.8%Easy0.1248502028794759https://leetcode.com/problems/logger-rate-limiter
484106Construct Binary Tree from Inorder and Postorder Traversal47.2%Medium0.12381146988063069https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
485873Length of Longest Fibonacci Subsequence48.0%Medium0.12378418901663191https://leetcode.com/problems/length-of-longest-fibonacci-subsequence
486741Cherry Pickup33.9%Hard0.12293768624504794https://leetcode.com/problems/cherry-pickup
4871086High Five79.7%Easy0.12219606573898939https://leetcode.com/problems/high-five
488222Count Complete Tree Nodes46.8%Medium0.119584908524332https://leetcode.com/problems/count-complete-tree-nodes
4891026Maximum Difference Between Node and Ancestor66.0%Medium0.11947365313429092https://leetcode.com/problems/maximum-difference-between-node-and-ancestor
490839Similar String Groups38.6%Hard0.11934675763256619https://leetcode.com/problems/similar-string-groups
491304Range Sum Query 2D - Immutable38.6%Medium0.11875551458160917https://leetcode.com/problems/range-sum-query-2d-immutable
492175Combine Two Tables60.8%Easy0.11655892700886014https://leetcode.com/problems/combine-two-tables
493368Largest Divisible Subset38.0%Medium0.11624101530456815https://leetcode.com/problems/largest-divisible-subset
494160Intersection of Two Linked Lists40.6%Easy0.11585676607984101https://leetcode.com/problems/intersection-of-two-linked-lists
495435Non-overlapping Intervals42.9%Medium0.1158164666843426https://leetcode.com/problems/non-overlapping-intervals
496281Zigzag Iterator58.4%Medium0.11506932978478719https://leetcode.com/problems/zigzag-iterator
4971375Bulb Switcher III62.6%Medium0.11506932978478719https://leetcode.com/problems/bulb-switcher-iii
498515Find Largest Value in Each Tree Row61.1%Medium0.11375888535665801https://leetcode.com/problems/find-largest-value-in-each-tree-row
499339Nested List Weight Sum74.0%Easy0.11351649636962678https://leetcode.com/problems/nested-list-weight-sum
500452Minimum Number of Arrows to Burst Balloons49.6%Medium0.11303480731768517https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons
501742Closest Leaf in a Binary Tree43.6%Medium0.11060987154397002https://leetcode.com/problems/closest-leaf-in-a-binary-tree
502174Dungeon Game32.3%Hard0.11053338064061342https://leetcode.com/problems/dungeon-game
503382Linked List Random Node52.1%Medium0.11013564249600598https://leetcode.com/problems/linked-list-random-node
504924Minimize Malware Spread42.0%Hard0.10821358464023274https://leetcode.com/problems/minimize-malware-spread
505321Create Maximum Number27.0%Hard0.10821358464023274https://leetcode.com/problems/create-maximum-number
506889Construct Binary Tree from Preorder and Postorder Traversal66.2%Medium0.10711776476069794https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal
507115Distinct Subsequences38.3%Hard0.10683933709559944https://leetcode.com/problems/distinct-subsequences
508966Vowel Spellchecker47.2%Medium0.10676797542570607https://leetcode.com/problems/vowel-spellchecker
5091153String Transforms Into Another String35.8%Hard0.10623186692973738https://leetcode.com/problems/string-transforms-into-another-string
510267Palindrome Permutation II36.4%Medium0.10345133738802471https://leetcode.com/problems/palindrome-permutation-ii
511486Predict the Winner47.9%Medium0.10306596722039207https://leetcode.com/problems/predict-the-winner
5121013Partition Array Into Three Parts With Equal Sum51.8%Easy0.10294796925244239https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum
513393UTF-8 Validation37.5%Medium0.10212949507637983https://leetcode.com/problems/utf-8-validation
514523Continuous Subarray Sum24.6%Medium0.1016388887348317https://leetcode.com/problems/continuous-subarray-sum
5151162As Far from Land as Possible43.5%Medium0.09876441467241241https://leetcode.com/problems/as-far-from-land-as-possible
5161023Camelcase Matching57.0%Medium0.09860197680453955https://leetcode.com/problems/camelcase-matching
517862Shortest Subarray with Sum at Least K24.6%Hard0.09793753498670578https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k
518951Flip Equivalent Binary Trees65.8%Medium0.09745990610645301https://leetcode.com/problems/flip-equivalent-binary-trees
5191202Smallest String With Swaps46.5%Medium0.09740053011838201https://leetcode.com/problems/smallest-string-with-swaps
520100Same Tree53.4%Easy0.09694519966241283https://leetcode.com/problems/same-tree
521390Elimination Game44.5%Medium0.09576690509200843https://leetcode.com/problems/elimination-game
522280Wiggle Sort63.8%Medium0.09561417737468547https://leetcode.com/problems/wiggle-sort
523807Max Increase to Keep City Skyline83.7%Medium0.09510858722224913https://leetcode.com/problems/max-increase-to-keep-city-skyline
524132Palindrome Partitioning II30.2%Hard0.0943539685775445https://leetcode.com/problems/palindrome-partitioning-ii
525720Longest Word in Dictionary48.2%Easy0.09362342046209744https://leetcode.com/problems/longest-word-in-dictionary
526826Most Profit Assigning Work38.5%Medium0.09287412500644375https://leetcode.com/problems/most-profit-assigning-work
52738Count and Say44.6%Easy0.09192820125669567https://leetcode.com/problems/count-and-say
528447Number of Boomerangs51.8%Easy0.09159716909540325https://leetcode.com/problems/number-of-boomerangs
529198House Robber42.0%Easy0.08994823666293948https://leetcode.com/problems/house-robber
530328Odd Even Linked List55.7%Medium0.08983684638843294https://leetcode.com/problems/odd-even-linked-list
531358Rearrange String k Distance Apart34.9%Hard0.08894748601649616https://leetcode.com/problems/rearrange-string-k-distance-apart
532995Minimum Number of K Consecutive Bit Flips46.8%Hard0.08894748601649616https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips
53365Valid Number15.3%Hard0.08845542056186342https://leetcode.com/problems/valid-number
534145Binary Tree Postorder Traversal55.0%Hard0.08837759395949414https://leetcode.com/problems/binary-tree-postorder-traversal
535549Binary Tree Longest Consecutive Sequence II47.0%Medium0.08816278759467164https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii
536433Minimum Genetic Mutation41.8%Medium0.08701137698962977https://leetcode.com/problems/minimum-genetic-mutation
5371247Minimum Swaps to Make Strings Equal60.1%Medium0.08626034428440695https://leetcode.com/problems/minimum-swaps-to-make-strings-equal
538942DI String Match72.6%Easy0.08495672247596549https://leetcode.com/problems/di-string-match
539916Word Subsets47.8%Medium0.08479653666007693https://leetcode.com/problems/word-subsets
540582Kill Process60.8%Medium0.08355588569097351https://leetcode.com/problems/kill-process
5411245Tree Diameter60.1%Medium0.08338160893905106https://leetcode.com/problems/tree-diameter
542905Sort Array By Parity74.1%Easy0.08328510247304294https://leetcode.com/problems/sort-array-by-parity
543841Keys and Rooms64.3%Medium0.08307836859709818https://leetcode.com/problems/keys-and-rooms
544871Minimum Number of Refueling Stops31.4%Hard0.08252102368800351https://leetcode.com/problems/minimum-number-of-refueling-stops
545654Maximum Binary Tree79.9%Medium0.08000266362507777https://leetcode.com/problems/maximum-binary-tree
546884Uncommon Words from Two Sentences63.3%Easy0.07990051073053109https://leetcode.com/problems/uncommon-words-from-two-sentences
5471249Minimum Remove to Make Valid Parentheses62.5%Medium0.07986504044378952https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses
548118Pascal's Triangle52.5%Easy0.07970401164997687https://leetcode.com/problems/pascals-triangle
54960Permutation Sequence38.4%Hard0.07948571541724253https://leetcode.com/problems/permutation-sequence
550875Koko Eating Bananas52.1%Medium0.07919704166119315https://leetcode.com/problems/koko-eating-bananas
5511047Remove All Adjacent Duplicates In String68.6%Easy0.0789551324793932https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
552784Letter Case Permutation64.6%Medium0.0787033338274549https://leetcode.com/problems/letter-case-permutation
553180Consecutive Numbers39.7%Medium0.07851014032375832https://leetcode.com/problems/consecutive-numbers
5541254Number of Closed Islands60.5%Medium0.07796154146971186https://leetcode.com/problems/number-of-closed-islands
555904Fruit Into Baskets42.5%Medium0.07767124189113186https://leetcode.com/problems/fruit-into-baskets
556125Valid Palindrome36.7%Easy0.07766984472754161https://leetcode.com/problems/valid-palindrome
557977Squares of a Sorted Array72.1%Easy0.07598590697792203https://leetcode.com/problems/squares-of-a-sorted-array
558468Validate IP Address24.1%Medium0.07598590697792203https://leetcode.com/problems/validate-ip-address
559765Couples Holding Hands54.3%Hard0.07579383936953364https://leetcode.com/problems/couples-holding-hands
560217Contains Duplicate56.0%Easy0.07423027387221347https://leetcode.com/problems/contains-duplicate
561974Subarray Sums Divisible by K48.9%Medium0.07423027387221347https://leetcode.com/problems/subarray-sums-divisible-by-k
562184Department Highest Salary36.7%Medium0.07292523990467245https://leetcode.com/problems/department-highest-salary
563539Minimum Time Difference51.5%Medium0.07236429254889504https://leetcode.com/problems/minimum-time-difference
564860Lemonade Change51.6%Easy0.07208884919207953https://leetcode.com/problems/lemonade-change
565290Word Pattern37.0%Easy0.071651050037288https://leetcode.com/problems/word-pattern
5661082Sales Analysis I71.8%Easy0.07145896398214495https://leetcode.com/problems/sales-analysis-i
567570Managers with at Least 5 Direct Reports66.0%Medium0.07020425867324853https://leetcode.com/problems/managers-with-at-least-5-direct-reports
5681146Snapshot Array37.0%Medium0.07017687679183775https://leetcode.com/problems/snapshot-array
5691114Print in Order65.7%Easy0.0700675626167169https://leetcode.com/problems/print-in-order
570621Task Scheduler50.1%Medium0.06851994643675606https://leetcode.com/problems/task-scheduler
5711081Smallest Subsequence of Distinct Characters50.4%Medium0.06840272688440052https://leetcode.com/problems/smallest-subsequence-of-distinct-characters
572171Excel Sheet Column Number55.9%Easy0.06799791190723256https://leetcode.com/problems/excel-sheet-column-number
5731060Missing Element in Sorted Array54.5%Medium0.06796670413163937https://leetcode.com/problems/missing-element-in-sorted-array
574365Water and Jug Problem30.6%Medium0.06736553182757604https://leetcode.com/problems/water-and-jug-problem
575584Find Customer Referee72.3%Easy0.06592172080482424https://leetcode.com/problems/find-customer-referee
576671Second Minimum Node In a Binary Tree42.7%Easy0.06538275926285174https://leetcode.com/problems/second-minimum-node-in-a-binary-tree
5771270All People Report to the Given Manager87.1%Medium0.06412452816953867https://leetcode.com/problems/all-people-report-to-the-given-manager
578855Exam Room43.1%Medium0.06371581438610768https://leetcode.com/problems/exam-room
579413Arithmetic Slices57.9%Medium0.06286986221654821https://leetcode.com/problems/arithmetic-slices
580334Increasing Triplet Subsequence40.0%Medium0.06274107505168265https://leetcode.com/problems/increasing-triplet-subsequence
5811299Replace Elements with Greatest Element on Right Side75.4%Easy0.06197770027589752https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side
582801Minimum Swaps To Make Sequences Increasing38.9%Medium0.06146327443046864https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing
583420Strong Password Checker14.0%Hard0.061087691979838175https://leetcode.com/problems/strong-password-checker
584796Rotate String49.6%Easy0.059778751425839334https://leetcode.com/problems/rotate-string
585931Minimum Falling Path Sum62.5%Medium0.05914995982464103https://leetcode.com/problems/minimum-falling-path-sum
586475Heaters33.1%Easy0.058155920157074034https://leetcode.com/problems/heaters
58752N-Queens II57.9%Hard0.058155920157074034https://leetcode.com/problems/n-queens-ii
588783Minimum Distance Between BST Nodes52.6%Easy0.05800594958851697https://leetcode.com/problems/minimum-distance-between-bst-nodes
589979Distribute Coins in Binary Tree68.9%Medium0.05800594958851697https://leetcode.com/problems/distribute-coins-in-binary-tree
5901233Remove Sub-Folders from the Filesystem59.5%Medium0.057076831135436705https://leetcode.com/problems/remove-sub-folders-from-the-filesystem
591586Customer Placing the Largest Number of Orders73.0%Easy0.0568334747631659https://leetcode.com/problems/customer-placing-the-largest-number-of-orders
592421Maximum XOR of Two Numbers in an Array53.5%Medium0.055569851154810765https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array
593404Sum of Left Leaves50.9%Easy0.05478946358617918https://leetcode.com/problems/sum-of-left-leaves
594345Reverse Vowels of a String44.2%Easy0.054658412537864055https://leetcode.com/problems/reverse-vowels-of-a-string
595557Reverse Words in a String III69.8%Easy0.05383068775874275https://leetcode.com/problems/reverse-words-in-a-string-iii
596714Best Time to Buy and Sell Stock with Transaction Fee54.7%Medium0.05377639678080413https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee
597719Find K-th Smallest Pair Distance31.5%Hard0.05370417897186106https://leetcode.com/problems/find-k-th-smallest-pair-distance
59867924 Game46.4%Hard0.05341723749698583https://leetcode.com/problems/24-game
599416Partition Equal Subset Sum43.7%Medium0.05309102319682948https://leetcode.com/problems/partition-equal-subset-sum
600601Human Traffic of Stadium41.7%Hard0.05223119222544569https://leetcode.com/problems/human-traffic-of-stadium
601687Longest Univalue Path36.2%Easy0.05212529063213289https://leetcode.com/problems/longest-univalue-path
602791Custom Sort String65.7%Medium0.05164658886216683https://leetcode.com/problems/custom-sort-string
603429N-ary Tree Level Order Traversal65.0%Medium0.051616961836787136https://leetcode.com/problems/n-ary-tree-level-order-traversal
60466Plus One43.0%Easy0.05095832569582088https://leetcode.com/problems/plus-one
6051339Maximum Product of Splitted Binary Tree37.2%Medium0.05064373281875492https://leetcode.com/problems/maximum-product-of-splitted-binary-tree
606617Merge Two Binary Trees74.1%Easy0.05055666138939678https://leetcode.com/problems/merge-two-binary-trees
607681Next Closest Time45.0%Medium0.05045206096038863https://leetcode.com/problems/next-closest-time
608684Redundant Connection57.4%Medium0.05020574670015159https://leetcode.com/problems/redundant-connection
609792Number of Matching Subsequences47.4%Medium0.04976150955906385https://leetcode.com/problems/number-of-matching-subsequences
61077Combinations54.7%Medium0.04928622947983693https://leetcode.com/problems/combinations
61167Add Binary45.2%Easy0.049093096377302976https://leetcode.com/problems/add-binary
6121267Count Servers that Communicate57.9%Medium0.04902942724031861https://leetcode.com/problems/count-servers-that-communicate
613725Split Linked List in Parts52.2%Medium0.04603804920255727https://leetcode.com/problems/split-linked-list-in-parts
6141248Count Number of Nice Subarrays56.4%Medium0.04593229889743518https://leetcode.com/problems/count-number-of-nice-subarrays
615856Score of Parentheses60.5%Medium0.04567003683318837https://leetcode.com/problems/score-of-parentheses
616151Reverse Words in a String21.9%Medium0.04549485717913582https://leetcode.com/problems/reverse-words-in-a-string
6171108Defanging an IP Address87.5%Easy0.044971606629326595https://leetcode.com/problems/defanging-an-ip-address
6181382Balance a Binary Search Tree74.8%Medium0.04480032475536626https://leetcode.com/problems/balance-a-binary-search-tree
619493Reverse Pairs25.2%Hard0.043110123653728516https://leetcode.com/problems/reverse-pairs
620704Binary Search52.1%Easy0.04172704422666836https://leetcode.com/problems/binary-search
621532K-diff Pairs in an Array31.6%Easy0.041672696400568025https://leetcode.com/problems/k-diff-pairs-in-an-array
622590N-ary Tree Postorder Traversal72.1%Easy0.040454954692313666https://leetcode.com/problems/n-ary-tree-postorder-traversal
623918Maximum Sum Circular Subarray33.7%Medium0.04045040846284272https://leetcode.com/problems/maximum-sum-circular-subarray
624142Linked List Cycle II37.3%Medium0.04034106216103786https://leetcode.com/problems/linked-list-cycle-ii
625107Binary Tree Level Order Traversal II53.5%Easy0.03948712621281427https://leetcode.com/problems/binary-tree-level-order-traversal-ii
6261049Last Stone Weight II44.2%Medium0.03902934390573525https://leetcode.com/problems/last-stone-weight-ii
627657Robot Return to Origin73.5%Easy0.03896596853338373https://leetcode.com/problems/robot-return-to-origin
628231Power of Two43.7%Easy0.0383924310382344https://leetcode.com/problems/power-of-two
6291110Delete Nodes And Return Forest67.0%Medium0.03698038470938097https://leetcode.com/problems/delete-nodes-and-return-forest
630646Maximum Length of Pair Chain51.9%Medium0.036870535808327706https://leetcode.com/problems/maximum-length-of-pair-chain
631626Exchange Seats62.3%Medium0.03676884778708897https://leetcode.com/problems/exchange-seats
632376Wiggle Subsequence39.6%Medium0.03666771919188123https://leetcode.com/problems/wiggle-subsequence
633673Number of Longest Increasing Subsequence35.7%Medium0.036467121912812143https://leetcode.com/problems/number-of-longest-increasing-subsequence
6341029Two City Scheduling56.1%Easy0.03633827343880724https://leetcode.com/problems/two-city-scheduling
63543Multiply Strings33.9%Medium0.03608871558298825https://leetcode.com/problems/multiply-strings
636705Design HashSet64.3%Easy0.03401688527825427https://leetcode.com/problems/design-hashset
637561Array Partition I72.0%Easy0.033850542978687455https://leetcode.com/problems/array-partition-i
638912Sort an Array63.9%Medium0.03218010960381167https://leetcode.com/problems/sort-an-array
639953Verifying an Alien Dictionary54.1%Easy0.03117337947619734https://leetcode.com/problems/verifying-an-alien-dictionary
640814Binary Tree Pruning74.5%Medium0.03113091859517317https://leetcode.com/problems/binary-tree-pruning
6411179Reformat Department Table80.6%Easy0.030653741091002412https://leetcode.com/problems/reformat-department-table
6421027Longest Arithmetic Sequence53.4%Medium0.03030534949532895https://leetcode.com/problems/longest-arithmetic-sequence
643319Bulb Switcher45.4%Medium0.029852963149681156https://leetcode.com/problems/bulb-switcher
644501Find Mode in Binary Search Tree42.4%Easy0.029808466297826082https://leetcode.com/problems/find-mode-in-binary-search-tree
645191Number of 1 Bits49.8%Easy0.029560622742018188https://leetcode.com/problems/number-of-1-bits
646779K-th Symbol in Grammar37.2%Medium0.029050699422092676https://leetcode.com/problems/k-th-symbol-in-grammar
647219Contains Duplicate II37.7%Easy0.028500979167549973https://leetcode.com/problems/contains-duplicate-ii
648213House Robber II36.5%Medium0.028250466285851712https://leetcode.com/problems/house-robber-ii
649811Subdomain Visit Count69.9%Easy0.02772180293027194https://leetcode.com/problems/subdomain-visit-count
650311Sparse Matrix Multiplication61.9%Medium0.027702602549335792https://leetcode.com/problems/sparse-matrix-multiplication
651249Group Shifted Strings55.1%Medium0.0276069982440099https://leetcode.com/problems/group-shifted-strings
652119Pascal's Triangle II49.0%Easy0.026565907037593445https://leetcode.com/problems/pascals-triangle-ii
653158Read N Characters Given Read4 II - Call multiple times33.8%Hard0.026196651946570663https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times
654203Remove Linked List Elements38.6%Easy0.025668142709851988https://leetcode.com/problems/remove-linked-list-elements
6551395Count Number of Teams82.0%Medium0.025462865161248044https://leetcode.com/problems/count-number-of-teams
656752Open the Lock51.8%Medium0.024586364440127736https://leetcode.com/problems/open-the-lock
657605Can Place Flowers31.6%Easy0.02457126073050533https://leetcode.com/problems/can-place-flowers
658338Counting Bits69.5%Medium0.024325523767440974https://leetcode.com/problems/counting-bits
659414Third Maximum Number30.5%Easy0.023155137938555212https://leetcode.com/problems/third-maximum-number
6601160Find Words That Can Be Formed by Characters67.4%Easy0.02262539951797868https://leetcode.com/problems/find-words-that-can-be-formed-by-characters
661216Combination Sum III56.6%Medium0.02261260849011709https://leetcode.com/problems/combination-sum-iii
662746Min Cost Climbing Stairs50.3%Easy0.021957456927373643https://leetcode.com/problems/min-cost-climbing-stairs
663958Check Completeness of a Binary Tree52.1%Medium0.021763644636359686https://leetcode.com/problems/check-completeness-of-a-binary-tree
6641520Maximum Number of Non-Overlapping Substrings32.8%Hard0.021485667755491482https://leetcode.com/problems/maximum-number-of-non-overlapping-substrings
665921Minimum Add to Make Parentheses Valid73.7%Medium0.021425565169310254https://leetcode.com/problems/minimum-add-to-make-parentheses-valid
666459Repeated Substring Pattern42.2%Easy0.021402636114384706https://leetcode.com/problems/repeated-substring-pattern
667485Max Consecutive Ones54.6%Easy0.021092266245534258https://leetcode.com/problems/max-consecutive-ones
668377Combination Sum IV45.3%Medium0.02087758502155521https://leetcode.com/problems/combination-sum-iv
669670Maximum Swap43.6%Medium0.020844944430365928https://leetcode.com/problems/maximum-swap
670392Is Subsequence49.2%Easy0.02033508842008217https://leetcode.com/problems/is-subsequence
671166Fraction to Recurring Decimal21.6%Medium0.02015181543730795https://leetcode.com/problems/fraction-to-recurring-decimal
6721048Longest String Chain54.7%Medium0.019361689049145963https://leetcode.com/problems/longest-string-chain
673669Trim a Binary Search Tree63.0%Easy0.019139340210697423https://leetcode.com/problems/trim-a-binary-search-tree
674674Longest Continuous Increasing Subsequence45.9%Easy0.01900294712561538https://leetcode.com/problems/longest-continuous-increasing-subsequence
675196Delete Duplicate Emails41.1%Easy0.018735911057469818https://leetcode.com/problems/delete-duplicate-emails
676965Univalued Binary Tree67.7%Easy0.018665964249802672https://leetcode.com/problems/univalued-binary-tree
67735Search Insert Position42.6%Easy0.018459222797986813https://leetcode.com/problems/search-insert-position
678260Single Number III64.3%Medium0.01811279141389457https://leetcode.com/problems/single-number-iii
679309Best Time to Buy and Sell Stock with Cooldown47.4%Medium0.01767954966181075https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown
680383Ransom Note53.1%Easy0.017621601349819518https://leetcode.com/problems/ransom-note
681872Leaf-Similar Trees64.5%Easy0.01752125418714782https://leetcode.com/problems/leaf-similar-trees
68226Remove Duplicates from Sorted Array45.1%Easy0.017426260234777304https://leetcode.com/problems/remove-duplicates-from-sorted-array
6831266Minimum Time Visiting All Points79.6%Easy0.017354014693151613https://leetcode.com/problems/minimum-time-visiting-all-points
684876Middle of the Linked List68.4%Easy0.01707497375257815https://leetcode.com/problems/middle-of-the-linked-list
685389Find the Difference55.3%Easy0.016978336534417868https://leetcode.com/problems/find-the-difference
68695Unique Binary Search Trees II40.6%Medium0.016856699181010838https://leetcode.com/problems/unique-binary-search-trees-ii
6871304Find N Unique Integers Sum up to Zero76.3%Easy0.015892269319508656https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero
688707Design Linked List24.5%Medium0.015054857167065819https://leetcode.com/problems/design-linked-list
689367Valid Perfect Square41.7%Easy0.014992784586141334https://leetcode.com/problems/valid-perfect-square
69080Remove Duplicates from Sorted Array II44.0%Medium0.014815085785140639https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii
691371Sum of Two Integers50.7%Medium0.014064929467403538https://leetcode.com/problems/sum-of-two-integers
692724Find Pivot Index44.0%Easy0.013850636933899008https://leetcode.com/problems/find-pivot-index
693144Binary Tree Preorder Traversal55.7%Medium0.013667638728663807https://leetcode.com/problems/binary-tree-preorder-traversal
694303Range Sum Query - Immutable44.7%Easy0.013240842236997532https://leetcode.com/problems/range-sum-query-immutable
695154Find Minimum in Rotated Sorted Array II41.6%Hard0.013222109274363887https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii
696665Non-decreasing Array19.5%Easy0.013016779950191773https://leetcode.com/problems/non-decreasing-array
697172Factorial Trailing Zeroes37.8%Easy0.012326812480658571https://leetcode.com/problems/factorial-trailing-zeroes
698237Delete Node in a Linked List63.8%Easy0.01153858955649377https://leetcode.com/problems/delete-node-in-a-linked-list
6991051Height Checker71.1%Easy0.011468015591641189https://leetcode.com/problems/height-checker
700797All Paths From Source to Target77.9%Medium0.009845021678804893https://leetcode.com/problems/all-paths-from-source-to-target
7011221Split a String in Balanced Strings83.3%Easy0.008775835172724969https://leetcode.com/problems/split-a-string-in-balanced-strings
702461Hamming Distance72.8%Easy0.00833685528906183https://leetcode.com/problems/hamming-distance
7031344Angle Between Hands of a Clock61.4%Medium0.007795031188053973https://leetcode.com/problems/angle-between-hands-of-a-clock
7041365How Many Numbers Are Smaller Than the Current Number85.6%Easy0.007109877088701047https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number
705111Minimum Depth of Binary Tree37.4%Easy0.0066203485760693214https://leetcode.com/problems/minimum-depth-of-binary-tree
7061431Kids With the Greatest Number of Candies88.9%Easy0.005927699633275225https://leetcode.com/problems/kids-with-the-greatest-number-of-candies
707278First Bad Version35.7%Easy0.005391575265790431https://leetcode.com/problems/first-bad-version
70827Remove Element48.2%Easy0.0035524016043678225https://leetcode.com/problems/remove-element
709190Reverse Bits39.8%Easy0.0018316700789167337https://leetcode.com/problems/reverse-bits