Files
LeetCode-Questions-CompanyWise/apple_alltime.csv
Krishna Kumar Dey fb5f78b55e Chore: Add headers to all the files (#54)
## Description
- Add headers to all the CSV files

## Script used
```py
import csv
import os

# Set the path of the folder containing the CSV files
folder_path = "./LeetCode-Questions-CompanyWise"
headers = [
    "ID",
    "Title",
    "Acceptance",
    "Difficulty",
    "Frequency",
    "Leetcode Question Link",
]

# Loop through all the CSV files in the folder
for file_name in os.listdir(folder_path):
    if file_name.endswith(".csv"):
        # Read the CSV file into a list of rows
        file_path = os.path.join(folder_path, file_name)
        with open(file_path, "r") as f:
            reader = csv.reader(f)
            rows = list(reader)

        has_headers = False
        if len(rows) > 0 and rows[0] == headers:
            has_headers = True

        if not has_headers:
            rows.insert(0, headers)

            # Write the list of rows back to the CSV file
            with open(file_path, "w", newline="") as f:
                writer = csv.writer(f)
                writer.writerows(rows)

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

40 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
21Two Sum45.6%Easy2.44165352519978https://leetcode.com/problems/two-sum
3146LRU Cache33.2%Medium2.288507627845124https://leetcode.com/problems/lru-cache
4403Frog Jump39.7%Hard2.1353617304904677https://leetcode.com/problems/frog-jump
554Spiral Matrix34.1%Medium1.9822158331358115https://leetcode.com/problems/spiral-matrix
62Add Two Numbers33.9%Medium1.9375806091809586https://leetcode.com/problems/add-two-numbers
7284Peeking Iterator45.7%Medium1.8988473588427888https://leetcode.com/problems/peeking-iterator
84Median of Two Sorted Arrays29.6%Hard1.7457014614881325https://leetcode.com/problems/median-of-two-sorted-arrays
953Maximum Subarray46.5%Easy1.6039792365262746https://leetcode.com/problems/maximum-subarray
10341Flatten Nested List Iterator52.9%Medium1.5961203655643161https://leetcode.com/problems/flatten-nested-list-iterator
1142Trapping Rain Water48.9%Hard1.4504927724580507https://leetcode.com/problems/trapping-rain-water
12391Perfect Rectangle30.5%Hard1.2973468751033945https://leetcode.com/problems/perfect-rectangle
13206Reverse Linked List62.5%Easy1.2889543040599838https://leetcode.com/problems/reverse-linked-list
14295Find Median from Data Stream44.3%Hard1.2415624618248458https://leetcode.com/problems/find-median-from-data-stream
15200Number of Islands46.8%Medium1.2336678652006239https://leetcode.com/problems/number-of-islands
165Longest Palindromic Substring29.5%Medium1.2049820501287227https://leetcode.com/problems/longest-palindromic-substring
17218The Skyline Problem34.6%Hard1.2026816485623162https://leetcode.com/problems/the-skyline-problem
181095Find in Mountain Array35.8%Hard1.2013559031699637https://leetcode.com/problems/find-in-mountain-array
1997Interleaving String31.5%Hard1.1879190873014442https://leetcode.com/problems/interleaving-string
20479Largest Palindrome Product29.0%Hard1.1700712526502546https://leetcode.com/problems/largest-palindrome-product
21393UTF-8 Validation37.5%Medium1.1560693436928968https://leetcode.com/problems/utf-8-validation
22238Product of Array Except Self60.1%Medium1.125997958136907https://leetcode.com/problems/product-of-array-except-self
23311Sparse Matrix Multiplication61.9%Medium1.1083957349771807https://leetcode.com/problems/sparse-matrix-multiplication
248String to Integer (atoi)15.4%Medium1.0728242725044976https://leetcode.com/problems/string-to-integer-atoi
25428Serialize and Deserialize N-ary Tree59.4%Hard1.0697178226683948https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree
26348Design Tic-Tac-Toe54.3%Medium1.0191481173138628https://leetcode.com/problems/design-tic-tac-toe
2756Merge Intervals39.3%Medium1.01565662402753https://leetcode.com/problems/merge-intervals
28153Sum26.8%Medium1.0028066641920665https://leetcode.com/problems/3sum
29202Happy Number50.4%Easy0.9974860771490718https://leetcode.com/problems/happy-number
30329Longest Increasing Path in a Matrix43.4%Hard0.9678875215177066https://leetcode.com/problems/longest-increasing-path-in-a-matrix
3149Group Anagrams56.9%Medium0.9561708823315207https://leetcode.com/problems/group-anagrams
3223Merge k Sorted Lists40.2%Hard0.9024122656636089https://leetcode.com/problems/merge-k-sorted-lists
333Longest Substring Without Repeating Characters30.4%Medium0.8759518910272411https://leetcode.com/problems/longest-substring-without-repeating-characters
3421Merge Two Sorted Lists53.5%Easy0.8331029734573284https://leetcode.com/problems/merge-two-sorted-lists
35139Word Break40.1%Medium0.7861844908659293https://leetcode.com/problems/word-break
36351Android Unlock Patterns48.4%Medium0.7857399673877702https://leetcode.com/problems/android-unlock-patterns
3720Valid Parentheses39.0%Easy0.7728842221115333https://leetcode.com/problems/valid-parentheses
38269Alien Dictionary33.3%Hard0.7683984542353193https://leetcode.com/problems/alien-dictionary
39212Word Search II34.9%Hard0.7375344172881568https://leetcode.com/problems/word-search-ii
40149Max Points on a Line16.9%Hard0.7241094061639122https://leetcode.com/problems/max-points-on-a-line
4133Search in Rotated Sorted Array34.5%Medium0.7169635384120102https://leetcode.com/problems/search-in-rotated-sorted-array
4248Rotate Image56.7%Medium0.6937855463652177https://leetcode.com/problems/rotate-image
43242Valid Anagram56.9%Easy0.6931992137571369https://leetcode.com/problems/valid-anagram
447Reverse Integer25.8%Easy0.6643014117400133https://leetcode.com/problems/reverse-integer
45204Count Primes31.5%Easy0.6619706759370921https://leetcode.com/problems/count-primes
4617Letter Combinations of a Phone Number46.8%Medium0.6562442821203051https://leetcode.com/problems/letter-combinations-of-a-phone-number
47227Basic Calculator II36.9%Medium0.642608764196984https://leetcode.com/problems/basic-calculator-ii
48412Fizz Buzz62.3%Easy0.6260403395391076https://leetcode.com/problems/fizz-buzz
49121Best Time to Buy and Sell Stock50.5%Easy0.6154427600124589https://leetcode.com/problems/best-time-to-buy-and-sell-stock
50472Concatenated Words43.7%Hard0.6143892946481566https://leetcode.com/problems/concatenated-words
51387First Unique Character in a String53.4%Easy0.599968522143342https://leetcode.com/problems/first-unique-character-in-a-string
52688Knight Probability in Chessboard48.9%Medium0.581062856900522https://leetcode.com/problems/knight-probability-in-chessboard
53281Zigzag Iterator58.4%Medium0.5665602602882338https://leetcode.com/problems/zigzag-iterator
54344Reverse String68.5%Easy0.5520785062823355https://leetcode.com/problems/reverse-string
55380Insert Delete GetRandom O(1)47.5%Medium0.5382766101249649https://leetcode.com/problems/insert-delete-getrandom-o1
5612Integer to Roman55.1%Medium0.527144190884061https://leetcode.com/problems/integer-to-roman
57322Coin Change35.5%Medium0.5202300817939691https://leetcode.com/problems/coin-change
58545Boundary of Binary Tree38.9%Medium0.5184398737512361https://leetcode.com/problems/boundary-of-binary-tree
59394Decode String50.0%Medium0.5093485186229775https://leetcode.com/problems/decode-string
6036Valid Sudoku48.7%Medium0.505273909298483https://leetcode.com/problems/valid-sudoku
61297Serialize and Deserialize Binary Tree47.5%Hard0.4952936935923334https://leetcode.com/problems/serialize-and-deserialize-binary-tree
62236Lowest Common Ancestor of a Binary Tree45.7%Medium0.4854623787914392https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
63125Valid Palindrome36.7%Easy0.48439503752030155https://leetcode.com/problems/valid-palindrome
64251Flatten 2D Vector45.7%Medium0.4808790962829651https://leetcode.com/problems/flatten-2d-vector
6545Jump Game II30.6%Hard0.47865910784592636https://leetcode.com/problems/jump-game-ii
6646Permutations63.5%Medium0.4752581007118412https://leetcode.com/problems/permutations
67191Number of 1 Bits49.8%Easy0.4747037980781537https://leetcode.com/problems/number-of-1-bits
6814Longest Common Prefix35.4%Easy0.47383141489567654https://leetcode.com/problems/longest-common-prefix
6931Next Permutation32.6%Medium0.4704916447217573https://leetcode.com/problems/next-permutation
70771Jewels and Stones86.4%Easy0.4651251797550661https://leetcode.com/problems/jewels-and-stones
71724Find Pivot Index44.0%Easy0.4632690080861186https://leetcode.com/problems/find-pivot-index
72336Palindrome Pairs33.7%Hard0.462623521948113https://leetcode.com/problems/palindrome-pairs
73155Min Stack44.5%Easy0.421871495581358https://leetcode.com/problems/min-stack
74177Nth Highest Salary31.4%Medium0.41948151008170015https://leetcode.com/problems/nth-highest-salary
75253Meeting Rooms II45.7%Medium0.41816049272375677https://leetcode.com/problems/meeting-rooms-ii
76273Integer to English Words27.1%Hard0.4144392041299435https://leetcode.com/problems/integer-to-english-words
77460LFU Cache34.2%Hard0.40755934971127916https://leetcode.com/problems/lfu-cache
78836Rectangle Overlap48.6%Easy0.4032144677719462https://leetcode.com/problems/rectangle-overlap
791229Meeting Scheduler52.7%Medium0.40225040958769004https://leetcode.com/problems/meeting-scheduler
8013Roman to Integer55.7%Easy0.40185220095239377https://leetcode.com/problems/roman-to-integer
81175Combine Two Tables60.8%Easy0.4017882776475531https://leetcode.com/problems/combine-two-tables
82419Battleships in a Board70.0%Medium0.3933437475758196https://leetcode.com/problems/battleships-in-a-board
83909Snakes and Ladders38.4%Medium0.38977851194046487https://leetcode.com/problems/snakes-and-ladders
84733Flood Fill55.3%Easy0.38973764039563735https://leetcode.com/problems/flood-fill
85981Time Based Key-Value Store53.1%Medium0.3755723540313778https://leetcode.com/problems/time-based-key-value-store
86279Perfect Squares47.4%Medium0.3741145782240884https://leetcode.com/problems/perfect-squares
87138Copy List with Random Pointer36.4%Medium0.37065838268713125https://leetcode.com/problems/copy-list-with-random-pointer
88388Longest Absolute File Path41.8%Medium0.3696340885812376https://leetcode.com/problems/longest-absolute-file-path
89168Excel Sheet Column Title31.1%Easy0.3628674542424574https://leetcode.com/problems/excel-sheet-column-title
9088Merge Sorted Array39.4%Easy0.3605564574852291https://leetcode.com/problems/merge-sorted-array
91141Linked List Cycle41.1%Easy0.3531074716115724https://leetcode.com/problems/linked-list-cycle
92184Sum33.7%Medium0.34917906630295314https://leetcode.com/problems/4sum
93609Find Duplicate File in System59.5%Medium0.34796661604694806https://leetcode.com/problems/find-duplicate-file-in-system
9451N-Queens46.6%Hard0.34587301090591877https://leetcode.com/problems/n-queens
95694Number of Distinct Islands56.0%Medium0.34240697214102744https://leetcode.com/problems/number-of-distinct-islands
96102Binary Tree Level Order Traversal54.6%Medium0.3378514215595053https://leetcode.com/problems/binary-tree-level-order-traversal
9776Minimum Window Substring34.6%Hard0.33651688545811814https://leetcode.com/problems/minimum-window-substring
9859Spiral Matrix II53.9%Medium0.33499311472223486https://leetcode.com/problems/spiral-matrix-ii
99233Number of Digit One31.3%Hard0.3343430661930074https://leetcode.com/problems/number-of-digit-one
100268Missing Number51.7%Easy0.3338128467131867https://leetcode.com/problems/missing-number
101195Tenth Line33.0%Easy0.33285477845978384https://leetcode.com/problems/tenth-line
102140Word Break II32.6%Hard0.3295552897925928https://leetcode.com/problems/word-break-ii
103333Largest BST Subtree35.8%Medium0.32931497055013925https://leetcode.com/problems/largest-bst-subtree
10432Longest Valid Parentheses28.4%Hard0.3269467909737243https://leetcode.com/problems/longest-valid-parentheses
10538Count and Say44.6%Easy0.3258044151850429https://leetcode.com/problems/count-and-say
106384Shuffle an Array52.8%Medium0.3251022057535279https://leetcode.com/problems/shuffle-an-array
107127Word Ladder29.6%Medium0.32483918858722843https://leetcode.com/problems/word-ladder
108163Sum Closest46.0%Medium0.3149279072827814https://leetcode.com/problems/3sum-closest
109692Top K Frequent Words51.8%Medium0.31457116512531025https://leetcode.com/problems/top-k-frequent-words
110706Design HashMap61.3%Easy0.30607943759149703https://leetcode.com/problems/design-hashmap
11110Regular Expression Matching26.8%Hard0.3026257535192428https://leetcode.com/problems/regular-expression-matching
11224Swap Nodes in Pairs50.4%Medium0.30089598994357436https://leetcode.com/problems/swap-nodes-in-pairs
113283Move Zeroes57.8%Easy0.29983432977210245https://leetcode.com/problems/move-zeroes
114179Largest Number28.8%Medium0.2993933318726824https://leetcode.com/problems/largest-number
115332Reconstruct Itinerary36.7%Medium0.29733066556761284https://leetcode.com/problems/reconstruct-itinerary
116193Valid Phone Numbers25.3%Easy0.29626581614317243https://leetcode.com/problems/valid-phone-numbers
11734Find First and Last Position of Element in Sorted Array36.2%Medium0.2962385293756158https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
11868Text Justification27.7%Hard0.29518712556880805https://leetcode.com/problems/text-justification
119232Implement Queue using Stacks49.6%Easy0.29416188100982804https://leetcode.com/problems/implement-queue-using-stacks
120171Excel Sheet Column Number55.9%Easy0.2930854047798333https://leetcode.com/problems/excel-sheet-column-number
121401Binary Watch47.5%Easy0.29139641067451033https://leetcode.com/problems/binary-watch
122300Longest Increasing Subsequence42.6%Medium0.29104142745374856https://leetcode.com/problems/longest-increasing-subsequence
12391Decode Ways24.7%Medium0.2902229900433467https://leetcode.com/problems/decode-ways
124796Rotate String49.6%Easy0.28922092887241174https://leetcode.com/problems/rotate-string
125239Sliding Window Maximum43.0%Hard0.2889699026362096https://leetcode.com/problems/sliding-window-maximum
126729My Calendar I51.8%Medium0.28814578681204955https://leetcode.com/problems/my-calendar-i
127463Island Perimeter65.7%Easy0.2871321686710828https://leetcode.com/problems/island-perimeter
128996Number of Squareful Arrays47.8%Hard0.28675913745318005https://leetcode.com/problems/number-of-squareful-arrays
129973K Closest Points to Origin63.8%Medium0.28194765395047156https://leetcode.com/problems/k-closest-points-to-origin
13039Combination Sum56.1%Medium0.2794799975469249https://leetcode.com/problems/combination-sum
13175Sort Colors47.3%Medium0.2778743740687611https://leetcode.com/problems/sort-colors
132136Single Number65.5%Easy0.27522969174444734https://leetcode.com/problems/single-number
13341First Missing Positive32.0%Hard0.2739607716310848https://leetcode.com/problems/first-missing-positive
134362Design Hit Counter63.7%Medium0.2737682417732349https://leetcode.com/problems/design-hit-counter
13511Container With Most Water50.8%Medium0.2679205380972798https://leetcode.com/problems/container-with-most-water
136486Predict the Winner47.9%Medium0.26356981012283964https://leetcode.com/problems/predict-the-winner
137221Maximal Square37.7%Medium0.26278452083005377https://leetcode.com/problems/maximal-square
138223Rectangle Area37.8%Medium0.2578291093020998https://leetcode.com/problems/rectangle-area
139315Count of Smaller Numbers After Self41.5%Hard0.2567607594720918https://leetcode.com/problems/count-of-smaller-numbers-after-self
140187Repeated DNA Sequences38.9%Medium0.2529118727100632https://leetcode.com/problems/repeated-dna-sequences
141443String Compression41.3%Easy0.2496791049401753https://leetcode.com/problems/string-compression
14222Generate Parentheses62.7%Medium0.24664152258151367https://leetcode.com/problems/generate-parentheses
143316Remove Duplicate Letters35.8%Hard0.24545840052279075https://leetcode.com/problems/remove-duplicate-letters
144895Maximum Frequency Stack60.6%Hard0.24416008667586836https://leetcode.com/problems/maximum-frequency-stack
145415Add Strings47.5%Easy0.24230382668402778https://leetcode.com/problems/add-strings
146277Find the Celebrity41.8%Medium0.24003104821376078https://leetcode.com/problems/find-the-celebrity
147167Two Sum II - Input array is sorted54.1%Easy0.23949403264353084https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
148658Find K Closest Elements40.9%Medium0.23744614004484665https://leetcode.com/problems/find-k-closest-elements
149381Insert Delete GetRandom O(1) - Duplicates allowed34.1%Hard0.2349381278070467https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed
15092Reverse Linked List II38.8%Medium0.23274095442047985https://leetcode.com/problems/reverse-linked-list-ii
151636Exclusive Time of Functions52.0%Medium0.23128872777861115https://leetcode.com/problems/exclusive-time-of-functions
152509Fibonacci Number67.2%Easy0.22873204718012582https://leetcode.com/problems/fibonacci-number
153165Compare Version Numbers27.4%Medium0.22687712200146865https://leetcode.com/problems/compare-version-numbers
15428Implement strStr()34.5%Easy0.22543251399322328https://leetcode.com/problems/implement-strstr
155237Delete Node in a Linked List63.8%Easy0.22533328620090126https://leetcode.com/problems/delete-node-in-a-linked-list
156104Maximum Depth of Binary Tree66.0%Easy0.2247057029374007https://leetcode.com/problems/maximum-depth-of-binary-tree
157498Diagonal Traverse48.2%Medium0.22440062250426088https://leetcode.com/problems/diagonal-traverse
15869Sqrt(x)33.9%Easy0.22365492948950624https://leetcode.com/problems/sqrtx
159215Kth Largest Element in an Array55.4%Medium0.22333903562721621https://leetcode.com/problems/kth-largest-element-in-an-array
160353Design Snake Game34.2%Medium0.2228314901476892https://leetcode.com/problems/design-snake-game
161133Clone Graph34.8%Medium0.22085334910266116https://leetcode.com/problems/clone-graph
1629Palindrome Number48.4%Easy0.2202947418496198https://leetcode.com/problems/palindrome-number
163986Interval List Intersections67.3%Medium0.21819454006628897https://leetcode.com/problems/interval-list-intersections
164229Majority Element II35.6%Medium0.21162970925187066https://leetcode.com/problems/majority-element-ii
165108Convert Sorted Array to Binary Search Tree57.9%Easy0.2113223542441748https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
166661Image Smoother51.5%Easy0.21106039931128698https://leetcode.com/problems/image-smoother
167124Binary Tree Maximum Path Sum34.3%Hard0.21055599204217199https://leetcode.com/problems/binary-tree-maximum-path-sum
1686ZigZag Conversion36.3%Medium0.21040551802808702https://leetcode.com/problems/zigzag-conversion
169741Cherry Pickup33.9%Hard0.20909179785855941https://leetcode.com/problems/cherry-pickup
170169Majority Element58.7%Easy0.2079562741042954https://leetcode.com/problems/majority-element
171837New 21 Game34.6%Medium0.20526312603636132https://leetcode.com/problems/new-21-game
17262Unique Paths54.1%Medium0.20453705875726236https://leetcode.com/problems/unique-paths
173220Contains Duplicate III20.9%Medium0.20432784239539936https://leetcode.com/problems/contains-duplicate-iii
17437Sudoku Solver43.6%Hard0.20309089276282075https://leetcode.com/problems/sudoku-solver
175543Diameter of Binary Tree48.4%Easy0.2027481163433401https://leetcode.com/problems/diameter-of-binary-tree
176557Reverse Words in a String III69.8%Easy0.1998533423830101https://leetcode.com/problems/reverse-words-in-a-string-iii
177349Intersection of Two Arrays62.5%Easy0.19894926823907688https://leetcode.com/problems/intersection-of-two-arrays
178120Triangle44.2%Medium0.19325424809414601https://leetcode.com/problems/triangle
179173Binary Search Tree Iterator56.6%Medium0.1932027494363769https://leetcode.com/problems/binary-search-tree-iterator
18065Valid Number15.3%Hard0.18904265746703205https://leetcode.com/problems/valid-number
18125Reverse Nodes in k-Group42.1%Hard0.18884373606243307https://leetcode.com/problems/reverse-nodes-in-k-group
182549Binary Tree Longest Consecutive Sequence II47.0%Medium0.1884471502206373https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii
183178Rank Scores45.8%Medium0.18843907402659216https://leetcode.com/problems/rank-scores
18472Edit Distance44.8%Hard0.18554648786569794https://leetcode.com/problems/edit-distance
18577Combinations54.7%Medium0.18405670984385755https://leetcode.com/problems/combinations
186518Coin Change 250.2%Medium0.18373876827436816https://leetcode.com/problems/coin-change-2
187231Power of Two43.7%Easy0.18077110562857268https://leetcode.com/problems/power-of-two
188234Palindrome Linked List39.3%Easy0.17561579569700486https://leetcode.com/problems/palindrome-linked-list
189240Search a 2D Matrix II43.2%Medium0.17420113958996https://leetcode.com/problems/search-a-2d-matrix-ii
190911Online Election50.4%Medium0.1741842396477574https://leetcode.com/problems/online-election
19174Search a 2D Matrix36.5%Medium0.17399668345849942https://leetcode.com/problems/search-a-2d-matrix
1921278Palindrome Partitioning III59.9%Hard0.17284281283941086https://leetcode.com/problems/palindrome-partitioning-iii
193151Reverse Words in a String21.9%Medium0.1707401585649133https://leetcode.com/problems/reverse-words-in-a-string
19443Multiply Strings33.9%Medium0.17061651017204038https://leetcode.com/problems/multiply-strings
195176Second Highest Salary31.6%Easy0.17018888346853764https://leetcode.com/problems/second-highest-salary
196190Reverse Bits39.8%Easy0.16833660590895258https://leetcode.com/problems/reverse-bits
197528Random Pick with Weight43.9%Medium0.16808800301828727https://leetcode.com/problems/random-pick-with-weight
19855Jump Game34.6%Medium0.16658918460830285https://leetcode.com/problems/jump-game
199642Design Search Autocomplete System44.7%Hard0.16312782492496253https://leetcode.com/problems/design-search-autocomplete-system
200821Shortest Distance to a Character66.9%Easy0.16229864091884685https://leetcode.com/problems/shortest-distance-to-a-character
20129Divide Two Integers16.4%Medium0.156913715105051https://leetcode.com/problems/divide-two-integers
202647Palindromic Substrings60.6%Medium0.154673282399905https://leetcode.com/problems/palindromic-substrings
203632Smallest Range Covering Elements from K Lists52.4%Hard0.15283920422944758https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists
204470Implement Rand10() Using Rand7()46.3%Medium0.15154989812720093https://leetcode.com/problems/implement-rand10-using-rand7
20557Insert Interval33.5%Hard0.14994432629434787https://leetcode.com/problems/insert-interval
206739Daily Temperatures63.3%Medium0.14956674442158685https://leetcode.com/problems/daily-temperatures
207383Ransom Note53.1%Easy0.14842000511827327https://leetcode.com/problems/ransom-note
20883Remove Duplicates from Sorted List45.4%Easy0.14784842578508967https://leetcode.com/problems/remove-duplicates-from-sorted-list
20930Substring with Concatenation of All Words25.4%Hard0.1461170580676051https://leetcode.com/problems/substring-with-concatenation-of-all-words
210546Remove Boxes42.7%Hard0.14361551169114867https://leetcode.com/problems/remove-boxes
211116Populating Next Right Pointers in Each Node45.2%Medium0.13899325359219267https://leetcode.com/problems/populating-next-right-pointers-in-each-node
2121108Defanging an IP Address87.5%Easy0.13892162300436822https://leetcode.com/problems/defanging-an-ip-address
213687Longest Univalue Path36.2%Easy0.13857217423956994https://leetcode.com/problems/longest-univalue-path
214128Longest Consecutive Sequence45.1%Hard0.13583040733187832https://leetcode.com/problems/longest-consecutive-sequence
215427Construct Quad Tree61.4%Medium0.13580154115906176https://leetcode.com/problems/construct-quad-tree
2161044Longest Duplicate Substring31.9%Hard0.1351378186727963https://leetcode.com/problems/longest-duplicate-substring
21786Partition List41.5%Medium0.1338296774887775https://leetcode.com/problems/partition-list
218199Binary Tree Right Side View54.1%Medium0.13319296807660722https://leetcode.com/problems/binary-tree-right-side-view
2191221Split a String in Balanced Strings83.3%Easy0.1319324949716959https://leetcode.com/problems/split-a-string-in-balanced-strings
220977Squares of a Sorted Array72.1%Easy0.13133600206108695https://leetcode.com/problems/squares-of-a-sorted-array
221118Pascal's Triangle52.5%Easy0.12852395589356347https://leetcode.com/problems/pascals-triangle
22270Climbing Stairs47.8%Easy0.12772618382036388https://leetcode.com/problems/climbing-stairs
223198House Robber42.0%Easy0.12709898426651453https://leetcode.com/problems/house-robber
224359Logger Rate Limiter70.8%Easy0.1248502028794759https://leetcode.com/problems/logger-rate-limiter
225350Intersection of Two Arrays II51.4%Easy0.12274798010265034https://leetcode.com/problems/intersection-of-two-arrays-ii
2261114Print in Order65.7%Easy0.12136085700426744https://leetcode.com/problems/print-in-order
227211Add and Search Word - Data structure design38.1%Medium0.12092604505358262https://leetcode.com/problems/add-and-search-word-data-structure-design
2284544Sum II53.1%Medium0.1208030670124105https://leetcode.com/problems/4sum-ii
229867Transpose Matrix62.8%Easy0.11927747573936125https://leetcode.com/problems/transpose-matrix
23093Restore IP Addresses35.6%Medium0.11756123239496619https://leetcode.com/problems/restore-ip-addresses
231101Symmetric Tree46.8%Easy0.11583847861592966https://leetcode.com/problems/symmetric-tree
232184Department Highest Salary36.7%Medium0.111723209445655https://leetcode.com/problems/department-highest-salary
23382Remove Duplicates from Sorted List II36.8%Medium0.1110882064011508https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
234450Delete Node in a BST43.1%Medium0.11058538292750217https://leetcode.com/problems/delete-node-in-a-bst
235219Contains Duplicate II37.7%Easy0.10943188230246585https://leetcode.com/problems/contains-duplicate-ii
23678Subsets62.0%Medium0.10594222506883655https://leetcode.com/problems/subsets
237114Flatten Binary Tree to Linked List49.3%Medium0.1050144350175837https://leetcode.com/problems/flatten-binary-tree-to-linked-list
238407Trapping Rain Water II42.4%Hard0.10486899438963619https://leetcode.com/problems/trapping-rain-water-ii
239448Find All Numbers Disappeared in an Array55.9%Easy0.10453372768183221https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array
240343Integer Break50.4%Medium0.10446541455492596https://leetcode.com/problems/integer-break
241560Subarray Sum Equals K43.9%Medium0.10184840494454048https://leetcode.com/problems/subarray-sum-equals-k
242453Minimum Moves to Equal Array Elements50.2%Easy0.10178269430994231https://leetcode.com/problems/minimum-moves-to-equal-array-elements
243416Partition Equal Subset Sum43.7%Medium0.10153641921942286https://leetcode.com/problems/partition-equal-subset-sum
244417Pacific Atlantic Water Flow41.1%Medium0.10008345855698253https://leetcode.com/problems/pacific-atlantic-water-flow
245143Reorder List37.1%Medium0.09969510903753867https://leetcode.com/problems/reorder-list
246162Find Peak Element43.3%Medium0.09706051838470164https://leetcode.com/problems/find-peak-element
247230Kth Smallest Element in a BST60.2%Medium0.09685471541555685https://leetcode.com/problems/kth-smallest-element-in-a-bst
248207Course Schedule43.1%Medium0.09601114875296962https://leetcode.com/problems/course-schedule
249338Counting Bits69.5%Medium0.09394125419698317https://leetcode.com/problems/counting-bits
25087Scramble String33.7%Hard0.09333193979221914https://leetcode.com/problems/scramble-string
251266Palindrome Permutation61.9%Easy0.091248671465145https://leetcode.com/problems/palindrome-permutation
252282Expression Add Operators35.5%Hard0.08720118433574389https://leetcode.com/problems/expression-add-operators
253622Design Circular Queue43.7%Medium0.08696405427235052https://leetcode.com/problems/design-circular-queue
254256Paint House52.1%Easy0.08650924290928251https://leetcode.com/problems/paint-house
255105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.08645856912332787https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
25698Validate Binary Search Tree27.8%Medium0.0854255093169086https://leetcode.com/problems/validate-binary-search-tree
257287Find the Duplicate Number55.5%Medium0.0845834791494423https://leetcode.com/problems/find-the-duplicate-number
258345Reverse Vowels of a String44.2%Easy0.08413974844494757https://leetcode.com/problems/reverse-vowels-of-a-string
259582Kill Process60.8%Medium0.08355588569097351https://leetcode.com/problems/kill-process
26073Set Matrix Zeroes43.1%Medium0.08271965106891821https://leetcode.com/problems/set-matrix-zeroes
26126Remove Duplicates from Sorted Array45.1%Easy0.0792949457576407https://leetcode.com/problems/remove-duplicates-from-sorted-array
262208Implement Trie (Prefix Tree)49.4%Medium0.07910997849332738https://leetcode.com/problems/implement-trie-prefix-tree
263180Consecutive Numbers39.7%Medium0.07851014032375832https://leetcode.com/problems/consecutive-numbers
26479Word Search35.6%Medium0.07847790263416941https://leetcode.com/problems/word-search
265142Linked List Cycle II37.3%Medium0.0775950985761474https://leetcode.com/problems/linked-list-cycle-ii
266435Non-overlapping Intervals42.9%Medium0.07565042495900788https://leetcode.com/problems/non-overlapping-intervals
267540Single Element in a Sorted Array57.9%Medium0.07473130562267008https://leetcode.com/problems/single-element-in-a-sorted-array
268445Add Two Numbers II54.5%Medium0.07468384317453133https://leetcode.com/problems/add-two-numbers-ii
269669Trim a Binary Search Tree63.0%Easy0.07445297819474968https://leetcode.com/problems/trim-a-binary-search-tree
270480Sliding Window Median37.2%Hard0.0743529801177063https://leetcode.com/problems/sliding-window-median
271515Find Largest Value in Each Tree Row61.1%Medium0.07428007438287054https://leetcode.com/problems/find-largest-value-in-each-tree-row
27219Remove Nth Node From End of List35.2%Medium0.07420700547851658https://leetcode.com/problems/remove-nth-node-from-end-of-list
273721Accounts Merge48.8%Medium0.07349495575336484https://leetcode.com/problems/accounts-merge
274153Find Minimum in Rotated Sorted Array45.1%Medium0.07343579359779528https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
275617Merge Two Binary Trees74.1%Easy0.07201671240916602https://leetcode.com/problems/merge-two-binary-trees
27635Search Insert Position42.6%Easy0.07187646029497265https://leetcode.com/problems/search-insert-position
277442Find All Duplicates in an Array67.8%Medium0.07083107135140704https://leetcode.com/problems/find-all-duplicates-in-an-array
278378Kth Smallest Element in a Sorted Matrix54.3%Medium0.07059096970081927https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
279126Word Ladder II22.1%Hard0.07011193038456472https://leetcode.com/problems/word-ladder-ii
28054201 Matrix39.8%Medium0.0700198447248843https://leetcode.com/problems/01-matrix
281123Best Time to Buy and Sell Stock III37.5%Hard0.06838868749455218https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
2821011Capacity To Ship Packages Within D Days58.1%Medium0.06649420875558125https://leetcode.com/problems/capacity-to-ship-packages-within-d-days
283863All Nodes Distance K in Binary Tree55.4%Medium0.06616716425077336https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
28494Binary Tree Inorder Traversal63.3%Medium0.06583997601175454https://leetcode.com/problems/binary-tree-inorder-traversal
285122Best Time to Buy and Sell Stock II57.0%Easy0.06582927042348097https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
28695Unique Binary Search Trees II40.6%Medium0.06578614881622968https://leetcode.com/problems/unique-binary-search-trees-ii
287135Candy31.6%Hard0.06576510995956455https://leetcode.com/problems/candy
288326Power of Three42.1%Easy0.06353762681243758https://leetcode.com/problems/power-of-three
289772Basic Calculator III41.3%Hard0.06331227941432688https://leetcode.com/problems/basic-calculator-iii
290110Balanced Binary Tree43.5%Easy0.06153684147582857https://leetcode.com/problems/balanced-binary-tree
2911002Find Common Characters67.6%Easy0.059741539575795824https://leetcode.com/problems/find-common-characters
292103Binary Tree Zigzag Level Order Traversal48.3%Medium0.05973658149689521https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
293561Array Partition I72.0%Easy0.059408706690609644https://leetcode.com/problems/array-partition-i
294931Minimum Falling Path Sum62.5%Medium0.05914995982464103https://leetcode.com/problems/minimum-falling-path-sum
295890Find and Replace Pattern73.4%Medium0.0568334747631659https://leetcode.com/problems/find-and-replace-pattern
296301Remove Invalid Parentheses43.3%Hard0.0566523153423806https://leetcode.com/problems/remove-invalid-parentheses
297912Sort an Array63.9%Medium0.056512210263342307https://leetcode.com/problems/sort-an-array
298371Sum of Two Integers50.7%Medium0.05511036271051877https://leetcode.com/problems/sum-of-two-integers
299304Range Sum Query 2D - Immutable38.6%Medium0.054527987071175225https://leetcode.com/problems/range-sum-query-2d-immutable
300594Longest Harmonious Subsequence46.6%Easy0.054435206555017046https://leetcode.com/problems/longest-harmonious-subsequence
30163Unique Paths II34.6%Medium0.05324937607387791https://leetcode.com/problems/unique-paths-ii
3021315Sum of Nodes with Even-Valued Grandparent83.5%Medium0.05317259535592034https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent
303134Gas Station38.5%Medium0.05304524877458272https://leetcode.com/problems/gas-station
3041275Find Winner on a Tic Tac Toe Game52.8%Easy0.05292240145434251https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game
305767Reorganize String48.7%Medium0.05216306328458592https://leetcode.com/problems/reorganize-string
306695Max Area of Island62.7%Medium0.04980799142417255https://leetcode.com/problems/max-area-of-island
30750Pow(x;n)30.3%Medium0.049262619451480506https://leetcode.com/problems/powx-n
308709To Lower Case79.3%Easy0.048909503032274274https://leetcode.com/problems/to-lower-case
309621Task Scheduler50.1%Medium0.04638413032188776https://leetcode.com/problems/task-scheduler
310166Fraction to Recurring Decimal21.6%Medium0.04478360262697337https://leetcode.com/problems/fraction-to-recurring-decimal
311347Top K Frequent Elements61.2%Medium0.04399269847160566https://leetcode.com/problems/top-k-frequent-elements
312490The Maze51.4%Medium0.04287902305923364https://leetcode.com/problems/the-maze
313674Longest Continuous Increasing Subsequence45.9%Easy0.04225980928988265https://leetcode.com/problems/longest-continuous-increasing-subsequence
314430Flatten a Multilevel Doubly Linked List55.1%Medium0.04154283751370906https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
315907Sum of Subarray Minimums32.3%Medium0.04069737616380998https://leetcode.com/problems/sum-of-subarray-minimums
3161060Missing Element in Sorted Array54.5%Medium0.03879796954098255https://leetcode.com/problems/missing-element-in-sorted-array
31747Permutations II46.4%Medium0.038145268259690404https://leetcode.com/problems/permutations-ii
318210Course Schedule II40.7%Medium0.03795788828372613https://leetcode.com/problems/course-schedule-ii
31940Combination Sum II48.2%Medium0.037775974158907266https://leetcode.com/problems/combination-sum-ii
32064Minimum Path Sum54.5%Medium0.03769479893530684https://leetcode.com/problems/minimum-path-sum
3211021Remove Outermost Parentheses78.0%Easy0.03660433056251234https://leetcode.com/problems/remove-outermost-parentheses
322374Guess Number Higher or Lower43.1%Easy0.03422387238757742https://leetcode.com/problems/guess-number-higher-or-lower
323886Possible Bipartition44.2%Medium0.034103901828857086https://leetcode.com/problems/possible-bipartition
324226Invert Binary Tree65.0%Easy0.03393837323839263https://leetcode.com/problems/invert-binary-tree
325112Path Sum41.2%Easy0.03370499686939782https://leetcode.com/problems/path-sum
326217Contains Duplicate56.0%Easy0.03367321510658789https://leetcode.com/problems/contains-duplicate
327516Longest Palindromic Subsequence53.2%Medium0.0332870969222259https://leetcode.com/problems/longest-palindromic-subsequence
3281146Snapshot Array37.0%Medium0.0317991816929387https://leetcode.com/problems/snapshot-array
329703Kth Largest Element in a Stream49.7%Easy0.031004894819414507https://leetcode.com/problems/kth-largest-element-in-a-stream
330530Minimum Absolute Difference in BST53.8%Easy0.030677252247047038https://leetcode.com/problems/minimum-absolute-difference-in-bst
331876Middle of the Linked List68.4%Easy0.030156827290986423https://leetcode.com/problems/middle-of-the-linked-list
3321197Minimum Knight Moves36.1%Medium0.02969780239174205https://leetcode.com/problems/minimum-knight-moves
333938Range Sum of BST81.3%Easy0.027755467721532374https://leetcode.com/problems/range-sum-of-bst
334811Subdomain Visit Count69.9%Easy0.02772180293027194https://leetcode.com/problems/subdomain-visit-count
33567Add Binary45.2%Easy0.026266540645351912https://leetcode.com/problems/add-binary
336373Find K Pairs with Smallest Sums36.7%Medium0.02626546261018635https://leetcode.com/problems/find-k-pairs-with-smallest-sums
337111Minimum Depth of Binary Tree37.4%Easy0.026222413650382477https://leetcode.com/problems/minimum-depth-of-binary-tree
338961N-Repeated Element in Size 2N Array73.7%Easy0.025609594204324387https://leetcode.com/problems/n-repeated-element-in-size-2n-array
3391038Binary Search Tree to Greater Sum Tree80.8%Medium0.025446665661164262https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree
340310Minimum Height Trees32.3%Medium0.02446605215440636https://leetcode.com/problems/minimum-height-trees
341804Unique Morse Code Words77.0%Easy0.024332100659530644https://leetcode.com/problems/unique-morse-code-words
342286Walls and Gates54.5%Medium0.02324334737232728https://leetcode.com/problems/walls-and-gates
343766Toeplitz Matrix65.1%Easy0.02280600552903764https://leetcode.com/problems/toeplitz-matrix
344113Path Sum II46.7%Medium0.021882711249507664https://leetcode.com/problems/path-sum-ii
345905Sort Array By Parity74.1%Easy0.02148053951675942https://leetcode.com/problems/sort-array-by-parity
346670Maximum Swap43.6%Medium0.020844944430365928https://leetcode.com/problems/maximum-swap
34760Permutation Sequence38.4%Hard0.020471543980187256https://leetcode.com/problems/permutation-sequence
34866Plus One43.0%Easy0.020215776991954044https://leetcode.com/problems/plus-one
349525Contiguous Array42.8%Medium0.01975372873623256https://leetcode.com/problems/contiguous-array
350700Search in a Binary Search Tree73.1%Easy0.01905222743200806https://leetcode.com/problems/search-in-a-binary-search-tree
351209Minimum Size Subarray Sum38.2%Medium0.018832948333092125https://leetcode.com/problems/minimum-size-subarray-sum
352406Queue Reconstruction by Height66.9%Medium0.01774669468133533https://leetcode.com/problems/queue-reconstruction-by-height
353100Same Tree53.4%Easy0.017112941192143866https://leetcode.com/problems/same-tree
354628Maximum Product of Three Numbers47.1%Easy0.016529301951210565https://leetcode.com/problems/maximum-product-of-three-numbers
355188Best Time to Buy and Sell Stock IV28.0%Hard0.01651565203072114https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv
356203Remove Linked List Elements38.6%Easy0.014519311324453305https://leetcode.com/problems/remove-linked-list-elements
357107Binary Tree Level Order Traversal II53.5%Easy0.014395642075089957https://leetcode.com/problems/binary-tree-level-order-traversal-ii
358258Add Digits57.6%Easy0.012859598023941623https://leetcode.com/problems/add-digits
359181Employees Earning More Than Their Managers56.9%Easy0.012618463959211509https://leetcode.com/problems/employees-earning-more-than-their-managers
360257Binary Tree Paths51.5%Easy0.010457611643958139https://leetcode.com/problems/binary-tree-paths
361819Most Common Word44.8%Easy0.010269666637456105https://leetcode.com/problems/most-common-word
36296Unique Binary Search Trees52.9%Medium0.009242209964820877https://leetcode.com/problems/unique-binary-search-trees
363937Reorder Data in Log Files54.3%Easy0.008415787099648575https://leetcode.com/problems/reorder-data-in-log-files
364763Partition Labels76.1%Medium0.008385793376274025https://leetcode.com/problems/partition-labels
365260Single Number III64.3%Medium0.008090659020153698https://leetcode.com/problems/single-number-iii
366309Best Time to Buy and Sell Stock with Cooldown47.4%Medium0.006400704591951834https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown
367565Array Nesting55.5%Medium0https://leetcode.com/problems/array-nesting