preloader

CDC BOS MEMBERS

committee news

Campus Training

PLACEMENT AND TRAINING CENTRE (ACADEMIC YEAR: 2022- 2023)

S No.Name of the Company
1Infosys(InfyTQ)
3TCS Codevita
4Concentrix Catalyst
5Darwinbox
6AMAZON_(Business Intel Engineer)
7AMAZON_(Data Engineer)
8AMAZON_(Quality Assurance Engineer)
9Amazon-SDE
10IBM
11CYBER SOPHY (Analysabl)
12Loginsoft Pvt Ltd
14Ecolab Digital Center
15Accenture
16Accenture-(Adv ASE)
17Gainsight Software Pvt Ltd
18Virtusa-(Catapult)
19Oracle Financial Software Services Ltd.
20TVS Sundram Fasteners Limited
21Virtusa - (NeuralHack)
22EY India
23Isadak
24TCS Ninja
25Yamaha Motor Electronics India Pvt Ltd.
26Acmegrade Pvt Ltd
27Inmovidu Technologies
28Polmon Instruments Private Limited.
29CtrlS Cloud4C
30LTI-(Level - 0)
31LTI-(Level - 1)
32LTI-(Level - 2)
33HCL Technologies Ltd.
34Cognizant GenC - Elevate
35Cognizant-GenC
36Cognizant-GenC Pro
37Legato Health Technologies
38Loyalty Methods India Pvt Ltd
39Rythmos
40Planful Software India Private Limited
41ADP, LLC
42Hexagon Capability Center lndia Pvt. Ltd.
43Tessolve
44Unschool
45Tech Mahindra Ltd
46Solugenix
47CGI
48Hexaware Technologies
49Go Digit
50Prolifics, Inc.
51Quest Global
52DBS Tech India
53Caparo Engineering India Limited
54Riktam
55RineX Technologies
56TCS Digital.
57Kamai Elevators
58Deloitte
59Hexaware Technologies - (PGET)
60Zemoso Technologies
61Minfy Technologies Private Limited
62Advance Auto Parts India.
63Genpact
64HSBC Technology India
65India Cements Pvt Limited.
66Salesforce Inc.
67Quess Corp Limited-(KATERRA).
68Planetspark
69Welspun Group
70Saras solutions india pvt ltd
71Cubic Transportation System Pvt. Ltd
72Home First Finance (HFFC)
73Econstruct Design & Build Pvt Ltd
74Collabera
75OSI Digital
76Commvault Systems (India) Private limited
77Zoho Corporation
78JBM Auto Ltd
79L&T Technology Services Limited (LTTS)
80Renault Nissan Automotive India Pvt Ltd
81NTT DATA
82BYJUS 
83Aparna Constructions And Estates Pvt. Ltd.
84Solon India Pvt Ltd
85Vertex Engineering Systems Pvt Ltd
86Dun & Bradstreet(D&B).
87Brane Services Private Limited
88Axelon
89Bajaj Allianz Staffing Solutions Limited
90CYIENT
91FACE PREP
92FACTSET
93Haldiram
94HDFC Life
95Home First Finance Ltd
96IKEA
97ITISH
98Kent RO
99Login Digital
100Magma HDI
101Nexgile Technologies pvt ltd
102PRiMER
103Ryan India Tax Services Private Limited
104Sai Life Science Limited
Read More

Carrer Paths

SOFTWARE DEVELOPER/PROGRAMMER

SOFTWARE DEVELOPER/PROGRAMMER

WEB DEVELOPER

WEB DEVELOPER

SYSTEM ANALYST

SYSTEM ANALYST

QUALITY ASSURANCE / QA TESTER

QUALITY ASSURANCE / QA TESTER

NETWORK ADMINISTRATOR

NETWORK ADMINISTRATOR

DATA ANALYST

DATA ANALYST

IT SUPPORT / HELPDESK TECHNICIAN

IT SUPPORT / HELPDESK TECHNICIAN

CYBERSECURITY ANALYST

CYBERSECURITY ANALYST

CLOUD SUPPORT ENGINEER

CLOUD SUPPORT ENGINEER

Read More

Gallery

GAL1

GAL2

GAL3

GAL4

GAL5

GAL6

GAL7

GAL8

Read More

About Us

ABOUT OUR JOURNEY

Career Development Cell (CDC) works to help the students understand the variety of career options they have and help them prepare better to make the best out of the opportunities. CDC is making constant efforts to help the students of Vardhaman College of Engineering in every aspect of skill development and career progression ranging from Placements, Internships, Competitive Exams and Higher Studies.

Vision

Provide transformative education, empowering individuals and organization to achieve their full potentials.

Mission
  • Provide high quality and relevant training programs that inspire lifelong learning and personal growth.

  • Equip individuals with the knowledge, skills and confidence to excel in their chosen field

Objectives
  • To Produce industry ready graduates and bridge the gap between industry and academia.

  • To develop Intrapersonal and Interpersonal Skills among students.

  • To Assess current level of student skill set and transform them into competent working-professionals.

Principles of CDC
  • Slow progress.

  • Make Notes & Revise.

  • Ask Doubts.

  • Assignments- 1 to 2 hrs/day.

  • Practice

Read More

Intern Details

Student Interns

NameRole
Sai Shivamani SangemWeb Scraping
Krunal SamtaniWeb Scraping
Talla Sri VandanaWeb Development
Mandala Pranav ReddyWeb Development
Kanyagiri Sai Rithvik ReddyWeekly Assessment
Gorige VamshiWeekly Assessment
Prathamesh Satish SawantWeb Development
Read More

Board of Studies

S.NoName of MemberDesignationProfession
1Dr.J V R RavindraChairman(BOS)Principal VCE
2Prof.Deepa ganuSubject ExpertDirector Academics,KMIT
3Mrs.Vibuthi LallIndustry ExpertManager-Operations at Expera
4Mr.Karthik AyalhIndustry ExpertDirector,Technology Delivery,MassMutual India
5Mr.Raghuvaran VelichalaIndustry ExpertSoftware Engineer,Microsoft
6Prof.Manish K.SrivastavaPlacement OfficerDean,Corporate Relations,Placement Officer
7Dr.H Venkateswara ReddySubject ExpertProfessor of CSE,VCE
8Prof.Vivek KulkarniSubject ExpertAssociate Professor of IT,VCE
9Prof.Muralidhar MouryaSubject ExpertAssociate Professor of IT,VCE
10Mr.E Sai AbhinavAlumini MembersConsultant,Advance Auto Parts,India
11Dr.Muni SekharCoordinatorAssociate Professor of IT & Dean,CDC,VCE
Read More

Previous Questions

Adobe

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
52N-Queens II
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
60Permutation Sequence
61Rotate List
62Unique Paths
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
87Scramble String
88Merge Sorted Array
89Gray Code
90Subsets II
92Reverse Linked List II
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
96Unique Binary Search Trees
97Interleaving String
98Validate Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
108Convert Sorted Array to Binary Search Tree
109Convert Sorted List to Binary Search Tree
110Balanced Binary Tree
112Path Sum
113Path Sum II
114Flatten Binary Tree to Linked List
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
119Pascal’s Triangle II
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
131Palindrome Partitioning
133Clone Graph
134Gas Station
135Candy
136Single Number
137Single Number II
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
144Binary Tree Preorder Traversal
146LRU Cache
148Sort List
149Max Points on a Line
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
160Intersection of Two Linked Lists
162Find Peak Element
164Maximum Gap
165Compare Version Numbers
167Two Sum II - Input Array Is Sorted
169Majority Element
174Dungeon Game
175Combine Two Tables
176Second Highest Salary
177Nth Highest Salary
178Rank Scores
179Largest Number
180Consecutive Numbers
183Customers Who Never Order
185Department Top Three Salaries
188Best Time to Buy and Sell Stock IV
189Rotate Array
191Number of 1 Bits
195Tenth Line
197Rising Temperature
198House Robber
199Binary Tree Right Side View
200Number of Islands
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
209Minimum Size Subarray Sum
213House Robber II
214Shortest Palindrome
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
219Contains Duplicate II
220Contains Duplicate III
221Maximal Square
224Basic Calculator
227Basic Calculator II
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
258Add Digits
260Single Number III
262Trips and Users
263Ugly Number
264Ugly Number II
268Missing Number
274H-Index
278First Bad Version
279Perfect Squares
283Move Zeroes
285Inorder Successor in BST
287Find the Duplicate Number
289Game of Life
290Word Pattern
292Nim Game
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
299Bulls and Cows
300Longest Increasing Subsequence
301Remove Invalid Parentheses
309Best Time to Buy and Sell Stock with Cooldown
312Burst Balloons
315Count of Smaller Numbers After Self
316Remove Duplicate Letters
318Maximum Product of Word Lengths
319Bulb Switcher
322Coin Change
324Wiggle Sort II
327Count of Range Sum
328Odd Even Linked List
334Increasing Triplet Subsequence
337House Robber III
338Counting Bits
341Flatten Nested List Iterator
342Power of Four
344Reverse String
345Reverse Vowels of a String
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
350Intersection of Two Arrays II
354Russian Doll Envelopes
356Line Reflection
366Find Leaves of Binary Tree
371Sum of Two Integers
372Super Pow
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
383Ransom Note
387First Unique Character in a String
392Is Subsequence
394Decode String
395Longest Substring with At Least K Repeating Characters
399Evaluate Division
402Remove K Digits
403Frog Jump
410Split Array Largest Sum
412Fizz Buzz
413Arithmetic Slices
414Third Maximum Number
415Add Strings
417Pacific Atlantic Water Flow
421Maximum XOR of Two Numbers in an Array
424Longest Repeating Character Replacement
437Path Sum III
438Find All Anagrams in a String
441Arranging Coins
442Find All Duplicates in an Array
443String Compression
446Arithmetic Slices II - Subsequence
450Delete Node in a BST
451Sort Characters By Frequency
453Minimum Moves to Equal Array Elements
4544Sum II
455Assign Cookies
456132 Pattern
458Poor Pigs
460LFU Cache
462Minimum Moves to Equal Array Elements II
473Matchsticks to Square
474Ones and Zeroes
485Max Consecutive Ones
486Predict the Winner
493Reverse Pairs
494Target Sum
496Next Greater Element I
500Keyboard Row
501Find Mode in Binary Search Tree
503Next Greater Element II
506Relative Ranks
515Find Largest Value in Each Tree Row
518Coin Change II
523Continuous Subarray Sum
525Contiguous Array
528Swapping Nodes in a Linked List
532K-diff Pairs in an Array
535Encode and Decode TinyURL
538Convert BST to Greater Tree
540Single Element in a Sorted Array
541Reverse String II
54201 Matrix
543Diameter of Binary Tree
556Next Greater Element III
560Subarray Sum Equals K
561Array Partition
566Reshape the Matrix
567Permutation in String
572Subtree of Another Tree
584Find Customer Referee
586Customer Placing the Largest Number of Orders
594Longest Harmonious Subsequence
595Big Countries
605Can Place Flowers
606Construct String from Binary Tree
617Merge Two Binary Trees
621Task Scheduler
628Maximum Product of Three Numbers
632Smallest Range Covering Elements from K Lists
637Average of Levels in Binary Tree
643Maximum Average Subarray I
647Palindromic Substrings
653Two Sum IV - Input is a BST
658Find K Closest Elements
662Maximum Width of Binary Tree
665Non-decreasing Array
680Valid Palindrome II
692Top K Frequent Words
697Degree of an Array
698Partition to K Equal Sum Subsets
714Best Time to Buy and Sell Stock with Transaction Fee
7171-bit and 2-bit Characters
718Maximum Length of Repeated Subarray
724Find Pivot Index
725Split Linked List in Parts
733Flood Fill
735Asteroid Collision
740Delete and Earn
744Network Delay Time
747Min Cost Climbing Stairs
748Largest Number At Least Twice of Others
764N-ary Tree Level Order Traversal
768Partition Labels
778Reorganize String
779Max Chunks To Make Sorted II
782Jewels and Stones
783Search in a Binary Search Tree
789Kth Largest Element in a Stream
792Binary Search
795K-th Symbol in Grammar
803Cheapest Flights Within K Stops
806Domino and Tromino Tiling
808Number of Matching Subsequences
809Preimage Size of Factorial Zeroes Function
811Number of Subarrays with Bounded Maximum
812Rotate String
813All Paths From Source to Target
815Champagne Tower
820Find Eventual Safe States
826Soup Servings
837Most Common Word
843Binary Trees With Factors
854Making A Large Island
866Rectangle Overlap
871Keys and Rooms
882Peak Index in a Mountain Array
888Mirror Reflection
892Shortest Subarray with Sum at Least K
893All Nodes Distance K in Binary Tree
900Reordered Power of 2
907Koko Eating Bananas
908Middle of the Linked List
924Fair Candy Swap
926Find and Replace Pattern
930All Possible Full Binary Trees
931Maximum Frequency Stack
932Monotonic Array
933Increasing Order Search Tree
937Online Stock Span
944Smallest Range I
946Smallest Range II
948Sort an Array
952Word Subsets
954Maximum Sum Circular Subarray
9593Sum With Multiplicity
971Shortest Bridge
977Distinct Subsequences II
979DI String Match
983Validate Stack Sequences
1007Numbers With Same Consecutive Differences
1013Fibonacci Number
1014K Closest Points to Origin
1017Odd Even Jump
1018Largest Perimeter Triangle
1022Unique Paths III
1025Minimum Cost For Tickets
1029Vertical Order Traversal of a Binary Tree
1034Subarrays with K Different Integers
1035Cousins in Binary Tree
1036Rotting Oranges
1039Find the Town Judge
1045Check If Word Is Valid After Substitutions
1046Max Consecutive Ones III
1054Complement of Base 10 Integer
1056Capacity To Ship Packages Within D Days
1062Partition Array Into Three Parts With Equal Sum
1070Convert to Base -2
1073Number of Enclaves
1078Remove Outermost Parentheses
1086Divisor Game
1087Longest Arithmetic Subsequence
1111Minimum Score Triangulation of Polygon
1119Robot Bounded In Circle
1121Partition Array for Maximum Sum
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1135Customers Who Bought All Products
1142Minimum Knight Moves
1146Greatest Common Divisor of Strings
1153Product Sales Analysis I
1165Meeting Scheduler
1171Shortest Path in Binary Matrix
1179Game Play Analysis I
1182Game Play Analysis IV
1184Car Pooling
1205Defanging an IP Address
1209Design Bounded Blocking Queue
1212Sequential Digits
1221Element Appearing More Than 25% In Sorted Array
1228Minimum Cost Tree From Leaf Values
1231Replace Elements with Greatest Element on Right Side
1236N-th Tribonacci Number
1247Decrease Elements To Make Array Zigzag
1250Longest Common Subsequence
1258Article Views I
1285Balance a Binary Search Tree
1296Kth Ancestor of a Tree Node
1297Maximum Number of Balloons
1298Reverse Substrings Between Each Pair of Parentheses
1299K-Concatenation Maximum Sum
1300Critical Connections in a Network
1313Count Ways to Build Rooms in an Ant Colony
1317Monthly Transactions I
1319Unique Number of Occurrences
1329Minimum Cost to Move Chips to The Same Position
1352Maximum Profit in Job Scheduling
1370Count Number of Nice Subarrays
1371Minimum Remove to Make Valid Parentheses
1380Number of Closed Islands
1390Average Selling Price
1392Find the Difference of Two Arrays
1397Search Suggestions System
1405All People Report to the Given Manager
1406Subtract the Product and Sum of Digits of an Integer
1407Group the People Given the Group Size They Belong To
1421Find Numbers with Even Number of Digits
1427All Elements in Two Binary Search Trees
1437Minimum Insertion Steps to Make a String Palindrome
1446Angle Between Hands of a Clock
1448Maximum 69 Number
1457Minimum Difficulty of a Job Schedule
1460Number of Substrings Containing All Three Characters
1464Reduce Array Size to The Half
1484Linked List in Binary Tree
1488Sort Integers by The Power Value
1500Count Largest Group
1528Kids With the Greatest Number of Candies
1537Maximum Score After Splitting a String
1552Build an Array With Stack Operations
1559Cherry Pickup II
1580Shuffle the Array
1586Longest Subarray of 1’s After Deleting One Element
1603Running Sum of 1d Array
1605Minimum Number of Days to Make m Bouquets
1621Number of Subsequences That Satisfy the Given Sum Condition
1625Group Sold Products By The Date
1630Count Odd Numbers in an Interval Range
1635Number of Good Pairs
1637String Compression II
1646Kth Missing Positive Number
1651Shuffle String
1657Find the Winner of an Array Game
1661Minimum Number of Vertices to Reach All Nodes
1669Minimum Cost to Cut a Stick
1677Matrix Diagonal Sum
1690Maximum Length of Subarray With Positive Product
1693Sum of All Odd Length Subarrays
1701Remove Max Number of Edges to Keep Graph Fully Traversable
1706Min Cost to Connect All Points
1724Customer Who Visited but Did Not Make Any Transactions
1738Maximal Network Rank
1752Arithmetic Subarrays
1756Minimum Deletions to Make String Balanced
1771Sell Diminishing-Valued Colored Balls
1776Minimum Operations to Reduce X to Zero
1782Smallest String With A Given Numeric Value
1787Sum of Absolute Differences in a Sorted Array
1791Richest Customer Wealth
1801Average Time of Process per Machine
1806Count of Matches in Tournament
1807Partitioning Into Minimum Number Of Deci-Binary Numbers
1811Fix Names in a Table
1813Maximum Erasure Value
1817Calculate Money in Leetcode Bank
1824Maximum Number of Eaten Apples
1825Find Minimum Time to Finish All Jobs
1829Maximum Units on a Truck
1833Find the Highest Altitude
1839Decode XORed Array
1878Check if Array Is Sorted and Rotated
1884Minimum Changes To Make Alternating Binary String
1892Find Total Time Spent by Each Employee
1894Merge Strings Alternately
1899Count Items Matching a Rule
1908Recyclable and Low Fat Products
1929Maximum Value at a Given Index in a Bounded Array
1960Check if the Sentence Is Pangram
1970Sorting the Sentence
1986Largest Color Value in a Directed Graph
1987Substrings of Size Three with Distinct Characters
1988Minimize Maximum Pair Sum in Array
2015Determine Whether Matrix Can Be Obtained By Rotation
2032Largest Odd Number in String
2048Build Array from Permutation
2058Concatenation of Array
2059Unique Length-3 Palindromic Subsequences
2110Employees With Missing Information
2117Find Original Array From Doubled Array
2119Minimum Number of Operations to Make Array Continuous
2127Employees Whose Manager Left the Company
2162Partition Array Into Two Arrays to Minimize Sum Difference
2165Plates Between Candles
2211K Radius Subarray Averages
2213Find All People With Secret
2216Delete the Middle Node of a Linked List
2263Maximum Running Time of N Computers
2264Minimum Sum of Four Digit Number After Splitting Digits
2271Rearrange Array Elements by Sign
2282Choose Numbers From Two Arrays in Range
2284Smallest Value of the Rearranged Number
2338Minimum Consecutive Cards to Pick Up
2356Largest Combination With Bitwise AND Greater Than Zero
2383Add Two Integers
2409Number of Increasing Paths in a Grid
2428Equal Row and Column Pairs
2457Count Special Integers
2469Longest Subsequence With Limited Sum
2471Minimum Amount of Time to Collect Garbage
2475Largest Palindromic Number
2488Divide Intervals Into Minimum Number of Groups
2509Minimize XOR
2565Merge Operations to Turn Array Into a Palindrome
2636Maximum Subsequence Score
2732Counter
2733Sleep
2734Array Prototype Last
2739Minimize the Total Price of the Trips
2747Apply Transform Over Each Element in Array
2764Maximum Number of Fish in a Grid
2808Painting the Walls
2809Create Hello World Function
2813To Be Or Not To Be
2821Timeout Cancellation
2849Sum of Imbalance Numbers of All Subarrays
2864Is Object Empty
2868Continuous Subarrays
2876Number of Employees Who Met the Target
3062Create a DataFrame from List
3093Sum of Values at Indices With K Set Bits
3177Minimizing Array After Replacing Pairs With Their Product
3213Count Subarrays Where Max Element Appears at Least K Times
Read More

Previous Questions

