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

38 KiB

1IDTitleAcceptanceDifficultyFrequencyLeetcode Question Link
21396Design Underground System64.7%Medium2.1135252465771397https://leetcode.com/problems/design-underground-system
3430Flatten a Multilevel Doubly Linked List55.1%Medium2.069920145220796https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list
4394Decode String50.0%Medium1.922952973608821https://leetcode.com/problems/decode-string
51169Invalid Transactions31.2%Medium1.775985801996846https://leetcode.com/problems/invalid-transactions
6146LRU Cache33.2%Medium1.7600666299446097https://leetcode.com/problems/lru-cache
7723Candy Crush69.2%Medium1.6530191678816324https://leetcode.com/problems/candy-crush
8200Number of Islands46.8%Medium1.615390367064938https://leetcode.com/problems/number-of-islands
9138Copy List with Random Pointer36.4%Medium1.6042707455750564https://leetcode.com/problems/copy-list-with-random-pointer
101274Number of Ships in a Rectangle66.3%Hard1.4573035739630815https://leetcode.com/problems/number-of-ships-in-a-rectangle
11253Meeting Rooms II45.7%Medium1.3103364023511066https://leetcode.com/problems/meeting-rooms-ii
121029Two City Scheduling56.1%Easy1.1960323376867015https://leetcode.com/problems/two-city-scheduling
131209Remove All Adjacent Duplicates in String II56.9%Medium1.1910135181291903https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii
14582Kill Process60.8%Medium1.1380445719557106https://leetcode.com/problems/kill-process
15451Sort Characters By Frequency63.0%Medium0.9935802696598246https://leetcode.com/problems/sort-characters-by-frequency
16380Insert Delete GetRandom O(1)47.5%Medium0.9628799998106988https://leetcode.com/problems/insert-delete-getrandom-o1
17117Populating Next Right Pointers in Each Node II39.1%Medium0.9038177676556401https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii
18445Add Two Numbers II54.5%Medium0.8983751201781012https://leetcode.com/problems/add-two-numbers-ii
1942Trapping Rain Water48.9%Hard0.8947784585060016https://leetcode.com/problems/trapping-rain-water
2098Validate Binary Search Tree27.8%Medium0.868197514095562https://leetcode.com/problems/validate-binary-search-tree
212Add Two Numbers33.9%Medium0.8456334552268243https://leetcode.com/problems/add-two-numbers
22387First Unique Character in a String53.4%Easy0.8077227245408917https://leetcode.com/problems/first-unique-character-in-a-string
23155Min Stack44.5%Easy0.7784701890607135https://leetcode.com/problems/min-stack
24611Valid Triangle Number48.4%Medium0.6315030174487386https://leetcode.com/problems/valid-triangle-number
251Two Sum45.6%Easy0.5958586063072399https://leetcode.com/problems/two-sum
26116Populating Next Right Pointers in Each Node45.2%Medium0.5943515521873914https://leetcode.com/problems/populating-next-right-pointers-in-each-node
2756Merge Intervals39.3%Medium0.5781542132082721https://leetcode.com/problems/merge-intervals
28242Valid Anagram56.9%Easy0.5645542892855558https://leetcode.com/problems/valid-anagram
2933Search in Rotated Sorted Array34.5%Medium0.5189131805357498https://leetcode.com/problems/search-in-rotated-sorted-array
30987Vertical Order Traversal of a Binary Tree36.6%Medium0.5046220573152461https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree
31460LFU Cache34.2%Hard0.49273850527484675https://leetcode.com/problems/lfu-cache
32390Elimination Game44.5%Medium0.487438691067837https://leetcode.com/problems/elimination-game
3320Valid Parentheses39.0%Easy0.4867693607438125https://leetcode.com/problems/valid-parentheses
343Longest Substring Without Repeating Characters30.4%Medium0.48411466774638867https://leetcode.com/problems/longest-substring-without-repeating-characters
35139Word Break40.1%Medium0.4760457233294034https://leetcode.com/problems/word-break
36399Evaluate Division51.6%Medium0.46497633645538805https://leetcode.com/problems/evaluate-division
37314Binary Tree Vertical Order Traversal45.3%Medium0.4380937008921841https://leetcode.com/problems/binary-tree-vertical-order-traversal
381472Design Browser History64.6%Medium0.41985384556026395https://leetcode.com/problems/design-browser-history
39488Zuma Game39.9%Hard0.3999856423435388https://leetcode.com/problems/zuma-game
40269Alien Dictionary33.3%Hard0.379287301768956https://leetcode.com/problems/alien-dictionary
41114Flatten Binary Tree to Linked List49.3%Medium0.3666595336863693https://leetcode.com/problems/flatten-binary-tree-to-linked-list
42692Top K Frequent Words51.8%Medium0.35372832097636575https://leetcode.com/problems/top-k-frequent-words
4312Integer to Roman55.1%Medium0.35057238514000694https://leetcode.com/problems/integer-to-roman
44554Brick Wall50.0%Medium0.34539039007242767https://leetcode.com/problems/brick-wall
45301Remove Invalid Parentheses43.3%Hard0.3106405420076888https://leetcode.com/problems/remove-invalid-parentheses
46797All Paths From Source to Target77.9%Medium0.3046654057632776https://leetcode.com/problems/all-paths-from-source-to-target
47283Move Zeroes57.8%Easy0.27654976037504925https://leetcode.com/problems/move-zeroes
48105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.2757228816736699https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal
49422Valid Word Square37.7%Easy0.2578291093020998https://leetcode.com/problems/valid-word-square
5023Merge k Sorted Lists40.2%Hard0.2572061238898046https://leetcode.com/problems/merge-k-sorted-lists
51662Maximum Width of Binary Tree41.0%Medium0.23997959968856164https://leetcode.com/problems/maximum-width-of-binary-tree
52153Sum26.8%Medium0.23615702163919466https://leetcode.com/problems/3sum
5379Word Search35.6%Medium0.23137350418457728https://leetcode.com/problems/word-search
5410Regular Expression Matching26.8%Hard0.23083119919105394https://leetcode.com/problems/regular-expression-matching
5521Merge Two Sorted Lists53.5%Easy0.22227395167049366https://leetcode.com/problems/merge-two-sorted-lists
561223Dice Roll Simulation45.6%Medium0.2166710368085923https://leetcode.com/problems/dice-roll-simulation
575Longest Palindromic Substring29.5%Medium0.20554421123878217https://leetcode.com/problems/longest-palindromic-substring
58463Island Perimeter65.7%Easy0.20102047685235075https://leetcode.com/problems/island-perimeter
59214Shortest Palindrome29.8%Hard0.19671029424605424https://leetcode.com/problems/shortest-palindrome
60173Binary Search Tree Iterator56.6%Medium0.1932027494363769https://leetcode.com/problems/binary-search-tree-iterator
611047Remove All Adjacent Duplicates In String68.6%Easy0.19088376654809422https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string
62658Find K Closest Elements40.9%Medium0.18663941293482042https://leetcode.com/problems/find-k-closest-elements
63199Binary Tree Right Side View54.1%Medium0.18661020557359304https://leetcode.com/problems/binary-tree-right-side-view
64140Word Break II32.6%Hard0.17885934906548379https://leetcode.com/problems/word-break-ii
651244Design A Leaderboard60.7%Medium0.17763094743610072https://leetcode.com/problems/design-a-leaderboard
66328Odd Even Linked List55.7%Medium0.17548836529558792https://leetcode.com/problems/odd-even-linked-list
67384Shuffle an Array52.8%Medium0.17247686769050424https://leetcode.com/problems/shuffle-an-array
68971Flip Binary Tree To Match Preorder Traversal45.7%Medium0.1670540846631662https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal
6953Maximum Subarray46.5%Easy0.16188416901715558https://leetcode.com/problems/maximum-subarray
70443String Compression41.3%Easy0.15834355808729428https://leetcode.com/problems/string-compression
71322Coin Change35.5%Medium0.1575195768933631https://leetcode.com/problems/coin-change
72332Reconstruct Itinerary36.7%Medium0.15671959735502852https://leetcode.com/problems/reconstruct-itinerary
7372Edit Distance44.8%Hard0.14935692774322157https://leetcode.com/problems/edit-distance
7441First Missing Positive32.0%Hard0.14910731703527175https://leetcode.com/problems/first-missing-positive
75273Integer to English Words27.1%Hard0.13879705494759292https://leetcode.com/problems/integer-to-english-words
76128Longest Consecutive Sequence45.1%Hard0.13583040733187832https://leetcode.com/problems/longest-consecutive-sequence
7749Group Anagrams56.9%Medium0.1285763065181971https://leetcode.com/problems/group-anagrams
78118Pascal's Triangle52.5%Easy0.12852395589356347https://leetcode.com/problems/pascals-triangle
79121Best Time to Buy and Sell Stock50.5%Easy0.1275803229646801https://leetcode.com/problems/best-time-to-buy-and-sell-stock
80694Number of Distinct Islands56.0%Medium0.12516314295400602https://leetcode.com/problems/number-of-distinct-islands
8192Reverse Linked List II38.8%Medium0.12080664535613118https://leetcode.com/problems/reverse-linked-list-ii
8288Merge Sorted Array39.4%Easy0.11989115268466984https://leetcode.com/problems/merge-sorted-array
83239Sliding Window Maximum43.0%Hard0.11945579213218108https://leetcode.com/problems/sliding-window-maximum
84739Daily Temperatures63.3%Medium0.11646575243222568https://leetcode.com/problems/daily-temperatures
85127Word Ladder29.6%Medium0.11461293205885352https://leetcode.com/problems/word-ladder
86229Majority Element II35.6%Medium0.11355198202632807https://leetcode.com/problems/majority-element-ii
87120Triangle44.2%Medium0.11325730177515365https://leetcode.com/problems/triangle
881188Design Bounded Blocking Queue70.5%Medium0.11030454201470608https://leetcode.com/problems/design-bounded-blocking-queue
89695Max Area of Island62.7%Medium0.10876995385464024https://leetcode.com/problems/max-area-of-island
90924Minimize Malware Spread42.0%Hard0.10821358464023274https://leetcode.com/problems/minimize-malware-spread
91889Construct Binary Tree from Preorder and Postorder Traversal66.2%Medium0.10711776476069794https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal
92311Sparse Matrix Multiplication61.9%Medium0.10648348040245009https://leetcode.com/problems/sparse-matrix-multiplication
93759Employee Free Time66.3%Hard0.10623186692973738https://leetcode.com/problems/employee-free-time
9478Subsets62.0%Medium0.10594222506883655https://leetcode.com/problems/subsets
95346Moving Average from Data Stream70.9%Easy0.10562785959739482https://leetcode.com/problems/moving-average-from-data-stream
96102Binary Tree Level Order Traversal54.6%Medium0.10461287933893608https://leetcode.com/problems/binary-tree-level-order-traversal
971060Missing Element in Sorted Array54.5%Medium0.1042610103244094https://leetcode.com/problems/missing-element-in-sorted-array
9869Sqrt(x)33.9%Easy0.09855995053811686https://leetcode.com/problems/sqrtx
9990Subsets II47.1%Medium0.09830555874512009https://leetcode.com/problems/subsets-ii
10084Largest Rectangle in Histogram35.2%Hard0.09762873497741681https://leetcode.com/problems/largest-rectangle-in-histogram
101529Minesweeper59.1%Medium0.09695424100489167https://leetcode.com/problems/minesweeper
102716Max Stack42.6%Easy0.09362342046209744https://leetcode.com/problems/max-stack
103836Rectangle Overlap48.6%Easy0.09358079943969791https://leetcode.com/problems/rectangle-overlap
1044Median of Two Sorted Arrays29.6%Hard0.09321199094445486https://leetcode.com/problems/median-of-two-sorted-arrays
105727Minimum Window Subsequence41.8%Hard0.09294611250944432https://leetcode.com/problems/minimum-window-subsequence
106510Inorder Successor in BST II58.0%Medium0.09244453252200126https://leetcode.com/problems/inorder-successor-in-bst-ii
107535Encode and Decode TinyURL79.9%Medium0.09208956510428265https://leetcode.com/problems/encode-and-decode-tinyurl
108236Lowest Common Ancestor of a Binary Tree45.7%Medium0.0913825929084002https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree
109652Find Duplicate Subtrees50.2%Medium0.08907963005368878https://leetcode.com/problems/find-duplicate-subtrees
1107Reverse Integer25.8%Easy0.08735674450872549https://leetcode.com/problems/reverse-integer
111109Convert Sorted List to Binary Search Tree47.7%Medium0.08701137698962977https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
112221Maximal Square37.7%Medium0.08564432277809672https://leetcode.com/problems/maximal-square
113991Broken Calculator45.6%Medium0.08515780834030685https://leetcode.com/problems/broken-calculator
11422Generate Parentheses62.7%Medium0.08480542001364956https://leetcode.com/problems/generate-parentheses
115857Minimum Cost to Hire K Workers49.6%Hard0.08320805808821628https://leetcode.com/problems/minimum-cost-to-hire-k-workers
11646Permutations63.5%Medium0.08209632149618187https://leetcode.com/problems/permutations
117813Largest Sum of Averages49.9%Medium0.08201315166083516https://leetcode.com/problems/largest-sum-of-averages
118737Sentence Similarity II45.8%Medium0.08167803101426718https://leetcode.com/problems/sentence-similarity-ii
119496Next Greater Element I63.8%Easy0.07978711661783192https://leetcode.com/problems/next-greater-element-i
120250Count Univalue Subtrees52.0%Medium0.07975881838845024https://leetcode.com/problems/count-univalue-subtrees
121295Find Median from Data Stream44.3%Hard0.07821574644502474https://leetcode.com/problems/find-median-from-data-stream
12254Spiral Matrix34.1%Medium0.07792846120043545https://leetcode.com/problems/spiral-matrix
1231297Maximum Number of Occurrences of a Substring47.3%Medium0.07770898432731625https://leetcode.com/problems/maximum-number-of-occurrences-of-a-substring
1241347Minimum Number of Steps to Make Two Strings Anagram74.7%Medium0.07742472477971579https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram
125518Coin Change 250.2%Medium0.07583984694698977https://leetcode.com/problems/coin-change-2
1268String to Integer (atoi)15.4%Medium0.07412832776627384https://leetcode.com/problems/string-to-integer-atoi
12776Minimum Window Substring34.6%Hard0.07378420845373558https://leetcode.com/problems/minimum-window-substring
128503Next Greater Element II56.5%Medium0.07339377143296942https://leetcode.com/problems/next-greater-element-ii
1299Palindrome Number48.4%Easy0.07330899176233006https://leetcode.com/problems/palindrome-number
130209Minimum Size Subarray Sum38.2%Medium0.07329286546547308https://leetcode.com/problems/minimum-size-subarray-sum
131271Encode and Decode Strings31.5%Medium0.07197349962508924https://leetcode.com/problems/encode-and-decode-strings
132470Implement Rand10() Using Rand7()46.3%Medium0.07020425867324853https://leetcode.com/problems/implement-rand10-using-rand7
133432All O`one Data Structure32.4%Hard0.06887402901251127https://leetcode.com/problems/all-oone-data-structure
134504Base 746.2%Easy0.06759329113252818https://leetcode.com/problems/base-7
135560Subarray Sum Equals K43.9%Medium0.06636621624059272https://leetcode.com/problems/subarray-sum-equals-k
1361145Binary Tree Coloring Game51.2%Medium0.06592172080482424https://leetcode.com/problems/binary-tree-coloring-game
1371105Filling Bookcase Shelves58.1%Medium0.06464285626208545https://leetcode.com/problems/filling-bookcase-shelves
138628Maximum Product of Three Numbers47.1%Easy0.06453852113757116https://leetcode.com/problems/maximum-product-of-three-numbers
139565Array Nesting55.5%Medium0.06351340572232586https://leetcode.com/problems/array-nesting
140397Integer Replacement32.9%Medium0.06331227941432688https://leetcode.com/problems/integer-replacement
141413Arithmetic Slices57.9%Medium0.06286986221654821https://leetcode.com/problems/arithmetic-slices
142353Design Snake Game34.2%Medium0.06053284922884233https://leetcode.com/problems/design-snake-game
143153Find Minimum in Rotated Sorted Array45.1%Medium0.05846413569782837https://leetcode.com/problems/find-minimum-in-rotated-sorted-array
144160Intersection of Two Linked Lists40.6%Easy0.05844735064567987https://leetcode.com/problems/intersection-of-two-linked-lists
145417Pacific Atlantic Water Flow41.1%Medium0.057523844138186606https://leetcode.com/problems/pacific-atlantic-water-flow
146362Design Hit Counter63.7%Medium0.05622967649867821https://leetcode.com/problems/design-hit-counter
1471249Minimum Remove to Make Valid Parentheses62.5%Medium0.05613145611169511https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses
148230Kth Smallest Element in a BST60.2%Medium0.055629976214953934https://leetcode.com/problems/kth-smallest-element-in-a-bst
14930Substring with Concatenation of All Words25.4%Hard0.05509349054082484https://leetcode.com/problems/substring-with-concatenation-of-all-words
150752Open the Lock51.8%Medium0.05449289949671372https://leetcode.com/problems/open-the-lock
1511054Distant Barcodes43.2%Medium0.054435206555017046https://leetcode.com/problems/distant-barcodes
15264Minimum Path Sum54.5%Medium0.05384075367843773https://leetcode.com/problems/minimum-path-sum
15344Wildcard Matching24.7%Hard0.053722215229247965https://leetcode.com/problems/wildcard-matching
154426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium0.05368014946362379https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list
15563Unique Paths II34.6%Medium0.05324937607387791https://leetcode.com/problems/unique-paths-ii
15631Next Permutation32.6%Medium0.05265913800819017https://leetcode.com/problems/next-permutation
15785Maximal Rectangle37.7%Hard0.05229949940284891https://leetcode.com/problems/maximal-rectangle
158286Walls and Gates54.5%Medium0.05155780966485001https://leetcode.com/problems/walls-and-gates
159708Insert into a Sorted Circular Linked List31.6%Medium0.05142521180743711https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list
1601312Minimum Insertion Steps to Make a String Palindrome58.1%Hard0.050261834780888255https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome
161285Inorder Successor in BST40.4%Medium0.049569618859417214https://leetcode.com/problems/inorder-successor-in-bst
162203Remove Linked List Elements38.6%Easy0.04798700179553833https://leetcode.com/problems/remove-linked-list-elements
163125Valid Palindrome36.7%Easy0.047702249651065814https://leetcode.com/problems/valid-palindrome
164336Palindrome Pairs33.7%Hard0.04690191367275952https://leetcode.com/problems/palindrome-pairs
165556Next Greater Element III31.7%Medium0.04679216150675895https://leetcode.com/problems/next-greater-element-iii
166543Diameter of Binary Tree48.4%Easy0.04676784186766119https://leetcode.com/problems/diameter-of-binary-tree
167978Longest Turbulent Subarray46.6%Medium0.046737477851689815https://leetcode.com/problems/longest-turbulent-subarray
168206Reverse Linked List62.5%Easy0.046346967254127305https://leetcode.com/problems/reverse-linked-list
16997Interleaving String31.5%Hard0.04548535439411653https://leetcode.com/problems/interleaving-string
170784Letter Case Permutation64.6%Medium0.045030118720867006https://leetcode.com/problems/letter-case-permutation
171136Single Number65.5%Easy0.04495454584592534https://leetcode.com/problems/single-number
172341Flatten Nested List Iterator52.9%Medium0.04440788848944038https://leetcode.com/problems/flatten-nested-list-iterator
173642Design Search Autocomplete System44.7%Hard0.04334372921647208https://leetcode.com/problems/design-search-autocomplete-system
174895Maximum Frequency Stack60.6%Hard0.04329680575332419https://leetcode.com/problems/maximum-frequency-stack
175435Non-overlapping Intervals42.9%Medium0.04325518123147988https://leetcode.com/problems/non-overlapping-intervals
176821Shortest Distance to a Character66.9%Easy0.043110123653728516https://leetcode.com/problems/shortest-distance-to-a-character
1771155Number of Dice Rolls With Target Sum49.0%Medium0.04204262329555109https://leetcode.com/problems/number-of-dice-rolls-with-target-sum
178721Accounts Merge48.8%Medium0.04200337458562934https://leetcode.com/problems/accounts-merge
179787Cheapest Flights Within K Stops39.3%Medium0.04186657939278993https://leetcode.com/problems/cheapest-flights-within-k-stops
180532K-diff Pairs in an Array31.6%Easy0.041672696400568025https://leetcode.com/problems/k-diff-pairs-in-an-array
181572Subtree of Another Tree44.1%Easy0.041179261223646485https://leetcode.com/problems/subtree-of-another-tree
182101Symmetric Tree46.8%Easy0.04094139037736073https://leetcode.com/problems/symmetric-tree
183292Nim Game54.9%Easy0.03996979643236185https://leetcode.com/problems/nim-game
184162Find Peak Element43.3%Medium0.039043060072524054https://leetcode.com/problems/find-peak-element
185993Cousins in Binary Tree52.0%Easy0.03876454345024432https://leetcode.com/problems/cousins-in-binary-tree
18624Swap Nodes in Pairs50.4%Medium0.03826607060639552https://leetcode.com/problems/swap-nodes-in-pairs
18747Permutations II46.4%Medium0.038145268259690404https://leetcode.com/problems/permutations-ii
188270Closest Binary Search Tree Value48.5%Easy0.03812405784173832https://leetcode.com/problems/closest-binary-search-tree-value
189402Remove K Digits28.4%Medium0.03755134565213245https://leetcode.com/problems/remove-k-digits
190646Maximum Length of Pair Chain51.9%Medium0.036870535808327706https://leetcode.com/problems/maximum-length-of-pair-chain
19191Decode Ways24.7%Medium0.03673102791879485https://leetcode.com/problems/decode-ways
192673Number of Longest Increasing Subsequence35.7%Medium0.036467121912812143https://leetcode.com/problems/number-of-longest-increasing-subsequence
19371Simplify Path32.6%Medium0.03622126343431837https://leetcode.com/problems/simplify-path
1946502 Keys Keyboard49.2%Medium0.035910501305770864https://leetcode.com/problems/2-keys-keyboard
195226Invert Binary Tree65.0%Easy0.03393837323839263https://leetcode.com/problems/invert-binary-tree
196274H-Index36.1%Medium0.03364488914272426https://leetcode.com/problems/h-index
197567Permutation in String44.4%Medium0.033324075731591886https://leetcode.com/problems/permutation-in-string
198516Longest Palindromic Subsequence53.2%Medium0.0332870969222259https://leetcode.com/problems/longest-palindromic-subsequence
199315Count of Smaller Numbers After Self41.5%Hard0.03200842244384717https://leetcode.com/problems/count-of-smaller-numbers-after-self
2001114Print in Order65.7%Easy0.0317486983145803https://leetcode.com/problems/print-in-order
201228Summary Ranges39.5%Medium0.03157326191609021https://leetcode.com/problems/summary-ranges
2021123Lowest Common Ancestor of Deepest Leaves66.8%Medium0.03147388037973136https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves
203222Count Complete Tree Nodes46.8%Medium0.031263400619043376https://leetcode.com/problems/count-complete-tree-nodes
204557Reverse Words in a String III69.8%Easy0.03063547953861342https://leetcode.com/problems/reverse-words-in-a-string-iii
2056ZigZag Conversion36.3%Medium0.03049597862981453https://leetcode.com/problems/zigzag-conversion
206415Add Strings47.5%Easy0.030009753867991852https://leetcode.com/problems/add-strings
207329Longest Increasing Path in a Matrix43.4%Hard0.029902560173869868https://leetcode.com/problems/longest-increasing-path-in-a-matrix
208163Sum Closest46.0%Medium0.02976964023166436https://leetcode.com/problems/3sum-closest
209347Top K Frequent Elements61.2%Medium0.029662726238554857https://leetcode.com/problems/top-k-frequent-elements
210303Range Sum Query - Immutable44.7%Easy0.029549096691749193https://leetcode.com/problems/range-sum-query-immutable
211846Hand of Straights54.2%Medium0.029284669545175425https://leetcode.com/problems/hand-of-straights
212344Reverse String68.5%Easy0.029048355159926334https://leetcode.com/problems/reverse-string
21382Remove Duplicates from Sorted List II36.8%Medium0.028950236662501776https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
214147Insertion Sort List41.1%Medium0.028675799976666333https://leetcode.com/problems/insertion-sort-list
215852Peak Index in a Mountain Array71.6%Easy0.02817087696669632https://leetcode.com/problems/peak-index-in-a-mountain-array
216234Palindrome Linked List39.3%Easy0.028003622014534227https://leetcode.com/problems/palindrome-linked-list
21719Remove Nth Node From End of List35.2%Medium0.027353171676046843https://leetcode.com/problems/remove-nth-node-from-end-of-list
218547Friend Circles58.6%Medium0.027307522052851193https://leetcode.com/problems/friend-circles
21911Container With Most Water50.8%Medium0.02727648457622222https://leetcode.com/problems/container-with-most-water
220437Path Sum III47.2%Medium0.02708561605844235https://leetcode.com/problems/path-sum-iii
22129Divide Two Integers16.4%Medium0.026820246545985277https://leetcode.com/problems/divide-two-integers
222205Isomorphic Strings39.8%Easy0.025789394882914186https://leetcode.com/problems/isomorphic-strings
223123Best Time to Buy and Sell Stock III37.5%Hard0.02516207671950806https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii
224733Flood Fill55.3%Easy0.02506396866321625https://leetcode.com/problems/flood-fill
225149Max Points on a Line16.9%Hard0.02484599858653081https://leetcode.com/problems/max-points-on-a-line
226202Happy Number50.4%Easy0.02483442856330386https://leetcode.com/problems/happy-number
227513Find Bottom Left Tree Value61.5%Medium0.02473842915612247https://leetcode.com/problems/find-bottom-left-tree-value
228310Minimum Height Trees32.3%Medium0.02446605215440636https://leetcode.com/problems/minimum-height-trees
229338Counting Bits69.5%Medium0.024325523767440974https://leetcode.com/problems/counting-bits
230395Longest Substring with At Least K Repeating Characters41.4%Medium0.024228925974379843https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters
231348Design Tic-Tac-Toe54.3%Medium0.024214258120594613https://leetcode.com/problems/design-tic-tac-toe
232215Kth Largest Element in an Array55.4%Medium0.02414409892936099https://leetcode.com/problems/kth-largest-element-in-an-array
233252Meeting Rooms54.6%Easy0.02332467256640893https://leetcode.com/problems/meeting-rooms
23499Recover Binary Search Tree39.7%Hard0.02310905839365837https://leetcode.com/problems/recover-binary-search-tree
235678Valid Parenthesis String31.0%Medium0.02271534352147261https://leetcode.com/problems/valid-parenthesis-string
236216Combination Sum III56.6%Medium0.02261260849011709https://leetcode.com/problems/combination-sum-iii
237108Convert Sorted Array to Binary Search Tree57.9%Easy0.022033389270751453https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
238212Word Search II34.9%Hard0.02201654487096149https://leetcode.com/problems/word-search-ii
239287Find the Duplicate Number55.5%Medium0.021825992579766168https://leetcode.com/problems/find-the-duplicate-number
240112Path Sum41.2%Easy0.021701651897460775https://leetcode.com/problems/path-sum
24113Roman to Integer55.7%Easy0.021239435742925746https://leetcode.com/problems/roman-to-integer
242359Logger Rate Limiter70.8%Easy0.021053409197832343https://leetcode.com/problems/logger-rate-limiter
243224Basic Calculator36.8%Hard0.020965128465044926https://leetcode.com/problems/basic-calculator
24494Binary Tree Inorder Traversal63.3%Medium0.020787312070811408https://leetcode.com/problems/binary-tree-inorder-traversal
245122Best Time to Buy and Sell Stock II57.0%Easy0.020783855622427426https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii
246103Binary Tree Zigzag Level Order Traversal48.3%Medium0.020730076462920684https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
24796Unique Binary Search Trees52.9%Medium0.02067613283842731https://leetcode.com/problems/unique-binary-search-trees
248424Longest Repeating Character Replacement47.0%Medium0.020461071871340063https://leetcode.com/problems/longest-repeating-character-replacement
249268Missing Number51.7%Easy0.019380451549662482https://leetcode.com/problems/missing-number
250540Single Element in a Sorted Array57.9%Medium0.0192128868599912https://leetcode.com/problems/single-element-in-a-sorted-array
251450Delete Node in a BST43.1%Medium0.018536211907915243https://leetcode.com/problems/delete-node-in-a-bst
25235Search Insert Position42.6%Easy0.018459222797986813https://leetcode.com/problems/search-insert-position
253235Lowest Common Ancestor of a Binary Search Tree49.9%Easy0.018394142155974434https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
25462Unique Paths54.1%Medium0.01835756003995383https://leetcode.com/problems/unique-paths
255438Find All Anagrams in a String43.3%Medium0.01819334596120571https://leetcode.com/problems/find-all-anagrams-in-a-string
256126Word Ladder II22.1%Hard0.017994187717865196https://leetcode.com/problems/word-ladder-ii
257406Queue Reconstruction by Height66.9%Medium0.01774669468133533https://leetcode.com/problems/queue-reconstruction-by-height
25838Count and Say44.6%Easy0.01753063983505879https://leetcode.com/problems/count-and-say
25917Letter Combinations of a Phone Number46.8%Medium0.017492519932499718https://leetcode.com/problems/letter-combinations-of-a-phone-number
260289Game of Life54.5%Medium0.0173239499317743https://leetcode.com/problems/game-of-life
261240Search a 2D Matrix II43.2%Medium0.0169815401480941https://leetcode.com/problems/search-a-2d-matrix-ii
262863All Nodes Distance K in Binary Tree55.4%Medium0.01695674371877865https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree
26334Find First and Last Position of Element in Sorted Array36.2%Medium0.01688338088311469https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array
264188Best Time to Buy and Sell Stock IV28.0%Hard0.01651565203072114https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv
26536Valid Sudoku48.7%Medium0.01625758350956095https://leetcode.com/problems/valid-sudoku
266340Longest Substring with At Most K Distinct Characters44.1%Hard0.016122880486563188https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters
267334Increasing Triplet Subsequence40.0%Medium0.016058153168974937https://leetcode.com/problems/increasing-triplet-subsequence
268110Balanced Binary Tree43.5%Easy0.015742847432510365https://leetcode.com/problems/balanced-binary-tree
26928Implement strStr()34.5%Easy0.01568044672076543https://leetcode.com/problems/implement-strstr
270595Big Countries77.3%Easy0.015594857957906386https://leetcode.com/problems/big-countries
2711002Find Common Characters67.6%Easy0.015273301861833809https://leetcode.com/problems/find-common-characters
2721025Divisor Game66.3%Easy0.015015297119995507https://leetcode.com/problems/divisor-game
273621Task Scheduler50.1%Medium0.014546980601820143https://leetcode.com/problems/task-scheduler
274912Sort an Array63.9%Medium0.01443026482902881https://leetcode.com/problems/sort-an-array
275404Sum of Left Leaves50.9%Easy0.013981353230340547https://leetcode.com/problems/sum-of-left-leaves
276131Palindrome Partitioning47.5%Medium0.013903595538577326https://leetcode.com/problems/palindrome-partitioning
277703Kth Largest Element in a Stream49.7%Easy0.013898764390814973https://leetcode.com/problems/kth-largest-element-in-a-stream
278724Find Pivot Index44.0%Easy0.013850636933899008https://leetcode.com/problems/find-pivot-index
279581Shortest Unsorted Continuous Subarray31.1%Easy0.013342426083839913https://leetcode.com/problems/shortest-unsorted-continuous-subarray
28014Longest Common Prefix35.4%Easy0.013215687512885701https://leetcode.com/problems/longest-common-prefix
28139Combination Sum56.1%Medium0.012815211692867591https://leetcode.com/problems/combination-sum
282219Contains Duplicate II37.7%Easy0.01276748910345265https://leetcode.com/problems/contains-duplicate-ii
283129Sum Root to Leaf Numbers49.1%Medium0.012739025777429757https://leetcode.com/problems/sum-root-to-leaf-numbers
28450Pow(x;n)30.3%Medium0.01254502984008178https://leetcode.com/problems/powx-n
285152Maximum Product Subarray31.7%Medium0.012534983069696118https://leetcode.com/problems/maximum-product-subarray
286124Binary Tree Maximum Path Sum34.3%Hard0.012403687139326226https://leetcode.com/problems/binary-tree-maximum-path-sum
287986Interval List Intersections67.3%Medium0.011969023795320735https://leetcode.com/problems/interval-list-intersections
28881Search in Rotated Sorted Array II33.0%Medium0.011689203815677656https://leetcode.com/problems/search-in-rotated-sorted-array-ii
289350Intersection of Two Arrays II51.4%Easy0.01168540951877908https://leetcode.com/problems/intersection-of-two-arrays-ii
290442Find All Duplicates in an Array67.8%Medium0.011675555865241341https://leetcode.com/problems/find-all-duplicates-in-an-array
291378Kth Smallest Element in a Sorted Matrix54.3%Medium0.011634802567699611https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix
29248Rotate Image56.7%Medium0.011428695823622754https://leetcode.com/problems/rotate-image
29355Jump Game34.6%Medium0.011265609194218986https://leetcode.com/problems/jump-game
294232Implement Queue using Stacks49.6%Easy0.011242389348933884https://leetcode.com/problems/implement-queue-using-stacks
295171Excel Sheet Column Number55.9%Easy0.011195191092491645https://leetcode.com/problems/excel-sheet-column-number
296207Course Schedule43.1%Medium0.01113459480911671https://leetcode.com/problems/course-schedule
297957Prison Cells After N Days40.7%Medium0.010986103354595014https://leetcode.com/problems/prison-cells-after-n-days
298559Maximum Depth of N-ary Tree68.7%Easy0.010974047031976715https://leetcode.com/problems/maximum-depth-of-n-ary-tree
299414Third Maximum Number30.5%Easy0.010357420400453607https://leetcode.com/problems/third-maximum-number
30061Rotate List30.0%Medium0.009925639799969955https://leetcode.com/problems/rotate-list
301184Sum33.7%Medium0.00984259914419414https://leetcode.com/problems/4sum
302746Min Cost Climbing Stairs50.3%Easy0.009818439209289494https://leetcode.com/problems/min-cost-climbing-stairs
30340Combination Sum II48.2%Medium0.009578617297069781https://leetcode.com/problems/combination-sum-ii
30470Climbing Stairs47.8%Easy0.009390798483527519https://leetcode.com/problems/climbing-stairs
30574Search a 2D Matrix36.5%Medium0.00934149716911291https://leetcode.com/problems/search-a-2d-matrix
30632Longest Valid Parentheses28.4%Hard0.009111680351255843https://leetcode.com/problems/longest-valid-parentheses
307208Implement Trie (Prefix Tree)49.4%Medium0.009105457856626612https://leetcode.com/problems/implement-trie-prefix-tree
308392Is Subsequence49.2%Easy0.009088906012344746https://leetcode.com/problems/is-subsequence
309189Rotate Array34.7%Easy0.00904437880665999https://leetcode.com/problems/rotate-array
310238Product of Array Except Self60.1%Medium0.008821856860216758https://leetcode.com/problems/product-of-array-except-self
311198House Robber42.0%Easy0.008434914115059812https://leetcode.com/problems/house-robber
312617Merge Two Binary Trees74.1%Easy0.008262802639833214https://leetcode.com/problems/merge-two-binary-trees
313176Second Highest Salary31.6%Easy0.007393749024938284https://leetcode.com/problems/second-highest-salary
314349Intersection of Two Arrays62.5%Easy0.00725034896230682https://leetcode.com/problems/intersection-of-two-arrays
315412Fizz Buzz62.3%Easy0.007165921026143679https://leetcode.com/problems/fizz-buzz
316204Count Primes31.5%Easy0.007072165261362441https://leetcode.com/problems/count-primes
317448Find All Numbers Disappeared in an Array55.9%Easy0.006863444924982415https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array
318104Maximum Depth of Binary Tree66.0%Easy0.006261761223976207https://leetcode.com/problems/maximum-depth-of-binary-tree
319151Reverse Words in a String21.9%Medium0.0061359296669270605https://leetcode.com/problems/reverse-words-in-a-string
320144Binary Tree Preorder Traversal55.7%Medium0.0060975798681185https://leetcode.com/problems/binary-tree-preorder-traversal
321167Two Sum II - Input array is sorted54.1%Easy0.005507380022589096https://leetcode.com/problems/two-sum-ii-input-array-is-sorted
322278First Bad Version35.7%Easy0.005391575265790431https://leetcode.com/problems/first-bad-version
323106Construct Binary Tree from Inorder and Postorder Traversal47.2%Medium0.005258250021550252https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
324237Delete Node in a Linked List63.8%Easy0.005144705881237697https://leetcode.com/problems/delete-node-in-a-linked-list
32575Sort Colors47.3%Medium0.004992521603120986https://leetcode.com/problems/sort-colors
326258Add Digits57.6%Easy0.004648528591812259https://leetcode.com/problems/add-digits
32726Remove Duplicates from Sorted Array45.1%Easy0.004385117141850828https://leetcode.com/problems/remove-duplicates-from-sorted-array
328210Course Schedule II40.7%Medium0.0042893974831731225https://leetcode.com/problems/course-schedule-ii
329977Squares of a Sorted Array72.1%Easy0.003891055492966611https://leetcode.com/problems/squares-of-a-sorted-array
330217Contains Duplicate56.0%Easy0.0037979536727587773https://leetcode.com/problems/contains-duplicate
33127Remove Element48.2%Easy0.0035524016043678225https://leetcode.com/problems/remove-element
33266Plus One43.0%Easy0.00326211347832938https://leetcode.com/problems/plus-one
333100Same Tree53.4%Easy0.003165227373565798https://leetcode.com/problems/same-tree
3341480Running Sum of 1d Array90.5%Easy0.0026196884456014947https://leetcode.com/problems/running-sum-of-1d-array