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

40 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
2953Verifying an Alien Dictionary54.1%Easy2.989885912665777https://leetcode.com/problems/verifying-an-alien-dictionary
31249Minimum Remove to Make Valid Parentheses62.5%Medium2.789692716779026https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses
4560Subarray Sum Equals K43.9%Medium2.589499520892275https://leetcode.com/problems/subarray-sum-equals-k
5680Valid Palindrome II36.6%Easy2.4309487236103293https://leetcode.com/problems/valid-palindrome-ii
6973K Closest Points to Origin63.8%Medium2.4168563957837113https://leetcode.com/problems/k-closest-points-to-origin
7238Product of Array Except Self60.1%Medium2.3907554290635766https://leetcode.com/problems/product-of-array-except-self
8273Integer to English Words27.1%Hard2.1905622331768257https://leetcode.com/problems/integer-to-english-words
9269Alien Dictionary33.3%Hard1.9903690372900749https://leetcode.com/problems/alien-dictionary
10415Add Strings47.5%Easy1.9412871417683926https://leetcode.com/problems/add-strings
111428Leftmost Column with at Least a One46.8%Medium1.7410939458816417https://leetcode.com/problems/leftmost-column-with-at-least-a-one
12158Read N Characters Given Read4 II - Call multiple times33.8%Hard1.7021507666261801https://leetcode.com/problems/read-n-characters-given-read4-ii-call-multiple-times
13301Remove Invalid Parentheses43.3%Hard1.6508280515405795https://leetcode.com/problems/remove-invalid-parentheses
14199Binary Tree Right Side View54.1%Medium1.6398580822570061https://leetcode.com/problems/binary-tree-right-side-view
15211Add and Search Word - Data structure design38.1%Medium1.5661206772732004https://leetcode.com/problems/add-and-search-word-data-structure-design
16438Find All Anagrams in a String43.3%Medium1.525736950713966https://leetcode.com/problems/find-all-anagrams-in-a-string
17297Serialize and Deserialize Binary Tree47.5%Hard1.45465966830531https://leetcode.com/problems/serialize-and-deserialize-binary-tree
18278First Bad Version35.7%Easy1.414379824999279https://leetcode.com/problems/first-bad-version
19938Range Sum of BST81.3%Easy1.3387896500848302https://leetcode.com/problems/range-sum-of-bst
20215Kth Largest Element in an Array55.4%Medium1.3206473731391246https://leetcode.com/problems/kth-largest-element-in-an-array
21124Binary Tree Maximum Path Sum34.3%Hard1.3042127575609332https://leetcode.com/problems/binary-tree-maximum-path-sum
2223Merge k Sorted Lists40.2%Hard1.2054838918356545https://leetcode.com/problems/merge-k-sorted-lists
23523Continuous Subarray Sum24.6%Medium1.2029321441561993https://leetcode.com/problems/continuous-subarray-sum
24311Sparse Matrix Multiplication61.9%Medium1.1864036360584072https://leetcode.com/problems/sparse-matrix-multiplication
25398Random Pick Index56.0%Medium1.1731453405306764https://leetcode.com/problems/random-pick-index
26173Binary Search Tree Iterator56.6%Medium1.1576476302611085https://leetcode.com/problems/binary-search-tree-iterator
2767Add Binary45.2%Easy1.1492351430881342https://leetcode.com/problems/add-binary
28270Closest Binary Search Tree Value48.5%Easy1.128109605935724https://leetcode.com/problems/closest-binary-search-tree-value
29636Exclusive Time of Functions51.9%Medium1.070608304685468https://leetcode.com/problems/exclusive-time-of-functions
30282Expression Add Operators35.5%Hard1.0455990970504063https://leetcode.com/problems/expression-add-operators
31340Longest Substring with At Most K Distinct Characters44.1%Hard1.0267418846400203https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
32125Valid Palindrome36.7%Easy1.0148317568156204https://leetcode.com/problems/valid-palindrome
33986Interval List Intersections67.3%Medium1.0057274214846563https://leetcode.com/problems/interval-list-intersections
34689Maximum Sum of 3 Non-Overlapping Subarrays46.3%Hard0.9947846759711312https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays
3588Merge Sorted Array39.4%Easy0.9801695539990253https://leetcode.com/problems/merge-sorted-array
36543Diameter of Binary Tree48.4%Easy0.9666819038179104https://leetcode.com/problems/diameter-of-binary-tree
37249Group Shifted Strings55.1%Medium0.945666077174907https://leetcode.com/problems/group-shifted-strings
38670Maximum Swap43.6%Medium0.9249941895303234https://leetcode.com/problems/maximum-swap
3965Valid Number15.3%Hard0.908165324430238https://leetcode.com/problems/valid-number
40339Nested List Weight Sum74.0%Easy0.9052609305482283https://leetcode.com/problems/nested-list-weight-sum
41987Vertical Order Traversal of a Binary Tree36.6%Medium0.8804156410839885https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree
4256Merge Intervals39.3%Medium0.8427900387945232https://leetcode.com/problems/merge-intervals
43896Monotonic Array57.9%Easy0.8393770268957597https://leetcode.com/problems/monotonic-array
441026Maximum Difference Between Node and Ancestor66.0%Medium0.7618015852980233https://leetcode.com/problems/maximum-difference-between-node-and-ancestor
4531Next Permutation32.6%Medium0.7395169896605716https://leetcode.com/problems/next-permutation
46528Random Pick with Weight43.9%Medium0.7321595446631552https://leetcode.com/problems/random-pick-with-weight
47721Accounts Merge48.8%Medium0.7287314592848576https://leetcode.com/problems/accounts-merge
4834Find First and Last Position of Element in Sorted Array36.2%Medium0.7044168429677726https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
49785Is Graph Bipartite?47.5%Medium0.7029856295602332https://leetcode.com/problems/is-graph-bipartite
501060Missing Element in Sorted Array54.5%Medium0.6876375247489758https://leetcode.com/problems/missing-element-in-sorted-array
51133Clone Graph34.8%Medium0.6874118104752011https://leetcode.com/problems/clone-graph
5242Trapping Rain Water48.9%Hard0.683618605098175https://leetcode.com/problems/trapping-rain-water
5329Divide Two Integers16.4%Medium0.6823861236036471https://leetcode.com/problems/divide-two-integers
5476Minimum Window Substring34.6%Hard0.6814364325080815https://leetcode.com/problems/minimum-window-substring
55236Lowest Common Ancestor of a Binary Tree45.7%Medium0.6555317936561839https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
56616Add Bold Tag in String43.1%Medium0.6372987390704172https://leetcode.com/problems/add-bold-tag-in-string
57314Binary Tree Vertical Order Traversal45.3%Medium0.6368436274564796https://leetcode.com/problems/binary-tree-vertical-order-traversal
58426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium0.6325225587435105https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
59498Diagonal Traverse48.2%Medium0.6127841327406813https://leetcode.com/problems/diagonal-traverse
60766Toeplitz Matrix65.1%Easy0.6045617437458672https://leetcode.com/problems/toeplitz-matrix
61958Check Completeness of a Binary Tree52.1%Medium0.5833765144245663https://leetcode.com/problems/check-completeness-of-a-binary-tree
621197Minimum Knight Moves36.1%Medium0.5616591289700842https://leetcode.com/problems/minimum-knight-moves
63419Battleships in a Board70.0%Medium0.5613354788149493https://leetcode.com/problems/battleships-in-a-board
64767Reorganize String48.7%Medium0.5613354788149493https://leetcode.com/problems/reorganize-string
65380Insert Delete GetRandom O(1)47.5%Medium0.5382766101249649https://leetcode.com/problems/insert-delete-getrandom-o1
66227Basic Calculator II36.9%Medium0.5316918663537997https://leetcode.com/problems/basic-calculator-ii
6771Simplify Path32.6%Medium0.5262793676678309https://leetcode.com/problems/simplify-path
68839Similar String Groups38.6%Hard0.5248118657407306https://leetcode.com/problems/similar-string-groups
691123Lowest Common Ancestor of Deepest Leaves66.8%Medium0.4992480704235479https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves
70432All O`one Data Structure32.4%Hard0.49573913073261056https://leetcode.com/problems/all-oone-data-structure
71317Shortest Distance from All Buildings41.4%Hard0.4817811959810462https://leetcode.com/problems/shortest-distance-from-all-buildings
72109Convert Sorted List to Binary Search Tree47.7%Medium0.47905346476565347https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
73139Word Break40.1%Medium0.4760457233294034https://leetcode.com/problems/word-break
74658Find K Closest Elements40.9%Medium0.4718862780603521https://leetcode.com/problems/find-k-closest-elements
75138Copy List with Random Pointer36.4%Medium0.44498832447784914https://leetcode.com/problems/copy-list-with-random-pointer
76825Friends Of Appropriate Ages42.7%Medium0.43427293431510494https://leetcode.com/problems/friends-of-appropriate-ages
77349Intersection of Two Arrays62.5%Easy0.4224803991237512https://leetcode.com/problems/intersection-of-two-arrays
78146LRU Cache33.2%Medium0.4110212101491863https://leetcode.com/problems/lru-cache
79157Read N Characters Given Read434.2%Easy0.39066859991139324https://leetcode.com/problems/read-n-characters-given-read4
80708Insert into a Sorted Circular Linked List31.6%Medium0.3886132680726728https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list
81463Island Perimeter65.7%Easy0.3815418531421575https://leetcode.com/problems/island-perimeter
82934Shortest Bridge48.2%Medium0.3715318913226816https://leetcode.com/problems/shortest-bridge
83921Minimum Add to Make Parentheses Valid73.7%Medium0.36363496556057356https://leetcode.com/problems/minimum-add-to-make-parentheses-valid
8433Search in Rotated Sorted Array34.5%Medium0.35617336232817126https://leetcode.com/problems/search-in-rotated-sorted-array
85400Nth Digit31.7%Medium0.33647223662121295https://leetcode.com/problems/nth-digit
86540Single Element in a Sorted Array57.9%Medium0.33133226559120954https://leetcode.com/problems/single-element-in-a-sorted-array
87333Largest BST Subtree35.8%Medium0.32931497055013925https://leetcode.com/problems/largest-bst-subtree
88827Making A Large Island45.7%Hard0.32879599515977564https://leetcode.com/problems/making-a-large-island
8943Multiply Strings33.9%Medium0.3279710815981375https://leetcode.com/problems/multiply-strings
90286Walls and Gates54.5%Medium0.319361875095049https://leetcode.com/problems/walls-and-gates
911269Number of Ways to Stay in the Same Place After Some Steps43.2%Hard0.3144566709952356https://leetcode.com/problems/number-of-ways-to-stay-in-the-same-place-after-some-steps
92678Valid Parenthesis String31.0%Medium0.31306090671867376https://leetcode.com/problems/valid-parenthesis-string
931233Remove Sub-Folders from the Filesystem59.5%Medium0.31269697112755473https://leetcode.com/problems/remove-sub-folders-from-the-filesystem
941242Web Crawler Multithreaded45.9%Medium0.30961714931803663https://leetcode.com/problems/web-crawler-multithreaded
95536Construct Binary Tree from String48.3%Medium0.303629619668917https://leetcode.com/problems/construct-binary-tree-from-string
96378Kth Smallest Element in a Sorted Matrix54.3%Medium0.303069224638031https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
9710Regular Expression Matching26.8%Hard0.3026257535192428https://leetcode.com/problems/regular-expression-matching
98939Minimum Area Rectangle51.8%Medium0.29924289485285693https://leetcode.com/problems/minimum-area-rectangle
99936Stamping The Sequence42.8%Hard0.2972515234679316https://leetcode.com/problems/stamping-the-sequence
100253Meeting Rooms II45.7%Medium0.29470460870072https://leetcode.com/problems/meeting-rooms-ii
101329Longest Increasing Path in a Matrix43.4%Hard0.29062882263712253https://leetcode.com/problems/longest-increasing-path-in-a-matrix
1021424Diagonal Traverse II42.4%Medium0.28406186115878557https://leetcode.com/problems/diagonal-traverse-ii
10393Restore IP Addresses35.6%Medium0.27714773876682147https://leetcode.com/problems/restore-ip-addresses
104695Max Area of Island62.7%Medium0.2770125235595406https://leetcode.com/problems/max-area-of-island
105548Split Array with Equal Sum46.4%Medium0.2761315220005779https://leetcode.com/problems/split-array-with-equal-sum
1061216Valid Palindrome III47.8%Hard0.2752815592533259https://leetcode.com/problems/valid-palindrome-iii
10750Pow(x;n)30.3%Medium0.2584425901237734https://leetcode.com/problems/powx-n
108304Range Sum Query 2D - Immutable38.6%Medium0.24975649223064128https://leetcode.com/problems/range-sum-query-2d-immutable
109621Task Scheduler50.1%Medium0.24973714088765747https://leetcode.com/problems/task-scheduler
110163Missing Ranges24.3%Medium0.24869662573882725https://leetcode.com/problems/missing-ranges
111494Target Sum46.3%Medium0.2453642433771354https://leetcode.com/problems/target-sum
1128String to Integer (atoi)15.4%Medium0.24257917433914686https://leetcode.com/problems/string-to-integer-atoi
113863All Nodes Distance K in Binary Tree55.4%Medium0.24186418612910326https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
114452Minimum Number of Arrows to Burst Balloons49.6%Medium0.23843368813228313https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons
115381Insert Delete GetRandom O(1) - Duplicates allowed34.1%Hard0.2349381278070467https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed
116844Backspace String Compare46.4%Easy0.2349381278070467https://leetcode.com/problems/backspace-string-compare
117855Exam Room43.1%Medium0.23361485118150516https://leetcode.com/problems/exam-room
11892Reverse Linked List II38.8%Medium0.23274095442047985https://leetcode.com/problems/reverse-linked-list-ii
119772Basic Calculator III41.3%Hard0.2322522675124501https://leetcode.com/problems/basic-calculator-iii
120200Number of Islands46.8%Medium0.23204607197311616https://leetcode.com/problems/number-of-islands
12122Generate Parentheses62.7%Medium0.21981634397194805https://leetcode.com/problems/generate-parentheses
122408Valid Word Abbreviation30.6%Easy0.21878624594525403https://leetcode.com/problems/valid-word-abbreviation
123332Reconstruct Itinerary36.7%Medium0.20016691711396506https://leetcode.com/problems/reconstruct-itinerary
124348Design Tic-Tac-Toe54.3%Medium0.19933290262049122https://leetcode.com/problems/design-tic-tac-toe
125140Word Break II32.6%Hard0.19849973124449666https://leetcode.com/problems/word-break-ii
126865Smallest Subtree with all the Deepest Nodes60.8%Medium0.19796045067840945https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes
127364Nested List Weight Sum II62.8%Medium0.1959851135234185https://leetcode.com/problems/nested-list-weight-sum-ii
128480Sliding Window Median37.2%Hard0.19425690734322737https://leetcode.com/problems/sliding-window-median
129121Best Time to Buy and Sell Stock50.5%Easy0.19278242868174433https://leetcode.com/problems/best-time-to-buy-and-sell-stock
130791Custom Sort String65.7%Medium0.1922835495227023https://leetcode.com/problems/custom-sort-string
131246Strobogrammatic Number45.0%Easy0.187957697907993https://leetcode.com/problems/strobogrammatic-number
132323Number of Connected Components in an Undirected Graph56.0%Medium0.18178978331691914https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph
133759Employee Free Time66.3%Hard0.1816986978513639https://leetcode.com/problems/employee-free-time
1341245Tree Diameter60.1%Medium0.17869178874337593https://leetcode.com/problems/tree-diameter
135162Find Peak Element43.3%Medium0.17622454513525765https://leetcode.com/problems/find-peak-element
136224Basic Calculator36.8%Hard0.17452286430813568https://leetcode.com/problems/basic-calculator
1371213Intersection of Three Sorted Arrays78.9%Easy0.1735948056557174https://leetcode.com/problems/intersection-of-three-sorted-arrays
138277Find the Celebrity41.8%Medium0.17260355263083088https://leetcode.com/problems/find-the-celebrity
139143Reorder List37.1%Medium0.1708995553293303https://leetcode.com/problems/reorder-list
140609Find Duplicate File in System59.5%Medium0.16971838464062922https://leetcode.com/problems/find-duplicate-file-in-system
141963Minimum Area Rectangle II50.9%Medium0.16635770580494058https://leetcode.com/problems/minimum-area-rectangle-ii
142153Sum26.8%Medium0.1640862201935116https://leetcode.com/problems/3sum
14319Remove Nth Node From End of List35.2%Medium0.15983469543773265https://leetcode.com/problems/remove-nth-node-from-end-of-list
144647Palindromic Substrings60.6%Medium0.154673282399905https://leetcode.com/problems/palindromic-substrings
1451094Car Pooling56.7%Medium0.15180601286800416https://leetcode.com/problems/car-pooling
146126Word Ladder II22.1%Hard0.15135837956172798https://leetcode.com/problems/word-ladder-ii
1471032Stream of Characters48.3%Hard0.14378789279171172https://leetcode.com/problems/stream-of-characters
14891Decode Ways24.7%Medium0.13946258598914826https://leetcode.com/problems/decode-ways
1491209Remove All Adjacent Duplicates in String II56.9%Medium0.13712574822724946https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii
150622Design Circular Queue43.8%Medium0.1327502812764459https://leetcode.com/problems/design-circular-queue
151977Squares of a Sorted Array72.1%Easy0.13133600206108695https://leetcode.com/problems/squares-of-a-sorted-array
152117Populating Next Right Pointers in Each Node II39.1%Medium0.13130956766464877https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii
1531Two Sum45.6%Easy0.1299229690633312https://leetcode.com/problems/two-sum
154347Top K Frequent Elements61.2%Medium0.12591062025304192https://leetcode.com/problems/top-k-frequent-elements
15578Subsets62.0%Medium0.12486971572185374https://leetcode.com/problems/subsets
156257Binary Tree Paths51.5%Easy0.12113556412256954https://leetcode.com/problems/binary-tree-paths
1571439Find the Kth Smallest Sum of a Matrix With Sorted Rows59.5%Hard0.11918851726511835https://leetcode.com/problems/find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
158284Peeking Iterator45.7%Medium0.11901099827011974https://leetcode.com/problems/peeking-iterator
159341Flatten Nested List Iterator52.9%Medium0.11879160861126825https://leetcode.com/problems/flatten-nested-list-iterator
1603Longest Substring Without Repeating Characters30.4%Medium0.11876423093459514https://leetcode.com/problems/longest-substring-without-repeating-characters
161207Course Schedule43.1%Medium0.11725761496207857https://leetcode.com/problems/course-schedule
1621275Find Winner on a Tic Tac Toe Game52.8%Easy0.11536465479210183https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game
163127Word Ladder29.6%Medium0.11461293205885352https://leetcode.com/problems/word-ladder
16457Insert Interval33.5%Hard0.11230236057981403https://leetcode.com/problems/insert-interval
16540Combination Sum II48.2%Medium0.11145356111123644https://leetcode.com/problems/combination-sum-ii
166742Closest Leaf in a Binary Tree43.6%Medium0.11060987154397002https://leetcode.com/problems/closest-leaf-in-a-binary-tree
16739Combination Sum56.1%Medium0.10982174474537089https://leetcode.com/problems/combination-sum
168547Friend Circles58.6%Medium0.10502210097355241https://leetcode.com/problems/friend-circles
169114Flatten Binary Tree to Linked List49.3%Medium0.1050144350175837https://leetcode.com/problems/flatten-binary-tree-to-linked-list
170773Sliding Puzzle59.3%Hard0.10294796925244239https://leetcode.com/problems/sliding-puzzle
1711411Number of Ways to Paint N × 3 Grid61.1%Hard0.10135249426028749https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid
17298Validate Binary Search Tree27.8%Medium0.1008693132143216https://leetcode.com/problems/validate-binary-search-tree
173529Minesweeper59.1%Medium0.09695424100489167https://leetcode.com/problems/minesweeper
174280Wiggle Sort63.8%Medium0.09561417737468547https://leetcode.com/problems/wiggle-sort
175983Minimum Cost For Tickets60.5%Medium0.09525339549949145https://leetcode.com/problems/minimum-cost-for-tickets
176160Intersection of Two Linked Lists40.6%Easy0.09485223529696123https://leetcode.com/problems/intersection-of-two-linked-lists
177490The Maze51.4%Medium0.09401490736696706https://leetcode.com/problems/the-maze
1781062Longest Repeating Substring57.2%Medium0.09201889872025212https://leetcode.com/problems/longest-repeating-substring
1791132Reported Posts II34.4%Medium0.0903548750399561https://leetcode.com/problems/reported-posts-ii
180272Closest Binary Search Tree Value II50.5%Hard0.08994823666293948https://leetcode.com/problems/closest-binary-search-tree-value-ii
181358Rearrange String k Distance Apart34.9%Hard0.08894748601649616https://leetcode.com/problems/rearrange-string-k-distance-apart
182995Minimum Number of K Consecutive Bit Flips46.8%Hard0.08894748601649616https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips
183692Top K Frequent Words51.8%Medium0.08839354721658145https://leetcode.com/problems/top-k-frequent-words
18425Reverse Nodes in k-Group42.1%Hard0.08835766048944313https://leetcode.com/problems/reverse-nodes-in-k-group
185549Binary Tree Longest Consecutive Sequence II47.0%Medium0.08816278759467164https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii
186116Populating Next Right Pointers in Each Node45.2%Medium0.08636683942300452https://leetcode.com/problems/populating-next-right-pointers-in-each-node
187345Reverse Vowels of a String44.2%Easy0.08413974844494757https://leetcode.com/problems/reverse-vowels-of-a-string
188443String Compression41.3%Easy0.08391368024915737https://leetcode.com/problems/string-compression
189283Move Zeroes57.8%Easy0.08379761717276897https://leetcode.com/problems/move-zeroes
190724Find Pivot Index44.0%Easy0.08357684789821086https://leetcode.com/problems/find-pivot-index
19173Set Matrix Zeroes43.1%Medium0.08271965106891821https://leetcode.com/problems/set-matrix-zeroes
192350Intersection of Two Arrays II51.4%Easy0.08027374155116185https://leetcode.com/problems/intersection-of-two-arrays-ii
193875Koko Eating Bananas52.1%Medium0.07919704166119315https://leetcode.com/problems/koko-eating-bananas
1941047Remove All Adjacent Duplicates In String68.6%Easy0.0789551324793932https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
195166Fraction to Recurring Decimal21.6%Medium0.0782795570551556https://leetcode.com/problems/fraction-to-recurring-decimal
1961254Number of Closed Islands60.5%Medium0.07796154146971186https://leetcode.com/problems/number-of-closed-islands
19754Spiral Matrix34.1%Medium0.07792846120043545https://leetcode.com/problems/spiral-matrix
198129Sum Root to Leaf Numbers49.1%Medium0.07707974254287937https://leetcode.com/problems/sum-root-to-leaf-numbers
199137Single Number II52.4%Medium0.07583984694698977https://leetcode.com/problems/single-number-ii
200515Find Largest Value in Each Tree Row61.1%Medium0.07428007438287054https://leetcode.com/problems/find-largest-value-in-each-tree-row
201503Next Greater Element II56.5%Medium0.07339377143296942https://leetcode.com/problems/next-greater-element-ii
2021004Max Consecutive Ones III59.1%Medium0.07220094736995063https://leetcode.com/problems/max-consecutive-ones-iii
2031057Campus Bikes57.7%Medium0.07107786641655695https://leetcode.com/problems/campus-bikes
204676Implement Magic Dictionary54.5%Medium0.06995858860691037https://leetcode.com/problems/implement-magic-dictionary
2051091Shortest Path in Binary Matrix38.2%Medium0.06984995317644427https://leetcode.com/problems/shortest-path-in-binary-matrix
206136Single Number65.5%Easy0.0693807551554477https://leetcode.com/problems/single-number
207723Candy Crush69.2%Medium0.06828590786613152https://leetcode.com/problems/candy-crush
208328Odd Even Linked List55.7%Medium0.06677800280143044https://leetcode.com/problems/odd-even-linked-list
209240Search a 2D Matrix II43.2%Medium0.06626158386149206https://leetcode.com/problems/search-a-2d-matrix-ii
210163Sum Closest46.0%Medium0.065777130514714https://leetcode.com/problems/3sum-closest
21153Maximum Subarray46.5%Easy0.06356179958832935https://leetcode.com/problems/maximum-subarray
212428Serialize and Deserialize N-ary Tree59.4%Hard0.06136894637629212https://leetcode.com/problems/serialize-and-deserialize-n-ary-tree
213491Increasing Subsequences46.1%Medium0.058581901624802396https://leetcode.com/problems/increasing-subsequences
2142Add Two Numbers33.9%Medium0.04985995397332526https://leetcode.com/problems/add-two-numbers
215242Valid Anagram56.9%Easy0.04973624974928908https://leetcode.com/problems/valid-anagram
216388Longest Absolute File Path41.8%Medium0.04849434993861047https://leetcode.com/problems/longest-absolute-file-path
217405Convert a Number to Hexadecimal43.9%Easy0.0483770263821056https://leetcode.com/problems/convert-a-number-to-hexadecimal
218247Strobogrammatic Number II47.6%Medium0.04757139497530258https://leetcode.com/problems/strobogrammatic-number-ii
219698Partition to K Equal Sum Subsets45.0%Medium0.04685917114094188https://leetcode.com/problems/partition-to-k-equal-sum-subsets
220442Find All Duplicates in an Array67.8%Medium0.04590593720045213https://leetcode.com/problems/find-all-duplicates-in-an-array
22149Group Anagrams56.9%Medium0.045631752563977224https://leetcode.com/problems/group-anagrams
22220Valid Parentheses39.0%Easy0.045585204865984434https://leetcode.com/problems/valid-parentheses
2235Longest Palindromic Substring29.5%Medium0.04517328747428837https://leetcode.com/problems/longest-palindromic-substring
224935Knight Dialer45.2%Medium0.04445176257083384https://leetcode.com/problems/knight-dialer
22555Jump Game34.6%Medium0.04432039968066135https://leetcode.com/problems/jump-game
226102Binary Tree Level Order Traversal54.6%Medium0.04369064305418892https://leetcode.com/problems/binary-tree-level-order-traversal
2271498Number of Subsequences That Satisfy the Given Sum Condition36.7%Medium0.04334372921647208https://leetcode.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition
228435Non-overlapping Intervals42.9%Medium0.04325518123147988https://leetcode.com/problems/non-overlapping-intervals
229399Evaluate Division51.6%Medium0.043089480538103624https://leetcode.com/problems/evaluate-division
230716Max Stack42.6%Easy0.042695919196489414https://leetcode.com/problems/max-stack
231669Trim a Binary Search Tree63.0%Easy0.04255961441879593https://leetcode.com/problems/trim-a-binary-search-tree
232674Longest Continuous Increasing Subsequence45.9%Easy0.04225980928988265https://leetcode.com/problems/longest-continuous-increasing-subsequence
233266Palindrome Permutation61.9%Easy0.04158603377810283https://leetcode.com/problems/palindrome-permutation
23462Unique Paths54.1%Medium0.04084052144450833https://leetcode.com/problems/unique-paths
235918Maximum Sum Circular Subarray33.7%Medium0.04045040846284272https://leetcode.com/problems/maximum-sum-circular-subarray
236122Best Time to Buy and Sell Stock II57.0%Easy0.04033800644917969https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
237686Repeated String Match32.3%Easy0.03984590854719967https://leetcode.com/problems/repeated-string-match
238406Queue Reconstruction by Height66.9%Medium0.03949613834265583https://leetcode.com/problems/queue-reconstruction-by-height
239230Kth Smallest Element in a BST60.2%Medium0.03895787134280517https://leetcode.com/problems/kth-smallest-element-in-a-bst
240168Excel Sheet Column Title31.1%Easy0.03861483612777958https://leetcode.com/problems/excel-sheet-column-title
24174Search a 2D Matrix36.5%Medium0.03685354875882915https://leetcode.com/problems/search-a-2d-matrix
242887Super Egg Drop27.1%Hard0.03660060864484636https://leetcode.com/problems/super-egg-drop
243884Uncommon Words from Two Sentences63.3%Easy0.036301626676214796https://leetcode.com/problems/uncommon-words-from-two-sentences
244334Increasing Triplet Subsequence40.0%Medium0.03577488021091517https://leetcode.com/problems/increasing-triplet-subsequence
245295Find Median from Data Stream44.3%Hard0.035519827248535335https://leetcode.com/problems/find-median-from-data-stream
246416Partition Equal Subset Sum43.7%Medium0.034301326353463016https://leetcode.com/problems/partition-equal-subset-sum
247214Shortest Palindrome29.8%Hard0.03419136474827932https://leetcode.com/problems/shortest-palindrome
248886Possible Bipartition44.2%Medium0.034103901828857086https://leetcode.com/problems/possible-bipartition
2491360Number of Days Between Two Dates48.8%Easy0.03401688527825427https://leetcode.com/problems/number-of-days-between-two-dates
250567Permutation in String44.4%Medium0.033324075731591886https://leetcode.com/problems/permutation-in-string
2511287Element Appearing More Than 25% In Sorted Array60.2%Easy0.033033556829153404https://leetcode.com/problems/element-appearing-more-than-25-in-sorted-array
252694Number of Distinct Islands56.0%Medium0.03278982282299087https://leetcode.com/problems/number-of-distinct-islands
253824Goat Latin63.4%Easy0.0317991816929387https://leetcode.com/problems/goat-latin
25444Wildcard Matching24.7%Hard0.030573033362282363https://leetcode.com/problems/wildcard-matching
2551027Longest Arithmetic Sequence53.4%Medium0.03030534949532895https://leetcode.com/problems/longest-arithmetic-sequence
256191Number of 1 Bits49.8%Easy0.029560622742018188https://leetcode.com/problems/number-of-1-bits
25714Longest Common Prefix35.4%Easy0.029493413243583278https://leetcode.com/problems/longest-common-prefix
258176Second Highest Salary31.6%Easy0.029252542837437355https://leetcode.com/problems/second-highest-salary
259472Concatenated Words43.7%Hard0.027664281472355556https://leetcode.com/problems/concatenated-words
26011Container With Most Water50.8%Medium0.02727648457622222https://leetcode.com/problems/container-with-most-water
2611379Find a Corresponding Node of a Binary Tree in a Clone of That Tree83.8%Medium0.02645656953683045https://leetcode.com/problems/find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
2621305All Elements in Two Binary Search Trees76.1%Medium0.026282721799194744https://leetcode.com/problems/all-elements-in-two-binary-search-trees
263373Find K Pairs with Smallest Sums36.7%Medium0.02626546261018635https://leetcode.com/problems/find-k-pairs-with-smallest-sums
264111Minimum Depth of Binary Tree37.4%Easy0.026222413650382477https://leetcode.com/problems/minimum-depth-of-binary-tree
265979Distribute Coins in Binary Tree68.9%Medium0.026196651946570663https://leetcode.com/problems/distribute-coins-in-binary-tree
26681Search in Rotated Sorted Array II33.0%Medium0.026111144003685752https://leetcode.com/problems/search-in-rotated-sorted-array-ii
26746Permutations63.5%Medium0.026064861710547768https://leetcode.com/problems/permutations
268403Frog Jump39.7%Hard0.0259249775263148https://leetcode.com/problems/frog-jump
269387First Unique Character in a String53.4%Easy0.02587600384690711https://leetcode.com/problems/first-unique-character-in-a-string
27090Subsets II47.1%Medium0.025497131933483772https://leetcode.com/problems/subsets-ii
271218The Skyline Problem34.6%Hard0.025479085300984906https://leetcode.com/problems/the-skyline-problem
272148Sort List42.3%Medium0.025036078161324866https://leetcode.com/problems/sort-list
273189Rotate Array34.7%Easy0.024924029676386045https://leetcode.com/problems/rotate-array
274338Counting Bits69.5%Medium0.024325523767440974https://leetcode.com/problems/counting-bits
2754Median of Two Sorted Arrays29.6%Hard0.024130115852798662https://leetcode.com/problems/median-of-two-sorted-arrays
276662Maximum Width of Binary Tree41.0%Medium0.024116924478312346https://leetcode.com/problems/maximum-width-of-binary-tree
27726Remove Duplicates from Sorted Array45.1%Easy0.02364518575043321https://leetcode.com/problems/remove-duplicates-from-sorted-array
278430Flatten a Multilevel Doubly Linked List55.1%Medium0.023579819235111637https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
279414Third Maximum Number30.5%Easy0.023155137938555212https://leetcode.com/problems/third-maximum-number
280449Serialize and Deserialize BST52.0%Medium0.02246023667974994https://leetcode.com/problems/serialize-and-deserialize-bst
281285Inorder Successor in BST40.4%Medium0.02233482010057984https://leetcode.com/problems/inorder-successor-in-bst
2821019Next Greater Node In Linked List57.4%Medium0.02159911180346178https://leetcode.com/problems/next-greater-node-in-linked-list
283300Longest Increasing Subsequence42.6%Medium0.020893943681912164https://leetcode.com/problems/longest-increasing-subsequence
284206Reverse Linked List62.5%Easy0.02086427467076072https://leetcode.com/problems/reverse-linked-list
2851137N-th Tribonacci Number55.9%Easy0.02072613051711693https://leetcode.com/problems/n-th-tribonacci-number
28648Rotate Image56.7%Medium0.020228249775471566https://leetcode.com/problems/rotate-image
28775Sort Colors47.3%Medium0.019822254574171295https://leetcode.com/problems/sort-colors
288525Contiguous Array42.8%Medium0.01975372873623256https://leetcode.com/problems/contiguous-array
289787Cheapest Flights Within K Stops39.3%Medium0.018824085245635554https://leetcode.com/problems/cheapest-flights-within-k-stops
2901008Construct Binary Search Tree from Preorder Traversal78.4%Medium0.01844220088035248https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal
291235Lowest Common Ancestor of a Binary Search Tree49.9%Easy0.018394142155974434https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
292346Moving Average from Data Stream70.9%Easy0.0176683041333139https://leetcode.com/problems/moving-average-from-data-stream
293637Average of Levels in Binary Tree63.1%Easy0.01764492183745197https://leetcode.com/problems/average-of-levels-in-binary-tree
294706Design HashMap61.3%Easy0.01752893260576219https://leetcode.com/problems/design-hashmap
2951266Minimum Time Visiting All Points79.6%Easy0.017354014693151613https://leetcode.com/problems/minimum-time-visiting-all-points
29695Unique Binary Search Trees II40.6%Medium0.016856699181010838https://leetcode.com/problems/unique-binary-search-trees-ii
297178Rank Scores45.8%Medium0.016785958549561074https://leetcode.com/problems/rank-scores
298509Fibonacci Number67.2%Easy0.01593518138579736https://leetcode.com/problems/fibonacci-number
299384Shuffle an Array52.8%Medium0.015250009609723824https://leetcode.com/problems/shuffle-an-array
300203Remove Linked List Elements38.6%Easy0.014519311324453305https://leetcode.com/problems/remove-linked-list-elements
301653Two Sum IV - Input is a BST55.5%Easy0.014224990931347289https://leetcode.com/problems/two-sum-iv-input-is-a-bst
302150Evaluate Reverse Polish Notation36.3%Medium0.01413451093490476https://leetcode.com/problems/evaluate-reverse-polish-notation
30321Merge Two Sorted Lists53.5%Easy0.014012111332134735https://leetcode.com/problems/merge-two-sorted-lists
304179Largest Number28.8%Medium0.013865040137171665https://leetcode.com/problems/largest-number
30513Roman to Integer55.7%Easy0.013645103403569418https://leetcode.com/problems/roman-to-integer
306496Next Greater Element I63.8%Easy0.013201511858535894https://leetcode.com/problems/next-greater-element-i
307852Peak Index in a Mountain Array71.6%Easy0.012618463959211509https://leetcode.com/problems/peak-index-in-a-mountain-array
308287Find the Duplicate Number55.5%Medium0.012335682739188652https://leetcode.com/problems/find-the-duplicate-number
309172Factorial Trailing Zeroes37.8%Easy0.012326812480658571https://leetcode.com/problems/factorial-trailing-zeroes
310437Path Sum III47.2%Medium0.012128711446614806https://leetcode.com/problems/path-sum-iii
3117Reverse Integer25.8%Easy0.011576347096986317https://leetcode.com/problems/reverse-integer
312205Isomorphic Strings39.8%Easy0.011544139746865315https://leetcode.com/problems/isomorphic-strings
313171Excel Sheet Column Number55.9%Easy0.011195191092491645https://leetcode.com/problems/excel-sheet-column-number
314212Word Search II34.9%Hard0.009845021678804893https://leetcode.com/problems/word-search-ii
315151Reverse Words in a String21.9%Medium0.009570916441992467https://leetcode.com/problems/reverse-words-in-a-string
31670Climbing Stairs47.8%Easy0.009390798483527519https://leetcode.com/problems/climbing-stairs
31732Longest Valid Parentheses28.4%Hard0.009111680351255843https://leetcode.com/problems/longest-valid-parentheses
318208Implement Trie (Prefix Tree)49.4%Medium0.009105457856626612https://leetcode.com/problems/implement-trie-prefix-tree
319392Is Subsequence49.2%Easy0.009088906012344746https://leetcode.com/problems/is-subsequence
320128Longest Consecutive Sequence45.1%Hard0.009051883485315484https://leetcode.com/problems/longest-consecutive-sequence
32128Implement strStr()34.5%Easy0.008850485542574548https://leetcode.com/problems/implement-strstr
322209Minimum Size Subarray Sum38.2%Medium0.00841401682484616https://leetcode.com/problems/minimum-size-subarray-sum
3236ZigZag Conversion36.3%Medium0.0077116248757144665https://leetcode.com/problems/zigzag-conversion
324101Symmetric Tree46.8%Easy0.007646596306528098https://leetcode.com/problems/symmetric-tree
325145Binary Tree Postorder Traversal55.0%Hard0.00751459482064135https://leetcode.com/problems/binary-tree-postorder-traversal
32666Plus One43.0%Easy0.007324847595025828https://leetcode.com/problems/plus-one
3271528Shuffle String86.1%Easy0.006295047716793515https://leetcode.com/problems/shuffle-string
32824Swap Nodes in Pairs50.4%Medium0.0062218275061505365https://leetcode.com/problems/swap-nodes-in-pairs
32964Minimum Path Sum54.5%Medium0.006127470152097104https://leetcode.com/problems/minimum-path-sum
330105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.005628268691614718https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
331152Maximum Product Subarray31.7%Medium0.005590510716885066https://leetcode.com/problems/maximum-product-subarray
332108Convert Sorted Array to Binary Search Tree57.9%Easy0.005554027051374908https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
333268Missing Number51.7%Easy0.0048804391649084865https://leetcode.com/problems/missing-number
334154Find Minimum in Rotated Sorted Array II41.6%Hard0.004780123824719199https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii
335155Min Stack44.5%Easy0.00474891074128171https://leetcode.com/problems/min-stack
336234Palindrome Linked List39.3%Easy0.004533613114828982https://leetcode.com/problems/palindrome-linked-list
33717Letter Combinations of a Phone Number46.8%Medium0.0044018999217624675https://leetcode.com/problems/letter-combinations-of-a-phone-number
338210Course Schedule II40.7%Medium0.0042893974831731225https://leetcode.com/problems/course-schedule-ii
339103Binary Tree Zigzag Level Order Traversal48.3%Medium0.003839922800048048https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
34079Word Search35.6%Medium0.003741741363018696https://leetcode.com/problems/word-search
341141Linked List Cycle41.1%Easy0.0034937584669245472https://leetcode.com/problems/linked-list-cycle
34294Binary Tree Inorder Traversal63.3%Medium0.0033551449021403577https://leetcode.com/problems/binary-tree-inorder-traversal
343260Single Number III64.3%Medium0.0020288097849578786https://leetcode.com/problems/single-number-iii