AMAZON

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
59Spiral Matrix II
60Permutation Sequence
61Rotate List
62Unique Paths
63Unique Paths II
64Minimum Path Sum
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
87Scramble String
88Merge Sorted Array
89Gray Code
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
96Unique Binary Search Trees
97Interleaving String
98Validate Binary Search Tree
99Recover Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
106Construct Binary Tree from Inorder and Postorder Traversal
107Binary Tree Level Order Traversal II
108Convert Sorted Array to Binary Search Tree
109Convert Sorted List to Binary Search Tree
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
113Path Sum II
114Flatten Binary Tree to Linked List
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
119Pascal’s Triangle II
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
130Surrounded Regions
131Palindrome Partitioning
132Palindrome Partitioning II
133Clone Graph
134Gas Station
135Candy
136Single Number
137Single Number II
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
144Binary Tree Preorder Traversal
145Binary Tree Postorder Traversal
146LRU Cache
148Sort List
149Max Points on a Line
150Evaluate Reverse Polish Notation
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
157Read N Characters Given Read4
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
161One Edit Distance
162Find Peak Element
164Maximum Gap
165Compare Version Numbers
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
171Excel Sheet Column Number
173Binary Search Tree Iterator
174Dungeon Game
175Combine Two Tables
176Second Highest Salary
177Nth Highest Salary
178Rank Scores
179Largest Number
180Consecutive Numbers
181Employees Earning More Than Their Managers
182Duplicate Emails
183Customers Who Never Order
184Department Highest Salary
185Department Top Three Salaries
186Reverse Words in a String II
187Repeated DNA Sequences
188Best Time to Buy and Sell Stock IV
189Rotate Array
190Reverse Bits
191Number of 1 Bits
192Word Frequency
193Valid Phone Numbers
196Delete Duplicate Emails
197Rising Temperature
198House Robber
199Binary Tree Right Side View
200Number of Islands
201Bitwise AND of Numbers Range
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
213House Robber II
214Shortest Palindrome
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
220Contains Duplicate III
221Maximal Square
222Count Complete Tree Nodes
223Rectangle Area
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
228Summary Ranges
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
232Implement Queue using Stacks
233Number of Digit One
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
243Shortest Word Distance
244Shortest Word Distance II
249Group Shifted Strings
252Meeting Rooms
253Meeting Rooms II
255Verify Preorder Sequence in Binary Search Tree
256Paint House
257Binary Tree Paths
258Add Digits
261Graph Valid Tree
262Trips and Users
263Ugly Number
265Paint House II
267Palindrome Permutation II
268Missing Number
269Alien Dictionary
270Closest Binary Search Tree Value
271Encode and Decode Strings
272Closest Binary Search Tree Value II
273Integer to English Words
274H-Index
275H-Index II
277Find the Celebrity
278First Bad Version
279Perfect Squares
280Wiggle Sort
282Expression Add Operators
283Move Zeroes
286Walls and Gates
287Find the Duplicate Number
289Game of Life
290Word Pattern
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
298Binary Tree Longest Consecutive Sequence
299Bulls and Cows
300Longest Increasing Subsequence
301Remove Invalid Parentheses
303Range Sum Query - Immutable
304Range Sum Query 2D - Immutable
305Number of Islands II
307Range Sum Query - Mutable
309Best Time to Buy and Sell Stock with Cooldown
310Minimum Height Trees
311Sparse Matrix Multiplication
312Burst Balloons
314Binary Tree Vertical Order Traversal
315Count of Smaller Numbers After Self
316Remove Duplicate Letters
318Maximum Product of Word Lengths
319Bulb Switcher
322Coin Change
323Number of Connected Components in an Undirected Graph
324Wiggle Sort II
325Maximum Size Subarray Sum Equals k
326Power of Three
327Count of Range Sum
328Odd Even Linked List
329Longest Increasing Path in a Matrix
330Patching Array
332Reconstruct Itinerary
333Largest BST Subtree
334Increasing Triplet Subsequence
336Palindrome Pairs
337House Robber III
338Counting Bits
339Nested List Weight Sum
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
342Power of Four
343Integer Break
344Reverse String
345Reverse Vowels of a String
346Moving Average from Data Stream
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
350Intersection of Two Arrays II
352Data Stream as Disjoint Intervals
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
359Logger Rate Limiter
362Design Hit Counter
363Max Sum of Rectangle No Larger Than K
366Find Leaves of Binary Tree
367Valid Perfect Square
368Largest Divisible Subset
370Range Addition
371Sum of Two Integers
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
376Wiggle Subsequence
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
379Design Phone Directory
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
383Ransom Note
384Shuffle an Array
386Lexicographical Numbers
387First Unique Character in a String
388Longest Absolute File Path
389Find the Difference
390Elimination Game
392Is Subsequence
393UTF-8 Validation
394Decode String
395Longest Substring with At Least K Repeating Characters
396Rotate Function
397Integer Replacement
399Evaluate Division
402Remove K Digits
403Frog Jump
404Sum of Left Leaves
405Convert a Number to Hexadecimal
406Queue Reconstruction by Height
407Trapping Rain Water II
409Longest Palindrome
410Split Array Largest Sum
412Fizz Buzz
413Arithmetic Slices
414Third Maximum Number
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
418Sentence Screen Fitting
419Battleships in a Board
420Strong Password Checker
421Maximum XOR of Two Numbers in an Array
424Longest Repeating Character Replacement
432All O`one Data Structure
433Minimum Genetic Mutation
435Non-overlapping Intervals
436Find Right Interval
437Path Sum III
438Find All Anagrams in a String
441Arranging Coins
442Find All Duplicates in an Array
443String Compression
445Add Two Numbers II
448Find All Numbers Disappeared in an Array
449Serialize and Deserialize BST
450Delete Node in a BST
451Sort Characters By Frequency
452Minimum Number of Arrows to Burst Balloons
453Minimum Moves to Equal Array Elements
4544Sum II
455Assign Cookies
456132 Pattern
458Poor Pigs
459Repeated Substring Pattern
460LFU Cache
461Hamming Distance
462Minimum Moves to Equal Array Elements II
463Island Perimeter
465Optimal Account Balancing
468Validate IP Address
472Concatenated Words
473Matchsticks to Square
474Ones and Zeroes
475Heaters
476Number Complement
480Sliding Window Median
485Max Consecutive Ones
486Predict the Winner
490The Maze
491Non-decreasing Subsequences
493Reverse Pairs
494Target Sum
496Next Greater Element I
498Diagonal Traverse
500Keyboard Row
501Find Mode in Binary Search Tree
502IPO
503Next Greater Element II
505The Maze II
506Relative Ranks
507Perfect Number
508Most Frequent Subtree Sum
512Maximum Alternating Subarray Sum
513Find Bottom Left Tree Value
515Find Largest Value in Each Tree Row
516Longest Palindromic Subsequence
517Super Washing Machines
518Coin Change II
523Continuous Subarray Sum
525Contiguous Array
526Beautiful Arrangement
527Word Abbreviation
528Swapping Nodes in a Linked List
529Minesweeper
530Minimum Absolute Difference in BST
531Lonely Pixel I
532K-diff Pairs in an Array
535Encode and Decode TinyURL
536Construct Binary Tree from String
537Complex Number Multiplication
538Convert BST to Greater Tree
539Minimum Time Difference
540Single Element in a Sorted Array
541Reverse String II
54201 Matrix
543Diameter of Binary Tree
545Boundary of Binary Tree
546Remove Boxes
547Number of Provinces
550Shortest Path to Get Food
553Optimal Division
554Brick Wall
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
561Array Partition
564Find the Closest Palindrome
567Permutation in String
570Managers with at Least 5 Direct Reports
572Subtree of Another Tree
576Out of Boundary Paths
577Employee Bonus
579Find Cumulative Salary of an Employee
581Shortest Unsorted Continuous Subarray
582Kill Process
583Delete Operation for Two Strings
584Find Customer Referee
588Design In-Memory File System
594Longest Harmonious Subsequence
595Big Countries
601Human Traffic of Stadium
602Friend Requests II: Who Has the Most Friends
603Consecutive Available Seats
605Can Place Flowers
606Construct String from Binary Tree
609Find Duplicate File in System
610Triangle Judgement
611Valid Triangle Number
617Merge Two Binary Trees
618Students Report By Geography
620Not Boring Movies
621Task Scheduler
623Add One Row to Tree
626Exchange Seats
628Maximum Product of Three Numbers
630Course Schedule III
631Design Excel Sum Formula
632Smallest Range Covering Elements from K Lists
633Sum of Square Numbers
634Find the Derangement of An Array
636Exclusive Time of Functions
637Average of Levels in Binary Tree
640Solve the Equation
642Design Search Autocomplete System
643Maximum Average Subarray I
645Set Mismatch
646Maximum Length of Pair Chain
647Palindromic Substrings
648Replace Words
649Dota2 Senate
652Find Duplicate Subtrees
653Two Sum IV - Input is a BST
655Print Binary Tree
657Robot Return to Origin
658Find K Closest Elements
661Image Smoother
662Maximum Width of Binary Tree
663Equal Tree Partition
664Strange Printer
665Non-decreasing Array
669Trim a Binary Search Tree
670Maximum Swap
673Number of Longest Increasing Subsequence
674Longest Continuous Increasing Subsequence
675Cut Off Trees for Golf Event
677Map Sum Pairs
678Valid Parenthesis String
680Valid Palindrome II
681Next Closest Time
682Baseball Game
684Redundant Connection
685Redundant Connection II
686Repeated String Match
687Longest Univalue Path
688Knight Probability in Chessboard
689Maximum Sum of 3 Non-Overlapping Subarrays
690Employee Importance
692Top K Frequent Words
694Number of Distinct Islands
695Max Area of Island
696Count Binary Substrings
698Partition to K Equal Sum Subsets
711Number of Distinct Islands II
713Subarray Product Less Than K
714Best Time to Buy and Sell Stock with Transaction Fee
715Range Module
716Max Stack
718Maximum Length of Repeated Subarray
719Find K-th Smallest Pair Distance
720Longest Word in Dictionary
721Accounts Merge
724Find Pivot Index
725Split Linked List in Parts
726Number of Atoms
728Self Dividing Numbers
729My Calendar I
730Count Different Palindromic Subsequences
733Flood Fill
735Asteroid Collision
738Monotone Increasing Digits
739Daily Temperatures
740Delete and Earn
741Cherry Pickup
743Closest Leaf in a Binary Tree
744Network Delay Time
745Find Smallest Letter Greater Than Target
747Min Cost Climbing Stairs
753Open the Lock
755Reach a Number
756Pour Water
758Convert Binary Search Tree to Sorted Doubly Linked List
764N-ary Tree Level Order Traversal
765Serialize and Deserialize N-ary Tree
766Flatten a Multilevel Doubly Linked List
767Prime Number of Set Bits in Binary Representation
768Partition Labels
770Couples Holding Hands
772Construct Quad Tree
778Reorganize String
780Max Chunks To Make Sorted
782Jewels and Stones
783Search in a Binary Search Tree
784Insert into a Binary Search Tree
785Basic Calculator III
787Sliding Puzzle
789Kth Largest Element in a Stream
790Global and Local Inversions
791Split BST
792Binary Search
793Swap Adjacent in LR String
794Swim in Rising Water
795K-th Symbol in Grammar
797Rabbits in Forest
800Letter Case Permutation
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
806Domino and Tromino Tiling
807Custom Sort String
808Number of Matching Subsequences
811Number of Subarrays with Bounded Maximum
812Rotate String
813All Paths From Source to Target
815Champagne Tower
816Design HashSet
817Design HashMap
819Minimum Swaps To Make Sequences Increasing
820Find Eventual Safe States
822Unique Morse Code Words
826Soup Servings
830Largest Triangle Area
831Largest Sum of Averages
832Binary Tree Pruning
833Bus Routes
836Race Car
837Most Common Word
838Design Linked List
843Binary Trees With Factors
853Most Profit Assigning Work
854Making A Large Island
855Count Unique Characters of All Substrings of a Given String
856Consecutive Numbers Sum
860Design Circular Queue
861Flipping an Image
863Sum of Distances in Tree
865Robot Room Cleaner
866Rectangle Overlap
868Push Dominoes
871Keys and Rooms
872Split Array into Fibonacci Sequence
874Backspace String Compare
877Shortest Path Visiting All Nodes
879Maximize Distance to Closest Person
881Loud and Rich
882Peak Index in a Mountain Array
883Car Fleet
886Score of Parentheses
887Minimum Cost to Hire K Workers
889Buddy Strings
892Shortest Subarray with Sum at Least K
893All Nodes Distance K in Binary Tree
896Smallest Subtree with all the Deepest Nodes
898Transpose Matrix
900Reordered Power of 2
902Minimum Number of Refueling Stops
903Implement Rand10() Using Rand7()
907Koko Eating Bananas
908Middle of the Linked List
909Stone Game
910Nth Magical Number
911Profitable Schemes
912Random Pick with Weight
916Decoded String at Index
917Boats to Save People
922Possible Bipartition
923Super Egg Drop
924Fair Candy Swap
925Construct Binary Tree from Preorder and Postorder Traversal
926Find and Replace Pattern
927Sum of Subsequence Widths
930All Possible Full Binary Trees
931Maximum Frequency Stack
932Monotonic Array
933Increasing Order Search Tree
935Orderly Queue
936RLE Iterator
937Online Stock Span
938Numbers At Most N Given Digit Set
939Valid Permutations for DI Sequence
940Fruit Into Baskets
941Sort Array By Parity
943Sum of Subarray Minimums
945Snakes and Ladders
946Smallest Range II
948Sort an Array
951Partition Array into Disjoint Intervals
953Reverse Only Letters
954Maximum Sum Circular Subarray
956Number of Music Playlists
957Minimum Add to Make Parentheses Valid
958Sort Array By Parity II
9593Sum With Multiplicity
962Flip String to Monotone Increasing
965Unique Email Addresses
967Minimum Falling Path Sum
969Number of Recent Calls
971Shortest Bridge
972Knight Dialer
974Reorder Data in Log Files
975Range Sum of BST
978Valid Mountain Array
983Validate Stack Sequences
984Most Stones Removed with Same Row or Column
986Largest Time for Given Digits
988Flip Equivalent Binary Trees
990Verifying an Alien Dictionary
994Prison Cells After N Days
998Check Completeness of a Binary Tree
999Regions Cut By Slashes
1002Maximum Width Ramp
1008Binary Tree Cameras
1009Pancake Sorting
1013Fibonacci Number
1014K Closest Points to Origin
1016Subarray Sums Divisible by K
1019Squares of a Sorted Array
1021Distribute Coins in Binary Tree
1022Unique Paths III
1023Time Based Key-Value Store
1025Minimum Cost For Tickets
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1032Satisfiability of Equality Equations
1034Subarrays with K Different Integers
1035Cousins in Binary Tree
1036Rotting Oranges
1039Find the Town Judge
1042Minimum Cost to Merge Stones
1044Find Common Characters
1045Check If Word Is Valid After Substitutions
1046Max Consecutive Ones III
1048Clumsy Factorial
1049Minimum Domino Rotations For Equal Row
1050Construct Binary Search Tree from Preorder Traversal
1054Complement of Base 10 Integer
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1059Missing Element in Sorted Array
1060Longest Repeating Substring
1065Binary String With Substrings Representing 1 To N
1068Digit Count in Range
1072Next Greater Node In Linked List
1073Number of Enclaves
1074High Five
1075Index Pairs of a String
1078Remove Outermost Parentheses
1079Sum of Root To Leaf Binary Numbers
1080Camelcase Matching
1082Sum of Digits in the Minimum Number
1083Two Sum Less Than K
1084Find K-Length Substrings With No Repeated Characters
1087Longest Arithmetic Subsequence
1088Number of Days in a Month
1089Remove Vowels from a String
1090Armstrong Number
1091Maximum Average Subtree
1092Maximum Difference Between Node and Ancestor
1093Recover a Tree From Preorder Traversal
1095Two City Scheduling
1097Stream of Characters
1098Largest Unique Number
1099Path With Maximum Minimum Value
1100Connecting Cities With Minimum Cost
1101Parallel Courses
1104Coloring A Border
1105Uncrossed Lines
1107Minimum Swaps to Group All 1’s Together
1108Analyze User Website Visit Pattern
1111Minimum Score Triangulation of Polygon
1112Find Words That Can Be Formed by Characters
1114Binary Search Tree to Greater Sum Tree
1116Maximum Level Sum of a Binary Tree
1117As Far from Land as Possible
1119Robot Bounded In Circle
1120Flower Planting With No Adjacent
1121Partition Array for Maximum Sum
1122Longest Duplicate Substring
1125Design File System
1126Minimum Cost to Connect Sticks
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1135Customers Who Bought All Products
1136Actors and Directors Who Cooperated At Least Three Times
1140Distant Barcodes
1142Minimum Knight Moves
1145Number of Submatrices That Sum to Target
1146Greatest Common Divisor of Strings
1150Two Sum BSTs
1153Product Sales Analysis I
1154Product Sales Analysis II
1155Product Sales Analysis III
1157Insufficient Nodes in Root to Leaf Paths
1159Smallest Subsequence of Distinct Characters
1161Project Employees I
1165Meeting Scheduler
1168Duplicate Zeros
1170Shortest Common Supersequence
1171Shortest Path in Binary Matrix
1172Sales Analysis I
1173Sales Analysis II
1174Sales Analysis III
1176Design A Leaderboard
1178Valid Palindrome III
1179Game Play Analysis I
1184Car Pooling
1185Find in Mountain Array
1191Synonymous Sentences
1194Path In Zigzag Labelled Binary Tree
1196Filling Bookcase Shelves
1205Defanging an IP Address
1206Corporate Flight Bookings
1207Delete Nodes And Return Forest
1212Sequential Digits
1213Handshakes That Don’t Cross
1214Highest Grade For Each Student
1217Relative Sort Array
1220Smallest Sufficient Team
1221Element Appearing More Than 25% In Sorted Array
1222Remove Covered Intervals
1227Number of Equivalent Domino Pairs
1228Minimum Cost Tree From Leaf Values
1229Shortest Path with Alternating Colors
1231Replace Elements with Greatest Element on Right Side
1238Alphabet Board Path
1241Decompress Run-Length Encoded List
1243Sum of Nodes with Even-Valued Grandparent
1249Snapshot Array
1250Longest Common Subsequence
1253Sort the Matrix Diagonally
1254Deepest Leaves Sum
1258Article Views I
1261Swap For Longest Repeated Character Substring
1263Number of Dice Rolls With Target Sum
1267Remove Zero Sum Consecutive Nodes from Linked List
1272Invalid Transactions
1274Number of Days Between Two Dates
1275Validate Binary Tree Nodes
1276Closest Divisors
1277Largest Multiple of Three
1278Product Price at a Given Date
1279Prime Arrangements
1280Diet Plan Performance
1285Balance a Binary Search Tree
1286Constrained Subsequence Sum
1288Maximum Subarray Sum with One Deletion
1295Minimum Garden Perimeter to Collect Enough Apples
1296Kth Ancestor of a Tree Node
1298Reverse Substrings Between Each Pair of Parentheses
1299K-Concatenation Maximum Sum
1300Critical Connections in a Network
1301Reformat Department Table
1303Minimum Moves to Reach Target Score
1304Longest Happy String
1305Number of Visible People in a Queue
1306Minimum Absolute Difference
1308Smallest String With Swaps
1309Sort Items by Groups Respecting Dependencies
1316Fizz Buzz Multithreaded
1319Unique Number of Occurrences
1320Remove All Adjacent Duplicates in String II
1324Where Will the Ball Fall
1327Last Person to Fit in the Bus
1330Longest Arithmetic Subsequence of Given Difference
1331Path with Maximum Gold
1332Count Vowels Permutation
1338Queries Quality and Percentage
1349Check If It Is a Straight Line
1350Remove Sub-Folders from the Filesystem
1351Replace the Substring for Balanced String
1352Maximum Profit in Job Scheduling
1353Find Resultant Array After Removing Anagrams
1355Minimum Deletions to Make Array Beautiful
1356Minimum Number of Moves to Make Palindrome
1364Tuple with Same Product
1366First Unique Number
1370Count Number of Nice Subarrays
1371Minimum Remove to Make Valid Parentheses
1374Leftmost Column with at Least a One
1380Number of Closed Islands
1381Maximum Score Words Formed by Letters
1386Shift 2D Grid
1390Average Selling Price
1392Find the Difference of Two Arrays
1393Maximum Value of K Coins From Piles
1397Search Suggestions System
1400Find Winner on a Tic Tac Toe Game
1402Count Square Submatrices with All Ones
1407Group the People Given the Group Size They Belong To
1411Convert Binary Number in a Linked List to Integer
1414Shortest Path in a Grid with Obstacles Elimination
1415Students and Examinations
1418Fair Distribution of Cookies
1421Find Numbers with Even Number of Digits
1423Maximum Number of Occurrences of a Substring
1426Find N Unique Integers Sum up to Zero
1427All Elements in Two Binary Search Trees
1428Jump Game III
1436Get Watched Videos by Your Friends
1437Minimum Insertion Steps to Make a String Palindrome
1438Find the Team Size
1446Angle Between Hands of a Clock
1447Jump Game IV
1450Delete Leaves With a Given Value
1451Minimum Number of Taps to Open to Water a Garden
1454Remove Palindromic Subsequences
1456Find the City With the Smallest Number of Neighbors at a Threshold Distance
1457Minimum Difficulty of a Job Schedule
1461Count All Valid Pickup and Delivery Options
1462List the Products Ordered in a Period
1463The K Weakest Rows in a Matrix
1464Reduce Array Size to The Half
1465Maximum Product of Splitted Binary Tree
1466Jump Game V
1468Check If N and Its Double Exist
1474Longest ZigZag Path in a Binary Tree
1475Maximum Sum BST in Binary Tree
1476Count Negative Numbers in a Sorted Matrix
1477Product of the Last K Numbers
1478Maximum Number of Events That Can Be Attended
1479Construct Target Array With Multiple Sums
1481Students With Invalid Departments
1482How Many Numbers Are Smaller Than the Current Number
1484Linked List in Binary Tree
1486Find the Distance Value Between Two Arrays
1487Cinema Seat Allocation
1492Time Needed to Inform All Employees
1496Lucky Numbers in a Matrix
1497Design a Stack With Increment Operation
1498Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1499Maximum Performance of a Team
1508Longest Happy Prefix
1509Replace Employee ID With The Unique Identifier
1511Count Number of Teams
1512Design Underground System
1514Minimum Value to Get Positive Step by Step Sum
1515Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
1520Number of Steps to Reduce a Number in Binary Representation to One
1523Capital Gain/Loss
1524String Matching in an Array
1525Queries on a Permutation With Key
1528Kids With the Greatest Number of Candies
1534Minimum Number of Frogs Croaking
1535Build Array Where You Can Find The Maximum Exactly K Comparisons
1536Customers Who Bought Products A and B but Not C
1538Maximum Points You Can Obtain from Cards
1544Count Good Nodes in Binary Tree
1547Destination City
1549Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1551NPV Queries
1557Check If a String Contains All Binary Codes of Size K
1559Cherry Pickup II
1566Check If a Word Occurs As a Prefix of Any Word in a Sentence
1567Maximum Number of Vowels in a Substring of Given Length
1568Pseudo-Palindromic Paths in a Binary Tree
1570Final Prices With a Special Discount in a Shop
1574Maximum Product of Two Elements in an Array
1575Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1579Active Users
1580Shuffle the Array
1582Design Browser History
1584Average Salary Excluding the Minimum and Maximum Salary
1585The kth Factor of n
1586Longest Subarray of 1’s After Deleting One Element
1603Running Sum of 1d Array
1604Least Number of Unique Integers after K Removals
1605Minimum Number of Days to Make m Bouquets
1612Avoid Flood in The City
1613Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
1616Minimum Difference Between Largest and Smallest Value in Three Moves
1619Path Crossing
1620Check If Array Pairs Are Divisible by k
1621Number of Subsequences That Satisfy the Given Sum Condition
1623Sales by Day of the Week
1624Clone Binary Tree With Random Pointer
1626Can Make Arithmetic Progression From Sequence
1630Count Odd Numbers in an Interval Range
1632Number of Good Ways to Split a String
1634Clone N-ary Tree
1635Number of Good Pairs
1637String Compression II
1639Friendly Movies Streamed Last Month
1644Maximum Number of Non-Overlapping Substrings
1646Kth Missing Positive Number
1651Shuffle String
1652Minimum Suffix Flips
1654Customer Order Frequency
1656Count Good Triplets
1662Minimum Numbers of Function Calls to Make Target Array
1669Minimum Cost to Cut a Stick
1672Find the Index of the Large Integer
1675Magnetic Force Between Two Balls
1676Minimum Number of Days to Eat N Oranges
1677Matrix Diagonal Sum
1679Shortest Subarray to be Removed to Make Array Sorted
1680Count All Possible Routes
1683Maximum Number of Coins You Can Get
1684Find Latest Group of Size M
1685Stone Game V
1690Maximum Length of Subarray With Positive Product
1692Number of Ways to Reorder Array to Get Same BST
1693Sum of All Odd Length Subarrays
1694Make Sum Divisible by P
1700Minimum Time to Make Rope Colorful
1706Min Cost to Connect All Points
1708Design Parking System
1713Dot Product of Two Sparse Vectors
1715Split a String Into the Max Number of Unique Substrings
1718Warehouse Manager
1723Maximum Number of Achievable Transfer Requests
1724Customer Who Visited but Did Not Make Any Transactions
1725Number of Sets of K Non-Overlapping Line Segments
1730Special Array With X Elements Greater Than or Equal X
1731Even Odd Tree
1736Build Binary Expression Tree From Infix Expression
1737Maximum Nesting Depth of the Parentheses
1741Sort Array by Increasing Frequency
1753Path With Minimum Effort
1757Minimum Jumps to Reach Home
1758Distribute Repeating Integers
1759Find the Missing IDs
1761Count Sorted Vowel Strings
1762Furthest Building You Can Reach
1763All Valid Triplets That Can Represent a Country
1767Design Front Middle Back Queue
1768Design an Expression Tree With Evaluate Function
1770Minimum Deletions to Make Character Frequencies Unique
1771Sell Diminishing-Valued Colored Balls
1772Create Sorted Array through Instructions
1774Add Two Polynomials Represented as Linked Lists
1776Minimum Operations to Reduce X to Zero
1781Check If Two String Arrays are Equivalent
1782Smallest String With A Given Numeric Value
1790Lowest Common Ancestor of a Binary Tree III
1791Richest Customer Wealth
1792Find the Most Competitive Subsequence
1797Goal Parser Interpretation
1798Max Number of K-Sum Pairs
1800Concatenation of Consecutive Binary Numbers
1801Average Time of Process per Machine
1802Number of Students Unable to Eat Lunch
1805Minimum Adjacent Swaps for K Consecutive Ones
1806Count of Matches in Tournament
1807Partitioning Into Minimum Number Of Deci-Binary Numbers
1813Maximum Erasure Value
1814Jump Game VI
1816Lowest Common Ancestor of a Binary Tree IV
1817Calculate Money in Leetcode Bank
1823Determine if String Halves Are Alike
1824Maximum Number of Eaten Apples
1825Find Minimum Time to Finish All Jobs
1827Invalid Tweets
1829Maximum Units on a Truck
1835Decode XORed Permutation
1836Count Ways to Make Array With Product
1842Number of Calls Between Two Persons
1845Largest Submatrix With Rearrangements
1849Maximum Absolute Sum of Any Subarray
1850Minimum Length of String After Deleting Similar Ends
1851Maximum Number of Events That Can Be Attended II
1874Form Array by Concatenating Subarrays of Another Array
1878Check if Array Is Sorted and Rotated
1882The Number of Employees Which Report to Each Employee
1883Find Distance in a Binary Tree
1886Minimum Limit of Balls in a Bag
1887Minimum Degree of a Connected Trio in a Graph
1888Find Nearest Point That Has the Same X or Y Coordinate
1891Count Pairs Of Nodes
1892Find Total Time Spent by Each Employee
1894Merge Strings Alternately
1895Minimum Number of Operations to Move All Balls to Each Box
1908Recyclable and Low Fat Products
1909Buildings With an Ocean View
1915Check if One String Swap Can Make Strings Equal
1917Maximum Average Pass Ratio
1918Maximum Score of a Good Subarray
1919Sort Features by Popularity
1925Count Nice Pairs in an Array
1926Product’s Price for Each Store
1932Grand Slam Titles
1937Maximize the Beauty of the Garden
1938Minimum Operations to Make the Array Increasing
1947Number of Different Subsequences GCDs
1948Rearrange Products Table
1951Find the Winner of the Circular Game
1952Minimum Sideway Jumps
1956Maximum Element After Decreasing and Rearranging
1957Closest Room
1958Ad-Free Sessions
1962Single-Threaded CPU
1964Find Interview Candidates
1966Frequency of the Most Frequent Element
1970Sorting the Sentence
1978Minimum Adjacent Swaps to Reach the Kth Smallest Number
1983Maximum Population Year
1985Maximum Subarray Min-Product
1987Substrings of Size Three with Distinct Characters
1988Minimize Maximum Pair Sum in Array
1993Sum of All Subset XOR Totals
1994Minimum Number of Swaps to Make the Binary String Alternating
1997Next Palindrome Using Same Digits
2000Minimum Speed to Arrive on Time
2001Jump Game VII
2003Distinct Numbers in Each Subarray
2012Process Tasks Using Servers
2015Determine Whether Matrix Can Be Obtained By Rotation
2018Minimum Space Wasted From Packaging
2021Remove All Occurrences of a Substring
2031Egg Drop With 2 Eggs and N Floors
2032Largest Odd Number in String
2038Nearest Exit from Entrance in Maze
2042Maximum Product Difference Between Two Pairs
2047Find a Peak Element II
2048Build Array from Permutation
2051Longest Common Subpath
2054The Number of the Smallest Unoccupied Chair
2056Jump Game VIII
2058Concatenation of Array
2060Merge BSTs to Create Single BST
2065Check for Contradictions in Equations
2072Maximum of Minimum Values in All Subarrays
2075Brightest Position on Street
2080Check if Move is Legal
2084Maximum Number of Weeks for Which You Can Work
2086Count Number of Special Subsequences
2087Confirmation Rate
2094Remove Stones to Minimize the Total
2095Minimum Number of Swaps to Make the String Balanced
2108Minimize the Difference Between Target and Chosen Elements
2116Count Number of Pairs With Absolute Difference K
2117Find Original Array From Doubled Array
2119Minimum Number of Operations to Make Array Continuous
2120First and Last Call On the Same Day
2121Find if Path Exists in Graph
2125GCD Sort of an Array
2132Convert 1D Array Into 2D Array
2134Maximize the Confusion of an Exam
2138Sum of Beauty in the Array
2144Maximum Difference Between Increasing Elements
2147The Score of Students Solving Math Expression
2149Remove Colored Pieces if Both Neighbors are the Same Color
2150Kth Smallest Product of Two Sorted Arrays
2155Find Missing Observations
2161Stock Price Fluctuation
2162Partition Array Into Two Arrays to Minimize Sum Difference
2163Kth Distinct String in an Array
2165Plates Between Candles
2173Number of Valid Words in a Sentence
2175Count Nodes With the Highest Score
2179Most Beautiful Item for Each Query
2182Find the Minimum and Maximum Number of Nodes Between Critical Points
2183Minimum Operations to Convert Number
2188Minimized Maximum of Products Distributed to Any Store
2192Minimum Cost Homecoming of a Robot in a Grid
2197Decode the Slanted Ciphertext
2204Find Subsequence of Length K With the Largest Sum
2205Find Good Days to Rob the Bank
2206Detonate the Maximum Bombs
2207Sequentially Ordinal Rank Tracker
2210Find Target Indices After Sorting Array
2211K Radius Subarray Averages
2216Delete the Middle Node of a Linked List
2217Step-By-Step Directions From a Binary Tree Node to Another
2220Find All Possible Recipes from Given Supplies
2221Check if a Parentheses String Can Be Valid
2227Sum of Subarray Ranges
2231Find First Palindromic String in the Array
2232Adding Spaces to a String
2233Number of Smooth Descent Periods of a Stock
2234Minimum Operations to Make the Array K-Increasing
2236Maximum Twin Sum of a Linked List
2237Longest Palindrome by Concatenating Two Letter Words
2244Number of Laser Beams in a Bank
2249Count the Hidden Sequences
2255Minimum Swaps to Group All 1’s Together II
2256Count Words Obtained After Adding a Letter
2259Minimum Operations to Remove Adjacent Ones in Matrix
2262Solving Questions With Brainpower
2263Maximum Running Time of N Computers
2264Minimum Sum of Four Digit Number After Splitting Digits
2265Partition Array According to Given Pivot
2267Minimum Difference in Sums After Removal of Elements
2271Rearrange Array Elements by Sign
2274Keep Multiplying Found Values by Two
2285Design Bitset
2288Count Operations to Obtain Zero
2294Minimum Time to Complete Trips
2301Count Array Pairs Divisible by K
2302Order Two Columns Independently
2304Cells in a Range on an Excel Sheet
2305Append K Integers With Minimal Sum
2307Replace Non-Coprime Numbers in Array
2309Maximize Number of Subsequences in a String
2313Longest Winning Streak
2324Find Triangular Sum of an Array
2325Number of Ways to Select Buildings
2326Sum of Scores of Built Strings
2330Maximum Total Beauty of the Gardens
2333Count Number of Rectangles Containing Each Point
2334Number of Flowers in Full Bloom
2337Remove Digit From Number to Maximize Result
2339K Divisible Elements Subarrays
2340Total Appeal of A String
2342Minimum Average Difference
2347Count Nodes Equal to Average of Subtree
2348Count Number of Texts
2350Find Closest Number to Zero
2354Minimum Health to Beat Game
2355Maximum Consecutive Floors Without Special Floors
2358Number of Ways to Split Array
2360Substring With Largest Variance
2362Minimum Rounds to Complete All Tasks
2364Longest Path With Different Adjacent Characters
2366Maximum Bags With Full Capacity of Rocks
2368Sum of Total Strength of Wizards
2369Maximum Sum Score of Array
2370Users With Two Purchases Within Seven Days
2372Rearrange Characters to Make Target String
2373Apply Discount to Prices
2374Steps to Make Array Non-decreasing
2376Number of Times a Driver Was a Passenger
2383Add Two Integers
2384Root Equals Sum of Children
2387Partition Array Such That Maximum Difference Is K
2388Replace Elements in an Array
2389Design a Text Editor
2394Count Subarrays With Score Less Than K
2395Longest Binary Subsequence Less Than or Equal to K
2400Minimum Score After Removals on a Tree
2403Count Unreachable Pairs of Nodes in an Undirected Graph
2405Minimum Number of Keypresses
2408Number of People Aware of a Secret
2409Number of Increasing Paths in a Grid
2413Smallest Number in Infinite Set
2414Move Pieces to Obtain a String
2418Minimum Sum of Squared Difference
2421Maximum Number of Pairs in Array
2428Equal Row and Column Pairs
2429Design a Food Rating System
2431Products With Three or More Orders in Two Consecutive Years
2433Best Poker Hand
2435Shortest Impossible Sequence of Rolls
2436Make Array Zero by Subtracting Equal Amounts
2443Check if There is a Valid Partition For The Array
2449Maximum Number of Robots Within Budget
2450Minimum Replacements to Sort the Array
2451Product Sales Analysis IV
2452Product Sales Analysis V
2456Construct Smallest Number From DI String
2457Count Special Integers
2458Find Minimum Time to Finish All Jobs II
2461Amount of Time for Binary Tree to Be Infected
2462Find the K-Sum of an Array
2464Time Needed to Rearrange a Binary String
2468Valid Palindrome IV
2470Removing Stars From a String
2471Minimum Amount of Time to Collect Garbage
2473Max Sum of a Pair With Equal Sum of Digits
2474Minimum Adjacent Swaps to Make a Valid Array
2477Number of Ways to Reach a Position After Exactly k Steps
2481Strictly Palindromic Number
2487Optimal Partition of String
2488Divide Intervals Into Minimum Number of Groups
2490Maximum Number of Books You Can Take
2491Smallest Even Multiple
2497Maximum Matching of Players With Trainers
2498Smallest Subarrays With Maximum Bitwise OR
2499Minimum Money Required Before Transactions
2504Find All Good Indices
2520Using a Robot to Print the Lexicographically Smallest String
2530Minimize Maximum of Array
2534Employees With Deductions
2538Minimum Cost to Make Array Equal
2541Sum of Number and Its Reverse
2552Maximum Sum of Distinct Subarrays With Length K
2553Total Cost to Hire K Workers
2555Design SQL
2558Minimum Number of Operations to Sort a Binary Tree by Level
2561Number of Distinct Averages
2565Merge Operations to Turn Array Into a Palindrome
2566Number of Unequal Triplets in Array
2571Find the Pivot Integer
2572Append Characters to String to Make Subsequence
2573Remove Nodes From Linked List
2576Minimum Penalty for a Shop
2586Longest Square Streak in an Array
2587Design Memory Allocator
2590Maximum Star Sum of a Graph
2603Reward Top K Students
2606Difference Between Ones and Zeros in Row and Column
2613Customers With Strictly Increasing Purchases
2614Maximum Count of Positive Integer and Negative Integer
2617Time Taken to Cross the Door
2621Find Xor-Beauty of Array
2636Maximum Subsequence Score
2646Kth Largest Sum in a Binary Tree
2650Split With Minimum Sum
2658Count the Number of K-Big Indices
2669Find the Substring With Maximum Cost
2670Make K-Subarray Sums Equal
2677Cousins in Binary Tree II
2681Put Marbles in Bags
2684Determine the Winner of a Bowling Game
2692Take Gifts From the Richest Pile
2713Find the Divisibility Array of a String
2720Minimize the Maximum Difference of Pairs
2724Convert an Array Into a 2D Array With Conditions
2732Counter
2734Array Prototype Last
2738Count the Number of K-Free Subsets
2741Function Composition
2743Debounce
2755Extra Characters in a String
2756Buy Two Chocolates
2757Count of Integers
2762Cache With Time Limit
2789Counter II
2794Maximum Number of Moves in a Grid
2796Allow One Function Call
2808Painting the Walls
2809Create Hello World Function
2810Collecting Chocolates
2812Find the Maximum Achievable Number
2813To Be Or Not To Be
2818Maximum Strictly Increasing Cells in a Matrix
2834Relocate Marbles
2868Continuous Subarrays
2871Double a Number Represented as a Linked List
2884Length of the Longest Valid Substring
2921Count Stepping Numbers in Range
2954Maximum Sum of Almost Unique Subarray
2979Maximize the Profit as the Salesman
2995Number of Unique Categories
3018Make String a Subsequence Using Cyclic Increments
3019Furthest Point From Origin
3025Minimum Operations to Form Subsequence With Target Sum
3045Minimum Right Shifts to Sort the Array
3062Create a DataFrame from List
3088Maximal Range That Each Element Is Maximum in It
3094Minimum Number of Operations to Make Array Empty
3095Maximum Number of Alloys
3139Subarrays Distinct Element Sum of Squares II
3150Shortest and Lexicographically Smallest Beautiful String
3182Maximum Linear Stock Score
3183Find the K-or of an Array
3184Maximum Balanced Subsequence Sum
3194Find Words Containing Character
3199Distribute Candies Among Children I
3201Distribute Candies Among Children II
3207Make Three Strings Equal
3208Count Beautiful Substrings II
3210Count Beautiful Substrings I
3211Find Maximum Non-decreasing Array Length
3216Distribute Candies Among Children III
Read More

Previous Questions

Apple

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
59Spiral Matrix II
61Rotate List
62Unique Paths
63Unique Paths II
64Minimum Path Sum
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
87Scramble String
88Merge Sorted Array
89Gray Code
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
96Unique Binary Search Trees
97Interleaving String
98Validate Binary Search Tree
99Recover Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
108Convert Sorted Array to Binary Search Tree
109Convert Sorted List to Binary Search Tree
113Path Sum II
114Flatten Binary Tree to Linked List
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
118Pascal’s Triangle
119Pascal’s Triangle II
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
130Surrounded Regions
131Palindrome Partitioning
132Palindrome Partitioning II
133Clone Graph
134Gas Station
136Single Number
137Single Number II
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
144Binary Tree Preorder Traversal
145Binary Tree Postorder Traversal
146LRU Cache
148Sort List
149Max Points on a Line
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
158Read N Characters Given read4 II - Call Multiple Times
160Intersection of Two Linked Lists
162Find Peak Element
165Compare Version Numbers
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
171Excel Sheet Column Number
173Binary Search Tree Iterator
174Dungeon Game
175Combine Two Tables
176Second Highest Salary
178Rank Scores
179Largest Number
180Consecutive Numbers
183Customers Who Never Order
184Department Highest Salary
186Reverse Words in a String II
188Best Time to Buy and Sell Stock IV
189Rotate Array
190Reverse Bits
191Number of 1 Bits
193Valid Phone Numbers
196Delete Duplicate Emails
198House Robber
199Binary Tree Right Side View
200Number of Islands
201Bitwise AND of Numbers Range
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
220Contains Duplicate III
221Maximal Square
222Count Complete Tree Nodes
223Rectangle Area
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
232Implement Queue using Stacks
233Number of Digit One
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
242Valid Anagram
252Meeting Rooms
253Meeting Rooms II
257Binary Tree Paths
258Add Digits
2593Sum Smaller
268Missing Number
269Alien Dictionary
273Integer to English Words
274H-Index
277Find the Celebrity
278First Bad Version
279Perfect Squares
283Move Zeroes
284Peeking Iterator
285Inorder Successor in BST
287Find the Duplicate Number
290Word Pattern
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
300Longest Increasing Subsequence
301Remove Invalid Parentheses
311Sparse Matrix Multiplication
312Burst Balloons
315Count of Smaller Numbers After Self
316Remove Duplicate Letters
322Coin Change
325Maximum Size Subarray Sum Equals k
326Power of Three
328Odd Even Linked List
329Longest Increasing Path in a Matrix
334Increasing Triplet Subsequence
336Palindrome Pairs
341Flatten Nested List Iterator
342Power of Four
343Integer Break
344Reverse String
345Reverse Vowels of a String
346Moving Average from Data Stream
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
350Intersection of Two Arrays II
352Data Stream as Disjoint Intervals
355Design Twitter
357Count Numbers with Unique Digits
359Logger Rate Limiter
362Design Hit Counter
367Valid Perfect Square
368Largest Divisible Subset
371Sum of Two Integers
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
376Wiggle Subsequence
377Combination Sum IV
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
383Ransom Note
384Shuffle an Array
387First Unique Character in a String
389Find the Difference
392Is Subsequence
393UTF-8 Validation
394Decode String
395Longest Substring with At Least K Repeating Characters
399Evaluate Division
400Nth Digit
402Remove K Digits
407Trapping Rain Water II
409Longest Palindrome
410Split Array Largest Sum
412Fizz Buzz
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
419Battleships in a Board
420Strong Password Checker
421Maximum XOR of Two Numbers in an Array
424Longest Repeating Character Replacement
433Minimum Genetic Mutation
435Non-overlapping Intervals
438Find All Anagrams in a String
442Find All Duplicates in an Array
443String Compression
445Add Two Numbers II
448Find All Numbers Disappeared in an Array
450Delete Node in a BST
451Sort Characters By Frequency
452Minimum Number of Arrows to Burst Balloons
455Assign Cookies
456132 Pattern
459Repeated Substring Pattern
460LFU Cache
462Minimum Moves to Equal Array Elements II
463Island Perimeter
465Optimal Account Balancing
468Validate IP Address
473Matchsticks to Square
474Ones and Zeroes
475Heaters
476Number Complement
485Max Consecutive Ones
486Predict the Winner
493Reverse Pairs
494Target Sum
496Next Greater Element I
503Next Greater Element II
508Most Frequent Subtree Sum
516Longest Palindromic Subsequence
518Coin Change II
523Continuous Subarray Sum
525Contiguous Array
528Swapping Nodes in a Linked List
532K-diff Pairs in an Array
540Single Element in a Sorted Array
541Reverse String II
54201 Matrix
543Diameter of Binary Tree
545Boundary of Binary Tree
547Number of Provinces
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
565Array Nesting
566Reshape the Matrix
567Permutation in String
570Managers with at Least 5 Direct Reports
572Subtree of Another Tree
583Delete Operation for Two Strings
584Find Customer Referee
586Customer Placing the Largest Number of Orders
595Big Countries
605Can Place Flowers
609Find Duplicate File in System
610Triangle Judgement
611Valid Triangle Number
617Merge Two Binary Trees
619Biggest Single Number
620Not Boring Movies
621Task Scheduler
627Swap Salary
629K Inverse Pairs Array
632Smallest Range Covering Elements from K Lists
633Sum of Square Numbers
642Design Search Autocomplete System
643Maximum Average Subarray I
646Maximum Length of Pair Chain
647Palindromic Substrings
649Dota2 Senate
653Two Sum IV - Input is a BST
658Find K Closest Elements
659Split Array into Consecutive Subsequences
662Maximum Width of Binary Tree
678Valid Parenthesis String
680Valid Palindrome II
682Baseball Game
684Redundant Connection
690Employee Importance
692Top K Frequent Words
694Number of Distinct Islands
695Max Area of Island
697Degree of an Array
698Partition to K Equal Sum Subsets
714Best Time to Buy and Sell Stock with Transaction Fee
716Max Stack
718Maximum Length of Repeated Subarray
721Accounts Merge
722Remove Comments
724Find Pivot Index
726Number of Atoms
729My Calendar I
730Count Different Palindromic Subsequences
733Flood Fill
735Asteroid Collision
739Daily Temperatures
740Delete and Earn
747Min Cost Climbing Stairs
761Employee Free Time
765Serialize and Deserialize N-ary Tree
768Partition Labels
774Maximum Depth of N-ary Tree
778Reorganize String
782Jewels and Stones
783Search in a Binary Search Tree
785Basic Calculator III
789Kth Largest Element in a Stream
792Binary Search
794Swim in Rising Water
795K-th Symbol in Grammar
797Rabbits in Forest
800Letter Case Permutation
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
807Custom Sort String
812Rotate String
814Smallest Rotation with Highest Score
816Design HashSet
817Design HashMap
826Soup Servings
832Binary Tree Pruning
843Binary Trees With Factors
860Design Circular Queue
861Flipping an Image
866Rectangle Overlap
874Backspace String Compare
877Shortest Path Visiting All Nodes
879Maximize Distance to Closest Person
882Peak Index in a Mountain Array
883Car Fleet
886Score of Parentheses
893All Nodes Distance K in Binary Tree
898Transpose Matrix
900Reordered Power of 2
902Minimum Number of Refueling Stops
907Koko Eating Bananas
908Middle of the Linked List
912Random Pick with Weight
917Boats to Save People
921Spiral Matrix III
923Super Egg Drop
926Find and Replace Pattern
930All Possible Full Binary Trees
931Maximum Frequency Stack
940Fruit Into Baskets
941Sort Array By Parity
943Sum of Subarray Minimums
945Snakes and Ladders
948Sort an Array
952Word Subsets
957Minimum Add to Make Parentheses Valid
972Knight Dialer
975Range Sum of BST
983Validate Stack Sequences
985Bag of Tokens
998Check Completeness of a Binary Tree
1013Fibonacci Number
1014K Closest Points to Origin
1018Largest Perimeter Triangle
1019Squares of a Sorted Array
1021Distribute Coins in Binary Tree
1023Time Based Key-Value Store
1025Minimum Cost For Tickets
1029Vertical Order Traversal of a Binary Tree
1032Satisfiability of Equality Equations
1034Subarrays with K Different Integers
1036Rotting Oranges
1038Number of Squareful Arrays
1039Find the Town Judge
1044Find Common Characters
1054Complement of Base 10 Integer
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1058Lexicographically Smallest Equivalent String
1072Next Greater Node In Linked List
1081Video Stitching
1087Longest Arithmetic Subsequence
1105Uncrossed Lines
1106Escape a Large Maze
1111Minimum Score Triangulation of Polygon
1116Maximum Level Sum of a Binary Tree
1122Longest Duplicate Substring
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1138Grumpy Bookstore Owner
1146Greatest Common Divisor of Strings
1165Meeting Scheduler
1171Shortest Path in Binary Matrix
1184Car Pooling
1185Find in Mountain Array
1187Print FooBar Alternately
1205Defanging an IP Address
1212Sequential Digits
1217Relative Sort Array
1221Element Appearing More Than 25% In Sorted Array
1224Minimum Falling Path Sum II
1227Number of Equivalent Domino Pairs
1236N-th Tribonacci Number
1249Snapshot Array
1250Longest Common Subsequence
1254Deepest Leaves Sum
1263Number of Dice Rolls With Target Sum
1279Prime Arrangements
1283Reformat Date
1285Balance a Binary Search Tree
1294Range Frequency Queries
1319Unique Number of Occurrences
1320Remove All Adjacent Duplicates in String II
1331Path with Maximum Gold
1340The Dining Philosophers
1348Maximum Score Of Spliced Array
1349Check If It Is a Straight Line
1352Maximum Profit in Job Scheduling
1356Minimum Number of Moves to Make Palindrome
1397Search Suggestions System
1400Find Winner on a Tic Tac Toe Game
1406Subtract the Product and Sum of Digits of an Integer
1407Group the People Given the Group Size They Belong To
1408Find the Smallest Divisor Given a Threshold
1414Shortest Path in a Grid with Obstacles Elimination
1418Fair Distribution of Cookies
1444Number of Steps to Reduce a Number to Zero
1446Angle Between Hands of a Clock
1461Count All Valid Pickup and Delivery Options
1463The K Weakest Rows in a Matrix
1476Count Negative Numbers in a Sorted Matrix
1477Product of the Last K Numbers
1478Maximum Number of Events That Can Be Attended
1482How Many Numbers Are Smaller Than the Current Number
1489Pizza With 3n Slices
1492Time Needed to Inform All Employees
1503Reducing Dishes
1510Find Lucky Integer in an Array
1528Kids With the Greatest Number of Candies
1542Consecutive Characters
1559Cherry Pickup II
1567Maximum Number of Vowels in a Substring of Given Length
1580Shuffle the Array
1582Design Browser History
1586Longest Subarray of 1’s After Deleting One Element
1603Running Sum of 1d Array
1630Count Odd Numbers in an Interval Range
1635Number of Good Pairs
1651Shuffle String
1653Number of Good Leaf Nodes Pairs
1669Minimum Cost to Cut a Stick
1677Matrix Diagonal Sum
1706Min Cost to Connect All Points
1713Dot Product of Two Sparse Vectors
1724Customer Who Visited but Did Not Make Any Transactions
1738Maximal Network Rank
1741Sort Array by Increasing Frequency
1748Best Team With No Conflicts
1761Count Sorted Vowel Strings
1762Furthest Building You Can Reach
1766Minimum Number of Removals to Make Mountain Array
1776Minimum Operations to Reduce X to Zero
1781Check If Two String Arrays are Equivalent
1790Lowest Common Ancestor of a Binary Tree III
1791Richest Customer Wealth
1797Goal Parser Interpretation
1798Max Number of K-Sum Pairs
1801Average Time of Process per Machine
1807Partitioning Into Minimum Number Of Deci-Binary Numbers
1814Jump Game VI
1829Maximum Units on a Truck
1833Find the Highest Altitude
1894Merge Strings Alternately
1896Maximum Score from Performing Multiplication Operations
1899Count Items Matching a Rule
1900Closest Dessert Cost
1908Recyclable and Low Fat Products
1918Maximum Score of a Good Subarray
1929Maximum Value at a Given Index in a Bounded Array
1948Rearrange Products Table
1966Frequency of the Most Frequent Element
1983Maximum Population Year
2020Remove One Element to Make the Array Strictly Increasing
2024Calculate Special Bonus
2028The Earliest and Latest Rounds Where Players Compete
2042Maximum Product Difference Between Two Pairs
2048Build Array from Permutation
2058Concatenation of Array
2095Minimum Number of Swaps to Make the String Balanced
2101Last Day Where You Can Still Cross
2118Maximum Earnings From Taxi
2119Minimum Number of Operations to Make Array Continuous
2133Number of Pairs of Strings With Concatenation Equal to Target
2137Final Value of Variable After Performing Operations
2152The Number of Seniors and Juniors to Join the Company
2162Partition Array Into Two Arrays to Minimize Sum Difference
2168Check if Numbers Are Ascending in a Sentence
2199Two Furthest Houses With Different Colors
2205Find Good Days to Rob the Bank
2210Find Target Indices After Sorting Array
2215Finding 3-Digit Even Numbers
2219Maximum Number of Words Found in Sentences
2221Check if a Parentheses String Can Be Valid
2227Sum of Subarray Ranges
2237Longest Palindrome by Concatenating Two Letter Words
2265Partition Array According to Given Pivot
2294Minimum Time to Complete Trips
2337Remove Digit From Number to Maximize Result
2368Sum of Total Strength of Wizards
2383Add Two Integers
2384Root Equals Sum of Children
2428Equal Row and Column Pairs
2472Build a Matrix With Conditions
2482Maximum Rows Covered by Columns
2491Smallest Even Multiple
2502Sort the People
2571Find the Pivot Integer
2720Minimize the Maximum Difference of Pairs
2732Counter
2747Apply Transform Over Each Element in Array
2808Painting the Walls
2809Create Hello World Function
2857Total Distance Traveled
2858Join Two Arrays by ID
3017Number of Beautiful Integers in the Range
3062Create a DataFrame from List
Read More

Previous Questions

Bloomberg

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
60Permutation Sequence
61Rotate List
62Unique Paths
63Unique Paths II
64Minimum Path Sum
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
77Combinations
78Subsets
79Word Search
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
86Partition List
88Merge Sorted Array
89Gray Code
90Subsets II
91Decode Ways
92Reverse Linked List II
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
96Unique Binary Search Trees
97Interleaving String
98Validate Binary Search Tree
99Recover Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
113Path Sum II
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
119Pascal’s Triangle II
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
130Surrounded Regions
131Palindrome Partitioning
133Clone Graph
134Gas Station
135Candy
136Single Number
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
145Binary Tree Postorder Traversal
146LRU Cache
148Sort List
149Max Points on a Line
150Evaluate Reverse Polish Notation
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
155Min Stack
158Read N Characters Given read4 II - Call Multiple Times
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
162Find Peak Element
164Maximum Gap
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
172Factorial Trailing Zeroes
173Binary Search Tree Iterator
174Dungeon Game
175Combine Two Tables
177Nth Highest Salary
179Largest Number
181Employees Earning More Than Their Managers
183Customers Who Never Order
188Best Time to Buy and Sell Stock IV
189Rotate Array
191Number of 1 Bits
197Rising Temperature
198House Robber
199Binary Tree Right Side View
200Number of Islands
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
213House Robber II
215Kth Largest Element in an Array
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
222Count Complete Tree Nodes
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
228Summary Ranges
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
232Implement Queue using Stacks
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
252Meeting Rooms
253Meeting Rooms II
257Binary Tree Paths
258Add Digits
260Single Number III
261Graph Valid Tree
262Trips and Users
263Ugly Number
264Ugly Number II
266Palindrome Permutation
268Missing Number
269Alien Dictionary
274H-Index
278First Bad Version
279Perfect Squares
283Move Zeroes
287Find the Duplicate Number
289Game of Life
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
300Longest Increasing Subsequence
301Remove Invalid Parentheses
308Range Sum Query 2D - Mutable
309Best Time to Buy and Sell Stock with Cooldown
311Sparse Matrix Multiplication
312Burst Balloons
314Binary Tree Vertical Order Traversal
315Count of Smaller Numbers After Self
322Coin Change
326Power of Three
328Odd Even Linked List
332Reconstruct Itinerary
333Largest BST Subtree
334Increasing Triplet Subsequence
338Counting Bits
341Flatten Nested List Iterator
343Integer Break
345Reverse Vowels of a String
347Top K Frequent Elements
349Intersection of Two Arrays
350Intersection of Two Arrays II
353Design Snake Game
354Russian Doll Envelopes
359Logger Rate Limiter
362Design Hit Counter
366Find Leaves of Binary Tree
368Largest Divisible Subset
371Sum of Two Integers
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
384Shuffle an Array
386Lexicographical Numbers
387First Unique Character in a String
389Find the Difference
390Elimination Game
392Is Subsequence
394Decode String
397Integer Replacement
399Evaluate Division
400Nth Digit
402Remove K Digits
404Sum of Left Leaves
405Convert a Number to Hexadecimal
410Split Array Largest Sum
412Fizz Buzz
413Arithmetic Slices
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
420Strong Password Checker
421Maximum XOR of Two Numbers in an Array
424Longest Repeating Character Replacement
433Minimum Genetic Mutation
435Non-overlapping Intervals
437Path Sum III
441Arranging Coins
443String Compression
445Add Two Numbers II
447Number of Boomerangs
450Delete Node in a BST
451Sort Characters By Frequency
4544Sum II
458Poor Pigs
460LFU Cache
463Island Perimeter
490The Maze
492Construct the Rectangle
493Reverse Pairs
494Target Sum
496Next Greater Element I
501Find Mode in Binary Search Tree
503Next Greater Element II
506Relative Ranks
511All Paths from Source Lead to Destination
515Find Largest Value in Each Tree Row
516Longest Palindromic Subsequence
518Coin Change II
523Continuous Subarray Sum
524Longest Word in Dictionary through Deleting
528Swapping Nodes in a Linked List
529Minesweeper
532K-diff Pairs in an Array
535Encode and Decode TinyURL
539Minimum Time Difference
540Single Element in a Sorted Array
54201 Matrix
543Diameter of Binary Tree
545Boundary of Binary Tree
547Number of Provinces
550Shortest Path to Get Food
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
566Reshape the Matrix
567Permutation in String
570Managers with at Least 5 Direct Reports
582Kill Process
583Delete Operation for Two Strings
588Design In-Memory File System
595Big Countries
605Can Place Flowers
611Valid Triangle Number
626Exchange Seats
628Maximum Product of Three Numbers
632Smallest Range Covering Elements from K Lists
633Sum of Square Numbers
636Exclusive Time of Functions
642Design Search Autocomplete System
647Palindromic Substrings
652Find Duplicate Subtrees
653Two Sum IV - Input is a BST
658Find K Closest Elements
659Split Array into Consecutive Subsequences
661Image Smoother
662Maximum Width of Binary Tree
665Non-decreasing Array
669Trim a Binary Search Tree
676Implement Magic Dictionary
678Valid Parenthesis String
680Valid Palindrome II
684Redundant Connection
692Top K Frequent Words
694Number of Distinct Islands
695Max Area of Island
697Degree of an Array
698Partition to K Equal Sum Subsets
714Best Time to Buy and Sell Stock with Transaction Fee
715Range Module
716Max Stack
718Maximum Length of Repeated Subarray
721Accounts Merge
723Candy Crush
724Find Pivot Index
729My Calendar I
733Flood Fill
739Daily Temperatures
740Delete and Earn
744Network Delay Time
745Find Smallest Letter Greater Than Target
747Min Cost Climbing Stairs
750Contain Virus
764N-ary Tree Level Order Traversal
765Serialize and Deserialize N-ary Tree
766Flatten a Multilevel Doubly Linked List
777Toeplitz Matrix
778Reorganize String
779Max Chunks To Make Sorted II
780Max Chunks To Make Sorted
792Binary Search
795K-th Symbol in Grammar
796Reaching Points
803Cheapest Flights Within K Stops
807Custom Sort String
812Rotate String
813All Paths From Source to Target
820Find Eventual Safe States
826Soup Servings
843Binary Trees With Factors
854Making A Large Island
855Count Unique Characters of All Substrings of a Given String
860Design Circular Queue
864Image Overlap
873Guess the Word
874Backspace String Compare
875Longest Mountain in Array
877Shortest Path Visiting All Nodes
878Shifting Letters
879Maximize Distance to Closest Person
882Peak Index in a Mountain Array
883Car Fleet
886Score of Parentheses
888Mirror Reflection
889Buddy Strings
890Lemonade Change
893All Nodes Distance K in Binary Tree
898Transpose Matrix
907Koko Eating Bananas
908Middle of the Linked List
917Boats to Save People
922Possible Bipartition
924Fair Candy Swap
930All Possible Full Binary Trees
931Maximum Frequency Stack
937Online Stock Span
944Smallest Range I
948Sort an Array
954Maximum Sum Circular Subarray
961Long Pressed Name
967Minimum Falling Path Sum
969Number of Recent Calls
971Shortest Bridge
972Knight Dialer
985Bag of Tokens
1007Numbers With Same Consecutive Differences
1013Fibonacci Number
1019Squares of a Sorted Array
1023Time Based Key-Value Store
1025Minimum Cost For Tickets
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1033Broken Calculator
1035Cousins in Binary Tree
1036Rotting Oranges
1039Find the Town Judge
1046Max Consecutive Ones III
1050Construct Binary Search Tree from Preorder Traversal
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1073Number of Enclaves
1095Two City Scheduling
1105Uncrossed Lines
1119Robot Bounded In Circle
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1130Last Stone Weight II
1165Meeting Scheduler
1170Shortest Common Supersequence
1171Shortest Path in Binary Matrix
1176Design A Leaderboard
1179Game Play Analysis I
1184Car Pooling
1185Find in Mountain Array
1194Path In Zigzag Labelled Binary Tree
1196Filling Bookcase Shelves
1212Sequential Digits
1228Minimum Cost Tree From Leaf Values
1229Shortest Path with Alternating Colors
1233Number of Ships in a Rectangle
1240Stone Game II
1245User Activity for the Past 30 Days I
1250Longest Common Subsequence
1253Sort the Matrix Diagonally
1255Reverse Subarray To Maximize Array Value
1256Rank Transform of an Array
1258Article Views I
1263Number of Dice Rolls With Target Sum
1271Web Crawler
1272Invalid Transactions
1300Critical Connections in a Network
1306Minimum Absolute Difference
1319Unique Number of Occurrences
1320Remove All Adjacent Duplicates in String II
1371Minimum Remove to Make Valid Parentheses
1382Calculate Amount Paid in Taxes
1388Greatest Sum Divisible by Three
1414Shortest Path in a Grid with Obstacles Elimination
1427All Elements in Two Binary Search Trees
1451Minimum Number of Taps to Open to Water a Garden
1454Remove Palindromic Subsequences
1460Number of Substrings Containing All Three Characters
1464Reduce Array Size to The Half
1465Maximum Product of Splitted Binary Tree
1469Minimum Number of Steps to Make Two Strings Anagram
1476Count Negative Numbers in a Sorted Matrix
1479Construct Target Array With Multiple Sums
1488Sort Integers by The Power Value
1492Time Needed to Inform All Employees
1503Reducing Dishes
1512Design Underground System
1537Maximum Score After Splitting a String
1538Maximum Points You Can Obtain from Cards
1569Max Dot Product of Two Subsequences
1571Allocate Mailboxes
1576Reorder Routes to Make All Paths Lead to the City Zero
1580Shuffle the Array
1582Design Browser History
1603Running Sum of 1d Array
1605Minimum Number of Days to Make m Bouquets
1617Stone Game IV
1621Number of Subsequences That Satisfy the Given Sum Condition
1646Kth Missing Positive Number
1650Find Root of N-Ary Tree
1669Minimum Cost to Cut a Stick
1676Minimum Number of Days to Eat N Oranges
1700Minimum Time to Make Rope Colorful
1704Special Positions in a Binary Matrix
1705Count Unhappy Friends
1708Design Parking System
1713Dot Product of Two Sparse Vectors
1731Even Odd Tree
1737Maximum Nesting Depth of the Parentheses
1741Sort Array by Increasing Frequency
1762Furthest Building You Can Reach
1770Minimum Deletions to Make Character Frequencies Unique
1775Design an Ordered Stream
1782Smallest String With A Given Numeric Value
1798Max Number of K-Sum Pairs
1801Average Time of Process per Machine
1814Jump Game VI
1829Maximum Units on a Truck
1838Number of Distinct Substrings in a String
1903Design Most Recently Used Queue
1906Maximize Score After N Operations
1908Recyclable and Low Fat Products
1915Check if One String Swap Can Make Strings Equal
1929Maximum Value at a Given Index in a Bounded Array
1944Truncate Sentence
1948Rearrange Products Table
1951Find the Winner of the Circular Game
1960Check if the Sentence Is Pangram
1969Maximum Number of Accepted Invitations
1970Sorting the Sentence
1983Maximum Population Year
1992Sort Linked List Already Sorted Using Absolute Values
2005Check if All the Integers in a Range Are Covered
2015Determine Whether Matrix Can Be Obtained By Rotation
2042Maximum Product Difference Between Two Pairs
2090Number of Ways to Arrive at Destination
2091Number of Ways to Separate Numbers
2137Final Value of Variable After Performing Operations
2161Stock Price Fluctuation
2213Find All People With Secret
2246Maximum Employees to Be Invited to a Meeting
2271Rearrange Array Elements by Sign
2283Sort Even and Odd Indices Independently
2285Design Bitset
2286Minimum Time to Remove All Cars Containing Illegal Goods
2331Intersection of Multiple Arrays
2334Number of Flowers in Full Bloom
2357Count Integers in Intervals
2360Substring With Largest Variance
2383Add Two Integers
2532Remove Letter To Equalize Frequency
2554Minimum Total Distance Traveled
2598Shortest Distance to Target String in a Circular Array
2614Maximum Count of Positive Integer and Negative Integer
2646Kth Largest Sum in a Binary Tree
2714Left and Right Sum Differences
2733Sleep
2739Minimize the Total Price of the Trips
2754Maximum Strength of a Group
2755Extra Characters in a String
Read More

Previous Questions

Facebook

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
59Spiral Matrix II
61Rotate List
62Unique Paths
63Unique Paths II
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
87Scramble String
88Merge Sorted Array
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
98Validate Binary Search Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
109Convert Sorted List to Binary Search Tree
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
113Path Sum II
114Flatten Binary Tree to Linked List
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
131Palindrome Partitioning
133Clone Graph
134Gas Station
135Candy
136Single Number
138Copy List with Random Pointer
139Word Break
140Word Break II
143Reorder List
146LRU Cache
148Sort List
150Evaluate Reverse Polish Notation
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
155Min Stack
157Read N Characters Given Read4
158Read N Characters Given read4 II - Call Multiple Times
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
161One Edit Distance
162Find Peak Element
163Missing Ranges
164Maximum Gap
166Fraction to Recurring Decimal
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
171Excel Sheet Column Number
173Binary Search Tree Iterator
179Largest Number
180Consecutive Numbers
181Employees Earning More Than Their Managers
184Department Highest Salary
185Department Top Three Salaries
189Rotate Array
190Reverse Bits
191Number of 1 Bits
198House Robber
199Binary Tree Right Side View
200Number of Islands
202Happy Number
203Remove Linked List Elements
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
213House Robber II
215Kth Largest Element in an Array
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
221Maximal Square
223Rectangle Area
224Basic Calculator
226Invert Binary Tree
227Basic Calculator II
229Majority Element II
230Kth Smallest Element in a BST
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
243Shortest Word Distance
246Strobogrammatic Number
247Strobogrammatic Number II
249Group Shifted Strings
252Meeting Rooms
253Meeting Rooms II
257Binary Tree Paths
2593Sum Smaller
260Single Number III
261Graph Valid Tree
263Ugly Number
265Paint House II
266Palindrome Permutation
267Palindrome Permutation II
268Missing Number
269Alien Dictionary
270Closest Binary Search Tree Value
271Encode and Decode Strings
273Integer to English Words
274H-Index
275H-Index II
277Find the Celebrity
278First Bad Version
282Expression Add Operators
283Move Zeroes
284Peeking Iterator
285Inorder Successor in BST
286Walls and Gates
287Find the Duplicate Number
290Word Pattern
295Find Median from Data Stream
296Best Meeting Point
297Serialize and Deserialize Binary Tree
298Binary Tree Longest Consecutive Sequence
299Bulls and Cows
300Longest Increasing Subsequence
301Remove Invalid Parentheses
303Range Sum Query - Immutable
304Range Sum Query 2D - Immutable
310Minimum Height Trees
311Sparse Matrix Multiplication
314Binary Tree Vertical Order Traversal
317Shortest Distance from All Buildings
319Bulb Switcher
322Coin Change
323Number of Connected Components in an Undirected Graph
325Maximum Size Subarray Sum Equals k
328Odd Even Linked List
329Longest Increasing Path in a Matrix
332Reconstruct Itinerary
333Largest BST Subtree
334Increasing Triplet Subsequence
337House Robber III
338Counting Bits
339Nested List Weight Sum
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
343Integer Break
344Reverse String
346Moving Average from Data Stream
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
350Intersection of Two Arrays II
366Find Leaves of Binary Tree
367Valid Perfect Square
371Sum of Two Integers
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
383Ransom Note
384Shuffle an Array
386Lexicographical Numbers
387First Unique Character in a String
392Is Subsequence
394Decode String
398Random Pick Index
399Evaluate Division
402Remove K Digits
404Sum of Left Leaves
406Queue Reconstruction by Height
408Valid Word Abbreviation
410Split Array Largest Sum
412Fizz Buzz
415Add Strings
416Partition Equal Subset Sum
419Battleships in a Board
424Longest Repeating Character Replacement
435Non-overlapping Intervals
437Path Sum III
438Find All Anagrams in a String
442Find All Duplicates in an Array
443String Compression
445Add Two Numbers II
448Find All Numbers Disappeared in an Array
450Delete Node in a BST
451Sort Characters By Frequency
452Minimum Number of Arrows to Burst Balloons
460LFU Cache
461Hamming Distance
463Island Perimeter
477Total Hamming Distance
480Sliding Window Median
490The Maze
493Reverse Pairs
494Target Sum
496Next Greater Element I
498Diagonal Traverse
501Find Mode in Binary Search Tree
503Next Greater Element II
509Inorder Successor in BST II
515Find Largest Value in Each Tree Row
516Longest Palindromic Subsequence
518Coin Change II
523Continuous Subarray Sum
525Contiguous Array
528Swapping Nodes in a Linked List
529Minesweeper
530Minimum Absolute Difference in BST
535Encode and Decode TinyURL
536Construct Binary Tree from String
538Convert BST to Greater Tree
540Single Element in a Sorted Array
54201 Matrix
543Diameter of Binary Tree
545Boundary of Binary Tree
554Brick Wall
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
567Permutation in String
572Subtree of Another Tree
578Get Highest Answer Rate Question
583Delete Operation for Two Strings
593Valid Square
595Big Countries
597Friend Requests I: Overall Acceptance Rate
602Friend Requests II: Who Has the Most Friends
605Can Place Flowers
606Construct String from Binary Tree
610Triangle Judgement
611Valid Triangle Number
616Add Bold Tag in String
617Merge Two Binary Trees
621Task Scheduler
623Add One Row to Tree
633Sum of Square Numbers
636Exclusive Time of Functions
637Average of Levels in Binary Tree
639Decode Ways II
642Design Search Autocomplete System
643Maximum Average Subarray I
647Palindromic Substrings
649Dota2 Senate
653Two Sum IV - Input is a BST
658Find K Closest Elements
661Image Smoother
662Maximum Width of Binary Tree
669Trim a Binary Search Tree
670Maximum Swap
673Number of Longest Increasing Subsequence
674Longest Continuous Increasing Subsequence
676Implement Magic Dictionary
678Valid Parenthesis String
680Valid Palindrome II
684Redundant Connection
687Longest Univalue Path
689Maximum Sum of 3 Non-Overlapping Subarrays
691Stickers to Spell Word
692Top K Frequent Words
695Max Area of Island
698Partition to K Equal Sum Subsets
711Number of Distinct Islands II
713Subarray Product Less Than K
714Best Time to Buy and Sell Stock with Transaction Fee
716Max Stack
721Accounts Merge
723Candy Crush
724Find Pivot Index
733Flood Fill
735Asteroid Collision
739Daily Temperatures
740Delete and Earn
746Prefix and Suffix Search
751Number Of Corner Rectangles
753Open the Lock
758Convert Binary Search Tree to Sorted Doubly Linked List
766Flatten a Multilevel Doubly Linked List
768Partition Labels
769Largest Plus Sign
777Toeplitz Matrix
778Reorganize String
785Basic Calculator III
789Kth Largest Element in a Stream
792Binary Search
794Swim in Rising Water
795K-th Symbol in Grammar
800Letter Case Permutation
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
804Rotated Digits
807Custom Sort String
808Number of Matching Subsequences
813All Paths From Source to Target
817Design HashMap
819Minimum Swaps To Make Sequences Increasing
832Binary Tree Pruning
850Insert into a Sorted Circular Linked List
851Goat Latin
852Friends Of Appropriate Ages
854Making A Large Island
860Design Circular Queue
863Sum of Distances in Tree
865Robot Room Cleaner
866Rectangle Overlap
877Shortest Path Visiting All Nodes
882Peak Index in a Mountain Array
886Score of Parentheses
889Buddy Strings
893All Nodes Distance K in Binary Tree
896Smallest Subtree with all the Deepest Nodes
907Koko Eating Bananas
908Middle of the Linked List
912Random Pick with Weight
929Groups of Special-Equivalent Strings
930All Possible Full Binary Trees
931Maximum Frequency Stack
932Monotonic Array
933Increasing Order Search Tree
937Online Stock Span
941Sort Array By Parity
948Sort an Array
955Complete Binary Tree Inserter
957Minimum Add to Make Parentheses Valid
971Shortest Bridge
972Knight Dialer
975Range Sum of BST
976Minimum Area Rectangle
978Valid Mountain Array
990Verifying an Alien Dictionary
998Check Completeness of a Binary Tree
1008Binary Tree Cameras
1014K Closest Points to Origin
1016Subarray Sums Divisible by K
1019Squares of a Sorted Array
1025Minimum Cost For Tickets
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1031Add to Array-Form of Integer
1035Cousins in Binary Tree
1038Number of Squareful Arrays
1040Maximum Binary Tree II
1046Max Consecutive Ones III
1050Construct Binary Search Tree from Preorder Traversal
1051Shortest Way to Form String
1056Capacity To Ship Packages Within D Days
1059Missing Element in Sorted Array
1073Number of Enclaves
1078Remove Outermost Parentheses
1091Maximum Average Subtree
1092Maximum Difference Between Node and Ancestor
1095Two City Scheduling
1099Path With Maximum Minimum Value
1103Moving Stones Until Consecutive
1113Moving Stones Until Consecutive II
1114Binary Search Tree to Greater Sum Tree
1116Maximum Level Sum of a Binary Tree
1121Partition Array for Maximum Sum
1128Remove All Adjacent Duplicates In String
1139Previous Permutation With One Swap
1142Minimum Knight Moves
1149Intersection of Three Sorted Arrays
1161Project Employees I
1162Project Employees II
1163Project Employees III
1171Shortest Path in Binary Matrix
1176Design A Leaderboard
1177Tree Diameter
1178Valid Palindrome III
1184Car Pooling
1185Find in Mountain Array
1205Defanging an IP Address
1207Delete Nodes And Return Forest
1215Reported Posts
1218Lowest Common Ancestor of Deepest Leaves
1221Element Appearing More Than 25% In Sorted Array
1222Remove Covered Intervals
1231Replace Elements with Greatest Element on Right Side
1237Reported Posts II
1245User Activity for the Past 30 Days I
1246User Activity for the Past 30 Days II
1256Rank Transform of an Array
1271Web Crawler
1275Validate Binary Tree Nodes
1285Balance a Binary Search Tree
1288Maximum Subarray Sum with One Deletion
1296Kth Ancestor of a Tree Node
1300Critical Connections in a Network
1305Number of Visible People in a Queue
1319Unique Number of Occurrences
1320Remove All Adjacent Duplicates in String II
1337Design Skiplist
1338Queries Quality and Percentage
1357Report Contiguous Dates
1366First Unique Number
1368Web Crawler Multithreaded
1371Minimum Remove to Make Valid Parentheses
1374Leftmost Column with at Least a One
1377Number of Comments per Post
1382Calculate Amount Paid in Taxes
1397Search Suggestions System
1399Page Recommendations
1400Find Winner on a Tic Tac Toe Game
1404Print Immutable Linked List in Reverse
1406Subtract the Product and Sum of Digits of an Integer
1414Shortest Path in a Grid with Obstacles Elimination
1427All Elements in Two Binary Search Trees
1446Angle Between Hands of a Clock
1453Ads Performance
1459Apply Discount Every n Orders
1460Number of Substrings Containing All Three Characters
1466Jump Game V
1498Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1516The k-th Lexicographical String of All Happy Strings of Length n
1536Customers Who Bought Products A and B but Not C
1539Diagonal Traverse II
1542Consecutive Characters
1550Find the Kth Smallest Sum of a Matrix With Sorted Rows
1554Minimum Time to Collect All Apples in a Tree
1556Make Two Arrays Equal by Reversing Subarrays
1563Maximum Number of Darts Inside of a Circular Dartboard
1578Apples & Oranges
1579Active Users
1585The kth Factor of n
1603Running Sum of 1d Array
1621Number of Subsequences That Satisfy the Given Sum Condition
1635Number of Good Pairs
1646Kth Missing Positive Number
1648Minimum Insertions to Balance a Parentheses String
1663Detect Cycles in 2D Grid
1665Diameter of N-Ary Tree
1693Sum of All Odd Length Subarrays
1706Min Cost to Connect All Points
1713Dot Product of Two Sparse Vectors
1729Binary Search Tree Iterator II
1737Maximum Nesting Depth of the Parentheses
1760Check Array Formation Through Concatenation
1777Determine if Two Strings Are Close
1780Lowest Common Ancestor of a Binary Tree II
1781Check If Two String Arrays are Equivalent
1782Smallest String With A Given Numeric Value
1790Lowest Common Ancestor of a Binary Tree III
1801Average Time of Process per Machine
1819Construct the Lexicographically Largest Valid Sequence
1842Number of Calls Between Two Persons
1848Sum of Unique Elements
1883Find Distance in a Binary Tree
1894Merge Strings Alternately
1899Count Items Matching a Rule
1908Recyclable and Low Fat Products
1909Buildings With an Ocean View
1915Check if One String Swap Can Make Strings Equal
1931Shortest Path in a Hidden Grid
1942Primary Department for Each Employee
1951Find the Winner of the Circular Game
1959Minimum Path Cost in a Hidden Grid
1960Check if the Sentence Is Pangram
1962Single-Threaded CPU
1970Sorting the Sentence
1980Faulty Sensor
1995Finding Pairs With a Certain Sum
2019Product of Two Run-Length Encoded Arrays
2020Remove One Element to Make the Array Strictly Increasing
2038Nearest Exit from Entrance in Maze
2040Minimum Cost to Reach Destination in Time
2045Cutting Ribbons
2046Page Recommendations II
2048Build Array from Permutation
2078Maximum Compatibility Score Sum
2090Number of Ways to Arrive at Destination
2095Minimum Number of Swaps to Make the String Balanced
2097Strong Friendship
2102Find the Middle Index in Array
2107Find Unique Binary String
2123The Number of Weak Characters in the Game
2126Count Nodes Equal to Sum of Descendants
2133Number of Pairs of Strings With Concatenation Equal to Target
2134Maximize the Confusion of an Exam
2140Longest Subsequence Repeated k Times
2160Minimum Operations to Make a Uni-Value Grid
2184Check if an Original String Exists Given Two Encoded Strings
2211K Radius Subarray Averages
2217Step-By-Step Directions From a Binary Tree Node to Another
2316Count Hills and Valleys in an Array
2335Finding the Topic of Each Post
2342Minimum Average Difference
2347Count Nodes Equal to Average of Subtree
2374Steps to Make Array Non-decreasing
2383Add Two Integers
2473Max Sum of a Pair With Equal Sum of Digits
2483Task Scheduler II
2550Words Within Two Edits of Dictionary
2639Separate the Digits in an Array
2662Check Knight Tour Configuration
2696The Number of Beautiful Subsets
2732Counter
2809Create Hello World Function
2917Count Pairs Whose Sum is Less than Target
3206Find Common Elements Between Two Arrays
Read More

Previous Questions

Goldman Sachs

IDQuestions
1Two Sum
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
8String to Integer (atoi)
11Container With Most Water
153Sum
163Sum Closest
20Valid Parentheses
23Merge k Sorted Lists
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
39Combination Sum
42Trapping Rain Water
45Jump Game II
46Permutations
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
56Merge Intervals
62Unique Paths
64Minimum Path Sum
69Sqrt(x)
70Climbing Stairs
74Search a 2D Matrix
78Subsets
79Word Search
88Merge Sorted Array
91Decode Ways
98Validate Binary Search Tree
118Pascal’s Triangle
119Pascal’s Triangle II
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
134Gas Station
135Candy
141Linked List Cycle
146LRU Cache
153Find Minimum in Rotated Sorted Array
160Intersection of Two Linked Lists
162Find Peak Element
166Fraction to Recurring Decimal
179Largest Number
188Best Time to Buy and Sell Stock IV
189Rotate Array
200Number of Islands
209Minimum Size Subarray Sum
215Kth Largest Element in an Array
232Implement Queue using Stacks
236Lowest Common Ancestor of a Binary Tree
239Sliding Window Maximum
242Valid Anagram
253Meeting Rooms II
287Find the Duplicate Number
300Longest Increasing Subsequence
322Coin Change
338Counting Bits
344Reverse String
380Insert Delete GetRandom O(1)
387First Unique Character in a String
394Decode String
399Evaluate Division
443String Compression
452Minimum Number of Arrows to Burst Balloons
453Minimum Moves to Equal Array Elements
457Circular Array Loop
496Next Greater Element I
516Longest Palindromic Subsequence
518Coin Change II
532K-diff Pairs in an Array
547Number of Provinces
560Subarray Sum Equals K
588Design In-Memory File System
647Palindromic Substrings
657Robot Return to Origin
688Knight Probability in Chessboard
692Top K Frequent Words
696Count Binary Substrings
713Subarray Product Less Than K
724Find Pivot Index
730Count Different Palindromic Subsequences
735Asteroid Collision
740Delete and Earn
750Contain Virus
796Reaching Points
812Rotate String
817Design HashMap
856Consecutive Numbers Sum
874Backspace String Compare
892Shortest Subarray with Sum at Least K
967Minimum Falling Path Sum
980Find the Shortest Superstring
998Check Completeness of a Binary Tree
1013Fibonacci Number
1036Rotting Oranges
1055Pairs of Songs With Total Durations Divisible by 60
1074High Five
1119Robot Bounded In Circle
1126Minimum Cost to Connect Sticks
1146Greatest Common Divisor of Strings
1206Corporate Flight Bookings
1216Print Zero Even Odd
1252Break a Palindrome
1283Reformat Date
1298Reverse Substrings Between Each Pair of Parentheses
1320Remove All Adjacent Duplicates in String II
1331Path with Maximum Gold
1333Sort the Jumbled Numbers
1345Perform String Shifts
1428Jump Game III
1458Sort Integers by The Number of 1 Bits
1511Count Number of Teams
1514Minimum Value to Get Positive Step by Step Sum
1529Max Difference You Can Get From Changing an Integer
1575Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1850Minimum Length of String After Deleting Similar Ends
1897Maximize Palindrome Length From Subsequences
1951Find the Winner of the Circular Game
1960Check if the Sentence Is Pangram
1982Remove Duplicates From an Unsorted Linked List
2116Count Number of Pairs With Absolute Difference K
2192Minimum Cost Homecoming of a Robot in a Grid
2201Valid Arrangement of Pairs
2274Keep Multiplying Found Values by Two
2348Count Number of Texts
2392Successful Pairs of Spells and Potions
2456Construct Smallest Number From DI String
2504Find All Good Indices
2529Range Product Queries of Powers
2536Determine if Two Events Have Conflict
2577Count Palindromic Subsequences
2680Count Collisions of Monkeys on a Polygon
Read More

Previous Questions

Google

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
52N-Queens II
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
60Permutation Sequence
61Rotate List
62Unique Paths
63Unique Paths II
64Minimum Path Sum
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
87Scramble String
88Merge Sorted Array
89Gray Code
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
97Interleaving String
98Validate Binary Search Tree
99Recover Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
106Construct Binary Tree from Inorder and Postorder Traversal
109Convert Sorted List to Binary Search Tree
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
113Path Sum II
114Flatten Binary Tree to Linked List
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
130Surrounded Regions
131Palindrome Partitioning
133Clone Graph
134Gas Station
135Candy
136Single Number
137Single Number II
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
144Binary Tree Preorder Traversal
146LRU Cache
148Sort List
149Max Points on a Line
150Evaluate Reverse Polish Notation
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
158Read N Characters Given read4 II - Call Multiple Times
159Longest Substring with At Most Two Distinct Characters
161One Edit Distance
162Find Peak Element
163Missing Ranges
164Maximum Gap
166Fraction to Recurring Decimal
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
171Excel Sheet Column Number
173Binary Search Tree Iterator
175Combine Two Tables
176Second Highest Salary
178Rank Scores
179Largest Number
181Employees Earning More Than Their Managers
184Department Highest Salary
185Department Top Three Salaries
187Repeated DNA Sequences
188Best Time to Buy and Sell Stock IV
189Rotate Array
190Reverse Bits
191Number of 1 Bits
193Valid Phone Numbers
197Rising Temperature
198House Robber
199Binary Tree Right Side View
200Number of Islands
201Bitwise AND of Numbers Range
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
213House Robber II
214Shortest Palindrome
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
220Contains Duplicate III
221Maximal Square
222Count Complete Tree Nodes
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
228Summary Ranges
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
233Number of Digit One
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
244Shortest Word Distance II
246Strobogrammatic Number
247Strobogrammatic Number II
249Group Shifted Strings
250Count Univalue Subtrees
251Flatten 2D Vector
252Meeting Rooms
253Meeting Rooms II
257Binary Tree Paths
258Add Digits
2593Sum Smaller
261Graph Valid Tree
264Ugly Number II
266Palindrome Permutation
267Palindrome Permutation II
268Missing Number
269Alien Dictionary
270Closest Binary Search Tree Value
271Encode and Decode Strings
272Closest Binary Search Tree Value II
273Integer to English Words
274H-Index
276Paint Fence
277Find the Celebrity
278First Bad Version
279Perfect Squares
280Wiggle Sort
281Zigzag Iterator
282Expression Add Operators
283Move Zeroes
284Peeking Iterator
285Inorder Successor in BST
286Walls and Gates
287Find the Duplicate Number
288Unique Word Abbreviation
289Game of Life
292Nim Game
293Flip Game
294Flip Game II
295Find Median from Data Stream
296Best Meeting Point
297Serialize and Deserialize Binary Tree
298Binary Tree Longest Consecutive Sequence
299Bulls and Cows
300Longest Increasing Subsequence
301Remove Invalid Parentheses
302Smallest Rectangle Enclosing Black Pixels
304Range Sum Query 2D - Immutable
305Number of Islands II
306Additive Number
307Range Sum Query - Mutable
308Range Sum Query 2D - Mutable
309Best Time to Buy and Sell Stock with Cooldown
310Minimum Height Trees
312Burst Balloons
313Super Ugly Number
314Binary Tree Vertical Order Traversal
315Count of Smaller Numbers After Self
316Remove Duplicate Letters
317Shortest Distance from All Buildings
318Maximum Product of Word Lengths
320Generalized Abbreviation
321Create Maximum Number
322Coin Change
323Number of Connected Components in an Undirected Graph
324Wiggle Sort II
326Power of Three
327Count of Range Sum
328Odd Even Linked List
329Longest Increasing Path in a Matrix
330Patching Array
331Verify Preorder Serialization of a Binary Tree
332Reconstruct Itinerary
334Increasing Triplet Subsequence
336Palindrome Pairs
337House Robber III
338Counting Bits
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
343Integer Break
344Reverse String
345Reverse Vowels of a String
346Moving Average from Data Stream
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
351Android Unlock Patterns
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
356Line Reflection
357Count Numbers with Unique Digits
358Rearrange String k Distance Apart
359Logger Rate Limiter
360Sort Transformed Array
361Bomb Enemy
362Design Hit Counter
363Max Sum of Rectangle No Larger Than K
365Water and Jug Problem
366Find Leaves of Binary Tree
367Valid Perfect Square
368Largest Divisible Subset
369Plus One Linked List
370Range Addition
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
375Guess Number Higher or Lower II
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
379Design Phone Directory
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
382Linked List Random Node
383Ransom Note
384Shuffle an Array
387First Unique Character in a String
388Longest Absolute File Path
389Find the Difference
391Perfect Rectangle
392Is Subsequence
393UTF-8 Validation
394Decode String
395Longest Substring with At Least K Repeating Characters
397Integer Replacement
398Random Pick Index
399Evaluate Division
400Nth Digit
401Binary Watch
402Remove K Digits
403Frog Jump
404Sum of Left Leaves
405Convert a Number to Hexadecimal
406Queue Reconstruction by Height
407Trapping Rain Water II
408Valid Word Abbreviation
409Longest Palindrome
410Split Array Largest Sum
411Minimum Unique Word Abbreviation
412Fizz Buzz
413Arithmetic Slices
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
418Sentence Screen Fitting
419Battleships in a Board
420Strong Password Checker
421Maximum XOR of Two Numbers in an Array
422Valid Word Square
424Longest Repeating Character Replacement
425Word Squares
432All O`one Data Structure
435Non-overlapping Intervals
437Path Sum III
438Find All Anagrams in a String
441Arranging Coins
442Find All Duplicates in an Array
443String Compression
444Sequence Reconstruction
447Number of Boomerangs
448Find All Numbers Disappeared in an Array
450Delete Node in a BST
451Sort Characters By Frequency
452Minimum Number of Arrows to Burst Balloons
4544Sum II
458Poor Pigs
459Repeated Substring Pattern
460LFU Cache
463Island Perimeter
465Optimal Account Balancing
469Convex Polygon
471Encode String with Shortest Length
473Matchsticks to Square
474Ones and Zeroes
475Heaters
476Number Complement
480Sliding Window Median
481Magical String
482License Key Formatting
483Smallest Good Base
484Find Permutation
485Max Consecutive Ones
486Predict the Winner
487Max Consecutive Ones II
490The Maze
493Reverse Pairs
494Target Sum
496Next Greater Element I
498Diagonal Traverse
499The Maze III
501Find Mode in Binary Search Tree
503Next Greater Element II
505The Maze II
506Relative Ranks
507Perfect Number
510Count Subarrays With More Ones Than Zeros
511All Paths from Source Lead to Destination
514Freedom Trail
516Longest Palindromic Subsequence
518Coin Change II
520Detect Capital
521Longest Uncommon Subsequence I
522Longest Uncommon Subsequence II
523Continuous Subarray Sum
524Longest Word in Dictionary through Deleting
525Contiguous Array
526Beautiful Arrangement
527Word Abbreviation
530Minimum Absolute Difference in BST
531Lonely Pixel I
532K-diff Pairs in an Array
533Lonely Pixel II
535Encode and Decode TinyURL
539Minimum Time Difference
540Single Element in a Sorted Array
541Reverse String II
54201 Matrix
543Diameter of Binary Tree
544Output Contest Matches
545Boundary of Binary Tree
547Number of Provinces
549Binary Tree Longest Consecutive Sequence II
550Shortest Path to Get Food
551Student Attendance Record I
552Student Attendance Record II
554Brick Wall
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
562Longest Line of Consecutive One in Matrix
564Find the Closest Palindrome
567Permutation in String
568Maximum Vacation Days
569Median Employee Salary
572Subtree of Another Tree
577Employee Bonus
581Shortest Unsorted Continuous Subarray
583Delete Operation for Two Strings
584Find Customer Referee
586Customer Placing the Largest Number of Orders
587Erect the Fence
588Design In-Memory File System
593Valid Square
595Big Countries
604Design Compressed String Iterator
605Can Place Flowers
609Find Duplicate File in System
616Add Bold Tag in String
621Task Scheduler
629K Inverse Pairs Array
630Course Schedule III
631Design Excel Sum Formula
632Smallest Range Covering Elements from K Lists
636Exclusive Time of Functions
638Shopping Offers
642Design Search Autocomplete System
643Maximum Average Subarray I
644Maximum Average Subarray II
647Palindromic Substrings
648Replace Words
6514 Keys Keyboard
652Find Duplicate Subtrees
653Two Sum IV - Input is a BST
656Coin Path
657Robot Return to Origin
658Find K Closest Elements
659Split Array into Consecutive Subsequences
662Maximum Width of Binary Tree
664Strange Printer
665Non-decreasing Array
667Beautiful Arrangement II
668Kth Smallest Number in Multiplication Table
670Maximum Swap
673Number of Longest Increasing Subsequence
674Longest Continuous Increasing Subsequence
676Implement Magic Dictionary
678Valid Parenthesis String
67924 Game
680Valid Palindrome II
681Next Closest Time
683K Empty Slots
684Redundant Connection
685Redundant Connection II
686Repeated String Match
687Longest Univalue Path
689Maximum Sum of 3 Non-Overlapping Subarrays
690Employee Importance
691Stickers to Spell Word
692Top K Frequent Words
695Max Area of Island
696Count Binary Substrings
697Degree of an Array
715Range Module
718Maximum Length of Repeated Subarray
719Find K-th Smallest Pair Distance
720Longest Word in Dictionary
721Accounts Merge
722Remove Comments
724Find Pivot Index
726Number of Atoms
727Minimum Window Subsequence
729My Calendar I
731My Calendar II
732My Calendar III
733Flood Fill
734Sentence Similarity
735Asteroid Collision
737Sentence Similarity II
739Daily Temperatures
740Delete and Earn
741Cherry Pickup
744Network Delay Time
746Prefix and Suffix Search
747Min Cost Climbing Stairs
748Largest Number At Least Twice of Others
749Shortest Completing Word
753Open the Lock
754Cracking the Safe
757Pyramid Transition Matrix
760Bold Words in String
761Employee Free Time
762Find Anagram Mappings
765Serialize and Deserialize N-ary Tree
766Flatten a Multilevel Doubly Linked List
768Partition Labels
770Couples Holding Hands
772Construct Quad Tree
775N-ary Tree Preorder Traversal
777Toeplitz Matrix
778Reorganize String
779Max Chunks To Make Sorted II
780Max Chunks To Make Sorted
785Basic Calculator III
786Search in a Sorted Array of Unknown Size
788Minimize Max Distance to Gas Station
789Kth Largest Element in a Stream
791Split BST
792Binary Search
793Swap Adjacent in LR String
794Swim in Rising Water
795K-th Symbol in Grammar
796Reaching Points
798Transform to Chessboard
799Minimum Distance Between BST Nodes
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
804Rotated Digits
805Escape The Ghosts
806Domino and Tromino Tiling
807Custom Sort String
808Number of Matching Subsequences
810Valid Tic-Tac-Toe State
813All Paths From Source to Target
815Champagne Tower
816Design HashSet
817Design HashMap
818Similar RGB Color
820Find Eventual Safe States
821Bricks Falling When Hit
822Unique Morse Code Words
825Max Increase to Keep City Skyline
826Soup Servings
827Expressive Words
830Largest Triangle Area
831Largest Sum of Averages
833Bus Routes
834Ambiguous Coordinates
835Linked List Components
836Race Car
838Design Linked List
843Binary Trees With Factors
850Insert into a Sorted Circular Linked List
854Making A Large Island
855Count Unique Characters of All Substrings of a Given String
857Positions of Large Groups
860Design Circular Queue
861Flipping an Image
862Find And Replace in String
863Sum of Distances in Tree
864Image Overlap
865Robot Room Cleaner
867New 21 Game
868Push Dominoes
869Similar String Groups
870Magic Squares In Grid
871Keys and Rooms
873Guess the Word
874Backspace String Compare
875Longest Mountain in Array
876Hand of Straights
877Shortest Path Visiting All Nodes
879Maximize Distance to Closest Person
882Peak Index in a Mountain Array
883Car Fleet
884K-Similar Strings
885Exam Room
886Score of Parentheses
887Minimum Cost to Hire K Workers
889Buddy Strings
892Shortest Subarray with Sum at Least K
893All Nodes Distance K in Binary Tree
894Random Pick with Blacklist
895Shortest Path to Get All Keys
900Reordered Power of 2
902Minimum Number of Refueling Stops
903Implement Rand10() Using Rand7()
907Koko Eating Bananas
908Middle of the Linked List
911Profitable Schemes
912Random Pick with Weight
913Random Flip Matrix
914Random Point in Non-overlapping Rectangles
917Boats to Save People
922Possible Bipartition
923Super Egg Drop
925Construct Binary Tree from Preorder and Postorder Traversal
926Find and Replace Pattern
930All Possible Full Binary Trees
932Monotonic Array
933Increasing Order Search Tree
936RLE Iterator
937Online Stock Span
940Fruit Into Baskets
942Super Palindromes
945Snakes and Ladders
947Online Election
948Sort an Array
949Cat and Mouse
950X of a Kind in a Deck of Cards
952Word Subsets
953Reverse Only Letters
954Maximum Sum Circular Subarray
955Complete Binary Tree Inserter
956Number of Music Playlists
957Minimum Add to Make Parentheses Valid
960Minimize Malware Spread
962Flip String to Monotone Increasing
965Unique Email Addresses
966Binary Subarrays With Sum
967Minimum Falling Path Sum
968Beautiful Array
969Number of Recent Calls
971Shortest Bridge
972Knight Dialer
975Range Sum of BST
976Minimum Area Rectangle
977Distinct Subsequences II
978Valid Mountain Array
979DI String Match
981Delete Columns to Make Sorted
983Validate Stack Sequences
984Most Stones Removed with Same Row or Column
985Bag of Tokens
986Largest Time for Given Digits
988Flip Equivalent Binary Trees
989Largest Component Size by Common Factor
991Array of Doubled Pairs
992Delete Columns to Make Sorted II
998Check Completeness of a Binary Tree
999Regions Cut By Slashes
1000Delete Columns to Make Sorted III
1002Maximum Width Ramp
1003Minimum Area Rectangle II
1005Univalued Binary Tree
1007Numbers With Same Consecutive Differences
1008Binary Tree Cameras
1013Fibonacci Number
1014K Closest Points to Origin
1016Subarray Sums Divisible by K
1017Odd Even Jump
1019Squares of a Sorted Array
1021Distribute Coins in Binary Tree
1022Unique Paths III
1023Time Based Key-Value Store
1025Minimum Cost For Tickets
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1030Smallest String Starting From Leaf
1032Satisfiability of Equality Equations
1034Subarrays with K Different Integers
1036Rotting Oranges
1039Find the Town Judge
1042Minimum Cost to Merge Stones
1046Max Consecutive Ones III
1049Minimum Domino Rotations For Equal Row
1051Shortest Way to Form String
1052Campus Bikes
1054Complement of Base 10 Integer
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1057Numbers With Repeated Digits
1060Longest Repeating Substring
1063Best Sightseeing Pair
1064Smallest Integer Divisible by K
1065Binary String With Substrings Representing 1 To N
1067Campus Bikes II
1069Confusing Number
1073Number of Enclaves
1076Brace Expansion
1077Confusing Number II
1078Remove Outermost Parentheses
1080Camelcase Matching
1081Video Stitching
1085The Earliest Moment When Everyone Become Friends
1087Longest Arithmetic Subsequence
1092Maximum Difference Between Node and Ancestor
1097Stream of Characters
1099Path With Maximum Minimum Value
1101Parallel Courses
1106Escape a Large Maze
1112Find Words That Can Be Formed by Characters
1115Valid Boomerang
1116Maximum Level Sum of a Binary Tree
1117As Far from Land as Possible
1118Divide Array Into Increasing Sequences
1120Flower Planting With No Adjacent
1122Longest Duplicate Substring
1123Single-Row Keyboard
1124String Transforms Into Another String
1126Minimum Cost to Connect Sticks
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1134Shortest Distance to Target Color
1138Grumpy Bookstore Owner
1142Minimum Knight Moves
1144Optimize Water Distribution in a Village
1145Number of Submatrices That Sum to Target
1153Product Sales Analysis I
1156Occurrences After Bigram
1159Smallest Subsequence of Distinct Characters
1160Letter Tile Possibilities
1165Meeting Scheduler
1167Minimum Time to Build Blocks
1168Duplicate Zeros
1169Largest Values From Labels
1170Shortest Common Supersequence
1171Shortest Path in Binary Matrix
1176Design A Leaderboard
1177Tree Diameter
1184Car Pooling
1185Find in Mountain Array
1188Brace Expansion II
1192Divide Chocolate
1196Filling Bookcase Shelves
1197Parsing A Boolean Expression
1200Remove Interval
1203Print in Order
1205Defanging an IP Address
1207Delete Nodes And Return Forest
1210Mean of Array After Removing Some Elements
1211Iterator for Combination
1217Relative Sort Array
1221Element Appearing More Than 25% In Sorted Array
1222Remove Covered Intervals
1224Minimum Falling Path Sum II
1228Minimum Cost Tree From Leaf Values
1229Shortest Path with Alternating Colors
1232Sum of Mutated Array Closest to Target
1238Alphabet Board Path
1241Decompress Run-Length Encoded List
1242Matrix Block Sum
1244Distinct Echo Substrings
1247Decrease Elements To Make Array Zigzag
1248Binary Tree Coloring Game
1249Snapshot Array
1250Longest Common Subsequence
1251Longest Chunked Palindrome Decomposition
1254Deepest Leaves Sum
1256Rank Transform of an Array
1257Rank Transform of a Matrix
1258Article Views I
1263Number of Dice Rolls With Target Sum
1267Remove Zero Sum Consecutive Nodes from Linked List
1273Compare Strings by Frequency of the Smallest Character
1274Number of Days Between Two Dates
1275Validate Binary Tree Nodes
1277Largest Multiple of Three
1278Product Price at a Given Date
1286Constrained Subsequence Sum
1287Distance Between Bus Stops
1296Kth Ancestor of a Tree Node
1305Number of Visible People in a Queue
1308Smallest String With Swaps
1310Watering Plants
1319Unique Number of Occurrences
1324Where Will the Ball Fall
1325Path with Maximum Probability
1330Longest Arithmetic Subsequence of Given Difference
1331Path with Maximum Gold
1332Count Vowels Permutation
1335Maximum Candies Allocated to K Children
1337Design Skiplist
1350Remove Sub-Folders from the Filesystem
1352Maximum Profit in Job Scheduling
1358Find Positive Integer Solution for a Given Equation
1361Tiling a Rectangle with the Fewest Squares
1364Tuple with Same Product
1371Minimum Remove to Make Valid Parentheses
1374Leftmost Column with at Least a One
1380Number of Closed Islands
1381Maximum Score Words Formed by Letters
1384Maximum Font to Fit a Sentence in a Screen
1387Find Elements in a Contaminated Binary Tree
1389Minimum Moves to Move a Box to Their Target Location
1392Find the Difference of Two Arrays
1393Maximum Value of K Coins From Piles
1394Minimum Path Cost in a Grid
1396Count Servers that Communicate
1397Search Suggestions System
1398Number of Ways to Stay in the Same Place After Some Steps
1400Find Winner on a Tic Tac Toe Game
1402Count Square Submatrices with All Ones
1405All People Report to the Given Manager
1406Subtract the Product and Sum of Digits of an Integer
1409Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
1413Maximum Side Length of a Square with Sum Less than or Equal to Threshold
1414Shortest Path in a Grid with Obstacles Elimination
1418Fair Distribution of Cookies
1422Divide Array in Sets of K Consecutive Numbers
1427All Elements in Two Binary Search Trees
1428Jump Game III
1431All Ancestors of a Node in a Directed Acyclic Graph
1437Minimum Insertion Steps to Make a String Palindrome
1443Minimum Distance to Type a Word Using Two Fingers
1447Jump Game IV
1456Find the City With the Smallest Number of Neighbors at a Threshold Distance
1461Count All Valid Pickup and Delivery Options
1463The K Weakest Rows in a Matrix
1468Check If N and Its Double Exist
1477Product of the Last K Numbers
1478Maximum Number of Events That Can Be Attended
1482How Many Numbers Are Smaller Than the Current Number
1483Rank Teams by Votes
1485Minimum Cost to Make at Least One Valid Path in a Grid
1487Cinema Seat Allocation
1488Sort Integers by The Power Value
1489Pizza With 3n Slices
1492Time Needed to Inform All Employees
1493Frog Position After T Seconds
1499Maximum Performance of a Team
1501Circle and Rectangle Overlapping
1508Longest Happy Prefix
1509Replace Employee ID With The Unique Identifier
1513Find All Good Strings
1515Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
1522Stone Game III
1528Kids With the Greatest Number of Candies
1537Maximum Score After Splitting a String
1538Maximum Points You Can Obtain from Cards
1539Diagonal Traverse II
1543Simplified Fractions
1544Count Good Nodes in Binary Tree
1545Form Largest Integer With Digits That Add up to Target
1549Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1552Build an Array With Stack Operations
1555Number of Ways of Cutting a Pizza
1557Check If a String Contains All Binary Codes of Size K
1559Cherry Pickup II
1562People Whose List of Favorite Companies Is Not a Subset of Another List
1573Find Two Non-overlapping Sub-arrays Each With Target Sum
1580Shuffle the Array
1581The k Strongest Values in an Array
1582Design Browser History
1583Paint House III
1584Average Salary Excluding the Minimum and Maximum Salary
1587Parallel Courses II
1603Running Sum of 1d Array
1605Minimum Number of Days to Make m Bouquets
1612Avoid Flood in The City
1615Range Sum of Sorted Subarray Sums
1616Minimum Difference Between Largest and Smallest Value in Three Moves
1621Number of Subsequences That Satisfy the Given Sum Condition
1622Max Value of Equation
1627Last Moment Before All Ants Fall Out of a Plank
1628Count Submatrices With All Ones
1630Count Odd Numbers in an Interval Range
1632Number of Good Ways to Split a String
1633Minimum Number of Increments on Subarrays to Form a Target Array
1635Number of Good Pairs
1636Number of Substrings With Only 1s
1646Kth Missing Positive Number
1649Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
1650Find Root of N-Ary Tree
1651Shuffle String
1653Number of Good Leaf Nodes Pairs
1655Move Sub-Tree of N-Ary Tree
1656Count Good Triplets
1661Minimum Number of Vertices to Reach All Nodes
1666Make The String Great
1669Minimum Cost to Cut a Stick
1676Minimum Number of Days to Eat N Oranges
1677Matrix Diagonal Sum
1681Guess the Majority in a Hidden Array
1684Find Latest Group of Size M
1687The Most Similar Path in a Graph
1692Number of Ways to Reorder Array to Get Same BST
1696Strange Printer II
1697Strings Differ by One Character
1701Remove Max Number of Edges to Keep Graph Fully Traversable
1703Put Boxes Into the Warehouse I
1704Special Positions in a Binary Matrix
1707Check If String Is Transformable With Substring Sort Operations
1710Find Servers That Handled Most Number of Requests
1711Find Valid Matrix Given Row and Column Sums
1713Dot Product of Two Sparse Vectors
1714Rearrange Spaces Between Words
1715Split a String Into the Max Number of Unique Substrings
1716Maximum Non Negative Product in a Matrix
1717Minimum Cost to Connect Two Groups of Points
1719Put Boxes Into the Warehouse II
1722Throne Inheritance
1723Maximum Number of Achievable Transfer Requests
1727Cat and Mouse II
1728Fancy Sequence
1730Special Array With X Elements Greater Than or Equal X
1733Maximum Number of Visible Points
1736Build Binary Expression Tree From Infix Expression
1739Split Two Strings to Make Palindrome
1741Sort Array by Increasing Frequency
1744Number of Ways to Form a Target String Given a Dictionary
1745Find Nearest Right Node in Binary Tree
1746Largest Substring Between Two Equal Characters
1750Check If Two Expression Trees are Equivalent
1752Arithmetic Subarrays
1753Path With Minimum Effort
1758Distribute Repeating Integers
1762Furthest Building You Can Reach
1765Merge In Between Linked Lists
1768Design an Expression Tree With Evaluate Function
1770Minimum Deletions to Make Character Frequencies Unique
1776Minimum Operations to Reduce X to Zero
1777Determine if Two Strings Are Close
1791Richest Customer Wealth
1792Find the Most Competitive Subsequence
1796Correct a Binary Tree
1798Max Number of K-Sum Pairs
1801Average Time of Process per Machine
1805Minimum Adjacent Swaps for K Consecutive Ones
1810Change the Root of a Binary Tree
1814Jump Game VI
1815Checking Existence of Edge Length Limited Paths
1818Maximum Score From Removing Substrings
1826Maximum XOR With an Element From Array
1828Count Ways to Distribute Candies
1829Maximum Units on a Truck
1832Minimum Operations to Make a Subsequence
1839Decode XORed Array
1840Minimize Hamming Distance After Swap Operations
1845Largest Submatrix With Rearrangements
1847Largest Subarray Length K
1858Latest Time by Replacing Hidden Digits
1859Change Minimum Characters to Satisfy One of Three Conditions
1860Find Kth Largest XOR Coordinate Value
1865Checking Existence of Edge Length Limited Paths II
1873Longest Nice Substring
1875Tree of Coprimes
1876Map of Highest Peak
1878Check if Array Is Sorted and Rotated
1879Maximum Score From Removing Stones
1883Find Distance in a Binary Tree
1890Sum of Beauty of All Substrings
1894Merge Strings Alternately
1895Minimum Number of Operations to Move All Balls to Each Box
1896Maximum Score from Performing Multiplication Operations
1900Closest Dessert Cost
1902Car Fleet II
1903Design Most Recently Used Queue
1907Count Pairs With XOR in a Range
1908Recyclable and Low Fat Products
1912Number of Restricted Paths From First to Last Node
1914Find the Subtasks That Did Not Execute
1918Maximum Score of a Good Subarray
1923Sentence Similarity III
1924Maximum Number of Groups Getting Fresh Donuts
1934Evaluate the Bracket Pairs of a String
1935Minimum Number of Operations to Reinitialize a Permutation
1939Queries on Number of Points Inside a Circle
1943Count Pairs of Equal Substrings With Minimum Difference
1949Implement Trie II (Prefix Tree)
1950Sign of the Product of an Array
1951Find the Winner of the Circular Game
1953Finding MK Average
1954Replace All Digits with Characters
1959Minimum Path Cost in a Hidden Grid
1960Check if the Sentence Is Pangram
1962Single-Threaded CPU
1966Frequency of the Most Frequent Element
1969Maximum Number of Accepted Invitations
1974Find Customers With Positive Revenue this Year
1977Minimum Interval to Include Each Query
1978Minimum Adjacent Swaps to Reach the Kth Smallest Number
1983Maximum Population Year
1984Maximum Distance Between a Pair of Values
1986Largest Color Value in a Directed Graph
1996Number of Ways to Rearrange Sticks With K Sticks Visible
2000Minimum Speed to Arrive on Time
2001Jump Game VII
2008Minimum Cost to Change the Final Value of Expression
2009Longest Word With All Prefixes
2012Process Tasks Using Servers
2013Minimum Skips to Arrive at Meeting On Time
2017Minimum Number of Flips to Make the Binary String Alternating
2018Minimum Space Wasted From Packaging
2026Merge Triplets to Form Target Triplet
2028The Earliest and Latest Rounds Where Players Compete
2029Minimize Product Sum of Two Arrays
2034Minimum Absolute Difference Queries
2036Count Pairs in Two Arrays
2038Nearest Exit from Entrance in Maze
2044Number of Wonderful Substrings
2045Cutting Ribbons
2047Find a Peak Element II
2048Build Array from Permutation
2049Eliminate Maximum Number of Monsters
2050Count Good Numbers
2055Describe the Painting
2058Concatenation of Array
2059Unique Length-3 Palindromic Subsequences
2061Painting a Grid With Three Different Colors
2067Maximum Number of Points with Cost
2069Kth Smallest Subarray Sum
2071Longest Common Subsequence Between Sorted Arrays
2074Erect the Fence II
2079Delete Duplicate Folders in System
2101Last Day Where You Can Still Cross
2104Operations on Tree
2107Find Unique Binary String
2111Binary Searchable Numbers in an Unsorted Array
2114Minimum Number of Work Sessions to Finish the Tasks
2115Number of Unique Good Subsequences
2117Find Original Array From Doubled Array
2121Find if Path Exists in Graph
2123The Number of Weak Characters in the Game
2132Convert 1D Array Into 2D Array
2135Maximum Number of Ways to Partition an Array
2139Detect Squares
2146Check if Word Can Be Placed In Crossword
2161Stock Price Fluctuation
2162Partition Array Into Two Arrays to Minimize Sum Difference
2176Parallel Courses III
2181Smallest Index With Equal Value
2183Minimum Operations to Convert Number
2193Count Fertile Pyramids in a Land
2198Process Restricted Friend Requests
2200Stamping the Grid
2206Detonate the Maximum Bombs
2210Find Target Indices After Sorting Array
2212Removing Minimum and Maximum From Array
2213Find All People With Secret
2217Step-By-Step Directions From a Binary Tree Node to Another
2218Paths in Maze That Lead to Same Room
2219Maximum Number of Words Found in Sentences
2220Find All Possible Recipes from Given Supplies
2221Check if a Parentheses String Can Be Valid
2226Rings and Rods
2228Watering Plants II
2237Longest Palindrome by Concatenating Two Letter Words
2241Recover the Original Array
2245Destroying Asteroids
2246Maximum Employees to Be Invited to a Meeting
2251Number of Ways to Divide a Long Corridor
2256Count Words Obtained After Adding a Letter
2261All Divisions With the Highest Score of a Binary Array
2264Minimum Sum of Four Digit Number After Splitting Digits
2265Partition Array According to Given Pivot
2266Minimum Cost to Set Cooking Time
2268Remove All Ones With Row and Column Flips
2270Find All Lonely Numbers in the Array
2279Maximum Split of Positive Even Integers
2286Minimum Time to Remove All Cars Containing Illegal Goods
2290Removing Minimum Number of Magic Beans
2291Maximum AND Sum of Array
2292Counting Words With a Given Prefix
2294Minimum Time to Complete Trips
2295Minimum Time to Finish the Race
2297Amount of New Area Painted Each Day
2306Create Binary Tree From Descriptions
2311Minimum White Tiles After Covering With Carpets
2312Most Frequent Number Following Key In an Array
2314Remove All Ones With Row and Column Flips II
2320Find All K-Distant Indices in an Array
2321Minimum Weighted Subgraph With the Required Paths
2322Number of Ways to Build Sturdy Brick Wall
2333Count Number of Rectangles Containing Each Point
2334Number of Flowers in Full Bloom
2338Minimum Consecutive Cards to Pick Up
2341Count Prefixes of a Given String
2344Escape the Spreading Fire
2345Minimum Number of Operations to Convert Time
2347Count Nodes Equal to Average of Subtree
2349Check if There Is a Valid Parentheses String Path
2350Find Closest Number to Zero
2352Design an ATM Machine
2353Maximum Score of a Node Sequence
2357Count Integers in Intervals
2359Maximum White Tiles Covered by a Carpet
2367Minimum Lines to Represent a Line Chart
2375Minimum Obstacle Removal to Reach Corner
2377Check if Number Has Equal Digit Count and Digit Value
2378Sender With Largest Word Count
2380Booking Concert Tickets in Groups
2383Add Two Integers
2385Count Positions on Street With Required Brightness
2389Design a Text Editor
2394Count Subarrays With Score Less Than K
2395Longest Binary Subsequence Less Than or Equal to K
2396Design Video Sharing Platform
2399Minimum Flips in Binary Tree to Get Result
2401Count Asterisks
2403Count Unreachable Pairs of Nodes in an Undirected Graph
2413Smallest Number in Infinite Set
2414Move Pieces to Obtain a String
2416Evaluate Boolean Binary Tree
2417The Latest Time to Catch a Bus
2419Subarray With Elements Greater Than Varying Threshold
2420Closest Node to Path in Tree
2427First Letter to Appear Twice
2432Number of Zero-Filled Subarrays
2434Design a Number Container System
2435Shortest Impossible Sequence of Rolls
2443Check if There is a Valid Partition For The Array
2447Merge Similar Items
2448Count Number of Bad Pairs
2450Minimum Replacements to Sort the Array
2454Largest Local Values in a Matrix
2472Build a Matrix With Conditions
2479Meeting Rooms III
2481Strictly Palindromic Number
2485Finding the Number of Visible Mountains
2489Sort Array by Moving Items to Empty Space
2494Sum of Prefix Scores of Strings
2505Number of Good Paths
2506Minimize Maximum Value in a Grid
2512Longest Uploaded Prefix
2513Number of Pairs Satisfying Inequality
2521Paths in Matrix Whose Sum Is Divisible by K
2525Count Number of Distinct Integers After Reverse Operations
2526Longest Increasing Subsequence II
2528Number of Valid Clock Times
2536Determine if Two Events Have Conflict
2538Minimum Cost to Make Array Equal
2545Height of Binary Tree After Subtree Removal Queries
2550Words Within Two Edits of Dictionary
2564Most Profitable Path in a Tree
2567Closest Nodes Queries in a Binary Search Tree
2569Number of Beautiful Partitions
2574Count Subarrays With Median K
2591Frog Jump II
2615Make Number of Distinct Characters Equal
2625Increment Submatrices by One
2641Disconnect Path in a Binary Matrix by at Most One Flip
2653Check if There is a Path With Equal Number of 0’s And 1’s
2687Lexicographically Smallest Beautiful String
2707Merge Two 2D Arrays by Summing Values
2716Prime Subtraction Operation
2732Counter
2734Array Prototype Last
2747Apply Transform Over Each Element in Array
2774Differences Between Two Objects
2809Create Hello World Function
2818Maximum Strictly Increasing Cells in a Matrix
2843Extract Kth Character From The Rope Tree
2849Sum of Imbalance Numbers of All Subarrays
2868Continuous Subarrays
2875Count Houses in a Circular Street
2891Maximum Beauty of an Array After Applying Operation
2914Find the Safest Path in a Grid
2953Count Pairs of Points With Distance k
3000Minimum Absolute Difference Between Elements With Constraint
3024String Transformation
3056Determine if a Cell Is Reachable at a Given Time
3057Count K-Subsequences of a String With Maximum Beauty
3058Maximum Number of K-Divisible Components
3158Maximum Length of Semi-Decreasing Subarrays
3178Minimum Increment Operations to Make Array Beautiful
3188Find Champion I
3189Find Champion II
3191Maximum Score After Applying Operations on a Tree
3212Count the Number of Good Partitions
3218Find Number of Coins to Place in Tree Nodes
3222Number of Equal Numbers Blocks
3229Minimum Cost to Make Array Equalindromic
3241Divide Array Into Arrays With Max Difference
Read More

