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

53 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
2937Reorder Data in Log Files54.3%Easy3.9547702430822818https://leetcode.com/problems/reorder-data-in-log-files
3200Number of Islands46.8%Medium3.6590323855166846https://leetcode.com/problems/number-of-islands
41192Critical Connections in a Network48.6%Hard3.3632945279510875https://leetcode.com/problems/critical-connections-in-a-network
5763Partition Labels76.1%Medium3.1678101129592746https://leetcode.com/problems/partition-labels
6994Rotting Oranges49.2%Medium2.8720722553936775https://leetcode.com/problems/rotting-oranges
7692Top K Frequent Words51.8%Medium2.7214375224426046https://leetcode.com/problems/top-k-frequent-words
8819Most Common Word44.8%Easy2.4256996648770075https://leetcode.com/problems/most-common-word
9146LRU Cache33.2%Medium2.1299618073114104https://leetcode.com/problems/lru-cache
101152Analyze User Website Visit Pattern43.5%Medium1.8342239497458135https://leetcode.com/problems/analyze-user-website-visit-pattern
1123Merge k Sorted Lists40.2%Hard1.739235050219392https://leetcode.com/problems/merge-k-sorted-lists
12588Design In-Memory File System45.9%Hard1.6763233015814871https://leetcode.com/problems/design-in-memory-file-system
131Two Sum45.6%Easy1.5089728550598949https://leetcode.com/problems/two-sum
14472Concatenated Words43.7%Hard1.4802648705378958https://leetcode.com/problems/concatenated-words
15973K Closest Points to Origin63.8%Medium1.4345467018065698https://leetcode.com/problems/k-closest-points-to-origin
16957Prison Cells After N Days40.7%Medium1.3423289104477119https://leetcode.com/problems/prison-cells-after-n-days
17460LFU Cache34.2%Hard1.1854052630535123https://leetcode.com/problems/lfu-cache
181167Minimum Cost to Connect Sticks62.8%Medium1.1814314904899383https://leetcode.com/problems/minimum-cost-to-connect-sticks
1942Trapping Rain Water48.9%Hard1.1037585327659545https://leetcode.com/problems/trapping-rain-water
20138Copy List with Random Pointer36.4%Medium1.102640803567812https://leetcode.com/problems/copy-list-with-random-pointer
21127Word Ladder29.6%Medium1.0425997036961998https://leetcode.com/problems/word-ladder
22295Find Median from Data Stream44.3%Hard1.0194793992505597https://leetcode.com/problems/find-median-from-data-stream
23348Design Tic-Tac-Toe54.3%Medium0.9433716904768258https://leetcode.com/problems/design-tic-tac-toe
24212Word Search II34.9%Hard0.8857014706209553https://leetcode.com/problems/word-search-ii
25253Meeting Rooms II45.7%Medium0.8632775077826929https://leetcode.com/problems/meeting-rooms-ii
2621Merge Two Sorted Lists53.5%Easy0.8095181456041088https://leetcode.com/problems/merge-two-sorted-lists
27694Number of Distinct Islands56.0%Medium0.7884573603642702https://leetcode.com/problems/number-of-distinct-islands
28269Alien Dictionary33.3%Hard0.7683984542353193https://leetcode.com/problems/alien-dictionary
29273Integer to English Words27.1%Hard0.7404748586772619https://leetcode.com/problems/integer-to-english-words
30380Insert Delete GetRandom O(1)47.5%Medium0.7362463730417975https://leetcode.com/problems/insert-delete-getrandom-o1
31297Serialize and Deserialize Binary Tree47.5%Hard0.7044467358138786https://leetcode.com/problems/serialize-and-deserialize-binary-tree
32863All Nodes Distance K in Binary Tree55.4%Medium0.6739386478106545https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
33139Word Break40.1%Medium0.6613827480153901https://leetcode.com/problems/word-break
342Add Two Numbers33.9%Medium0.5977271417553114https://leetcode.com/problems/add-two-numbers
35726Number of Atoms49.0%Hard0.591070740103309https://leetcode.com/problems/number-of-atoms
36909Snakes and Ladders38.4%Medium0.581062856900522https://leetcode.com/problems/snakes-and-ladders
37121Best Time to Buy and Sell Stock50.5%Easy0.5695968683666981https://leetcode.com/problems/best-time-to-buy-and-sell-stock
38126Word Ladder II22.1%Hard0.5693600008081126https://leetcode.com/problems/word-ladder-ii
39353Design Snake Game34.2%Medium0.5678280191954505https://leetcode.com/problems/design-snake-game
401268Search Suggestions System63.2%Medium0.5670827306499265https://leetcode.com/problems/search-suggestions-system
41240Search a 2D Matrix II43.2%Medium0.5659839416965464https://leetcode.com/problems/search-a-2d-matrix-ii
42733Flood Fill55.3%Easy0.5434516866606699https://leetcode.com/problems/flood-fill
4349Group Anagrams56.9%Medium0.5274564521278222https://leetcode.com/problems/group-anagrams
441429First Unique Number47.0%Medium0.5239621016713606https://leetcode.com/problems/first-unique-number
4556Merge Intervals39.3%Medium0.5198989648602567https://leetcode.com/problems/merge-intervals
461091Shortest Path in Binary Matrix38.2%Medium0.5014571171893788https://leetcode.com/problems/shortest-path-in-binary-matrix
47153Sum26.8%Medium0.4923847546019265https://leetcode.com/problems/3sum
48227Basic Calculator II36.9%Medium0.47707464048628756https://leetcode.com/problems/basic-calculator-ii
49815Bus Routes42.5%Hard0.46566970439379607https://leetcode.com/problems/bus-routes
50465Optimal Account Balancing46.9%Hard0.44746022914476763https://leetcode.com/problems/optimal-account-balancing
51564Find the Closest Palindrome19.7%Hard0.43712242797885603https://leetcode.com/problems/find-the-closest-palindrome
525Longest Palindromic Substring29.5%Medium0.43711515550369573https://leetcode.com/problems/longest-palindromic-substring
53642Design Search Autocomplete System44.7%Hard0.43349242036282026https://leetcode.com/problems/design-search-autocomplete-system
5417Letter Combinations of a Phone Number46.8%Medium0.42775086183255473https://leetcode.com/problems/letter-combinations-of-a-phone-number
55403Frog Jump39.7%Hard0.42647291912626817https://leetcode.com/problems/frog-jump
56394Decode String50.0%Medium0.42186669570914975https://leetcode.com/problems/decode-string
57210Course Schedule II40.7%Medium0.4187970574421199https://leetcode.com/problems/course-schedule-ii
58239Sliding Window Maximum43.0%Hard0.4104750065235096https://leetcode.com/problems/sliding-window-maximum
591335Minimum Difficulty of a Job Schedule57.6%Hard0.3963047387095001https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule
60317Shortest Distance from All Buildings41.4%Hard0.3879036811782171https://leetcode.com/problems/shortest-distance-from-all-buildings
61208Implement Trie (Prefix Tree)49.4%Medium0.3703247851035097https://leetcode.com/problems/implement-trie-prefix-tree
62322Coin Change35.5%Medium0.3682371587377334https://leetcode.com/problems/coin-change
63572Subtree of Another Tree44.1%Easy0.36744178604609046https://leetcode.com/problems/subtree-of-another-tree
64211Add and Search Word - Data structure design38.1%Medium0.3669576767104271https://leetcode.com/problems/add-and-search-word-data-structure-design
65437Path Sum III47.2%Medium0.36415150066384533https://leetcode.com/problems/path-sum-iii
66238Product of Array Except Self60.1%Medium0.3605955735094466https://leetcode.com/problems/product-of-array-except-self
67236Lowest Common Ancestor of a Binary Tree45.7%Medium0.3551971839535377https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
68140Word Break II32.6%Hard0.35315833146615444https://leetcode.com/problems/word-break-ii
6997Interleaving String31.5%Hard0.3498263128325362https://leetcode.com/problems/interleaving-string
70173Binary Search Tree Iterator56.6%Medium0.3490586305394522https://leetcode.com/problems/binary-search-tree-iterator
71188Best Time to Buy and Sell Stock IV28.0%Hard0.3480617703158782https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv
72489Robot Room Cleaner69.7%Hard0.34393738002030483https://leetcode.com/problems/robot-room-cleaner
7393Restore IP Addresses35.6%Medium0.33946177546957895https://leetcode.com/problems/restore-ip-addresses
7476Minimum Window Substring34.6%Hard0.33651688545811814https://leetcode.com/problems/minimum-window-substring
75895Maximum Frequency Stack60.6%Hard0.33520721431462625https://leetcode.com/problems/maximum-frequency-stack
76165Compare Version Numbers27.4%Medium0.33499311472223486https://leetcode.com/problems/compare-version-numbers
7753Maximum Subarray46.5%Easy0.33316614062015326https://leetcode.com/problems/maximum-subarray
78490The Maze51.4%Medium0.33239571796243805https://leetcode.com/problems/the-maze
7920Valid Parentheses39.0%Easy0.32875969157833257https://leetcode.com/problems/valid-parentheses
80721Accounts Merge48.8%Medium0.3264810496971675https://leetcode.com/problems/accounts-merge
81155Min Stack44.5%Easy0.32611635610879774https://leetcode.com/problems/min-stack
82901Online Stock Span60.2%Medium0.3225465062722876https://leetcode.com/problems/online-stock-span
831219Path with Maximum Gold65.1%Medium0.3204549706485941https://leetcode.com/problems/path-with-maximum-gold
84277Find the Celebrity41.8%Medium0.3142660340639637https://leetcode.com/problems/find-the-celebrity
8555Jump Game34.6%Medium0.31027241049283566https://leetcode.com/problems/jump-game
8612Integer to Roman55.1%Medium0.30898314806430144https://leetcode.com/problems/integer-to-roman
87185Department Top Three Salaries34.5%Hard0.3067091029533853https://leetcode.com/problems/department-top-three-salaries
88987Vertical Order Traversal of a Binary Tree36.6%Medium0.30230623809780655https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree
894Median of Two Sorted Arrays29.6%Hard0.30208546395829133https://leetcode.com/problems/median-of-two-sorted-arrays
90224Basic Calculator36.8%Hard0.291910408561302https://leetcode.com/problems/basic-calculator
9174Search a 2D Matrix36.5%Medium0.29107845681405486https://leetcode.com/problems/search-a-2d-matrix
92640Solve the Equation42.0%Medium0.2840257612486704https://leetcode.com/problems/solve-the-equation
9354Spiral Matrix34.1%Medium0.28079436421311554https://leetcode.com/problems/spiral-matrix
94362Design Hit Counter63.7%Medium0.2737682417732349https://leetcode.com/problems/design-hit-counter
95399Evaluate Division51.6%Medium0.27239954676797734https://leetcode.com/problems/evaluate-division
96480Sliding Window Median37.2%Hard0.2690708449339646https://leetcode.com/problems/sliding-window-median
971057Campus Bikes57.7%Medium0.2582475718767295https://leetcode.com/problems/campus-bikes
9891Decode Ways24.7%Medium0.2572166935751766https://leetcode.com/problems/decode-ways
99466Count The Repetitions28.2%Hard0.2561688067457042https://leetcode.com/problems/count-the-repetitions
10045Jump Game II30.6%Hard0.25477233836298296https://leetcode.com/problems/jump-game-ii
101323Number of Connected Components in an Undirected Graph56.0%Medium0.25237712763702813https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph
10299Recover Binary Search Tree39.7%Hard0.25183380763426816https://leetcode.com/problems/recover-binary-search-tree
1033Longest Substring Without Repeating Characters30.4%Medium0.24977369595529056https://leetcode.com/problems/longest-substring-without-repeating-characters
104332Reconstruct Itinerary36.7%Medium0.24722791193435328https://leetcode.com/problems/reconstruct-itinerary
1051197Minimum Knight Moves36.1%Medium0.24003104821376078https://leetcode.com/problems/minimum-knight-moves
106775Global and Local Inversions42.1%Medium0.23922968906583414https://leetcode.com/problems/global-and-local-inversions
107496Next Greater Element I63.8%Easy0.23831034385769945https://leetcode.com/problems/next-greater-element-i
10833Search in Rotated Sorted Array34.5%Medium0.2327382673745402https://leetcode.com/problems/search-in-rotated-sorted-array
109772Basic Calculator III41.3%Hard0.2322522675124501https://leetcode.com/problems/basic-calculator-iii
110543Diameter of Binary Tree48.4%Easy0.2316456750750147https://leetcode.com/problems/diameter-of-binary-tree
111445Add Two Numbers II54.5%Medium0.22413561488763817https://leetcode.com/problems/add-two-numbers-ii
112333Largest BST Subtree35.8%Medium0.2228314901476892https://leetcode.com/problems/largest-bst-subtree
11311Container With Most Water50.8%Medium0.22223677269815797https://leetcode.com/problems/container-with-most-water
11475Sort Colors47.3%Medium0.21933249465057122https://leetcode.com/problems/sort-colors
115688Knight Probability in Chessboard48.9%Medium0.2176811889223697https://leetcode.com/problems/knight-probability-in-chessboard
116105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.2138725437818616https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
117356Line Reflection31.8%Medium0.2124355370417375https://leetcode.com/problems/line-reflection
118143Reorder List37.1%Medium0.21178045827645292https://leetcode.com/problems/reorder-list
1191155Number of Dice Rolls With Target Sum49.0%Medium0.21008151389087https://leetcode.com/problems/number-of-dice-rolls-with-target-sum
120503Next Greater Element II56.5%Medium0.20963047971710957https://leetcode.com/problems/next-greater-element-ii
121312Burst Balloons51.8%Hard0.20921375502735295https://leetcode.com/problems/burst-balloons
122103Binary Tree Zigzag Level Order Traversal48.3%Medium0.2038677804597886https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
123735Asteroid Collision41.0%Medium0.20317069676423571https://leetcode.com/problems/asteroid-collision
124314Binary Tree Vertical Order Traversal45.3%Medium0.20100106920044414https://leetcode.com/problems/binary-tree-vertical-order-traversal
12564Minimum Path Sum54.5%Medium0.19988813533277905https://leetcode.com/problems/minimum-path-sum
126352Data Stream as Disjoint Intervals47.3%Hard0.1980128865886302https://leetcode.com/problems/data-stream-as-disjoint-intervals
1271315Sum of Nodes with Even-Valued Grandparent83.5%Medium0.19757677034220278https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent
128706Design HashMap61.3%Easy0.1960785423771685https://leetcode.com/problems/design-hashmap
1291360Number of Days Between Two Dates48.8%Easy0.19578302313828744https://leetcode.com/problems/number-of-days-between-two-dates
13085Maximal Rectangle37.7%Hard0.1945507253203666https://leetcode.com/problems/maximal-rectangle
131756Pyramid Transition Matrix54.6%Medium0.19105523676270922https://leetcode.com/problems/pyramid-transition-matrix
13225Reverse Nodes in k-Group42.1%Hard0.18884373606243307https://leetcode.com/problems/reverse-nodes-in-k-group
133199Binary Tree Right Side View54.1%Medium0.18661020557359304https://leetcode.com/problems/binary-tree-right-side-view
134449Serialize and Deserialize BST52.0%Medium0.1860058460684763https://leetcode.com/problems/serialize-and-deserialize-bst
13579Word Search35.6%Medium0.18365355832289545https://leetcode.com/problems/word-search
136759Employee Free Time66.2%Hard0.1816986978513639https://leetcode.com/problems/employee-free-time
1371244Design A Leaderboard60.7%Medium0.17763094743610072https://leetcode.com/problems/design-a-leaderboard
13813Roman to Integer55.7%Easy0.17663825552387563https://leetcode.com/problems/roman-to-integer
139737Sentence Similarity II45.8%Medium0.17520408902509066https://leetcode.com/problems/sentence-similarity-ii
1401011Capacity To Ship Packages Within D Days58.1%Medium0.1747811031478766https://leetcode.com/problems/capacity-to-ship-packages-within-d-days
141205Isomorphic Strings39.8%Easy0.1703978238463443https://leetcode.com/problems/isomorphic-strings
1421099Two Sum Less Than K60.6%Easy0.16935823314801637https://leetcode.com/problems/two-sum-less-than-k
1431430Check 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
14436Valid Sudoku48.7%Medium0.16730621375459595https://leetcode.com/problems/valid-sudoku
145715Range Module38.5%Hard0.1636294237818021https://leetcode.com/problems/range-module
1461373Maximum Sum BST in Binary Tree40.2%Hard0.1599143845440084https://leetcode.com/problems/maximum-sum-bst-in-binary-tree
147535Encode and Decode TinyURL79.9%Medium0.15827628732919474https://leetcode.com/problems/encode-and-decode-tinyurl
148545Boundary of Binary Tree38.9%Medium0.15687671513649673https://leetcode.com/problems/boundary-of-binary-tree
149335Self Crossing28.0%Hard0.15535044001916237https://leetcode.com/problems/self-crossing
150101Symmetric Tree46.8%Easy0.15457702816029933https://leetcode.com/problems/symmetric-tree
151767Reorganize String48.7%Medium0.15185314866152042https://leetcode.com/problems/reorganize-string
152410Split Array Largest Sum44.5%Hard0.1513456288996497https://leetcode.com/problems/split-array-largest-sum
15357Insert Interval33.5%Hard0.14994432629434787https://leetcode.com/problems/insert-interval
154739Daily Temperatures63.3%Medium0.14956674442158685https://leetcode.com/problems/daily-temperatures
1551038Binary Search Tree to Greater Sum Tree80.8%Medium0.14935273742511918https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
156221Maximal Square37.7%Medium0.1475288463816385https://leetcode.com/problems/maximal-square
157682Baseball Game63.7%Easy0.14664834440479207https://leetcode.com/problems/baseball-game
15822Generate Parentheses62.7%Medium0.14612656455721032https://leetcode.com/problems/generate-parentheses
1591102Path With Maximum Minimum Value49.2%Medium0.1444815825552332https://leetcode.com/problems/path-with-maximum-minimum-value
160426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium0.14252878462127264https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
1611083Sales Analysis II50.5%Easy0.1417462887434142https://leetcode.com/problems/sales-analysis-ii
162690Employee Importance57.3%Easy0.14131823975737387https://leetcode.com/problems/employee-importance
163207Course Schedule43.1%Medium0.1402270159030123https://leetcode.com/problems/course-schedule
164261Graph Valid Tree42.2%Medium0.13984351177036686https://leetcode.com/problems/graph-valid-tree
165354Russian Doll Envelopes35.6%Hard0.13850969523609932https://leetcode.com/problems/russian-doll-envelopes
166286Walls and Gates54.5%Medium0.13712574822724946https://leetcode.com/problems/walls-and-gates
16710Regular Expression Matching26.8%Hard0.13632230148088326https://leetcode.com/problems/regular-expression-matching
1681405Longest Happy String49.0%Medium0.1343297958605471https://leetcode.com/problems/longest-happy-string
169378Kth Smallest Element in a Sorted Matrix54.3%Medium0.13397014948713715https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
170215Kth Largest Element in an Array55.4%Medium0.13169686633492952https://leetcode.com/problems/kth-largest-element-in-an-array
171981Time Based Key-Value Store53.1%Medium0.1316303182973487https://leetcode.com/problems/time-based-key-value-store
172148Sort List42.3%Medium0.1292970884857343https://leetcode.com/problems/sort-list
1731117Building H2O52.6%Medium0.12796988096337653https://leetcode.com/problems/building-h2o
174347Top K Frequent Elements61.2%Medium0.12591062025304192https://leetcode.com/problems/top-k-frequent-elements
17584Largest Rectangle in Histogram35.2%Hard0.12570469475928556https://leetcode.com/problems/largest-rectangle-in-histogram
1761139Largest 1-Bordered Square47.5%Medium0.12477221253464107https://leetcode.com/problems/largest-1-bordered-square
1771130Minimum Cost Tree From Leaf Values66.1%Medium0.12332774831203028https://leetcode.com/problems/minimum-cost-tree-from-leaf-values
178262Trips and Users32.7%Hard0.12266506325369182https://leetcode.com/problems/trips-and-users
179177Nth Highest Salary31.4%Medium0.12247703235966204https://leetcode.com/problems/nth-highest-salary
1801214Two Sum BSTs67.6%Medium0.12247703235966204https://leetcode.com/problems/two-sum-bsts
18119Remove Nth Node From End of List35.2%Medium0.12237713290283221https://leetcode.com/problems/remove-nth-node-from-end-of-list
182844Backspace String Compare46.4%Easy0.12201137176590456https://leetcode.com/problems/backspace-string-compare
18346Permutations63.5%Medium0.12027982804941116https://leetcode.com/problems/permutations
1841229Meeting Scheduler52.7%Medium0.11671261732648351https://leetcode.com/problems/meeting-scheduler
1851275Find Winner on a Tic Tac Toe Game52.8%Easy0.11536465479210183https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game
1861375Bulb Switcher III62.6%Medium0.11506932978478719https://leetcode.com/problems/bulb-switcher-iii
187540Single Element in a Sorted Array57.9%Medium0.11443656521536286https://leetcode.com/problems/single-element-in-a-sorted-array
188229Majority Element II35.6%Medium0.11355198202632807https://leetcode.com/problems/majority-element-ii
189120Triangle44.2%Medium0.11325730177515365https://leetcode.com/problems/triangle
190296Best Meeting Point57.5%Hard0.11216225709564905https://leetcode.com/problems/best-meeting-point
1911004Max Consecutive Ones III59.1%Medium0.11063437101968247https://leetcode.com/problems/max-consecutive-ones-iii
19239Combination Sum56.1%Medium0.10982174474537089https://leetcode.com/problems/combination-sum
193695Max Area of Island62.7%Medium0.10876995385464024https://leetcode.com/problems/max-area-of-island
19496Unique Binary Search Trees52.9%Medium0.10772540512336069https://leetcode.com/problems/unique-binary-search-trees
195152Maximum Product Subarray31.7%Medium0.10753054905987956https://leetcode.com/problems/maximum-product-subarray
19629Divide Two Integers16.4%Medium0.10321754835984784https://leetcode.com/problems/divide-two-integers
1971143Longest Common Subsequence58.4%Medium0.10320598865355674https://leetcode.com/problems/longest-common-subsequence
1981013Partition Array Into Three Parts With Equal Sum51.8%Easy0.10294796925244239https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum
199453Minimum Moves to Equal Array Elements50.2%Easy0.10178269430994231https://leetcode.com/problems/minimum-moves-to-equal-array-elements
200442Find All Duplicates in an Array67.8%Medium0.10047484799446413https://leetcode.com/problems/find-all-duplicates-in-an-array
201417Pacific Atlantic Water Flow41.1%Medium0.10008345855698253https://leetcode.com/problems/pacific-atlantic-water-flow
202628Maximum Product of Three Numbers47.1%Easy0.09909090264423091https://leetcode.com/problems/maximum-product-of-three-numbers
2031135Connecting Cities With Minimum Cost57.5%Medium0.09909090264423091https://leetcode.com/problems/connecting-cities-with-minimum-cost
20451N-Queens46.6%Hard0.09831093224356313https://leetcode.com/problems/n-queens
205218The Skyline Problem34.6%Hard0.09823843958341322https://leetcode.com/problems/the-skyline-problem
20641First Missing Positive32.0%Hard0.0979525363954321https://leetcode.com/problems/first-missing-positive
207529Minesweeper59.1%Medium0.09695424100489167https://leetcode.com/problems/minesweeper
2081046Last Stone Weight62.2%Easy0.09686234390618549https://leetcode.com/problems/last-stone-weight
209230Kth Smallest Element in a BST60.2%Medium0.09685471541555685https://leetcode.com/problems/kth-smallest-element-in-a-bst
210980Unique Paths III73.3%Hard0.09531017980432487https://leetcode.com/problems/unique-paths-iii
21186Partition List41.5%Medium0.09480379573736777https://leetcode.com/problems/partition-list
212716Max Stack42.6%Easy0.09362342046209744https://leetcode.com/problems/max-stack
213611Valid Triangle Number48.4%Medium0.09333193979221914https://leetcode.com/problems/valid-triangle-number
214827Making A Large Island45.7%Hard0.09287412500644375https://leetcode.com/problems/making-a-large-island
215384Shuffle an Array52.8%Medium0.09170644621893462https://leetcode.com/problems/shuffle-an-array
2168String to Integer (atoi)15.4%Medium0.09074872434968777https://leetcode.com/problems/string-to-integer-atoi
217153Find Minimum in Rotated Sorted Array45.1%Medium0.0899077741767165https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
218243Shortest Word Distance61.0%Easy0.08952296190665864https://leetcode.com/problems/shortest-word-distance
219995Minimum Number of K Consecutive Bit Flips46.8%Hard0.08894748601649616https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips
220301Remove Invalid Parentheses43.3%Hard0.08716315660591871https://leetcode.com/problems/remove-invalid-parentheses
221109Convert Sorted List to Binary Search Tree47.7%Medium0.08701137698962977https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
222176Second Highest Salary31.6%Easy0.08701137698962977https://leetcode.com/problems/second-highest-salary
223622Design Circular Queue43.7%Medium0.08696405427235052https://leetcode.com/problems/design-circular-queue
22472Edit Distance44.8%Hard0.08673866592531046https://leetcode.com/problems/edit-distance
225315Count of Smaller Numbers After Self41.5%Hard0.08649925937213519https://leetcode.com/problems/count-of-smaller-numbers-after-self
226184Sum33.7%Medium0.08527891770220855https://leetcode.com/problems/4sum
227113Path Sum II46.7%Medium0.08479653666007693https://leetcode.com/problems/path-sum-ii
228916Word Subsets47.8%Medium0.08479653666007693https://leetcode.com/problems/word-subsets
2291245Tree Diameter60.1%Medium0.08338160893905106https://leetcode.com/problems/tree-diameter
230473Matchsticks to Square37.7%Medium0.08201315166083516https://leetcode.com/problems/matchsticks-to-square
231134Gas Station38.5%Medium0.08169138321871633https://leetcode.com/problems/gas-station
232636Exclusive Time of Functions52.0%Medium0.08155306616046964https://leetcode.com/problems/exclusive-time-of-functions
233122Best Time to Buy and Sell Stock II57.0%Easy0.08066286273217169https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
234161One Edit Distance32.3%Medium0.07982960165248484https://leetcode.com/problems/one-edit-distance
235451Sort Characters By Frequency63.0%Medium0.07950784615171191https://leetcode.com/problems/sort-characters-by-frequency
236128Longest Consecutive Sequence45.1%Hard0.0786603197723907https://leetcode.com/problems/longest-consecutive-sequence
237341Flatten Nested List Iterator52.9%Medium0.07763353611776078https://leetcode.com/problems/flatten-nested-list-iterator
238518Coin Change 250.2%Medium0.07583984694698977https://leetcode.com/problems/coin-change-2
239547Friend Circles58.6%Medium0.07408600065076033https://leetcode.com/problems/friend-circles
240860Lemonade Change51.6%Easy0.07208884919207953https://leetcode.com/problems/lemonade-change
2411008Construct Binary Search Tree from Preorder Traversal78.4%Medium0.07181191271198491https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
242523Continuous Subarray Sum24.6%Medium0.07166389251403688https://leetcode.com/problems/continuous-subarray-sum
243102Binary Tree Level Order Traversal54.6%Medium0.0712263700241388https://leetcode.com/problems/binary-tree-level-order-traversal
2441074Number of Submatrices That Sum to Target60.4%Hard0.07120444629179161https://leetcode.com/problems/number-of-submatrices-that-sum-to-target
24537Sudoku Solver43.6%Hard0.07095173597228444https://leetcode.com/problems/sudoku-solver
246438Find All Anagrams in a String43.3%Medium0.07086789751218016https://leetcode.com/problems/find-all-anagrams-in-a-string
247632Smallest Range Covering Elements from K Lists52.4%Hard0.07082605256861242https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
248187Repeated DNA Sequences38.9%Medium0.06947237281476738https://leetcode.com/problems/repeated-dna-sequences
249117Populating Next Right Pointers in Each Node II39.1%Medium0.0691455898745421https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii
250432All O`one Data Structure32.4%Hard0.06887402901251127https://leetcode.com/problems/all-oone-data-structure
251123Best Time to Buy and Sell Stock III37.5%Hard0.06838868749455218https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
252316Remove Duplicate Letters35.8%Hard0.067239661116769https://leetcode.com/problems/remove-duplicate-letters
253368Largest Divisible Subset38.0%Medium0.0670392438027145https://leetcode.com/problems/largest-divisible-subset
2541032Stream of Characters48.3%Hard0.06646964500774162https://leetcode.com/problems/stream-of-characters
255584Find Customer Referee72.3%Easy0.06592172080482424https://leetcode.com/problems/find-customer-referee
256163Sum Closest46.0%Medium0.065777130514714https://leetcode.com/problems/3sum-closest
257124Binary Tree Maximum Path Sum34.3%Hard0.06574255262249057https://leetcode.com/problems/binary-tree-maximum-path-sum
258997Find the Town Judge50.1%Easy0.06548984513511495https://leetcode.com/problems/find-the-town-judge
259287Find the Duplicate Number55.5%Medium0.06539148783312071https://leetcode.com/problems/find-the-duplicate-number
260387First Unique Character in a String53.4%Easy0.06495130161301915https://leetcode.com/problems/first-unique-character-in-a-string
261116Populating Next Right Pointers in Each Node45.2%Medium0.06417026482702023https://leetcode.com/problems/populating-next-right-pointers-in-each-node
2621270All People Report to the Given Manager87.1%Medium0.06412452816953867https://leetcode.com/problems/all-people-report-to-the-given-manager
2631005Maximize Sum Of Array After K Negations51.3%Easy0.06371581438610768https://leetcode.com/problems/maximize-sum-of-array-after-k-negations
26471Simplify Path32.6%Medium0.06351340572232586https://leetcode.com/problems/simplify-path
265300Longest Increasing Subsequence42.6%Medium0.06265630749555627https://leetcode.com/problems/longest-increasing-subsequence
2661044Longest Duplicate Substring31.9%Hard0.062325463197828765https://leetcode.com/problems/longest-duplicate-substring
26773Set Matrix Zeroes43.1%Medium0.061431799532484045https://leetcode.com/problems/set-matrix-zeroes
26848Rotate Image56.7%Medium0.06069974483040549https://leetcode.com/problems/rotate-image
269701Insert into a Binary Search Tree77.7%Medium0.06069363413516112https://leetcode.com/problems/insert-into-a-binary-search-tree
27088Merge Sorted Array39.4%Easy0.059258174101133876https://leetcode.com/problems/merge-sorted-array
271373Find K Pairs with Smallest Sums36.7%Medium0.058155920157074034https://leetcode.com/problems/find-k-pairs-with-smallest-sums
27298Validate Binary Search Tree27.8%Medium0.057985181512132535https://leetcode.com/problems/validate-binary-search-tree
273206Reverse Linked List62.5%Easy0.05691436258797462https://leetcode.com/problems/reverse-linked-list
274873Length of Longest Fibonacci Subsequence48.0%Medium0.05691436258797462https://leetcode.com/problems/length-of-longest-fibonacci-subsequence
275283Move Zeroes57.8%Easy0.05686540295029014https://leetcode.com/problems/move-zeroes
276586Customer Placing the Largest Number of Orders73.0%Easy0.0568334747631659https://leetcode.com/problems/customer-placing-the-largest-number-of-orders
277279Perfect Squares47.4%Medium0.05625780265009439https://leetcode.com/problems/perfect-squares
27832Longest Valid Parentheses28.4%Hard0.0556316959861487https://leetcode.com/problems/longest-valid-parentheses
279849Maximize Distance to Closest Person42.6%Easy0.055535552308963565https://leetcode.com/problems/maximize-distance-to-closest-person
280366Find Leaves of Binary Tree70.6%Medium0.05526267867504946https://leetcode.com/problems/find-leaves-of-binary-tree
281839Similar String Groups38.6%Hard0.05480823649499502https://leetcode.com/problems/similar-string-groups
282538Convert BST to Greater Tree55.4%Easy0.05475820397384584https://leetcode.com/problems/convert-bst-to-greater-tree
283983Minimum Cost For Tickets60.5%Medium0.05469163590186561https://leetcode.com/problems/minimum-cost-for-tickets
284443String Compression41.3%Easy0.05450940566837169https://leetcode.com/problems/string-compression
285131Palindrome Partitioning47.5%Medium0.05449083692828802https://leetcode.com/problems/palindrome-partitioning
286703Kth Largest Element in a Stream49.7%Easy0.054472280837981495https://leetcode.com/problems/kth-largest-element-in-a-stream
287179Largest Number28.8%Medium0.0543427413161019https://leetcode.com/problems/largest-number
288310Minimum Height Trees32.3%Medium0.05423015406086025https://leetcode.com/problems/minimum-height-trees
289234Palindrome Linked List39.3%Easy0.05416885609643319https://leetcode.com/problems/palindrome-linked-list
290329Longest Increasing Path in a Matrix43.4%Hard0.052557250738676044https://leetcode.com/problems/longest-increasing-path-in-a-matrix
291581Shortest Unsorted Continuous Subarray31.1%Easy0.052333720049023605https://leetcode.com/problems/shortest-unsorted-continuous-subarray
292209Minimum Size Subarray Sum38.2%Medium0.05146227039335983https://leetcode.com/problems/minimum-size-subarray-sum
293560Subarray Sum Equals K43.9%Medium0.0512021569656579https://leetcode.com/problems/subarray-sum-equals-k
29465Valid Number15.3%Hard0.05071509257901641https://leetcode.com/problems/valid-number
2951339Maximum Product of Splitted Binary Tree37.2%Medium0.05064373281875492https://leetcode.com/problems/maximum-product-of-splitted-binary-tree
296681Next Closest Time45.0%Medium0.05045206096038863https://leetcode.com/problems/next-closest-time
297382Linked List Random Node52.1%Medium0.05045206096038863https://leetcode.com/problems/linked-list-random-node
298743Network Delay Time45.0%Medium0.05002606023684499https://leetcode.com/problems/network-delay-time
299129Sum Root to Leaf Numbers49.1%Medium0.050010420574661374https://leetcode.com/problems/sum-root-to-leaf-numbers
300242Valid Anagram56.9%Easy0.04973624974928908https://leetcode.com/problems/valid-anagram
301285Inorder Successor in BST40.4%Medium0.049569618859417214https://leetcode.com/problems/inorder-successor-in-bst
302181Employees Earning More Than Their Managers56.9%Easy0.04954573655142984https://leetcode.com/problems/employees-earning-more-than-their-managers
303137Single Number II52.4%Medium0.04919528672454412https://leetcode.com/problems/single-number-ii
304969Pancake Sorting67.5%Medium0.04908961019652358https://leetcode.com/problems/pancake-sorting
3051267Count Servers that Communicate57.9%Medium0.04902942724031861https://leetcode.com/problems/count-servers-that-communicate
3061153String Transforms Into Another String35.8%Hard0.04861224405509378https://leetcode.com/problems/string-transforms-into-another-string
307407Trapping Rain Water II42.4%Hard0.04797082778602956https://leetcode.com/problems/trapping-rain-water-ii
308986Interval List Intersections67.3%Medium0.04703983015489417https://leetcode.com/problems/interval-list-intersections
309336Palindrome Pairs33.7%Hard0.04690191367275952https://leetcode.com/problems/palindrome-pairs
310698Partition to K Equal Sum Subsets45.0%Medium0.04685917114094188https://leetcode.com/problems/partition-to-k-equal-sum-subsets
311556Next Greater Element III31.7%Medium0.04679216150675895https://leetcode.com/problems/next-greater-element-iii
312359Logger Rate Limiter70.8%Easy0.0467617659080393https://leetcode.com/problems/logger-rate-limiter
313978Longest Turbulent Subarray46.6%Medium0.046737477851689815https://leetcode.com/problems/longest-turbulent-subarray
314415Add Strings47.5%Easy0.04650270606183304https://leetcode.com/problems/add-strings
315264Ugly Number II42.0%Medium0.04563095565767374https://leetcode.com/problems/ugly-number-ii
316843Guess the Word46.1%Hard0.045462374076757336https://leetcode.com/problems/guess-the-word
3171162As Far from Land as Possible43.5%Medium0.04510347333459475https://leetcode.com/problems/as-far-from-land-as-possible
3181382Balance a Binary Search Tree74.8%Medium0.04480032475536626https://leetcode.com/problems/balance-a-binary-search-tree
319349Intersection of Two Arrays62.5%Easy0.04447549064708117https://leetcode.com/problems/intersection-of-two-arrays
320268Missing Number51.7%Easy0.043089480538103624https://leetcode.com/problems/missing-number
321515Find Largest Value in Each Tree Row61.1%Medium0.042459207771791546https://leetcode.com/problems/find-largest-value-in-each-tree-row
322184Department Highest Salary36.7%Medium0.041672696400568025https://leetcode.com/problems/department-highest-salary
323169Majority Element58.7%Easy0.041581229756944955https://leetcode.com/problems/majority-element
324430Flatten a Multilevel Doubly Linked List55.1%Medium0.04154283751370906https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
32592Reverse Linked List II38.8%Medium0.041073535208287514https://leetcode.com/problems/reverse-linked-list-ii
326647Palindromic Substrings60.6%Medium0.040968350772541844https://leetcode.com/problems/palindromic-substrings
32762Unique Paths54.1%Medium0.04084052144450833https://leetcode.com/problems/unique-paths
3281094Car Pooling56.7%Medium0.04016604172533471https://leetcode.com/problems/car-pooling
329686Repeated String Match32.3%Easy0.03984590854719967https://leetcode.com/problems/repeated-string-match
330406Queue Reconstruction by Height66.9%Medium0.03949613834265583https://leetcode.com/problems/queue-reconstruction-by-height
331289Game of Life54.5%Medium0.03856519035039098https://leetcode.com/problems/game-of-life
332202Happy Number50.4%Easy0.03853744444187023https://leetcode.com/problems/happy-number
333178Rank Scores45.8%Medium0.037379767071581464https://leetcode.com/problems/rank-scores
3341031Maximum Sum of Two Non-Overlapping Subarrays57.9%Medium0.03711000965123125https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays
335646Maximum Length of Pair Chain51.9%Medium0.036870535808327706https://leetcode.com/problems/maximum-length-of-pair-chain
336729My Calendar I51.8%Medium0.036433902246102004https://leetcode.com/problems/my-calendar-i
337884Uncommon Words from Two Sentences63.3%Easy0.036301626676214796https://leetcode.com/problems/uncommon-words-from-two-sentences
3381249Minimum Remove to Make Valid Parentheses62.5%Medium0.03628515973976445https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses
339875Koko Eating Bananas52.1%Medium0.0359751024582779https://leetcode.com/problems/koko-eating-bananas
3401254Number of Closed Islands60.5%Medium0.03540192705091593https://leetcode.com/problems/number-of-closed-islands
34163Unique Paths II34.6%Medium0.03440459729940371https://leetcode.com/problems/unique-paths-ii
3421002Find Common Characters67.6%Easy0.03404262162737441https://leetcode.com/problems/find-common-characters
343226Invert Binary Tree65.0%Easy0.03393837323839263https://leetcode.com/problems/invert-binary-tree
344528Random Pick with Weight43.9%Medium0.03306693626657339https://leetcode.com/problems/random-pick-with-weight
345235Lowest Common Ancestor of a Binary Search Tree49.9%Easy0.032470385030784074https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
346133Clone Graph34.8%Medium0.03215711163453134https://leetcode.com/problems/clone-graph
3471146Snapshot Array37.0%Medium0.0317991816929387https://leetcode.com/problems/snapshot-array
348653Two Sum IV - Input is a BST55.5%Easy0.031726312677204306https://leetcode.com/problems/two-sum-iv-input-is-a-bst
349150Evaluate Reverse Polish Notation36.3%Medium0.031526253646773944https://leetcode.com/problems/evaluate-reverse-polish-notation
35038Count and Say44.6%Easy0.030956234663467107https://leetcode.com/problems/count-and-say
3511179Reformat Department Table80.6%Easy0.030653741091002412https://leetcode.com/problems/reformat-department-table
352135Candy31.6%Hard0.029764101906453892https://leetcode.com/problems/candy
353419Battleships in a Board70.0%Medium0.02967576814611661https://leetcode.com/problems/battleships-in-a-board
354413Arithmetic Slices57.9%Medium0.028431197162004825https://leetcode.com/problems/arithmetic-slices
35577Combinations54.7%Medium0.028021758737593695https://leetcode.com/problems/combinations
356204Count Primes31.5%Easy0.02799343042200216https://leetcode.com/problems/count-primes
357183Customers Who Never Order53.4%Easy0.027702602549335792https://leetcode.com/problems/customers-who-never-order
35868Text Justification27.7%Hard0.0276451606661453https://leetcode.com/problems/text-justification
359249Group Shifted Strings55.1%Medium0.0276069982440099https://leetcode.com/problems/group-shifted-strings
360114Flatten Binary Tree to Linked List49.3%Medium0.02730545069026746https://leetcode.com/problems/flatten-binary-tree-to-linked-list
361130Surrounded Regions28.1%Medium0.02672368055211276https://leetcode.com/problems/surrounded-regions
362931Minimum Falling Path Sum62.5%Medium0.02672169681715245https://leetcode.com/problems/minimum-falling-path-sum
36334Find First and Last Position of Element in Sorted Array36.2%Medium0.026256496787488606https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
364158Read N Characters Given Read4 II - Call multiple times33.8%Hard0.026196651946570663https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times
3651395Count Number of Teams82.0%Medium0.025462865161248044https://leetcode.com/problems/count-number-of-teams
366862Shortest Subarray with Sum at Least K24.6%Hard0.025398190605610438https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k
367951Flip Equivalent Binary Trees65.8%Medium0.025269822188076344https://leetcode.com/problems/flip-equivalent-binary-trees
368232Implement Queue using Stacks49.6%Easy0.025119936515296634https://leetcode.com/problems/implement-queue-using-stacks
369785Is Graph Bipartite?47.5%Medium0.02510592113107633https://leetcode.com/problems/is-graph-bipartite
370132Palindrome Partitioning II30.2%Hard0.024436157849456068https://leetcode.com/problems/palindrome-partitioning-ii
371714Best Time to Buy and Sell Stock with Transaction Fee54.7%Medium0.024258315059789946https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee
372836Rectangle Overlap48.6%Easy0.024228925974379843https://leetcode.com/problems/rectangle-overlap
373395Longest Substring with At Least K Repeating Characters41.4%Medium0.024228925974379843https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
37470Climbing Stairs47.8%Easy0.023866591309041507https://leetcode.com/problems/climbing-stairs
37531Next Permutation32.6%Medium0.023747034562878154https://leetcode.com/problems/next-permutation
376704Binary Search52.1%Easy0.02368531774150923https://leetcode.com/problems/binary-search
3771161Maximum Level Sum of a Binary Tree72.2%Medium0.023270392682351006https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree
3781299Replace Elements with Greatest Element on Right Side75.4%Easy0.022756987122616215https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side
379678Valid Parenthesis String31.0%Medium0.02271534352147261https://leetcode.com/problems/valid-parenthesis-string
38061Rotate List30.0%Medium0.022195732391784302https://leetcode.com/problems/rotate-list
381112Path Sum41.2%Easy0.021701651897460775https://leetcode.com/problems/path-sum
3821019Next Greater Node In Linked List57.4%Medium0.02159911180346178https://leetcode.com/problems/next-greater-node-in-linked-list
3831520Maximum Number of Non-Overlapping Substrings32.8%Hard0.021485667755491482https://leetcode.com/problems/maximum-number-of-non-overlapping-substrings
384841Keys and Rooms64.3%Medium0.021425565169310254https://leetcode.com/problems/keys-and-rooms
385921Minimum Add to Make Parentheses Valid73.7%Medium0.021425565169310254https://leetcode.com/problems/minimum-add-to-make-parentheses-valid
38614Longest Common Prefix35.4%Easy0.02057347087022327https://leetcode.com/problems/longest-common-prefix
387784Letter Case Permutation64.6%Medium0.02026411791905559https://leetcode.com/problems/letter-case-permutation
38869Sqrt(x)33.9%Easy0.020253856904497686https://leetcode.com/problems/sqrtx
389180Consecutive Numbers39.7%Medium0.02021291655585931https://leetcode.com/problems/consecutive-numbers
390525Contiguous Array42.8%Medium0.01975372873623256https://leetcode.com/problems/contiguous-array
391435Non-overlapping Intervals42.9%Medium0.019455866615365896https://leetcode.com/problems/non-overlapping-intervals
392416Partition Equal Subset Sum43.7%Medium0.01943905703222215https://leetcode.com/problems/partition-equal-subset-sum
3931048Longest String Chain54.7%Medium0.019361689049145963https://leetcode.com/problems/longest-string-chain
394787Cheapest Flights Within K Stops39.3%Medium0.018824085245635554https://leetcode.com/problems/cheapest-flights-within-k-stops
395450Delete Node in a BST43.1%Medium0.018536211907915243https://leetcode.com/problems/delete-node-in-a-bst
396290Word Pattern37.0%Easy0.01839978311884168https://leetcode.com/problems/word-pattern
397590N-ary Tree Postorder Traversal72.1%Easy0.018182319083190436https://leetcode.com/problems/n-ary-tree-postorder-traversal
39854201 Matrix39.8%Medium0.01796993548494071https://leetcode.com/problems/01-matrix
399383Ransom Note53.1%Easy0.017621601349819518https://leetcode.com/problems/ransom-note
400993Cousins in Binary Tree52.0%Easy0.017414458368636587https://leetcode.com/problems/cousins-in-binary-tree
401104Maximum Depth of Binary Tree66.0%Easy0.017297878201610554https://leetcode.com/problems/maximum-depth-of-binary-tree
4026ZigZag Conversion36.3%Medium0.01726827253226344https://leetcode.com/problems/zigzag-conversion
403337House Robber III50.6%Medium0.017182553319996886https://leetcode.com/problems/house-robber-iii
40450Pow(x;n)30.3%Medium0.017036779497025166https://leetcode.com/problems/powx-n
405389Find the Difference55.3%Easy0.016978336534417868https://leetcode.com/problems/find-the-difference
406402Remove K Digits28.4%Medium0.016863806052004816https://leetcode.com/problems/remove-k-digits
4071110Delete Nodes And Return Forest67.0%Medium0.01660478167636296https://leetcode.com/problems/delete-nodes-and-return-forest
4081108Defanging an IP Address87.5%Easy0.016423726830643748https://leetcode.com/problems/defanging-an-ip-address
409299Bulls and Cows42.4%Easy0.016227536621756702https://leetcode.com/problems/bulls-and-cows
410340Longest Substring with At Most K Distinct Characters44.1%Hard0.016122880486563188https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
411412Fizz Buzz62.3%Easy0.016051709010507904https://leetcode.com/problems/fizz-buzz
412509Fibonacci Number67.2%Easy0.01593518138579736https://leetcode.com/problems/fibonacci-number
4131304Find N Unique Integers Sum up to Zero76.3%Easy0.015892269319508656https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero
414938Range Sum of BST81.3%Easy0.015707129205357877https://leetcode.com/problems/range-sum-of-bst
41528Implement strStr()34.5%Easy0.01568044672076543https://leetcode.com/problems/implement-strstr
416118Pascal's Triangle52.5%Easy0.015123796918620345https://leetcode.com/problems/pascals-triangle
417567Permutation in String44.4%Medium0.014947961435873182https://leetcode.com/problems/permutation-in-string
418912Sort an Array63.9%Medium0.01443026482902881https://leetcode.com/problems/sort-an-array
419107Binary Tree Level Order Traversal II53.5%Easy0.014395642075089957https://leetcode.com/problems/binary-tree-level-order-traversal-ii
420404Sum of Left Leaves50.9%Easy0.013981353230340547https://leetcode.com/problems/sum-of-left-leaves
421304Range Sum Query 2D - Immutable38.6%Medium0.013913267916985026https://leetcode.com/problems/range-sum-query-2d-immutable
422724Find Pivot Index44.0%Easy0.013850636933899008https://leetcode.com/problems/find-pivot-index
42344Wildcard Matching24.7%Hard0.013703537497261858https://leetcode.com/problems/wildcard-matching
4241047Remove All Adjacent Duplicates In String68.6%Easy0.013059277989179281https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
425344Reverse String68.5%Easy0.013014662307854044https://leetcode.com/problems/reverse-string
42682Remove Duplicates from Sorted List II36.8%Medium0.01297035044262745https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
427213House Robber II36.5%Medium0.012654392210497564https://leetcode.com/problems/house-robber-ii
428852Peak Index in a Mountain Array71.6%Easy0.012618463959211509https://leetcode.com/problems/peak-index-in-a-mountain-array
429108Convert Sorted Array to Binary Search Tree57.9%Easy0.012453461071286613https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
430167Two Sum II - Input array is sorted54.1%Easy0.012349223898473458https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
4319Palindrome Number48.4%Easy0.01209661684713821https://leetcode.com/problems/palindrome-number
43281Search in Rotated Sorted Array II33.0%Medium0.011689203815677656https://leetcode.com/problems/search-in-rotated-sorted-array-ii
433350Intersection of Two Arrays II51.4%Easy0.01168540951877908https://leetcode.com/problems/intersection-of-two-arrays-ii
434136Single Number65.5%Easy0.011429512235126808https://leetcode.com/problems/single-number
43590Subsets II47.1%Medium0.011412392051744769https://leetcode.com/problems/subsets-ii
436171Excel Sheet Column Number55.9%Easy0.011195191092491645https://leetcode.com/problems/excel-sheet-column-number
437559Maximum Depth of N-ary Tree68.7%Easy0.010974047031976715https://leetcode.com/problems/maximum-depth-of-n-ary-tree
438463Island Perimeter65.7%Easy0.010935046086198837https://leetcode.com/problems/island-perimeter
439662Maximum Width of Binary Tree41.0%Medium0.010790501245113902https://leetcode.com/problems/maximum-width-of-binary-tree
440414Third Maximum Number30.5%Easy0.010357420400453607https://leetcode.com/problems/third-maximum-number
44140Combination Sum II48.2%Medium0.009578617297069781https://leetcode.com/problems/combination-sum-ii
442106Construct Binary Tree from Inorder and Postorder Traversal47.2%Medium0.009328969762346678https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
443189Rotate Array34.7%Easy0.00904437880665999https://leetcode.com/problems/rotate-array
444125Valid Palindrome36.7%Easy0.008933948641551634https://leetcode.com/problems/valid-palindrome
445953Verifying an Alien Dictionary54.1%Easy0.007884921592696038https://leetcode.com/problems/verifying-an-alien-dictionary
446141Linked List Cycle41.1%Easy0.007843861028908454https://leetcode.com/problems/linked-list-cycle
4471344Angle Between Hands of a Clock61.4%Medium0.007795031188053973https://leetcode.com/problems/angle-between-hands-of-a-clock
44826Remove Duplicates from Sorted Array45.1%Easy0.007782518973063169https://leetcode.com/problems/remove-duplicates-from-sorted-array
44994Binary Tree Inorder Traversal63.3%Medium0.007533307577636257https://leetcode.com/problems/binary-tree-inorder-traversal
45066Plus One43.0%Easy0.007324847595025828https://leetcode.com/problems/plus-one
451771Jewels and Stones86.4%Easy0.007284679819409419https://leetcode.com/problems/jewels-and-stones
4521365How Many Numbers Are Smaller Than the Current Number85.6%Easy0.007109877088701047https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number
453110Balanced Binary Tree43.5%Easy0.007027435807456887https://leetcode.com/problems/balanced-binary-tree
45467Add Binary45.2%Easy0.006631598888145552https://leetcode.com/problems/add-binary
455203Remove Linked List Elements38.6%Easy0.006479067005887776https://leetcode.com/problems/remove-linked-list-elements
456151Reverse Words in a String21.9%Medium0.0061359296669270605https://leetcode.com/problems/reverse-words-in-a-string
4571431Kids With the Greatest Number of Candies88.9%Easy0.005927699633275225https://leetcode.com/problems/kids-with-the-greatest-number-of-candies
458621Task Scheduler50.1%Medium0.005261323957171611https://leetcode.com/problems/task-scheduler
459160Intersection of Two Linked Lists40.6%Easy0.004901369939720486https://leetcode.com/problems/intersection-of-two-linked-lists
46035Search Insert Position42.6%Easy0.004646848510375352https://leetcode.com/problems/search-insert-position
4617Reverse Integer25.8%Easy0.00418293972984512https://leetcode.com/problems/reverse-integer
462977Squares of a Sorted Array72.1%Easy0.003891055492966611https://leetcode.com/problems/squares-of-a-sorted-array
46378Subsets62.0%Medium0.00368765975195334https://leetcode.com/problems/subsets
464100Same Tree53.4%Easy0.003165227373565798https://leetcode.com/problems/same-tree
465309Best Time to Buy and Sell Stock with Cooldown47.4%Medium0.0028498166907604426https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown
466797All Paths From Source to Target77.9%Medium0.0024703569875376783https://leetcode.com/problems/all-paths-from-source-to-target
467260Single Number III64.3%Medium0.0020288097849578786https://leetcode.com/problems/single-number-iii