Files
LeetCode-Questions-CompanyWise/apple_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

40 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
21Two Sum45.6%Easy1.3239393390446https://leetcode.com/problems/two-sum
3284Peeking Iterator45.7%Medium1.225806299790293https://leetcode.com/problems/peeking-iterator
4146LRU Cache33.2%Medium1.1817054748912657https://leetcode.com/problems/lru-cache
51095Find in Mountain Array35.8%Hard1.0835724356369587https://leetcode.com/problems/find-in-mountain-array
6391Perfect Rectangle30.5%Hard0.9854393963826518https://leetcode.com/problems/perfect-rectangle
7403Frog Jump39.7%Hard0.977549850058533https://leetcode.com/problems/frog-jump
82Add Two Numbers33.9%Medium0.9760771681710703https://leetcode.com/problems/add-two-numbers
9341Flatten Nested List Iterator52.9%Medium0.9601739460032599https://leetcode.com/problems/flatten-nested-list-iterator
1053Maximum Subarray46.5%Easy0.9397769028056373https://leetcode.com/problems/maximum-subarray
1142Trapping Rain Water48.9%Hard0.8416438635513304https://leetcode.com/problems/trapping-rain-water
12428Serialize and Deserialize N-ary Tree59.4%Hard0.8184023944755309https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree
134Median of Two Sorted Arrays29.6%Hard0.7804874458075195https://leetcode.com/problems/median-of-two-sorted-arrays
1497Interleaving String31.5%Hard0.6933519806963994https://leetcode.com/problems/interleaving-string
15295Find Median from Data Stream44.3%Hard0.6374386685560265https://leetcode.com/problems/find-median-from-data-stream
16212Word Search II34.9%Hard0.5393056293017195https://leetcode.com/problems/word-search-ii
17311Sparse Matrix Multiplication61.9%Medium0.4503238876572249https://leetcode.com/problems/sparse-matrix-multiplication
18200Number of Islands46.8%Medium0.44929804774434284https://leetcode.com/problems/number-of-islands
19479Largest Palindrome Product29.0%Hard0.44183275227903923https://leetcode.com/problems/largest-palindrome-product
2049Group Anagrams56.9%Medium0.40816116873735864https://leetcode.com/problems/group-anagrams
21688Knight Probability in Chessboard48.9%Medium0.38977851194046487https://leetcode.com/problems/knight-probability-in-chessboard
22351Android Unlock Patterns48.4%Medium0.38282263135840455https://leetcode.com/problems/android-unlock-patterns
23981Time Based Key-Value Store53.1%Medium0.3755723540313778https://leetcode.com/problems/time-based-key-value-store
24227Basic Calculator II36.9%Medium0.3709825801608562https://leetcode.com/problems/basic-calculator-ii
25206Reverse Linked List62.5%Easy0.3555322708386157https://leetcode.com/problems/reverse-linked-list
26329Longest Increasing Path in a Matrix43.4%Hard0.34223732585313005https://leetcode.com/problems/longest-increasing-path-in-a-matrix
2756Merge Intervals39.3%Medium0.324649020144345https://leetcode.com/problems/merge-intervals
2812Integer to Roman55.1%Medium0.30898314806430144https://leetcode.com/problems/integer-to-roman
29177Nth Highest Salary31.4%Medium0.3088994656700207https://leetcode.com/problems/nth-highest-salary
30202Happy Number50.4%Easy0.3027727255563815https://leetcode.com/problems/happy-number
31724Find Pivot Index44.0%Easy0.29912265485367395https://leetcode.com/problems/find-pivot-index
321229Meeting Scheduler52.7%Medium0.2955601745092634https://leetcode.com/problems/meeting-scheduler
33387First Unique Character in a String53.4%Easy0.2924677090124108https://leetcode.com/problems/first-unique-character-in-a-string
34996Number of Squareful Arrays47.8%Hard0.28675913745318005https://leetcode.com/problems/number-of-squareful-arrays
3554Spiral Matrix34.1%Medium0.28079436421311554https://leetcode.com/problems/spiral-matrix
36153Sum26.8%Medium0.2753610195122021https://leetcode.com/problems/3sum
375Longest Palindromic Substring29.5%Medium0.2637368700238773https://leetcode.com/problems/longest-palindromic-substring
38348Design Tic-Tac-Toe54.3%Medium0.2625527836498761https://leetcode.com/problems/design-tic-tac-toe
3921Merge Two Sorted Lists53.5%Easy0.2612738868325316https://leetcode.com/problems/merge-two-sorted-lists
40609Find Duplicate File in System59.5%Medium0.25388017696233983https://leetcode.com/problems/find-duplicate-file-in-system
41238Product of Array Except Self60.1%Medium0.25039509932624693https://leetcode.com/problems/product-of-array-except-self
42139Word Break40.1%Medium0.24836185186023652https://leetcode.com/problems/word-break
43251Flatten 2D Vector45.7%Medium0.2425088583672668https://leetcode.com/problems/flatten-2d-vector
44545Boundary of Binary Tree38.9%Medium0.235382573048932https://leetcode.com/problems/boundary-of-binary-tree
453Longest Substring Without Repeating Characters30.4%Medium0.23357430753991837https://leetcode.com/problems/longest-substring-without-repeating-characters
4648Rotate Image56.7%Medium0.22339894653970727https://leetcode.com/problems/rotate-image
47184Sum33.7%Medium0.22096511694444815https://leetcode.com/problems/4sum
488String to Integer (atoi)15.4%Medium0.2176759858041558https://leetcode.com/problems/string-to-integer-atoi
49393UTF-8 Validation37.5%Medium0.2166710368085923https://leetcode.com/problems/utf-8-validation
50661Image Smoother51.5%Easy0.21106039931128698https://leetcode.com/problems/image-smoother
51729My Calendar I51.8%Medium0.20856657856743668https://leetcode.com/problems/my-calendar-i
52362Design Hit Counter63.7%Medium0.20812125379246896https://leetcode.com/problems/design-hit-counter
5323Merge k Sorted Lists40.2%Hard0.20567737841612924https://leetcode.com/problems/merge-k-sorted-lists
54233Number of Digit One31.3%Hard0.20157261209600713https://leetcode.com/problems/number-of-digit-one
55836Rectangle Overlap48.6%Easy0.19944370144318244https://leetcode.com/problems/rectangle-overlap
5636Valid Sudoku48.7%Medium0.1991463806942981https://leetcode.com/problems/valid-sudoku
57706Design HashMap61.3%Easy0.1960785423771685https://leetcode.com/problems/design-hashmap
5846Permutations63.5%Medium0.18816690901782251https://leetcode.com/problems/permutations
59658Find K Closest Elements40.9%Medium0.18663941293482042https://leetcode.com/problems/find-k-closest-elements
60394Decode String50.0%Medium0.18648126820299707https://leetcode.com/problems/decode-string
61253Meeting Rooms II45.7%Medium0.18465102561460048https://leetcode.com/problems/meeting-rooms-ii
62911Online Election50.4%Medium0.1741842396477574https://leetcode.com/problems/online-election
631278Palindrome Partitioning III59.9%Hard0.17284281283941086https://leetcode.com/problems/palindrome-partitioning-iii
64223Rectangle Area37.8%Medium0.172469260350943https://leetcode.com/problems/rectangle-area
657Reverse Integer25.8%Easy0.1708373626727859https://leetcode.com/problems/reverse-integer
6631Next Permutation32.6%Medium0.16698476137397944https://leetcode.com/problems/next-permutation
67642Design Search Autocomplete System44.7%Hard0.16312782492496253https://leetcode.com/problems/design-search-autocomplete-system
68821Shortest Distance to a Character66.9%Easy0.16229864091884685https://leetcode.com/problems/shortest-distance-to-a-character
69242Valid Anagram56.9%Easy0.1620140669319784https://leetcode.com/problems/valid-anagram
70155Min Stack44.5%Easy0.15817175770099312https://leetcode.com/problems/min-stack
7188Merge Sorted Array39.4%Easy0.15664551938695154https://leetcode.com/problems/merge-sorted-array
72381Insert Delete GetRandom O(1) - Duplicates allowed34.1%Hard0.15656906069153992https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed
73125Valid Palindrome36.7%Easy0.15573056017039402https://leetcode.com/problems/valid-palindrome
7420Valid Parentheses39.0%Easy0.15392855906669206https://leetcode.com/problems/valid-parentheses
7514Longest Common Prefix35.4%Easy0.15097420446868728https://leetcode.com/problems/longest-common-prefix
7617Letter Combinations of a Phone Number46.8%Medium0.14740025304271914https://leetcode.com/problems/letter-combinations-of-a-phone-number
77380Insert Delete GetRandom O(1)47.5%Medium0.1466146891661091https://leetcode.com/problems/insert-delete-getrandom-o1
78269Alien Dictionary33.3%Hard0.14578781346149866https://leetcode.com/problems/alien-dictionary
79909Snakes and Ladders38.4%Medium0.14465605390747982https://leetcode.com/problems/snakes-and-ladders
80546Remove Boxes42.7%Hard0.14361551169114867https://leetcode.com/problems/remove-boxes
81121Best Time to Buy and Sell Stock50.5%Easy0.14290237960985536https://leetcode.com/problems/best-time-to-buy-and-sell-stock
82163Sum Closest46.0%Medium0.14234512850929823https://leetcode.com/problems/3sum-closest
8375Sort Colors47.3%Medium0.14097981038702445https://leetcode.com/problems/sort-colors
84127Word Ladder29.6%Medium0.13969675545163246https://leetcode.com/problems/word-ladder
85141Linked List Cycle41.1%Easy0.13790757618343236https://leetcode.com/problems/linked-list-cycle
86427Construct Quad Tree61.4%Medium0.13580154115906176https://leetcode.com/problems/construct-quad-tree
87509Fibonacci Number67.2%Easy0.1350250115835784https://leetcode.com/problems/fibonacci-number
88297Serialize and Deserialize Binary Tree47.5%Hard0.13437443205326582https://leetcode.com/problems/serialize-and-deserialize-binary-tree
89236Lowest Common Ancestor of a Binary Tree45.7%Medium0.13360522333074684https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
90195Tenth Line33.0%Easy0.1329388000145885https://leetcode.com/problems/tenth-line
91124Binary Tree Maximum Path Sum34.3%Hard0.12986708079202924https://leetcode.com/problems/binary-tree-maximum-path-sum
92384Shuffle an Array52.8%Medium0.12953764257899986https://leetcode.com/problems/shuffle-an-array
93733Flood Fill55.3%Easy0.1294338948393464https://leetcode.com/problems/flood-fill
94528Random Pick with Weight43.9%Medium0.12617342152539626https://leetcode.com/problems/random-pick-with-weight
95694Number of Distinct Islands56.0%Medium0.12516314295400602https://leetcode.com/problems/number-of-distinct-islands
96636Exclusive Time of Functions52.0%Medium0.12466318981419816https://leetcode.com/problems/exclusive-time-of-functions
97741Cherry Pickup33.9%Hard0.12293768624504794https://leetcode.com/problems/cherry-pickup
98133Clone Graph34.8%Medium0.1228536731053435https://leetcode.com/problems/clone-graph
9934Find First and Last Position of Element in Sorted Array36.2%Medium0.12112367112240524https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
100867Transpose Matrix62.8%Easy0.11927747573936125https://leetcode.com/problems/transpose-matrix
10176Minimum Window Substring34.6%Hard0.11918851726511835https://leetcode.com/problems/minimum-window-substring
102443String Compression41.3%Easy0.11871630683938197https://leetcode.com/problems/string-compression
103332Reconstruct Itinerary36.7%Medium0.11747520126885172https://leetcode.com/problems/reconstruct-itinerary
104739Daily Temperatures63.3%Medium0.11646575243222568https://leetcode.com/problems/daily-temperatures
105268Missing Number51.7%Easy0.11538834636572094https://leetcode.com/problems/missing-number
106281Zigzag Iterator58.4%Medium0.11506932978478719https://leetcode.com/problems/zigzag-iterator
107401Binary Watch47.5%Easy0.1149222341870932https://leetcode.com/problems/binary-watch
108692Top K Frequent Words51.8%Medium0.1139616691735821https://leetcode.com/problems/top-k-frequent-words
109277Find the Celebrity41.8%Medium0.11383991212794757https://leetcode.com/problems/find-the-celebrity
110120Triangle44.2%Medium0.11325730177515365https://leetcode.com/problems/triangle
111977Squares of a Sorted Array72.1%Easy0.11148209139865584https://leetcode.com/problems/squares-of-a-sorted-array
112412Fizz Buzz62.3%Easy0.1089140648664841https://leetcode.com/problems/fizz-buzz
113472Concatenated Words43.7%Hard0.10634180122055205https://leetcode.com/problems/concatenated-words
114388Longest Absolute File Path41.8%Medium0.105981440856292https://leetcode.com/problems/longest-absolute-file-path
115128Longest Consecutive Sequence45.1%Hard0.10561054122992579https://leetcode.com/problems/longest-consecutive-sequence
116343Integer Break50.4%Medium0.10446541455492596https://leetcode.com/problems/integer-break
117796Rotate String49.6%Easy0.10392210998497661https://leetcode.com/problems/rotate-string
118986Interval List Intersections67.3%Medium0.10288907161978299https://leetcode.com/problems/interval-list-intersections
119178Rank Scores45.8%Medium0.10056698833370464https://leetcode.com/problems/rank-scores
120350Intersection of Two Arrays II51.4%Easy0.10055599252915376https://leetcode.com/problems/intersection-of-two-arrays-ii
121136Single Number65.5%Easy0.09844680818822771https://leetcode.com/problems/single-number
122218The Skyline Problem34.6%Hard0.09823843958341322https://leetcode.com/problems/the-skyline-problem
123232Implement Queue using Stacks49.6%Easy0.09690200534777553https://leetcode.com/problems/implement-queue-using-stacks
124837New 21 Game34.6%Medium0.09646026618756222https://leetcode.com/problems/new-21-game
125895Maximum Frequency Stack60.6%Hard0.09490784626439754https://leetcode.com/problems/maximum-frequency-stack
12686Partition List41.5%Medium0.09480379573736777https://leetcode.com/problems/partition-list
127344Reverse String68.5%Easy0.09446131492390734https://leetcode.com/problems/reverse-string
12833Search in Rotated Sorted Array34.5%Medium0.09336717401169674https://leetcode.com/problems/search-in-rotated-sorted-array
12987Scramble String33.7%Hard0.09333193979221914https://leetcode.com/problems/scramble-string
130140Word Break II32.6%Hard0.09311451843548549https://leetcode.com/problems/word-break-ii
131266Palindrome Permutation61.9%Easy0.091248671465145https://leetcode.com/problems/palindrome-permutation
132175Combine Two Tables60.8%Easy0.09043413926771789https://leetcode.com/problems/combine-two-tables
133973K Closest Points to Origin63.8%Medium0.08860246722187161https://leetcode.com/problems/k-closest-points-to-origin
134549Binary Tree Longest Consecutive Sequence II47.0%Medium0.08816278759467164https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii
135256Paint House52.1%Easy0.08650924290928251https://leetcode.com/problems/paint-house
136116Populating Next Right Pointers in Each Node45.2%Medium0.08636683942300452https://leetcode.com/problems/populating-next-right-pointers-in-each-node
137771Jewels and Stones86.4%Easy0.08577683715610061https://leetcode.com/problems/jewels-and-stones
13822Generate Parentheses62.7%Medium0.08480542001364956https://leetcode.com/problems/generate-parentheses
139167Two Sum II - Input array is sorted54.1%Easy0.08467305686458218https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
140283Move Zeroes57.8%Easy0.08379761717276897https://leetcode.com/problems/move-zeroes
141582Kill Process60.8%Medium0.08355588569097351https://leetcode.com/problems/kill-process
142193Valid Phone Numbers25.3%Easy0.08269171584511335https://leetcode.com/problems/valid-phone-numbers
143300Longest Increasing Subsequence42.6%Medium0.08107755786480896https://leetcode.com/problems/longest-increasing-subsequence
14443Multiply Strings33.9%Medium0.07944184170158367https://leetcode.com/problems/multiply-strings
14593Restore IP Addresses35.6%Medium0.07681317776161672https://leetcode.com/problems/restore-ip-addresses
1461221Split a String in Balanced Strings83.3%Easy0.07634057217232601https://leetcode.com/problems/split-a-string-in-balanced-strings
14777Combinations54.7%Medium0.07597820557665204https://leetcode.com/problems/combinations
14841First Missing Positive32.0%Hard0.07584078645899876https://leetcode.com/problems/first-missing-positive
149435Non-overlapping Intervals42.9%Medium0.07565042495900788https://leetcode.com/problems/non-overlapping-intervals
150515Find Largest Value in Each Tree Row61.1%Medium0.07428007438287054https://leetcode.com/problems/find-largest-value-in-each-tree-row
151273Integer to English Words27.1%Hard0.0732177031685638https://leetcode.com/problems/integer-to-english-words
15237Sudoku Solver43.6%Hard0.07095173597228444https://leetcode.com/problems/sudoku-solver
153632Smallest Range Covering Elements from K Lists52.4%Hard0.07082605256861242https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
15491Decode Ways24.7%Medium0.07076721180832166https://leetcode.com/problems/decode-ways
155470Implement Rand10() Using Rand7()46.3%Medium0.07020425867324853https://leetcode.com/problems/implement-rand10-using-rand7
156187Repeated DNA Sequences38.9%Medium0.06947237281476738https://leetcode.com/problems/repeated-dna-sequences
157460LFU Cache34.2%Hard0.06836374280939023https://leetcode.com/problems/lfu-cache
15839Combination Sum56.1%Medium0.0678648829148938https://leetcode.com/problems/combination-sum
1591011Capacity To Ship Packages Within D Days58.1%Medium0.06649420875558125https://leetcode.com/problems/capacity-to-ship-packages-within-d-days
160419Battleships in a Board70.0%Medium0.06557337705569365https://leetcode.com/problems/battleships-in-a-board
16151N-Queens46.6%Hard0.06402185876493102https://leetcode.com/problems/n-queens
162772Basic Calculator III41.3%Hard0.06331227941432688https://leetcode.com/problems/basic-calculator-iii
163647Palindromic Substrings60.6%Medium0.06329624434241725https://leetcode.com/problems/palindromic-substrings
16410Regular Expression Matching26.8%Hard0.06289183612814463https://leetcode.com/problems/regular-expression-matching
165322Coin Change35.5%Medium0.06260600694223208https://leetcode.com/problems/coin-change
1661044Longest Duplicate Substring31.9%Hard0.062325463197828765https://leetcode.com/problems/longest-duplicate-substring
16725Reverse Nodes in k-Group42.1%Hard0.062178154907672076https://leetcode.com/problems/reverse-nodes-in-k-group
168353Design Snake Game34.2%Medium0.06053284922884233https://leetcode.com/problems/design-snake-game
169333Largest BST Subtree35.8%Medium0.06053284922884233https://leetcode.com/problems/largest-bst-subtree
17011Container With Most Water50.8%Medium0.060358007567261264https://leetcode.com/problems/container-with-most-water
171448Find All Numbers Disappeared in an Array55.9%Easy0.060138358738533404https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array
17245Jump Game II30.6%Hard0.05822366027889668https://leetcode.com/problems/jump-game-ii
173417Pacific Atlantic Water Flow41.1%Medium0.057523844138186606https://leetcode.com/problems/pacific-atlantic-water-flow
174890Find and Replace Pattern73.4%Medium0.0568334747631659https://leetcode.com/problems/find-and-replace-pattern
175102Binary Tree Level Order Traversal54.6%Medium0.056692473087026664https://leetcode.com/problems/binary-tree-level-order-traversal
176279Perfect Squares47.4%Medium0.05625780265009439https://leetcode.com/problems/perfect-squares
17730Substring with Concatenation of All Words25.4%Hard0.05509349054082484https://leetcode.com/problems/substring-with-concatenation-of-all-words
178149Max Points on a Line16.9%Hard0.0550597771830274https://leetcode.com/problems/max-points-on-a-line
179594Longest Harmonious Subsequence46.6%Easy0.054435206555017046https://leetcode.com/problems/longest-harmonious-subsequence
180557Reverse Words in a String III69.8%Easy0.05383068775874275https://leetcode.com/problems/reverse-words-in-a-string-iii
1811275Find Winner on a Tic Tac Toe Game52.8%Easy0.05292240145434251https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game
182687Longest Univalue Path36.2%Easy0.05212529063213289https://leetcode.com/problems/longest-univalue-path
18365Valid Number15.3%Hard0.05071509257901641https://leetcode.com/problems/valid-number
184282Expression Add Operators35.5%Hard0.049982640867735496https://leetcode.com/problems/expression-add-operators
185622Design Circular Queue43.7%Medium0.049844204077291364https://leetcode.com/problems/design-circular-queue
186518Coin Change 250.2%Medium0.04919528672454412https://leetcode.com/problems/coin-change-2
187108Convert Sorted Array to Binary Search Tree57.9%Easy0.048909503032274274https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
188445Add Two Numbers II54.5%Medium0.04843561709959499https://leetcode.com/problems/add-two-numbers-ii
189407Trapping Rain Water II42.4%Hard0.04797082778602956https://leetcode.com/problems/trapping-rain-water-ii
1906ZigZag Conversion36.3%Medium0.04724990737071425https://leetcode.com/problems/zigzag-conversion
191486Predict the Winner47.9%Medium0.047122970130097065https://leetcode.com/problems/predict-the-winner
192336Palindrome Pairs33.7%Hard0.04690191367275952https://leetcode.com/problems/palindrome-pairs
193215Kth Largest Element in an Array55.4%Medium0.04678657567912081https://leetcode.com/problems/kth-largest-element-in-an-array
194359Logger Rate Limiter70.8%Easy0.0467617659080393https://leetcode.com/problems/logger-rate-limiter
195453Minimum Moves to Equal Array Elements50.2%Easy0.04652001563489285https://leetcode.com/problems/minimum-moves-to-equal-array-elements
196415Add Strings47.5%Easy0.04650270606183304https://leetcode.com/problems/add-strings
197442Find All Duplicates in an Array67.8%Medium0.04590593720045213https://leetcode.com/problems/find-all-duplicates-in-an-array
198191Number of 1 Bits49.8%Easy0.045812334709758235https://leetcode.com/problems/number-of-1-bits
1994544Sum II53.1%Medium0.045188410854606134https://leetcode.com/problems/4sum-ii
200198House Robber42.0%Easy0.045085832605679374https://leetcode.com/problems/house-robber
20178Subsets62.0%Medium0.044263005655043326https://leetcode.com/problems/subsets
20273Set Matrix Zeroes43.1%Medium0.043058140843689474https://leetcode.com/problems/set-matrix-zeroes
203463Island Perimeter65.7%Easy0.04304053229416362https://leetcode.com/problems/island-perimeter
204490The Maze51.4%Medium0.04287902305923364https://leetcode.com/problems/the-maze
205338Counting Bits69.5%Medium0.0428445715346785https://leetcode.com/problems/counting-bits
206540Single Element in a Sorted Array57.9%Medium0.042721256704769804https://leetcode.com/problems/single-element-in-a-sorted-array
207229Majority Element II35.6%Medium0.04237922296886145https://leetcode.com/problems/majority-element-ii
208674Longest Continuous Increasing Subsequence45.9%Easy0.04225980928988265https://leetcode.com/problems/longest-continuous-increasing-subsequence
20929Divide Two Integers16.4%Medium0.04159641425367403https://leetcode.com/problems/divide-two-integers
210169Majority Element58.7%Easy0.041581229756944955https://leetcode.com/problems/majority-element
21113Roman to Integer55.7%Easy0.04121346863130292https://leetcode.com/problems/roman-to-integer
21279Word Search35.6%Medium0.0408086655410548https://leetcode.com/problems/word-search
213907Sum of Subarray Minimums32.3%Medium0.04069737616380998https://leetcode.com/problems/sum-of-subarray-minimums
214122Best Time to Buy and Sell Stock II57.0%Easy0.04033800644917969https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
215234Palindrome Linked List39.3%Easy0.04008106350430711https://leetcode.com/problems/palindrome-linked-list
216126Word Ladder II22.1%Hard0.04004093605556132https://leetcode.com/problems/word-ladder-ii
21754201 Matrix39.8%Medium0.03998755762600926https://leetcode.com/problems/01-matrix
218221Maximal Square37.7%Medium0.03897229680620825https://leetcode.com/problems/maximal-square
2191060Missing Element in Sorted Array54.5%Medium0.03879796954098255https://leetcode.com/problems/missing-element-in-sorted-array
220168Excel Sheet Column Title31.1%Easy0.03861483612777958https://leetcode.com/problems/excel-sheet-column-title
22124Swap Nodes in Pairs50.4%Medium0.03826607060639552https://leetcode.com/problems/swap-nodes-in-pairs
222560Subarray Sum Equals K43.9%Medium0.037871360699521406https://leetcode.com/problems/subarray-sum-equals-k
223863All Nodes Distance K in Binary Tree55.4%Medium0.037756162417993476https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
22432Longest Valid Parentheses28.4%Hard0.03595893038744387https://leetcode.com/problems/longest-valid-parentheses
22559Spiral Matrix II53.9%Medium0.0351873674509732https://leetcode.com/problems/spiral-matrix-ii
22628Implement strStr()34.5%Easy0.03494144277828229https://leetcode.com/problems/implement-strstr
227374Guess Number Higher or Lower43.1%Easy0.03422387238757742https://leetcode.com/problems/guess-number-higher-or-lower
228886Possible Bipartition44.2%Medium0.034103901828857086https://leetcode.com/problems/possible-bipartition
229287Find the Duplicate Number55.5%Medium0.033896954598043594https://leetcode.com/problems/find-the-duplicate-number
230561Array Partition I72.0%Easy0.033850542978687455https://leetcode.com/problems/array-partition-i
231480Sliding Window Median37.2%Hard0.03373001037669306https://leetcode.com/problems/sliding-window-median
232104Maximum Depth of Binary Tree66.0%Easy0.03362699323605452https://leetcode.com/problems/maximum-depth-of-binary-tree
233153Find Minimum in Rotated Sorted Array45.1%Medium0.033305576061673434https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
234516Longest Palindromic Subsequence53.2%Medium0.0332870969222259https://leetcode.com/problems/longest-palindromic-subsequence
235617Merge Two Binary Trees74.1%Easy0.03264929866766111https://leetcode.com/problems/merge-two-binary-trees
236315Count of Smaller Numbers After Self41.5%Hard0.03200842244384717https://leetcode.com/problems/count-of-smaller-numbers-after-self
2371146Snapshot Array37.0%Medium0.0317991816929387https://leetcode.com/problems/snapshot-array
2381114Print in Order65.7%Easy0.0317486983145803https://leetcode.com/problems/print-in-order
239239Sliding Window Maximum43.0%Hard0.031228142547585713https://leetcode.com/problems/sliding-window-maximum
240345Reverse Vowels of a String44.2%Easy0.031112084201956228https://leetcode.com/problems/reverse-vowels-of-a-string
241304Range Sum Query 2D - Immutable38.6%Medium0.031036973995576488https://leetcode.com/problems/range-sum-query-2d-immutable
242703Kth Largest Element in a Stream49.7%Easy0.031004894819414507https://leetcode.com/problems/kth-largest-element-in-a-stream
24355Jump Game34.6%Medium0.030985252381807864https://leetcode.com/problems/jump-game
24438Count and Say44.6%Easy0.030956234663467107https://leetcode.com/problems/count-and-say
245179Largest Number28.8%Medium0.03093030069135863https://leetcode.com/problems/largest-number
246530Minimum Absolute Difference in BST53.8%Easy0.030677252247047038https://leetcode.com/problems/minimum-absolute-difference-in-bst
247207Course Schedule43.1%Medium0.030628389490117876https://leetcode.com/problems/course-schedule
248316Remove Duplicate Letters35.8%Hard0.030443751414723153https://leetcode.com/problems/remove-duplicate-letters
249101Symmetric Tree46.8%Easy0.030241699823103273https://leetcode.com/problems/symmetric-tree
250135Candy31.6%Hard0.029764101906453892https://leetcode.com/problems/candy
2511197Minimum Knight Moves36.1%Medium0.02969780239174205https://leetcode.com/problems/minimum-knight-moves
25257Insert Interval33.5%Hard0.02927990558056596https://leetcode.com/problems/insert-interval
253176Second Highest Salary31.6%Easy0.029252542837437355https://leetcode.com/problems/second-highest-salary
2541108Defanging an IP Address87.5%Easy0.02901382119071579https://leetcode.com/problems/defanging-an-ip-address
25582Remove Duplicates from Sorted List II36.8%Medium0.028950236662501776https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
256349Intersection of Two Arrays62.5%Easy0.028691227482495342https://leetcode.com/problems/intersection-of-two-arrays
25762Unique Paths54.1%Medium0.02853749186115581https://leetcode.com/problems/unique-paths
258204Count Primes31.5%Easy0.02799343042200216https://leetcode.com/problems/count-primes
259709To Lower Case79.3%Easy0.02780531308033682https://leetcode.com/problems/to-lower-case
260811Subdomain Visit Count69.9%Easy0.02772180293027194https://leetcode.com/problems/subdomain-visit-count
26168Text Justification27.7%Hard0.0276451606661453https://leetcode.com/problems/text-justification
262498Diagonal Traverse48.2%Medium0.02756894104498661https://leetcode.com/problems/diagonal-traverse
263114Flatten Binary Tree to Linked List49.3%Medium0.02730545069026746https://leetcode.com/problems/flatten-binary-tree-to-linked-list
264931Minimum Falling Path Sum62.5%Medium0.02672169681715245https://leetcode.com/problems/minimum-falling-path-sum
265373Find K Pairs with Smallest Sums36.7%Medium0.02626546261018635https://leetcode.com/problems/find-k-pairs-with-smallest-sums
266378Kth Smallest Element in a Sorted Matrix54.3%Medium0.02599048981653746https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
267143Reorder List37.1%Medium0.025870945598649286https://leetcode.com/problems/reorder-list
268961N-Repeated Element in Size 2N Array73.7%Easy0.025609594204324387https://leetcode.com/problems/n-repeated-element-in-size-2n-array
2691038Binary Search Tree to Greater Sum Tree80.8%Medium0.025446665661164262https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
27083Remove Duplicates from Sorted List45.4%Easy0.025174394259350617https://leetcode.com/problems/remove-duplicates-from-sorted-list
271162Find Peak Element43.3%Medium0.02516251642407408https://leetcode.com/problems/find-peak-element
272230Kth Smallest Element in a BST60.2%Medium0.025107234408906165https://leetcode.com/problems/kth-smallest-element-in-a-bst
273171Excel Sheet Column Number55.9%Easy0.025015200987536713https://leetcode.com/problems/excel-sheet-column-number
274220Contains Duplicate III20.9%Medium0.024876904755404577https://leetcode.com/problems/contains-duplicate-iii
275138Copy List with Random Pointer36.4%Medium0.02453734514188008https://leetcode.com/problems/copy-list-with-random-pointer
276310Minimum Height Trees32.3%Medium0.02446605215440636https://leetcode.com/problems/minimum-height-trees
277804Unique Morse Code Words77.0%Easy0.024332100659530644https://leetcode.com/problems/unique-morse-code-words
278151Reverse Words in a String21.9%Medium0.024321004216273485https://leetcode.com/problems/reverse-words-in-a-string
27964Minimum Path Sum54.5%Medium0.024287775531756203https://leetcode.com/problems/minimum-path-sum
2801315Sum of Nodes with Even-Valued Grandparent83.5%Medium0.023981964686485415https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent
281326Power of Three42.1%Easy0.023341308632796296https://leetcode.com/problems/power-of-three
282211Add and Search Word - Data structure design38.1%Medium0.02333525640896379https://leetcode.com/problems/add-and-search-word-data-structure-design
283286Walls and Gates54.5%Medium0.02324334737232728https://leetcode.com/problems/walls-and-gates
284210Course Schedule II40.7%Medium0.023133880315464483https://leetcode.com/problems/course-schedule-ii
285766Toeplitz Matrix65.1%Easy0.02280600552903764https://leetcode.com/problems/toeplitz-matrix
286199Binary Tree Right Side View54.1%Medium0.022539339846061532https://leetcode.com/problems/binary-tree-right-side-view
28772Edit Distance44.8%Hard0.022400140173127806https://leetcode.com/problems/edit-distance
288105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.022325470299025416https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
289190Reverse Bits39.8%Easy0.022210041351742264https://leetcode.com/problems/reverse-bits
290231Power of Two43.7%Easy0.021776810232970734https://leetcode.com/problems/power-of-two
29140Combination Sum II48.2%Medium0.021424290044083395https://leetcode.com/problems/combination-sum-ii
292543Diameter of Binary Tree48.4%Easy0.02105617995251665https://leetcode.com/problems/diameter-of-binary-tree
29374Search a 2D Matrix36.5%Medium0.020896975877216107https://leetcode.com/problems/search-a-2d-matrix
294670Maximum Swap43.6%Medium0.020844944430365928https://leetcode.com/problems/maximum-swap
29560Permutation Sequence38.4%Hard0.020471543980187256https://leetcode.com/problems/permutation-sequence
29669Sqrt(x)33.9%Easy0.020253856904497686https://leetcode.com/problems/sqrtx
297180Consecutive Numbers39.7%Medium0.02021291655585931https://leetcode.com/problems/consecutive-numbers
298166Fraction to Recurring Decimal21.6%Medium0.02015181543730795https://leetcode.com/problems/fraction-to-recurring-decimal
299525Contiguous Array42.8%Medium0.01975372873623256https://leetcode.com/problems/contiguous-array
30063Unique Paths II34.6%Medium0.01949801804099658https://leetcode.com/problems/unique-paths-ii
301669Trim a Binary Search Tree63.0%Easy0.019139340210697423https://leetcode.com/problems/trim-a-binary-search-tree
30219Remove Nth Node From End of List35.2%Medium0.019074355670058666https://leetcode.com/problems/remove-nth-node-from-end-of-list
303173Binary Search Tree Iterator56.6%Medium0.01899993824490396https://leetcode.com/problems/binary-search-tree-iterator
304721Accounts Merge48.8%Medium0.01888630262874805https://leetcode.com/problems/accounts-merge
305209Minimum Size Subarray Sum38.2%Medium0.018832948333092125https://leetcode.com/problems/minimum-size-subarray-sum
306184Department Highest Salary36.7%Medium0.018735911057469818https://leetcode.com/problems/department-highest-salary
307450Delete Node in a BST43.1%Medium0.018536211907915243https://leetcode.com/problems/delete-node-in-a-bst
30898Validate Binary Search Tree27.8%Medium0.01825801101705589https://leetcode.com/problems/validate-binary-search-tree
309347Top K Frequent Elements61.2%Medium0.018049036874660983https://leetcode.com/problems/top-k-frequent-elements
310406Queue Reconstruction by Height66.9%Medium0.01774669468133533https://leetcode.com/problems/queue-reconstruction-by-height
311383Ransom Note53.1%Easy0.017621601349819518https://leetcode.com/problems/ransom-note
312876Middle of the Linked List68.4%Easy0.01707497375257815https://leetcode.com/problems/middle-of-the-linked-list
31395Unique Binary Search Trees II40.6%Medium0.016856699181010838https://leetcode.com/problems/unique-binary-search-trees-ii
314628Maximum Product of Three Numbers47.1%Easy0.016529301951210565https://leetcode.com/problems/maximum-product-of-three-numbers
315188Best Time to Buy and Sell Stock IV28.0%Hard0.01651565203072114https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv
3161021Remove Outermost Parentheses78.0%Easy0.016434223613379935https://leetcode.com/problems/remove-outermost-parentheses
317165Compare Version Numbers27.4%Medium0.01579187969789165https://leetcode.com/problems/compare-version-numbers
318938Range Sum of BST81.3%Easy0.015707129205357877https://leetcode.com/problems/range-sum-of-bst
3191002Find Common Characters67.6%Easy0.015273301861833809https://leetcode.com/problems/find-common-characters
320118Pascal's Triangle52.5%Easy0.015123796918620345https://leetcode.com/problems/pascals-triangle
32167Add Binary45.2%Easy0.014859727755020839https://leetcode.com/problems/add-binary
322142Linked List Cycle II37.3%Medium0.014710955064667802https://leetcode.com/problems/linked-list-cycle-ii
323301Remove Invalid Parentheses43.3%Hard0.01446679841775339https://leetcode.com/problems/remove-invalid-parentheses
324912Sort an Array63.9%Medium0.01443026482902881https://leetcode.com/problems/sort-an-array
325107Binary Tree Level Order Traversal II53.5%Easy0.014395642075089957https://leetcode.com/problems/binary-tree-level-order-traversal-ii
326371Sum of Two Integers50.7%Medium0.014064929467403538https://leetcode.com/problems/sum-of-two-integers
327134Gas Station38.5%Medium0.01352742981715631https://leetcode.com/problems/gas-station
32870Climbing Stairs47.8%Easy0.013494975575004323https://leetcode.com/problems/climbing-stairs
329767Reorganize String48.7%Medium0.01329806830463147https://leetcode.com/problems/reorganize-string
330219Contains Duplicate II37.7%Easy0.01276748910345265https://leetcode.com/problems/contains-duplicate-ii
331695Max Area of Island62.7%Medium0.012686500631003836https://leetcode.com/problems/max-area-of-island
332181Employees Earning More Than Their Managers56.9%Easy0.012618463959211509https://leetcode.com/problems/employees-earning-more-than-their-managers
333226Invert Binary Tree65.0%Easy0.01235091863400913https://leetcode.com/problems/invert-binary-tree
334112Path Sum41.2%Easy0.012265076074932503https://leetcode.com/problems/path-sum
3359Palindrome Number48.4%Easy0.01209661684713821https://leetcode.com/problems/palindrome-number
336123Best Time to Buy and Sell Stock III37.5%Hard0.011261380272539033https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
337430Flatten a Multilevel Doubly Linked List55.1%Medium0.010548621020744619https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
33892Reverse Linked List II38.8%Medium0.010427623162259089https://leetcode.com/problems/reverse-linked-list-ii
33935Search Insert Position42.6%Easy0.010425207359624364https://leetcode.com/problems/search-insert-position
340819Most Common Word44.8%Easy0.010269666637456105https://leetcode.com/problems/most-common-word
341113Path Sum II46.7%Medium0.009784813879998279https://leetcode.com/problems/path-sum-ii
34247Permutations II46.4%Medium0.009673594178378379https://leetcode.com/problems/permutations-ii
343905Sort Array By Parity74.1%Easy0.009603915354180344https://leetcode.com/problems/sort-array-by-parity
34496Unique Binary Search Trees52.9%Medium0.009242209964820877https://leetcode.com/problems/unique-binary-search-trees
345208Implement Trie (Prefix Tree)49.4%Medium0.009105457856626612https://leetcode.com/problems/implement-trie-prefix-tree
346416Partition Equal Subset Sum43.7%Medium0.008686265255960345https://leetcode.com/problems/partition-equal-subset-sum
347700Search in a Binary Search Tree73.1%Easy0.008512500860171227https://leetcode.com/problems/search-in-a-binary-search-tree
348937Reorder Data in Log Files54.3%Easy0.008415787099648575https://leetcode.com/problems/reorder-data-in-log-files
349763Partition Labels76.1%Medium0.008385793376274025https://leetcode.com/problems/partition-labels
35026Remove Duplicates from Sorted Array45.1%Easy0.007782518973063169https://leetcode.com/problems/remove-duplicates-from-sorted-array
351240Search a 2D Matrix II43.2%Medium0.0075829747244553335https://leetcode.com/problems/search-a-2d-matrix-ii
35266Plus One43.0%Easy0.007324847595025828https://leetcode.com/problems/plus-one
353110Balanced Binary Tree43.5%Easy0.007027435807456887https://leetcode.com/problems/balanced-binary-tree
354103Binary Tree Zigzag Level Order Traversal48.3%Medium0.006816368572598042https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
355111Minimum Depth of Binary Tree37.4%Easy0.0066203485760693214https://leetcode.com/problems/minimum-depth-of-binary-tree
356100Same Tree53.4%Easy0.005620163024677507https://leetcode.com/problems/same-tree
35750Pow(x;n)30.3%Medium0.0055950070772402055https://leetcode.com/problems/powx-n
358621Task Scheduler50.1%Medium0.005261323957171611https://leetcode.com/problems/task-scheduler
359237Delete Node in a Linked List63.8%Easy0.005144705881237697https://leetcode.com/problems/delete-node-in-a-linked-list
360258Add Digits57.6%Easy0.004648528591812259https://leetcode.com/problems/add-digits
361217Contains Duplicate56.0%Easy0.0037979536727587773https://leetcode.com/problems/contains-duplicate
362203Remove Linked List Elements38.6%Easy0.0036496390875494257https://leetcode.com/problems/remove-linked-list-elements
36394Binary Tree Inorder Traversal63.3%Medium0.0033551449021403577https://leetcode.com/problems/binary-tree-inorder-traversal
364309Best Time to Buy and Sell Stock with Cooldown47.4%Medium0.0028498166907604426https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown
365260Single Number III64.3%Medium0.0020288097849578786https://leetcode.com/problems/single-number-iii