Previous Questions

JP Mordan

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
5Longest Palindromic Substring
7Reverse Integer
10Regular Expression Matching
11Container With Most Water
13Roman to Integer
20Valid Parentheses
22Generate Parentheses
31Next Permutation
44Wildcard Matching
49Group Anagrams
50Pow(x, n)
53Maximum Subarray
56Merge Intervals
91Decode Ways
121Best Time to Buy and Sell Stock
125Valid Palindrome
152Maximum Product Subarray
200Number of Islands
206Reverse Linked List
217Contains Duplicate
231Power of Two
242Valid Anagram
263Ugly Number
283Move Zeroes
332Reconstruct Itinerary
338Counting Bits
347Top K Frequent Elements
349Intersection of Two Arrays
357Count Numbers with Unique Digits
412Fizz Buzz
423Reconstruct Original Digits from English
435Non-overlapping Intervals
560Subarray Sum Equals K
753Open the Lock
796Reaching Points
908Middle of the Linked List
920Uncommon Words from Two Sentences
1013Fibonacci Number
1055Pairs of Songs With Total Durations Divisible by 60
1057Numbers With Repeated Digits
1080Camelcase Matching
1126Minimum Cost to Connect Sticks
1252Break a Palindrome
1306Minimum Absolute Difference
1353Find Resultant Array After Removing Anagrams
1369Minimum Swaps to Make Strings Equal
1397Search Suggestions System
1458Sort Integers by The Number of 1 Bits
1478Maximum Number of Events That Can Be Attended
1514Minimum Value to Get Positive Step by Step Sum
1533Display Table of Food Orders in a Restaurant
1604Least Number of Unique Integers after K Removals
1648Minimum Insertions to Balance a Parentheses String
1652Minimum Suffix Flips
1747Lexicographically Smallest String After Applying Operations
1829Maximum Units on a Truck
1920Determine Color of a Chessboard Square
1998Suspicious Bank Accounts
2149Remove Colored Pieces if Both Neighbors are the Same Color
2177Check Whether Two Strings are Almost Equivalent
2227Sum of Subarray Ranges
2377Check if Number Has Equal Digit Count and Digit Value
2493Reverse Odd Levels of Binary Tree
2588Maximum Number of Points From Grid Queries
Read More

Previous Questions

MICROSOFT

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
59Spiral Matrix II
61Rotate List
62Unique Paths
63Unique Paths II
64Minimum Path Sum
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
88Merge Sorted Array
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
96Unique Binary Search Trees
97Interleaving String
98Validate Binary Search Tree
99Recover Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
106Construct Binary Tree from Inorder and Postorder Traversal
108Convert Sorted Array to Binary Search Tree
109Convert Sorted List to Binary Search Tree
112Path Sum
113Path Sum II
114Flatten Binary Tree to Linked List
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
119Pascal’s Triangle II
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
130Surrounded Regions
133Clone Graph
134Gas Station
135Candy
136Single Number
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
146LRU Cache
147Insertion Sort List
148Sort List
149Max Points on a Line
150Evaluate Reverse Polish Notation
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
158Read N Characters Given read4 II - Call Multiple Times
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
162Find Peak Element
163Missing Ranges
165Compare Version Numbers
166Fraction to Recurring Decimal
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
171Excel Sheet Column Number
172Factorial Trailing Zeroes
173Binary Search Tree Iterator
174Dungeon Game
175Combine Two Tables
176Second Highest Salary
177Nth Highest Salary
179Largest Number
181Employees Earning More Than Their Managers
184Department Highest Salary
186Reverse Words in a String II
189Rotate Array
190Reverse Bits
191Number of 1 Bits
192Word Frequency
198House Robber
199Binary Tree Right Side View
200Number of Islands
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
213House Robber II
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
221Maximal Square
222Count Complete Tree Nodes
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
229Majority Element II
230Kth Smallest Element in a BST
232Implement Queue using Stacks
233Number of Digit One
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
242Valid Anagram
250Count Univalue Subtrees
253Meeting Rooms II
257Binary Tree Paths
258Add Digits
261Graph Valid Tree
268Missing Number
269Alien Dictionary
270Closest Binary Search Tree Value
273Integer to English Words
274H-Index
277Find the Celebrity
278First Bad Version
279Perfect Squares
280Wiggle Sort
283Move Zeroes
285Inorder Successor in BST
286Walls and Gates
287Find the Duplicate Number
289Game of Life
292Nim Game
295Find Median from Data Stream
296Best Meeting Point
297Serialize and Deserialize Binary Tree
300Longest Increasing Subsequence
301Remove Invalid Parentheses
312Burst Balloons
314Binary Tree Vertical Order Traversal
315Count of Smaller Numbers After Self
316Remove Duplicate Letters
317Shortest Distance from All Buildings
319Bulb Switcher
322Coin Change
323Number of Connected Components in an Undirected Graph
324Wiggle Sort II
328Odd Even Linked List
329Longest Increasing Path in a Matrix
333Largest BST Subtree
336Palindrome Pairs
337House Robber III
338Counting Bits
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
343Integer Break
344Reverse String
345Reverse Vowels of a String
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
350Intersection of Two Arrays II
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
358Rearrange String k Distance Apart
359Logger Rate Limiter
362Design Hit Counter
365Water and Jug Problem
366Find Leaves of Binary Tree
367Valid Perfect Square
368Largest Divisible Subset
371Sum of Two Integers
373Find K Pairs with Smallest Sums
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
387First Unique Character in a String
389Find the Difference
392Is Subsequence
394Decode String
395Longest Substring with At Least K Repeating Characters
399Evaluate Division
400Nth Digit
402Remove K Digits
403Frog Jump
412Fizz Buzz
414Third Maximum Number
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
419Battleships in a Board
435Non-overlapping Intervals
437Path Sum III
438Find All Anagrams in a String
442Find All Duplicates in an Array
443String Compression
445Add Two Numbers II
448Find All Numbers Disappeared in an Array
449Serialize and Deserialize BST
450Delete Node in a BST
451Sort Characters By Frequency
452Minimum Number of Arrows to Burst Balloons
453Minimum Moves to Equal Array Elements
455Assign Cookies
456132 Pattern
460LFU Cache
462Minimum Moves to Equal Array Elements II
468Validate IP Address
472Concatenated Words
473Matchsticks to Square
475Heaters
480Sliding Window Median
485Max Consecutive Ones
486Predict the Winner
490The Maze
493Reverse Pairs
496Next Greater Element I
498Diagonal Traverse
503Next Greater Element II
505The Maze II
506Relative Ranks
509Inorder Successor in BST II
513Find Bottom Left Tree Value
516Longest Palindromic Subsequence
517Super Washing Machines
518Coin Change II
519Widest Pair of Indices With Equal Range Sum
525Contiguous Array
529Minesweeper
539Minimum Time Difference
540Single Element in a Sorted Array
541Reverse String II
54201 Matrix
543Diameter of Binary Tree
545Boundary of Binary Tree
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
567Permutation in String
568Maximum Vacation Days
572Subtree of Another Tree
581Shortest Unsorted Continuous Subarray
582Kill Process
583Delete Operation for Two Strings
588Design In-Memory File System
591Tag Validator
593Valid Square
605Can Place Flowers
611Valid Triangle Number
621Task Scheduler
628Maximum Product of Three Numbers
631Design Excel Sum Formula
632Smallest Range Covering Elements from K Lists
636Exclusive Time of Functions
637Average of Levels in Binary Tree
640Solve the Equation
642Design Search Autocomplete System
643Maximum Average Subarray I
647Palindromic Substrings
6502 Keys Keyboard
6514 Keys Keyboard
653Two Sum IV - Input is a BST
654Maximum Binary Tree
661Image Smoother
662Maximum Width of Binary Tree
669Trim a Binary Search Tree
672Bulb Switcher II
678Valid Parenthesis String
680Valid Palindrome II
681Next Closest Time
684Redundant Connection
692Top K Frequent Words
694Number of Distinct Islands
695Max Area of Island
698Partition to K Equal Sum Subsets
716Max Stack
718Maximum Length of Repeated Subarray
720Longest Word in Dictionary
722Remove Comments
724Find Pivot Index
726Number of Atoms
729My Calendar I
733Flood Fill
735Asteroid Collision
739Daily Temperatures
744Network Delay Time
747Min Cost Climbing Stairs
758Convert Binary Search Tree to Sorted Doubly Linked List
761Employee Free Time
765Serialize and Deserialize N-ary Tree
768Partition Labels
774Maximum Depth of N-ary Tree
778Reorganize String
779Max Chunks To Make Sorted II
782Jewels and Stones
783Search in a Binary Search Tree
785Basic Calculator III
789Kth Largest Element in a Stream
792Binary Search
800Letter Case Permutation
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
808Number of Matching Subsequences
810Valid Tic-Tac-Toe State
812Rotate String
816Design HashSet
817Design HashMap
823Split Array With Same Average
833Bus Routes
838Design Linked List
850Insert into a Sorted Circular Linked List
854Making A Large Island
860Design Circular Queue
862Find And Replace in String
864Image Overlap
865Robot Room Cleaner
866Rectangle Overlap
871Keys and Rooms
873Guess the Word
874Backspace String Compare
875Longest Mountain in Array
877Shortest Path Visiting All Nodes
879Maximize Distance to Closest Person
883Car Fleet
886Score of Parentheses
889Buddy Strings
893All Nodes Distance K in Binary Tree
900Reordered Power of 2
902Minimum Number of Refueling Stops
903Implement Rand10() Using Rand7()
908Middle of the Linked List
912Random Pick with Weight
917Boats to Save People
921Spiral Matrix III
922Possible Bipartition
931Maximum Frequency Stack
937Online Stock Span
941Sort Array By Parity
943Sum of Subarray Minimums
945Snakes and Ladders
948Sort an Array
957Minimum Add to Make Parentheses Valid
962Flip String to Monotone Increasing
971Shortest Bridge
988Flip Equivalent Binary Trees
990Verifying an Alien Dictionary
1007Numbers With Same Consecutive Differences
1008Binary Tree Cameras
1012Equal Rational Numbers
1013Fibonacci Number
1014K Closest Points to Origin
1016Subarray Sums Divisible by K
1019Squares of a Sorted Array
1021Distribute Coins in Binary Tree
1023Time Based Key-Value Store
1026String Without AAA or BBB
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1032Satisfiability of Equality Equations
1035Cousins in Binary Tree
1036Rotting Oranges
1037Minimum Number of K Consecutive Bit Flips
1046Max Consecutive Ones III
1048Clumsy Factorial
1050Construct Binary Search Tree from Preorder Traversal
1056Capacity To Ship Packages Within D Days
1062Partition Array Into Three Parts With Equal Sum
1072Next Greater Node In Linked List
1078Remove Outermost Parentheses
1086Divisor Game
1087Longest Arithmetic Subsequence
1093Recover a Tree From Preorder Traversal
1095Two City Scheduling
1096Maximum Sum of Two Non-Overlapping Subarrays
1097Stream of Characters
1101Parallel Courses
1116Maximum Level Sum of a Binary Tree
1117As Far from Land as Possible
1122Longest Duplicate Substring
1125Design File System
1128Remove All Adjacent Duplicates In String
1139Previous Permutation With One Swap
1142Minimum Knight Moves
1143Find Smallest Common Element in All Rows
1170Shortest Common Supersequence
1171Shortest Path in Binary Matrix
1176Design A Leaderboard
1183Statistics from a Large Sample
1184Car Pooling
1201Delete Tree Nodes
1202Palindrome Removal
1203Print in Order
1205Defanging an IP Address
1230Maximum of Absolute Value Expression
1249Snapshot Array
1250Longest Common Subsequence
1253Sort the Matrix Diagonally
1254Deepest Leaves Sum
1260Day of the Year
1261Swap For Longest Repeated Character Substring
1271Web Crawler
1289Day of the Week
1297Maximum Number of Balloons
1298Reverse Substrings Between Each Pair of Parentheses
1300Critical Connections in a Network
1304Longest Happy String
1308Smallest String With Swaps
1320Remove All Adjacent Duplicates in String II
1337Design Skiplist
1348Maximum Score Of Spliced Array
1352Maximum Profit in Job Scheduling
1355Minimum Deletions to Make Array Beautiful
1356Minimum Number of Moves to Make Palindrome
1360Maximum Length of a Concatenated String with Unique Characters
1363Greatest English Letter in Upper and Lower Case
1371Minimum Remove to Make Valid Parentheses
1380Number of Closed Islands
1386Shift 2D Grid
1393Maximum Value of K Coins From Piles
1396Count Servers that Communicate
1397Search Suggestions System
1400Find Winner on a Tic Tac Toe Game
1402Count Square Submatrices with All Ones
1414Shortest Path in a Grid with Obstacles Elimination
1420Find the Start and End Number of Continuous Ranges
1426Find N Unique Integers Sum up to Zero
1428Jump Game III
1437Minimum Insertion Steps to Make a String Palindrome
1441Minimum Flips to Make a OR b Equal to c
1442Number of Operations to Make Network Connected
1444Number of Steps to Reduce a Number to Zero
1446Angle Between Hands of a Clock
1449Print Words Vertically
1451Minimum Number of Taps to Open to Water a Garden
1465Maximum Product of Splitted Binary Tree
1473Find the Longest Substring Containing Vowels in Even Counts
1476Count Negative Numbers in a Sorted Matrix
1487Cinema Seat Allocation
1491Number of Times Binary String Is Prefix-Aligned
1492Time Needed to Inform All Employees
1504Get the Second Most Recent Activity
1510Find Lucky Integer in an Array
1516The k-th Lexicographical String of All Happy Strings of Length n
1520Number of Steps to Reduce a Number in Binary Representation to One
1532Reformat The String
1544Count Good Nodes in Binary Tree
1560Number of Students Doing Homework at a Given Time
1569Max Dot Product of Two Subsequences
1573Find Two Non-overlapping Sub-arrays Each With Target Sum
1580Shuffle the Array
1582Design Browser History
1585The kth Factor of n
1587Parallel Courses II
1605Minimum Number of Days to Make m Bouquets
1609Find All The Lonely Nodes
1611Making File Names Unique
1617Stone Game IV
1618Delete N Nodes After M Nodes of a Linked List
1630Count Odd Numbers in an Interval Range
1635Number of Good Pairs
1637String Compression II
1642Water Bottles
1646Kth Missing Positive Number
1648Minimum Insertions to Balance a Parentheses String
1649Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
1651Shuffle String
1669Minimum Cost to Cut a Stick
1674Minimum Operations to Make Array Equal
1678Number of Ways to Split a String
1698Replace All ?’s to Avoid Consecutive Repeating Characters
1700Minimum Time to Make Rope Colorful
1701Remove Max Number of Edges to Keep Graph Fully Traversable
1706Min Cost to Connect All Points
1708Design Parking System
1713Dot Product of Two Sparse Vectors
1714Rearrange Spaces Between Words
1738Maximal Network Rank
1742Widest Vertical Area Between Two Points Containing No Points
1743Count Substrings That Differ by One Character
1753Path With Minimum Effort
1756Minimum Deletions to Make String Balanced
1762Furthest Building You Can Reach
1766Minimum Number of Removals to Make Mountain Array
1770Minimum Deletions to Make Character Frequencies Unique
1780Lowest Common Ancestor of a Binary Tree II
1790Lowest Common Ancestor of a Binary Tree III
1799Minimum Incompatibility
1801Average Time of Process per Machine
1802Number of Students Unable to Eat Lunch
1805Minimum Adjacent Swaps for K Consecutive Ones
1829Maximum Units on a Truck
1831Ways to Split Array Into Three Subarrays
1833Find the Highest Altitude
1866Restore the Array From Adjacent Pairs
1873Longest Nice Substring
1883Find Distance in a Binary Tree
1894Merge Strings Alternately
1900Closest Dessert Cost
1901Equal Sum Arrays With Minimum Number of Operations
1908Recyclable and Low Fat Products
1909Buildings With an Ocean View
1915Check if One String Swap Can Make Strings Equal
1916Find Center of Star Graph
1925Count Nice Pairs in an Array
1929Maximum Value at a Given Index in a Bounded Array
1936Maximize Number of Nice Divisors
1950Sign of the Product of an Array
1951Find the Winner of the Circular Game
1966Frequency of the Most Frequent Element
1982Remove Duplicates From an Unsorted Linked List
1983Maximum Population Year
2016Reduction Operations to Make the Array Elements Equal
2031Egg Drop With 2 Eggs and N Floors
2033The Number of Full Rounds You Have Played
2076Sum of Digits of String After Convert
2082Minimum Cost to Separate Sentence Into Rows
2083Three Divisors
2095Minimum Number of Swaps to Make the String Balanced
2114Minimum Number of Work Sessions to Finish the Tasks
2117Find Original Array From Doubled Array
2121Find if Path Exists in Graph
2142Average Height of Buildings in Each Segment
2155Find Missing Observations
2162Partition Array Into Two Arrays to Minimize Sum Difference
2176Parallel Courses III
2217Step-By-Step Directions From a Binary Tree Node to Another
2220Find All Possible Recipes from Given Supplies
2242Subsequence of Size K With the Largest Even Sum
2243Check if All A’s Appears Before All B’s
2246Maximum Employees to Be Invited to a Meeting
2247Number of Unique Flavors After Sharing K Candies
2255Minimum Swaps to Group All 1’s Together II
2290Removing Minimum Number of Magic Beans
2292Counting Words With a Given Prefix
2299Merge Nodes in Between Zeros
2308Divide Array Into Equal Pairs
2310Minimum Operations to Halve Array Sum
2334Number of Flowers in Full Bloom
2337Remove Digit From Number to Maximize Result
2364Longest Path With Different Adjacent Characters
2383Add Two Integers
2384Root Equals Sum of Children
2418Minimum Sum of Squared Difference
2439Longest Cycle in a Graph
2453All the Matches of the League
2461Amount of Time for Binary Tree to Be Infected
2471Minimum Amount of Time to Collect Garbage
2473Max Sum of a Pair With Equal Sum of Digits
2475Largest Palindromic Number
2487Optimal Partition of String
2524Largest Positive Integer That Exists With Its Negative
2568Minimum Fuel Cost to Report to the Capital
2593Number of Distinct Binary Strings After Applying Operations
2634Minimum Common Value
2674Make the Prefix Sum Non-negative
2693Maximum Price to Fill a Bag
2720Minimize the Maximum Difference of Pairs
2756Buy Two Chocolates
2809Create Hello World Function
2823The Knight’s Tour
2902Max Pair Sum in an Array
3092Minimum Moves to Spread Stones Over Grid
3111Smallest Number With Given Digit Product
Read More

Previous Questions

Oracle

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
17Letter Combinations of a Phone Number
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
26Remove Duplicates from Sorted Array
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
36Valid Sudoku
37Sudoku Solver
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
45Jump Game II
48Rotate Image
49Group Anagrams
50Pow(x, n)
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
61Rotate List
63Unique Paths II
64Minimum Path Sum
70Climbing Stairs
71Simplify Path
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
78Subsets
79Word Search
88Merge Sorted Array
91Decode Ways
93Restore IP Addresses
98Validate Binary Search Tree
99Recover Binary Search Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
108Convert Sorted Array to Binary Search Tree
116Populating Next Right Pointers in Each Node
118Pascal’s Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
134Gas Station
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
146LRU Cache
148Sort List
149Max Points on a Line
150Evaluate Reverse Polish Notation
153Find Minimum in Rotated Sorted Array
155Min Stack
160Intersection of Two Linked Lists
165Compare Version Numbers
168Excel Sheet Column Title
176Second Highest Salary
179Largest Number
196Delete Duplicate Emails
199Binary Tree Right Side View
200Number of Islands
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
215Kth Largest Element in an Array
217Contains Duplicate
221Maximal Square
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
232Implement Queue using Stacks
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
243Shortest Word Distance
252Meeting Rooms
253Meeting Rooms II
268Missing Number
273Integer to English Words
279Perfect Squares
283Move Zeroes
297Serialize and Deserialize Binary Tree
300Longest Increasing Subsequence
314Binary Tree Vertical Order Traversal
316Remove Duplicate Letters
328Odd Even Linked List
329Longest Increasing Path in a Matrix
333Largest BST Subtree
347Top K Frequent Elements
348Design Tic-Tac-Toe
359Logger Rate Limiter
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
387First Unique Character in a String
394Decode String
412Fizz Buzz
414Third Maximum Number
415Add Strings
425Word Squares
438Find All Anagrams in a String
443String Compression
445Add Two Numbers II
450Delete Node in a BST
453Minimum Moves to Equal Array Elements
460LFU Cache
463Island Perimeter
468Validate IP Address
516Longest Palindromic Subsequence
540Single Element in a Sorted Array
543Diameter of Binary Tree
560Subarray Sum Equals K
564Find the Closest Palindrome
567Permutation in String
588Design In-Memory File System
658Find K Closest Elements
680Valid Palindrome II
694Number of Distinct Islands
696Count Binary Substrings
697Degree of an Array
715Range Module
735Asteroid Collision
761Employee Free Time
766Flatten a Multilevel Doubly Linked List
778Reorganize String
792Binary Search
803Cheapest Flights Within K Stops
812Rotate String
817Design HashMap
832Binary Tree Pruning
866Rectangle Overlap
874Backspace String Compare
878Shifting Letters
908Middle of the Linked List
971Shortest Bridge
1013Fibonacci Number
1014K Closest Points to Origin
1023Time Based Key-Value Store
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1034Subarrays with K Different Integers
1036Rotting Oranges
1050Construct Binary Search Tree from Preorder Traversal
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1116Maximum Level Sum of a Binary Tree
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1159Smallest Subsequence of Distinct Characters
1171Shortest Path in Binary Matrix
1308Smallest String With Swaps
1352Maximum Profit in Job Scheduling
1397Search Suggestions System
1411Convert Binary Number in a Linked List to Integer
1431All Ancestors of a Node in a Directed Acyclic Graph
1451Minimum Number of Taps to Open to Water a Garden
1496Lucky Numbers in a Matrix
1510Find Lucky Integer in an Array
1526HTML Entity Parser
1582Design Browser History
1732Minimum One Bit Operations to Make Integers Zero
1741Sort Array by Increasing Frequency
1851Maximum Number of Events That Can Be Attended II
1883Find Distance in a Binary Tree
1909Buildings With an Ocean View
1929Maximum Value at a Given Index in a Bounded Array
2115Number of Unique Good Subsequences
2116Count Number of Pairs With Absolute Difference K
2527Count Subarrays With Fixed Bounds
2530Minimize Maximum of Array
2559Maximum Number of Non-overlapping Palindrome Substrings
2562Count Ways To Build Good Strings
2594Count Pairs Of Similar Strings
2651Count Ways to Group Overlapping Ranges
2679Count Distinct Numbers on Board
2683Count the Number of Good Subsequences
2689Rearranging Fruits
3032Maximize Value of Function in a Ball Passing Game
Read More

Previous Questions

Salesforce

IDQuestions
1Two Sum
3Longest Substring Without Repeating Characters
5Longest Palindromic Substring
9Palindrome Number
14Longest Common Prefix
153Sum
19Remove Nth Node From End of List
20Valid Parentheses
22Generate Parentheses
23Merge k Sorted Lists
33Search in Rotated Sorted Array
37Sudoku Solver
39Combination Sum
41First Missing Positive
42Trapping Rain Water
44Wildcard Matching
45Jump Game II
46Permutations
49Group Anagrams
53Maximum Subarray
55Jump Game
56Merge Intervals
63Unique Paths II
74Search a 2D Matrix
75Sort Colors
84Largest Rectangle in Histogram
91Decode Ways
98Validate Binary Search Tree
103Binary Tree Zigzag Level Order Traversal
105Construct Binary Tree from Preorder and Inorder Traversal
114Flatten Binary Tree to Linked List
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
124Binary Tree Maximum Path Sum
133Clone Graph
139Word Break
146LRU Cache
155Min Stack
169Majority Element
173Binary Search Tree Iterator
179Largest Number
189Rotate Array
199Binary Tree Right Side View
200Number of Islands
205Isomorphic Strings
207Course Schedule
210Course Schedule II
215Kth Largest Element in an Array
221Maximal Square
229Majority Element II
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
253Meeting Rooms II
261Graph Valid Tree
278First Bad Version
283Move Zeroes
297Serialize and Deserialize Binary Tree
316Remove Duplicate Letters
339Nested List Weight Sum
347Top K Frequent Elements
354Russian Doll Envelopes
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
392Is Subsequence
394Decode String
410Split Array Largest Sum
417Pacific Atlantic Water Flow
423Reconstruct Original Digits from English
435Non-overlapping Intervals
456132 Pattern
459Repeated Substring Pattern
460LFU Cache
486Predict the Winner
502IPO
526Beautiful Arrangement
557Reverse Words in a String III
588Design In-Memory File System
628Maximum Product of Three Numbers
691Stickers to Spell Word
695Max Area of Island
697Degree of an Array
735Asteroid Collision
739Daily Temperatures
808Number of Matching Subsequences
817Design HashMap
896Smallest Subtree with all the Deepest Nodes
907Koko Eating Bananas
917Boats to Save People
923Super Egg Drop
931Maximum Frequency Stack
1036Rotting Oranges
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1097Stream of Characters
1102Check If a Number Is Majority Element in a Sorted Array
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1137Height Checker
1320Remove All Adjacent Duplicates in String II
1397Search Suggestions System
1451Minimum Number of Taps to Open to Water a Garden
1478Maximum Number of Events That Can Be Attended
1544Count Good Nodes in Binary Tree
1561Rearrange Words in a Sentence
1585The kth Factor of n
1778Maximize Grid Happiness
1803Average Waiting Time
1859Change Minimum Characters to Satisfy One of Three Conditions
1962Single-Threaded CPU
2144Maximum Difference Between Increasing Elements
2162Partition Array Into Two Arrays to Minimize Sum Difference
2177Check Whether Two Strings are Almost Equivalent
2699Count the Number of Fair Pairs
3113Beautiful Towers II
3114Beautiful Towers I
3215Matrix Similarity After Cyclic Shifts
3230Remove Adjacent Almost-Equal Characters
Read More

Previous Questions

TIKTOK

IDQuestions
1Two Sum
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
153Sum
20Valid Parentheses
22Generate Parentheses
23Merge k Sorted Lists
25Reverse Nodes in k-Group
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
37Sudoku Solver
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
59Spiral Matrix II
62Unique Paths
66Plus One
68Text Justification
69Sqrt(x)
72Edit Distance
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
88Merge Sorted Array
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
98Validate Binary Search Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
105Construct Binary Tree from Preorder and Inorder Traversal
113Path Sum II
115Distinct Subsequences
117Populating Next Right Pointers in Each Node II
121Best Time to Buy and Sell Stock
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
127Word Ladder
130Surrounded Regions
131Palindrome Partitioning
133Clone Graph
134Gas Station
139Word Break
142Linked List Cycle II
146LRU Cache
148Sort List
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
162Find Peak Element
163Missing Ranges
165Compare Version Numbers
179Largest Number
188Best Time to Buy and Sell Stock IV
198House Robber
199Binary Tree Right Side View
200Number of Islands
202Happy Number
204Count Primes
206Reverse Linked List
207Course Schedule
209Minimum Size Subarray Sum
210Course Schedule II
212Word Search II
213House Robber II
215Kth Largest Element in an Array
221Maximal Square
222Count Complete Tree Nodes
224Basic Calculator
227Basic Calculator II
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
239Sliding Window Maximum
253Meeting Rooms II
254Factor Combinations
2593Sum Smaller
261Graph Valid Tree
269Alien Dictionary
278First Bad Version
282Expression Add Operators
283Move Zeroes
286Walls and Gates
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
300Longest Increasing Subsequence
301Remove Invalid Parentheses
305Number of Islands II
314Binary Tree Vertical Order Traversal
316Remove Duplicate Letters
322Coin Change
323Number of Connected Components in an Undirected Graph
329Longest Increasing Path in a Matrix
331Verify Preorder Serialization of a Binary Tree
333Largest BST Subtree
334Increasing Triplet Subsequence
340Longest Substring with At Most K Distinct Characters
347Top K Frequent Elements
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
360Sort Transformed Array
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
386Lexicographical Numbers
387First Unique Character in a String
392Is Subsequence
394Decode String
395Longest Substring with At Least K Repeating Characters
398Random Pick Index
399Evaluate Division
400Nth Digit
402Remove K Digits
403Frog Jump
410Split Array Largest Sum
414Third Maximum Number
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
418Sentence Screen Fitting
424Longest Repeating Character Replacement
435Non-overlapping Intervals
437Path Sum III
438Find All Anagrams in a String
443String Compression
460LFU Cache
468Validate IP Address
480Sliding Window Median
486Predict the Winner
487Max Consecutive Ones II
490The Maze
493Reverse Pairs
503Next Greater Element II
523Continuous Subarray Sum
547Number of Provinces
556Next Greater Element III
560Subarray Sum Equals K
562Longest Line of Consecutive One in Matrix
572Subtree of Another Tree
588Design In-Memory File System
617Merge Two Binary Trees
621Task Scheduler
652Find Duplicate Subtrees
658Find K Closest Elements
662Maximum Width of Binary Tree
666Path Sum IV
670Maximum Swap
680Valid Palindrome II
684Redundant Connection
694Number of Distinct Islands
695Max Area of Island
696Count Binary Substrings
721Accounts Merge
722Remove Comments
724Find Pivot Index
735Asteroid Collision
739Daily Temperatures
744Network Delay Time
753Open the Lock
778Reorganize String
785Basic Calculator III
787Sliding Puzzle
796Reaching Points
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
806Domino and Tromino Tiling
807Custom Sort String
815Champagne Tower
833Bus Routes
854Making A Large Island
860Design Circular Queue
863Sum of Distances in Tree
865Robot Room Cleaner
869Similar String Groups
874Backspace String Compare
885Exam Room
886Score of Parentheses
907Koko Eating Bananas
909Stone Game
912Random Pick with Weight
922Possible Bipartition
932Monotonic Array
957Minimum Add to Make Parentheses Valid
960Minimize Malware Spread
971Shortest Bridge
982Minimum Increment to Make Array Unique
983Validate Stack Sequences
984Most Stones Removed with Same Row or Column
990Verifying an Alien Dictionary
1008Binary Tree Cameras
1023Time Based Key-Value Store
1034Subarrays with K Different Integers
1035Cousins in Binary Tree
1036Rotting Oranges
1044Find Common Characters
1046Max Consecutive Ones III
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1081Video Stitching
1083Two Sum Less Than K
1087Longest Arithmetic Subsequence
1095Two City Scheduling
1129Longest String Chain
1165Meeting Scheduler
1171Shortest Path in Binary Matrix
1283Reformat Date
1305Number of Visible People in a Queue
1320Remove All Adjacent Duplicates in String II
1352Maximum Profit in Job Scheduling
1371Minimum Remove to Make Valid Parentheses
1375Find Palindrome With Fixed Length
1397Search Suggestions System
1400Find Winner on a Tic Tac Toe Game
1414Shortest Path in a Grid with Obstacles Elimination
1418Fair Distribution of Cookies
1422Divide Array in Sets of K Consecutive Numbers
1447Jump Game IV
1457Minimum Difficulty of a Job Schedule
1477Product of the Last K Numbers
1483Rank Teams by Votes
1497Design a Stack With Increment Operation
1555Number of Ways of Cutting a Pizza
1579Active Users
1646Kth Missing Positive Number
1648Minimum Insertions to Balance a Parentheses String
1653Number of Good Leaf Nodes Pairs
1678Number of Ways to Split a String
1687The Most Similar Path in a Graph
1900Closest Dessert Cost
1909Buildings With an Ocean View
1971Incremental Memory Leak
1972Rotating the Box
2047Find a Peak Element II
2088Minimum Time to Type Word Using Special Typewriter
2123The Number of Weak Characters in the Game
2165Plates Between Candles
2210Find Target Indices After Sorting Array
2217Step-By-Step Directions From a Binary Tree Node to Another
2220Find All Possible Recipes from Given Supplies
2249Count the Hidden Sequences
2297Amount of New Area Painted Each Day
2492Length of the Longest Alphabetical Continuous Substring
2505Number of Good Paths
2543Most Popular Video Creator
2565Merge Operations to Turn Array Into a Palindrome
2610Closest Prime Numbers in Range
2676Find the Score of All Prefixes of an Array
2682Count Increasing Quadruplets
2765Make Array Empty
2856Count Complete Subarrays in an Array
3158Maximum Length of Semi-Decreasing Subarrays
Read More

Previous Questions

Uber

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
31Next Permutation
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
45Jump Game II
46Permutations
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
58Length of Last Word
59Spiral Matrix II
62Unique Paths
63Unique Paths II
64Minimum Path Sum
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
78Subsets
79Word Search
81Search in Rotated Sorted Array II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
88Merge Sorted Array
90Subsets II
91Decode Ways
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
97Interleaving String
98Validate Binary Search Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
118Pascal’s Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
127Word Ladder
128Longest Consecutive Sequence
131Palindrome Partitioning
133Clone Graph
134Gas Station
135Candy
136Single Number
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
143Reorder List
146LRU Cache
149Max Points on a Line
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
155Min Stack
160Intersection of Two Linked Lists
161One Edit Distance
162Find Peak Element
163Missing Ranges
167Two Sum II - Input Array Is Sorted
169Majority Element
171Excel Sheet Column Number
174Dungeon Game
177Nth Highest Salary
178Rank Scores
179Largest Number
180Consecutive Numbers
181Employees Earning More Than Their Managers
182Duplicate Emails
186Reverse Words in a String II
188Best Time to Buy and Sell Stock IV
189Rotate Array
196Delete Duplicate Emails
199Binary Tree Right Side View
200Number of Islands
202Happy Number
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
210Course Schedule II
212Word Search II
214Shortest Palindrome
215Kth Largest Element in an Array
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
221Maximal Square
224Basic Calculator
226Invert Binary Tree
227Basic Calculator II
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
238Product of Array Except Self
239Sliding Window Maximum
242Valid Anagram
246Strobogrammatic Number
247Strobogrammatic Number II
249Group Shifted Strings
253Meeting Rooms II
254Factor Combinations
262Trips and Users
266Palindrome Permutation
267Palindrome Permutation II
268Missing Number
269Alien Dictionary
278First Bad Version
279Perfect Squares
283Move Zeroes
287Find the Duplicate Number
290Word Pattern
291Word Pattern II
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
301Remove Invalid Parentheses
304Range Sum Query 2D - Immutable
305Number of Islands II
310Minimum Height Trees
312Burst Balloons
322Coin Change
328Odd Even Linked List
329Longest Increasing Path in a Matrix
332Reconstruct Itinerary
337House Robber III
341Flatten Nested List Iterator
343Integer Break
345Reverse Vowels of a String
347Top K Frequent Elements
350Intersection of Two Arrays II
354Russian Doll Envelopes
355Design Twitter
358Rearrange String k Distance Apart
361Bomb Enemy
362Design Hit Counter
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
384Shuffle an Array
387First Unique Character in a String
392Is Subsequence
394Decode String
399Evaluate Division
402Remove K Digits
408Valid Word Abbreviation
412Fizz Buzz
414Third Maximum Number
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
424Longest Repeating Character Replacement
432All O`one Data Structure
438Find All Anagrams in a String
443String Compression
450Delete Node in a BST
452Minimum Number of Arrows to Burst Balloons
460LFU Cache
465Optimal Account Balancing
473Matchsticks to Square
474Ones and Zeroes
486Predict the Winner
490The Maze
494Target Sum
496Next Greater Element I
502IPO
516Longest Palindromic Subsequence
518Coin Change II
525Contiguous Array
529Minesweeper
532K-diff Pairs in an Array
535Encode and Decode TinyURL
540Single Element in a Sorted Array
541Reverse String II
543Diameter of Binary Tree
545Boundary of Binary Tree
560Subarray Sum Equals K
564Find the Closest Palindrome
572Subtree of Another Tree
581Shortest Unsorted Continuous Subarray
586Customer Placing the Largest Number of Orders
588Design In-Memory File System
605Can Place Flowers
608Tree Node
617Merge Two Binary Trees
621Task Scheduler
636Exclusive Time of Functions
648Replace Words
653Two Sum IV - Input is a BST
658Find K Closest Elements
662Maximum Width of Binary Tree
680Valid Palindrome II
682Baseball Game
690Employee Importance
692Top K Frequent Words
695Max Area of Island
698Partition to K Equal Sum Subsets
699Falling Squares
715Range Module
721Accounts Merge
722Remove Comments
723Candy Crush
724Find Pivot Index
725Split Linked List in Parts
729My Calendar I
731My Calendar II
733Flood Fill
735Asteroid Collision
737Sentence Similarity II
739Daily Temperatures
740Delete and Earn
741Cherry Pickup
747Min Cost Climbing Stairs
753Open the Lock
761Employee Free Time
765Serialize and Deserialize N-ary Tree
768Partition Labels
772Construct Quad Tree
778Reorganize String
785Basic Calculator III
787Sliding Puzzle
789Kth Largest Element in a Stream
792Binary Search
794Swim in Rising Water
796Reaching Points
801Is Graph Bipartite?
815Champagne Tower
833Bus Routes
835Linked List Components
854Making A Large Island
877Shortest Path Visiting All Nodes
879Maximize Distance to Closest Person
881Loud and Rich
882Peak Index in a Mountain Array
885Exam Room
893All Nodes Distance K in Binary Tree
894Random Pick with Blacklist
895Shortest Path to Get All Keys
907Koko Eating Bananas
908Middle of the Linked List
912Random Pick with Weight
917Boats to Save People
922Possible Bipartition
938Numbers At Most N Given Digit Set
948Sort an Array
957Minimum Add to Make Parentheses Valid
966Binary Subarrays With Sum
971Shortest Bridge
978Valid Mountain Array
990Verifying an Alien Dictionary
999Regions Cut By Slashes
1019Squares of a Sorted Array
1023Time Based Key-Value Store
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1034Subarrays with K Different Integers
1036Rotting Oranges
1044Find Common Characters
1050Construct Binary Search Tree from Preorder Traversal
1056Capacity To Ship Packages Within D Days
1060Longest Repeating Substring
1066Fixed Point
1086Divisor Game
1087Longest Arithmetic Subsequence
1101Parallel Courses
1107Minimum Swaps to Group All 1’s Together
1108Analyze User Website Visit Pattern
1111Minimum Score Triangulation of Polygon
1122Longest Duplicate Substring
1127Last Stone Weight
1170Shortest Common Supersequence
1185Find in Mountain Array
1197Parsing A Boolean Expression
1211Iterator for Combination
1240Stone Game II
1250Longest Common Subsequence
1252Break a Palindrome
1267Remove Zero Sum Consecutive Nodes from Linked List
1306Minimum Absolute Difference
1352Maximum Profit in Job Scheduling
1360Maximum Length of a Concatenated String with Unique Characters
1374Leftmost Column with at Least a One
1406Subtract the Product and Sum of Digits of an Integer
1411Convert Binary Number in a Linked List to Integer
1414Shortest Path in a Grid with Obstacles Elimination
1444Number of Steps to Reduce a Number to Zero
1446Angle Between Hands of a Clock
1451Minimum Number of Taps to Open to Water a Garden
1456Find the City With the Smallest Number of Neighbors at a Threshold Distance
1457Minimum Difficulty of a Job Schedule
1474Longest ZigZag Path in a Binary Tree
1476Count Negative Numbers in a Sorted Matrix
1478Maximum Number of Events That Can Be Attended
1486Find the Distance Value Between Two Arrays
1502Construct K Palindrome Strings
1503Reducing Dishes
1505Create Target Array in the Given Order
1528Kids With the Greatest Number of Candies
1538Maximum Points You Can Obtain from Cards
1549Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1558Course Schedule IV
1603Running Sum of 1d Array
1635Number of Good Pairs
1637String Compression II
1638Best Position for a Service Centre
1643Number of Nodes in the Sub-Tree With the Same Label
1701Remove Max Number of Edges to Keep Graph Fully Traversable
1706Min Cost to Connect All Points
1708Design Parking System
1734Bank Account Summary II
1741Sort Array by Increasing Frequency
1753Path With Minimum Effort
1779Hopper Company Queries I
1785Hopper Company Queries II
1795Hopper Company Queries III
1802Number of Students Unable to Eat Lunch
1820Number Of Ways To Reconstruct A Tree
1824Maximum Number of Eaten Apples
1866Restore the Array From Adjacent Pairs
1878Check if Array Is Sorted and Rotated
1881Closest Subsequence Sum
1883Find Distance in a Binary Tree
1894Merge Strings Alternately
1909Buildings With an Ocean View
1925Count Nice Pairs in an Array
1940Maximum XOR for Each Query
1946Minimum Absolute Sum Difference
1966Frequency of the Most Frequent Element
1972Rotating the Box
1985Maximum Subarray Min-Product
1990Get Biggest Three Rhombus Sums in a Grid
1997Next Palindrome Using Same Digits
2038Nearest Exit from Entrance in Maze
2058Concatenation of Array
2065Check for Contradictions in Equations
2072Maximum of Minimum Values in All Subarrays
2085Array With Elements Not Equal to Average of Neighbors
2093Check If String Is a Prefix of Array
2099Number of Strings That Appear as Substrings in Word
2119Minimum Number of Operations to Make Array Continuous
2133Number of Pairs of Strings With Concatenation Equal to Target
2162Partition Array Into Two Arrays to Minimize Sum Difference
2220Find All Possible Recipes from Given Supplies
2246Maximum Employees to Be Invited to a Meeting
2255Minimum Swaps to Group All 1’s Together II
2267Minimum Difference in Sums After Removal of Elements
2271Rearrange Array Elements by Sign
2277Count Equal and Divisible Pairs in an Array
2294Minimum Time to Complete Trips
2297Amount of New Area Painted Each Day
2306Create Binary Tree From Descriptions
2331Intersection of Multiple Arrays
2334Number of Flowers in Full Bloom
2339K Divisible Elements Subarrays
2344Escape the Spreading Fire
2361Calculate Digit Sum of a String
2383Add Two Integers
2418Minimum Sum of Squared Difference
2425Number of People That Can Be Seen in a Grid
2479Meeting Rooms III
2563Split Message Based on Limit
2583Divide Nodes Into the Maximum Number of Groups
2673Maximize Win From Two Segments
2681Put Marbles in Bags
2717Collect Coins in a Tree
2755Extra Characters in a String
2809Create Hello World Function
2977Check if a String Is an Acronym of Words
3034Points That Intersect With Cars
3198Number of Ways to Reach Destination in the Grid
Read More

Previous Questions

Walmart Labs

IDQuestions
1Two Sum
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
11Container With Most Water
12Integer to Roman
14Longest Common Prefix
153Sum
17Letter Combinations of a Phone Number
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
26Remove Duplicates from Sorted Array
31Next Permutation
33Search in Rotated Sorted Array
39Combination Sum
41First Missing Positive
42Trapping Rain Water
46Permutations
49Group Anagrams
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
59Spiral Matrix II
74Search a 2D Matrix
75Sort Colors
78Subsets
79Word Search
83Remove Duplicates from Sorted List
88Merge Sorted Array
97Interleaving String
98Validate Binary Search Tree
103Binary Tree Zigzag Level Order Traversal
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
127Word Ladder
134Gas Station
138Copy List with Random Pointer
139Word Break
146LRU Cache
153Find Minimum in Rotated Sorted Array
155Min Stack
189Rotate Array
198House Robber
200Number of Islands
202Happy Number
207Course Schedule
209Minimum Size Subarray Sum
215Kth Largest Element in an Array
224Basic Calculator
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
242Valid Anagram
253Meeting Rooms II
287Find the Duplicate Number
295Find Median from Data Stream
322Coin Change
347Top K Frequent Elements
355Design Twitter
373Find K Pairs with Smallest Sums
380Insert Delete GetRandom O(1)
387First Unique Character in a String
394Decode String
416Partition Equal Subset Sum
435Non-overlapping Intervals
437Path Sum III
523Continuous Subarray Sum
545Boundary of Binary Tree
647Palindromic Substrings
664Strange Printer
680Valid Palindrome II
695Max Area of Island
696Count Binary Substrings
697Degree of an Array
716Max Stack
726Number of Atoms
817Design HashMap
829Subdomain Visit Count
871Keys and Rooms
893All Nodes Distance K in Binary Tree
908Middle of the Linked List
1019Squares of a Sorted Array
1023Time Based Key-Value Store
1252Break a Palindrome
1283Reformat Date
1359Circular Permutation in Binary Representation
1458Sort Integers by The Number of 1 Bits
1610XOR Operation in an Array
1909Buildings With an Ocean View
2091Number of Ways to Separate Numbers
2114Minimum Number of Work Sessions to Finish the Tasks
2149Remove Colored Pieces if Both Neighbors are the Same Color
2177Check Whether Two Strings are Almost Equivalent
2180Maximum Number of Tasks You Can Assign
2214The Winner University
2280Count Good Triplets in an Array
2426Maximum Profit From Trading Stocks
2488Divide Intervals Into Minimum Number of Groups
2539Minimum Number of Operations to Make Arrays Similar
2559Maximum Number of Non-overlapping Palindrome Substrings
2604Minimum Operations to Make Array Equal II
Read More

Previous Questions

YANDEX

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
9Palindrome Number
12Integer to Roman
13Roman to Integer
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
27Remove Element
28Find the Index of the First Occurrence in a String
33Search in Rotated Sorted Array
42Trapping Rain Water
49Group Anagrams
56Merge Intervals
70Climbing Stairs
71Simplify Path
76Minimum Window Substring
88Merge Sorted Array
93Restore IP Addresses
98Validate Binary Search Tree
101Symmetric Tree
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
121Best Time to Buy and Sell Stock
124Binary Tree Maximum Path Sum
125Valid Palindrome
135Candy
136Single Number
141Linked List Cycle
146LRU Cache
150Evaluate Reverse Polish Notation
155Min Stack
159Longest Substring with At Most Two Distinct Characters
161One Edit Distance
169Majority Element
199Binary Tree Right Side View
200Number of Islands
204Count Primes
205Isomorphic Strings
206Reverse Linked List
228Summary Ranges
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
239Sliding Window Maximum
242Valid Anagram
253Meeting Rooms II
283Move Zeroes
300Longest Increasing Subsequence
301Remove Invalid Parentheses
332Reconstruct Itinerary
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
347Top K Frequent Elements
349Intersection of Two Arrays
350Intersection of Two Arrays II
356Line Reflection
362Design Hit Counter
380Insert Delete GetRandom O(1)
392Is Subsequence
404Sum of Left Leaves
424Longest Repeating Character Replacement
438Find All Anagrams in a String
443String Compression
485Max Consecutive Ones
487Max Consecutive Ones II
557Reverse Words in a String III
560Subarray Sum Equals K
567Permutation in String
581Shortest Unsorted Continuous Subarray
652Find Duplicate Subtrees
657Robot Return to Origin
658Find K Closest Elements
680Valid Palindrome II
692Top K Frequent Words
716Max Stack
768Partition Labels
792Binary Search
879Maximize Distance to Closest Person
903Implement Rand10() Using Rand7()
969Number of Recent Calls
1019Squares of a Sorted Array
1028Interval List Intersections
1046Max Consecutive Ones III
1253Sort the Matrix Diagonally
1392Find the Difference of Two Arrays
1547Destination City
1576Reorder Routes to Make All Paths Lead to the City Zero
1586Longest Subarray of 1’s After Deleting One Element
2352Design an ATM Machine
2750Promise Pool
2759Flatten Deeply Nested Array
2766Find the Prefix Common Array of Two Arrays
2771Throttle
2797Event Emitter
Read More