Leetcode
HackerRank
Love Babbar
Interview Prep
Cheat Sheet
Dynamic Sheet
About Us
Leetcode
HackerRank
Love Babbar
Interview Prep
Cheat Sheet
Dynamic Sheet
About Us
Explorer
LeetCode
0001. Two Sum
3
C++
Java
Python
0002. Add Two Numbers
3
0003. Longest Substring Without Repeating Characters
3
0004. Median of Two Sorted Arrays
3
0005. Longest Palindromic Substring
3
0006. ZigZag Conversion
3
0007. Reverse Integer
3
0008. String to Integer (atoi)
3
0009. Palindrome Number
3
0010. Regular Expression Matching
3
0011. Container With Most Water
3
0012. Integer to Roman
3
0013. Roman to Integer
3
0014. Longest Common Prefix
3
0015. 3Sum
3
0016. 3Sum Closest
3
0017. Letter Combinations of a Phone Number
3
0018. 4Sum
3
0019. Remove Nth Node From End of List
3
0020. Valid Parentheses
3
0021. Merge Two Sorted Lists
3
0022. Generate Parentheses
3
0023. Merge k Sorted Lists
3
0024. Swap Nodes in Pairs
3
0025. Reverse Nodes in k-Group
3
0026. Remove Duplicates from Sorted Array
3
0027. Remove Element
3
0028. Implement strStr()
3
0029. Divide Two Integers
3
0030. Substring with Concatenation of All Words
3
0031. Next Permutation
3
0032. Longest Valid Parentheses
3
0033. Search in Rotated Sorted Array
3
0034. Find First and Last Position of Element in Sorted Array
3
0035. Search Insert Position
3
0036. Valid Sudoku
3
0037. Sudoku Solver
3
0038. Count and Say
3
0039. Combination Sum
3
0040. Combination Sum II
3
0041. First Missing Positive
3
0042. Trapping Rain Water
3
0043. Multiply Strings
3
0044. Wildcard Matching
3
0045. Jump Game II
3
0046. Permutations
3
0047. Permutations II
3
0048. Rotate Image
3
0049. Group Anagrams
3
0050. Pow(x, n)
3
0051. N-Queens
3
0052. N-Queens II
3
0053. Maximum Subarray
3
0054. Spiral Matrix
3
0055. Jump Game
3
0056. Merge Intervals
3
0057. Insert Interval
3
0058. Length of Last Word
3
0059. Spiral Matrix II
3
0060. Permutation Sequence
3
0061. Rotate List
3
0062. Unique Paths
3
0063. Unique Paths II
3
0064. Minimum Path Sum
3
0065. Valid Number
3
0066. Plus One
3
0067. Add Binary
3
0068. Text Justification
3
0069. Sqrt(x)
3
0070. Climbing Stairs
3
0071. Simplify Path
3
0072. Edit Distance
3
0073. Set Matrix Zeroes
3
0074. Search a 2D Matrix
3
0075. Sort Colors
3
0076. Minimum Window Substring
3
0077. Combinations
3
0078. Subsets
3
0079. Word Search
3
0080. Remove Duplicates from Sorted Array II
3
0081. Search in Rotated Sorted Array II
3
0082. Remove Duplicates from Sorted List II
3
0083. Remove Duplicates from Sorted List
3
0084. Largest Rectangle in Histogram
3
0085. Maximal Rectangle
3
0086. Partition List
3
0087. Scramble String
3
0088. Merge Sorted Array
3
0089. Gray Code
3
0090. Subsets II
3
0091. Decode Ways
3
0092. Reverse Linked List II
3
0093. Restore IP Addresses
3
0094. Binary Tree Inorder Traversal
3
0095. Unique Binary Search Trees II
3
0096. Unique Binary Search Trees
3
0097. Interleaving String
3
0098. Validate Binary Search Tree
3
0099. Recover Binary Search Tree
3
0100. Same Tree
3
0101. Symmetric Tree
3
0102. Binary Tree Level Order Traversal
3
0103. Binary Tree Zigzag Level Order Traversal
3
0104. Maximum Depth of Binary Tree
3
0105. Construct Binary Tree from Preorder and Inorder Traversal
3
0106. Construct Binary Tree from Inorder and Postorder Traversal
3
0107. Binary Tree Level Order Traversal II
3
0108. Convert Sorted Array to Binary Search Tree
3
0109. Convert Sorted List to Binary Search Tree
3
0110. Balanced Binary Tree
3
0111. Minimum Depth of Binary Tree
3
0112. Path Sum
3
0113. Path Sum II
3
0114. Flatten Binary Tree to Linked List
3
0115. Distinct Subsequences
3
0116. Populating Next Right Pointers in Each Node
3
0117. Populating Next Right Pointers in Each Node II
3
0118. Pascal's Triangle
3
0119. Pascal's Triangle II
3
0120. Triangle
3
0121. Best Time to Buy and Sell Stock
3
0122. Best Time to Buy and Sell Stock II
3
0123. Best Time to Buy and Sell Stock III
3
0124. Binary Tree Maximum Path Sum
3
0125. Valid Palindrome
3
0126. Word Ladder II
3
0127. Word Ladder
3
0128. Longest Consecutive Sequence
3
0129. Sum Root to Leaf Numbers
3
0130. Surrounded Regions
3
0131. Palindrome Partitioning
3
0132. Palindrome Partitioning II
3
0133. Clone Graph
3
0134. Gas Station
3
0135. Candy
3
0136. Single Number
3
0137. Single Number II
3
0138. Copy List with Random Pointer
3
0139. Word Break
3
0140. Word Break II
3
0141. Linked List Cycle
3
0142. Linked List Cycle II
3
0143. Reorder List
3
0144. Binary Tree Preorder Traversal
3
0145. Binary Tree Postorder Traversal
3
0146. LRU Cache
3
0147. Insertion Sort List
3
0148. Sort List
3
0149. Max Points on a Line
3
0150. Evaluate Reverse Polish Notation
3
0151. Reverse Words in a String
3
0152. Maximum Product Subarray
3
0153. Find Minimum in Rotated Sorted Array
3
0154. Find Minimum in Rotated Sorted Array II
3
0155. Min Stack
3
0156. Binary Tree Upside Down
3
0157. Read N Characters Given Read4
3
0158. Read N Characters Given Read4 II - Call multiple times
3
0159. Longest Substring with At Most Two Distinct Characters
3
0160. Intersection of Two Linked Lists
3
0161. One Edit Distance
3
0162. Find Peak Element
3
0163. Missing Ranges
3
0164. Maximum Gap
3
0165. Compare Version Numbers
3
0166. Fraction to Recurring Decimal
3
0167. Two Sum II - Input array is sorted
3
0168. Excel Sheet Column Title
3
0169. Majority Element
3
0170. Two Sum III - Data structure design
3
0171. Excel Sheet Column Number
3
0172. Factorial Trailing Zeroes
3
0173. Binary Search Tree Iterator
3
0174. Dungeon Game
3
0179. Largest Number
3
0186. Reverse Words in a String II
3
0187. Repeated DNA Sequences
3
0188. Best Time to Buy and Sell Stock IV
3
0189. Rotate Array
3
0190. Reverse Bits
3
0191. Number of 1 Bits
3
0198. House Robber
3
0199. Binary Tree Right Side View
3
0200. Number of Islands
3
0201. Bitwise AND of Numbers Range
3
0202. Happy Number
3
0203. Remove Linked List Elements
3
0204. Count Primes
3
0205. Isomorphic Strings
3
0206. Reverse Linked List
3
0207. Course Schedule
3
0208. Implement Trie (Prefix Tree)
3
0209. Minimum Size Subarray Sum
3
0210. Course Schedule II
3
0211. Add and Search Word - Data structure design
3
0212. Word Search II
3
0213. House Robber II
3
0214. Shortest Palindrome
3
0215. Kth Largest Element in an Array
3
0216. Combination Sum III
3
0217. Contains Duplicate
3
0218. The Skyline Problem
3
0219. Contains Duplicate II
3
0220. Contains Duplicate III
3
0221. Maximal Square
3
0222. Count Complete Tree Nodes
3
0223. Rectangle Area
3
0224. Basic Calculator
3
0225. Implement Stack using Queues
3
0226. Invert Binary Tree
3
0227. Basic Calculator II
3
0228. Summary Ranges
3
0229. Majority Element II
3
0230. Kth Smallest Element in a BST
3
0231. Power of Two
3
0232. Implement Queue using Stacks
3
0233. Number of Digit One
3
0234. Palindrome Linked List
3
0235. Lowest Common Ancestor of a Binary Search Tree
3
0236. Lowest Common Ancestor of a Binary Tree
3
0237. Delete Node in a Linked List
3
0238. Product of Array Except Self
3
0239. Sliding Window Maximum
3
0240. Search a 2D Matrix II
3
0241. Different Ways to Add Parentheses
3
0242. Valid Anagram
3
0243. Shortest Word Distance
3
0244. Shortest Word Distance II
3
0245. Shortest Word Distance III
3
0246. Strobogrammatic Number
3
0247. Strobogrammatic Number II
3
0248. Strobogrammatic Number III
3
0249. Group Shifted Strings
3
0250. Count Univalue Subtrees
3
0251. Flatten 2D Vector
3
0252. Meeting Rooms
3
0253. Meeting Rooms II
3
0254. Factor Combinations
3
0255. Verify Preorder Sequence in Binary Search Tree
3
0256. Paint House
3
0257. Binary Tree Paths
3
0258. Add Digits
3
0259. 3Sum Smaller
3
0260. Single Number III
3
0261. Graph Valid Tree
3
0263. Ugly Number
3
0264. Ugly Number II
3
0265. Paint House II
3
0266. Palindrome Permutation
3
0267. Palindrome Permutation II
3
0268. Missing Number
3
0269. Alien Dictionary
3
0270. Closest Binary Search Tree Value
3
0271. Encode and Decode Strings
3
0272. Closest Binary Search Tree Value II
3
0273. Integer to English Words
3
0274. H-Index
3
0275. H-Index II
3
0276. Paint Fence
3
0277. Find the Celebrity
3
0278. First Bad Version
3
0279. Perfect Squares
3
0280. Wiggle Sort
3
0281. Zigzag Iterator
3
0282. Expression Add Operators
3
0283. Move Zeroes
3
0284. Peeking Iterator
3
0285. Inorder Successor in BST
3
0286. Walls and Gates
3
0287. Find the Duplicate Number
3
0288. Unique Word Abbreviation
3
0289. Game of Life
3
0290. Word Pattern
3
0291. Word Pattern II
3
0292. Nim Game
3
0293. Flip Game
3
0294. Flip Game II
3
0295. Find Median from Data Stream
3
0296. Best Meeting Point
3
0297. Serialize and Deserialize Binary Tree
3
0298. Binary Tree Longest Consecutive Sequence
3
0299. Bulls and Cows
3
0300. Longest Increasing Subsequence
3
0301. Remove Invalid Parentheses
3
0302. Smallest Rectangle Enclosing Black Pixels
3
0303. Range Sum Query - Immutable
3
0304. Range Sum Query 2D - Immutable
3
0305. Number of Islands II
3
0306. Additive Number
3
0307. Range Sum Query - Mutable
3
0308. Range Sum Query 2D - Mutable
3
0309. Best Time to Buy and Sell Stock with Cooldown
3
0310. Minimum Height Trees
3
0311. Sparse Matrix Multiplication
3
0312. Burst Balloons
3
0313. Super Ugly Number
3
0314. Binary Tree Vertical Order Traversal
3
0315. Count of Smaller Numbers After Self
3
0316. Remove Duplicate Letters
3
0317. Shortest Distance from All Buildings
3
0318. Maximum Product of Word Lengths
3
0319. Bulb Switcher
3
0320. Generalized Abbreviation
3
0321. Create Maximum Number
3
0322. Coin Change
3
0323. Number of Connected Components in an Undirected Graph
3
0324. Wiggle Sort II
3
0325. Maximum Size Subarray Sum Equals k
3
0326. Power of Three
3
0327. Count of Range Sum
3
0328. Odd Even Linked List
3
0329. Longest Increasing Path in a Matrix
3
0330. Patching Array
3
0331. Verify Preorder Serialization of a Binary Tree
3
0332. Reconstruct Itinerary
3
0333. Largest BST Subtree
3
0334. Increasing Triplet Subsequence
3
0335. Self Crossing
3
0336. Palindrome Pairs
3
0337. House Robber III
3
0338. Counting Bits
3
0339. Nested List Weight Sum
3
0340. Longest Substring with At Most K Distinct Characters
3
0341. Flatten Nested List Iterator
3
0342. Power of Four
3
0343. Integer Break
3
0344. Reverse String
3
0345. Reverse Vowels of a String
3
0346. Moving Average from Data Stream
3
0347. Top K Frequent Elements
3
0348. Design Tic-Tac-Toe
3
0349. Intersection of Two Arrays
3
0350. Intersection of Two Arrays II
3
0351. Android Unlock Patterns
3
0352. Data Stream as Disjoint Intervals
3
0353. Design Snake Game
3
0354. Russian Doll Envelopes
3
0355. Design Twitter
3
0356. Line Reflection
3
0357. Count Numbers with Unique Digits
3
0358. Rearrange String k Distance Apart
3
0359. Logger Rate Limiter
3
0360. Sort Transformed Array
3
0361. Bomb Enemy
3
0362. Design Hit Counter
3
0363. Max Sum of Rectangle No Larger Than K
3
0364. Nested List Weight Sum II
3
0365. Water and Jug Problem
3
0366. Find Leaves of Binary Tree
3
0367. Valid Perfect Square
3
0368. Largest Divisible Subset
3
0369. Plus One Linked List
3
0370. Range Addition
3
0371. Sum of Two Integers
3
0372. Super Pow
3
0373. Find K Pairs with Smallest Sums
3
0374. Guess Number Higher or Lower
3
0375. Guess Number Higher or Lower II
3
0376. Wiggle Subsequence
3
0377. Combination Sum IV
3
0378. Kth Smallest Element in a Sorted Matrix
3
0379. Design Phone Directory
3
0380. Insert Delete GetRandom O(1)
3
0381. Insert Delete GetRandom O(1) - Duplicates allowed
3
0382. Linked List Random Node
3
0383. Ransom Note
3
0384. Shuffle an Array
3
0385. Mini Parser
3
0386. Lexicographical Numbers
3
0387. First Unique Character in a String
3
0388. Longest Absolute File Path
3
0389. Find the Difference
3
0390. Elimination Game
3
0391. Perfect Rectangle
3
0392. Is Subsequence
3
0393. UTF-8 Validation
3
0394. Decode String
3
0395. Longest Substring with At Least K Repeating Characters
3
0396. Rotate Function
3
0397. Integer Replacement
3
0398. Random Pick Index
3
0399. Evaluate Division
3
0400. Nth Digit
3
0401. Binary Watch
3
0402. Remove K Digits
3
0403. Frog Jump
3
0404. Sum of Left Leaves
3
0405. Convert a Number to Hexadecimal
3
0406. Queue Reconstruction by Height
3
0407. Trapping Rain Water II
3
0408. Valid Word Abbreviation
3
0409. Longest Palindrome
3
0410. Split Array Largest Sum
3
0411. Minimum Unique Word Abbreviation
3
0412. Fizz Buzz
3
0413. Arithmetic Slices
3
0414. Third Maximum Number
3
0415. Add Strings
3
0416. Partition Equal Subset Sum
3
0417. Pacific Atlantic Water Flow
3
0418. Sentence Screen Fitting
3
0419. Battleships in a Board
3
0420. Strong Password Checker
3
0421. Maximum XOR of Two Numbers in an Array
3
0422. Valid Word Square
3
0423. Reconstruct Original Digits from English
3
0424. Longest Repeating Character Replacement
3
0425. Word Squares
3
0426. Convert Binary Search Tree to Sorted Doubly Linked List
3
0427. Construct Quad Tree
3
0428. Serialize and Deserialize N-ary Tree
3
0429. N-ary Tree Level Order Traversal
3
0430. Flatten a Multilevel Doubly Linked List
3
0431. Encode N-ary Tree to Binary Tree
3
0432. All O`one Data Structure
3
0433. Minimum Genetic Mutation
3
0434. Number of Segments in a String
3
0435. Non-overlapping Intervals
3
0436. Find Right Interval
3
0437. Path Sum III
3
0438. Find All Anagrams in a String
3
0439. Ternary Expression Parser
3
0440. K-th Smallest in Lexicographical Order
3
0441. Arranging Coins
3
0442. Find All Duplicates in an Array
3
0443. String Compression
3
0444. Sequence Reconstruction
3
0445. Add Two Numbers II
3
0446. Arithmetic Slices II - Subsequence
3
0447. Number of Boomerangs
3
0448. Find All Numbers Disappeared in an Array
3
0449. Serialize and Deserialize BST
3
0450. Delete Node in a BST
3
0451. Sort Characters By Frequency
3
0452. Minimum Number of Arrows to Burst Balloons
3
0453. Minimum Moves to Equal Array Elements
3
0454. 4Sum II
3
0455. Assign Cookies
3
0456. 132 Pattern
3
0457. Circular Array Loop
3
0458. Poor Pigs
3
0459. Repeated Substring Pattern
3
0460. LFU Cache
3
0461. Hamming Distance
3
0462. Minimum Moves to Equal Array Elements II
3
0463. Island Perimeter
3
0464. Can I Win
3
0465. Optimal Account Balancing
3
0466. Count The Repetitions
3
0467. Unique Substrings in Wraparound String
3
0468. Validate IP Address
3
0469. Convex Polygon
3
0470. Implement Rand10() Using Rand7()
3
0471. Encode String with Shortest Length
3
0472. Concatenated Words
3
0473. Matchsticks to Square
3
0474. Ones and Zeroes
3
0475. Heaters
3
0476. Number Complement
3
0477. Total Hamming Distance
3
0478. Generate Random Point in a Circle
3
0479. Largest Palindrome Product
3
0480. Sliding Window Median
3
0481. Magical String
3
0482. License Key Formatting
3
0483. Smallest Good Base
3
0484. Find Permutation
3
0485. Max Consecutive Ones
3
0486. Predict the Winner
3
0487. Max Consecutive Ones II
3
0488. Zuma Game
3
0489. Robot Room Cleaner
3
0490. The Maze
3
0491. Increasing Subsequences
3
0492. Construct the Rectangle
3
0493. Reverse Pairs
3
0494. Target Sum
3
0495. Teemo Attacking
3
0496. Next Greater Element I
3
0497. Random Point in Non-overlapping Rectangles
3
0498. Diagonal Traverse
3
0499. The Maze III
3
0500. Keyboard Row
3
0501. Find Mode in Binary Search Tree
3
0502. IPO
3
0503. Next Greater Element II
3
0504. Base 7
3
0505. The Maze II
3
0506. Relative Ranks
3
0507. Perfect Number
3
0508. Most Frequent Subtree Sum
3
0509. Fibonacci Number
3
0510. Inorder Successor in BST II
3
0513. Find Bottom Left Tree Value
3
0514. Freedom Trail
3
0515. Find Largest Value in Each Tree Row
3
0516. Longest Palindromic Subsequence
3
0517. Super Washing Machines
3
0518. Coin Change 2
3
0519. Random Flip Matrix
3
0520. Detect Capital
3
0521. Longest Uncommon Subsequence I
3
0522. Longest Uncommon Subsequence II
3
0523. Continuous Subarray Sum
3
0524. Longest Word in Dictionary through Deleting
3
0525. Contiguous Array
3
0526. Beautiful Arrangement
3
0527. Word Abbreviation
3
0528. Random Pick with Weight
3
0529. Minesweeper
3
0530. Minimum Absolute Difference in BST
3
0531. Lonely Pixel I
3
0532. K-diff Pairs in an Array
3
0533. Lonely Pixel II
3
0535. Encode and Decode TinyURL
3
0536. Construct Binary Tree from String
3
0537. Complex Number Multiplication
3
0538. Convert BST to Greater Tree
3
0539. Minimum Time Difference
3
0540. Single Element in a Sorted Array
3
0541. Reverse String II
3
0542. 01 Matrix
3
0543. Diameter of Binary Tree
3
0544. Output Contest Matches
3
0545. Boundary of Binary Tree
3
0546. Remove Boxes
3
0547. Friend Circles
3
0548. Split Array with Equal Sum
3
0549. Binary Tree Longest Consecutive Sequence II
3
0551. Student Attendance Record I
3
0552. Student Attendance Record II
3
0553. Optimal Division
3
0554. Brick Wall
3
0555. Split Concatenated Strings
3
0556. Next Greater Element III
3
0557. Reverse Words in a String III
3
0558. Logical OR of Two Binary Grids Represented as Quad-Trees
3
0559. Maximum Depth of N-ary Tree
3
0560. Subarray Sum Equals K
3
0561. Array Partition I
3
0562. Longest Line of Consecutive One in Matrix
3
0563. Binary Tree Tilt
3
0564. Find the Closest Palindrome
3
0565. Array Nesting
3
0566. Reshape the Matrix
3
0567. Permutation in String
3
0568. Maximum Vacation Days
3
0572. Subtree of Another Tree
3
0573. Squirrel Simulation
3
0575. Distribute Candies
3
0576. Out of Boundary Paths
3
0581. Shortest Unsorted Continuous Subarray
3
0582. Kill Process
3
0583. Delete Operation for Two Strings
3
0587. Erect the Fence
3
0588. Design In-Memory File System
3
0589. N-ary Tree Preorder Traversal
3
0590. N-ary Tree Postorder Traversal
3
0591. Tag Validator
3
0592. Fraction Addition and Subtraction
3
0593. Valid Square
3
0594. Longest Harmonious Subsequence
3
0598. Range Addition II
3
0599. Minimum Index Sum of Two Lists
3
0600. Non-negative Integers without Consecutive Ones
3
0604. Design Compressed String Iterator
3
0605. Can Place Flowers
3
0606. Construct String from Binary Tree
3
0609. Find Duplicate File in System
3
0611. Valid Triangle Number
3
0616. Add Bold Tag in String
3
0617. Merge Two Binary Trees
3
0621. Task Scheduler
3
0622. Design Circular Queue
3
0623. Add One Row to Tree
3
0624. Maximum Distance in Arrays
3
0625. Minimum Factorization
3
0628. Maximum Product of Three Numbers
3
0629. K Inverse Pairs Array
3
0630. Course Schedule III
3
0631. Design Excel Sum Formula
3
0632. Smallest Range Covering Elements from K Lists
3
0633. Sum of Square Numbers
3
0634. Find the Derangement of An Array
3
0635. Design Log Storage System
3
0636. Exclusive Time of Functions
3
0637. Average of Levels in Binary Tree
3
0638. Shopping Offers
3
0639. Decode Ways II
3
0640. Solve the Equation
3
0641. Design Circular Deque
3
0642. Design Search Autocomplete System
3
0643. Maximum Average Subarray I
3
0644. Maximum Average Subarray II
3
0645. Set Mismatch
3
0646. Maximum Length of Pair Chain
3
0647. Palindromic Substrings
3
0648. Replace Words
3
0649. Dota2 Senate
3
0650. 2 Keys Keyboard
3
0651. 4 Keys Keyboard
3
0652. Find Duplicate Subtrees
3
0653. Two Sum IV - Input is a BST
3
0654. Maximum Binary Tree
3
0655. Print Binary Tree
3
0656. Coin Path
3
0657. Robot Return to Origin
3
0658. Find K Closest Elements
3
0659. Split Array into Consecutive Subsequences
3
0660. Remove 9
3
0661. Image Smoother
3
0662. Maximum Width of Binary Tree
3
0663. Equal Tree Partition
3
0664. Strange Printer
3
0665. Non-decreasing Array
3
0666. Path Sum IV
3
0667. Beautiful Arrangement II
3
0668. Kth Smallest Number in Multiplication Table
3
0669. Trim a Binary Search Tree
3
0670. Maximum Swap
3
0671. Second Minimum Node In a Binary Tree
3
0672. Bulb Switcher II
3
0673. Number of Longest Increasing Subsequence
3
0674. Longest Continuous Increasing Subsequence
3
0675. Cut Off Trees for Golf Event
3
0676. Implement Magic Dictionary
3
0677. Map Sum Pairs
3
0678. Valid Parenthesis String
3
0679. 24 Game
3
0680. Valid Palindrome II
3
0681. Next Closest Time
3
0683. K Empty Slots
3
0684. Redundant Connection
3
0685. Redundant Connection II
3
0686. Repeated String Match
3
0687. Longest Univalue Path
3
0688. Knight Probability in Chessboard
3
0689. Maximum Sum of 3 Non-Overlapping Subarrays
3
0690. Employee Importance
3
0691. Stickers to Spell Word
3
0692. Top K Frequent Words
3
0694. Number of Distinct Islands
3
0695. Max Area of Island
3
0696. Count Binary Substrings
3
0697. Degree of an Array
3
0698. Partition to K Equal Sum Subsets
3
0699. Falling Squares
3
0700. Search in a Binary Search Tree
3
0701. Insert into a Binary Search Tree
3
0702. Search in a Sorted Array of Unknown Size
3
0703. Kth Largest Element in a Stream
3
0705. Design HashSet
3
0706. Design HashMap
3
0707. Design Linked List
3
0708. Insert into a Sorted Circular Linked List
3
0709. To Lower Case
3
0710. Random Pick with Blacklist
3
0711. Number of Distinct Islands II
3
0712. Minimum ASCII Delete Sum for Two Strings
3
0713. Subarray Product Less Than K
3
0714. Best Time to Buy and Sell Stock with Transaction Fee
3
0715. Range Module
3
0717. 1-bit and 2-bit Characters
3
0718. Maximum Length of Repeated Subarray
3
0719. Find K-th Smallest Pair Distance
3
0720. Longest Word in Dictionary
3
0721. Accounts Merge
3
0722. Remove Comments
3
0723. Candy Crush
3
0724. Find Pivot Index
3
0725. Split Linked List in Parts
3
0726. Number of Atoms
3
0727. Minimum Window Subsequence
3
0728. Self Dividing Numbers
3
0729. My Calendar I
3
0730. Count Different Palindromic Subsequences
3
0731. My Calendar II
3
0732. My Calendar III
3
0733. Flood Fill
3
0734. Sentence Similarity
3
0735. Asteroid Collision
3
0736. Parse Lisp Expression
3
0737. Sentence Similarity II
3
0738. Monotone Increasing Digits
3
0739. Daily Temperatures
3
0740. Delete and Earn
3
0741. Cherry Pickup
3
0742. Closest Leaf in a Binary Tree
3
0743. Network Delay Time
3
0744. Find Smallest Letter Greater Than Target
3
0745. Prefix and Suffix Search
3
0746. Min Cost Climbing Stairs
3
0747. Largest Number At Least Twice of Others
3
0748. Shortest Completing Word
3
0749. Contain Virus
3
0750. Number Of Corner Rectangles
3
0751. IP to CIDR
3
0752. Open the Lock
3
0753. Cracking the Safe
3
0754. Reach a Number
3
0755. Pour Water
3
0756. Pyramid Transition Matrix
3
0757. Set Intersection Size At Least Two
3
0758. Bold Words in String
3
0759. Employee Free Time
3
0761. Special Binary String
3
0762. Prime Number of Set Bits in Binary Representation
3
0763. Partition Labels
3
0764. Largest Plus Sign
3
0765. Couples Holding Hands
3
0766. Toeplitz Matrix
3
0767. Reorganize String
3
0768. Max Chunks To Make Sorted II
3
0769. Max Chunks To Make Sorted
3
0770. Basic Calculator IV
3
0771. Jewels and Stones
3
0772. Basic Calculator III
3
0773. Sliding Puzzle
3
0774. Minimize Max Distance to Gas Station
3
0775. Global and Local Inversions
3
0776. Split BST
3
0777. Swap Adjacent in LR String
3
0778. Swim in Rising Water
3
0779. K-th Symbol in Grammar
3
0780. Reaching Points
3
0781. Rabbits in Forest
3
0782. Transform to Chessboard
3
0783. Minimum Distance Between BST Nodes
3
0784. Letter Case Permutation
3
0786. K-th Smallest Prime Fraction
3
0787. Cheapest Flights Within K Stops
3
0788. Rotated Digits
3
0789. Escape The Ghosts
3
0790. Domino and Tromino Tiling
3
0791. Custom Sort String
3
0792. Number of Matching Subsequences
3
0793. Preimage Size of Factorial Zeroes Function
3
0794. Valid Tic-Tac-Toe State
3
0795. Number of Subarrays with Bounded Maximum
3
0796. Rotate String
3
0797. All Paths From Source to Target
3
0798. Smallest Rotation with Highest Score
3
0799. Champagne Tower
3
0801. Minimum Swaps To Make Sequences Increasing
3
0802. Find Eventual Safe States
3
0803. Bricks Falling When Hit
3
0804. Unique Morse Code Words
3
0805. Split Array With Same Average
3
0807. Max Increase to Keep City Skyline
3
0808. Soup Servings
3
0809. Expressive Words
3
0810. Chalkboard XOR Game
3
0811. Subdomain Visit Count
3
0812. Largest Triangle Area
3
0813. Largest Sum of Averages
3
0814. Binary Tree Pruning
3
0815. Bus Routes
3
0816. Ambiguous Coordinates
3
0817. Linked List Components
3
0818. Race Car
3
0819. Most Common Word
3
0820. Short Encoding of Words
3
0822. Card Flipping Game
3
0823. Binary Trees With Factors
3
0824. Goat Latin
3
0825. Friends Of Appropriate Ages
3
0826. Most Profit Assigning Work
3
0827. Making A Large Island
3
0828. Count Unique Characters of All Substrings of a Given String
3
0829. Consecutive Numbers Sum
3
0830. Positions of Large Groups
3
0831. Masking Personal Information
3
0832. Flipping an Image
3
0833. Find And Replace in String
3
0834. Sum of Distances in Tree
3
0835. Image Overlap
3
0836. Rectangle Overlap
3
0837. New 21 Game
3
0838. Push Dominoes
3
0839. Similar String Groups
3
0840. Magic Squares In Grid
3
0841. Keys and Rooms
3
0842. Split Array into Fibonacci Sequence
3
0843. Guess the Word
3
0844. Backspace String Compare
3
0845. Longest Mountain in Array
3
0846. Hand of Straights
3
0847. Shortest Path Visiting All Nodes
3
0848. Shifting Letters
3
0849. Maximize Distance to Closest Person
3
0850. Rectangle Area II
3
0851. Loud and Rich
3
0852. Peak Index in a Mountain Array
3
0853. Car Fleet
3
0854. K-Similar Strings
3
0855. Exam Room
3
0856. Score of Parentheses
3
0857. Minimum Cost to Hire K Workers
3
0858. Mirror Reflection
3
0859. Buddy Strings
3
0861. Score After Flipping Matrix
3
0862. Shortest Subarray with Sum at Least K
3
0863. All Nodes Distance K in Binary Tree
3
0864. Shortest Path to Get All Keys
3
0865. Smallest Subtree with all the Deepest Nodes
3
0866. Prime Palindrome
3
0867. Transpose Matrix
3
0868. Binary Gap
3
0869. Reordered Power of 2
3
0870. Advantage Shuffle
3
0871. Minimum Number of Refueling Stops
3
0872. Leaf-Similar Trees
3
0873. Length of Longest Fibonacci Subsequence
3
0874. Walking Robot Simulation
3
0875. Koko Eating Bananas
3
0876. Middle of the Linked List
3
0877. Stone Game
3
0878. Nth Magical Number
3
0879. Profitable Schemes
3
0880. Decoded String at Index
3
0881. Boats to Save People
3
0882. Reachable Nodes In Subdivided Graph
3
0883. Projection Area of 3D Shapes
3
0884. Uncommon Words from Two Sentences
3
0885. Spiral Matrix III
3
0886. Possible Bipartition
3
0887. Super Egg Drop
3
0888. Fair Candy Swap
3
0889. Construct Binary Tree from Preorder and Postorder Traversal
3
0890. Find and Replace Pattern
3
0891. Sum of Subsequence Widths
3
0892. Surface Area of 3D Shapes
3
0893. Groups of Special-Equivalent Strings
3
0894. All Possible Full Binary Trees
3
0895. Maximum Frequency Stack
3
0896. Monotonic Array
3
0897. Increasing Order Search Tree
3
0898. Bitwise ORs of Subarrays
3
0899. Orderly Queue
3
0900. RLE Iterator
3
0901. Online Stock Span
3
0902. Numbers At Most N Given Digit Set
3
0903. Valid Permutations for DI Sequence
3
0904. Fruit Into Baskets
3
0905. Sort Array By Parity
3
0906. Super Palindromes
3
0907. Sum of Subarray Minimums
3
0908. Smallest Range I
3
0909. Snakes and Ladders
3
0910. Smallest Range II
3
0911. Online Election
3
0912. Sort an Array
3
0913. Cat and Mouse
3
0914. X of a Kind in a Deck of Cards
3
0915. Partition Array into Disjoint Intervals
3
0916. Word Subsets
3
0917. Reverse Only Letters
3
0918. Maximum Sum Circular Subarray
3
0919. Complete Binary Tree Inserter
3
0920. Number of Music Playlists
3
0921. Minimum Add to Make Parentheses Valid
3
0922. Sort Array By Parity II
3
0923. 3Sum With Multiplicity
3
0924. Minimize Malware Spread
3
0925. Long Pressed Name
3
0926. Flip String to Monotone Increasing
3
0927. Three Equal Parts
3
0928. Minimize Malware Spread II
3
0929. Unique Email Addresses
3
0930. Binary Subarrays With Sum
3
0931. Minimum Falling Path Sum
3
0932. Beautiful Array
3
0934. Shortest Bridge
3
0935. Knight Dialer
3
0936. Stamping The Sequence
3
0937. Reorder Data in Log Files
3
0938. Range Sum of BST
3
0939. Minimum Area Rectangle
3
0940. Distinct Subsequences II
3
0941. Valid Mountain Array
3
0942. DI String Match
3
0943. Find the Shortest Superstring
3
0944. Delete Columns to Make Sorted
3
0945. Minimum Increment to Make Array Unique
3
0946. Validate Stack Sequences
3
0947. Most Stones Removed with Same Row or Column
3
0948. Bag of Tokens
3
0949. Largest Time for Given Digits
3
0950. Reveal Cards In Increasing Order
3
0951. Flip Equivalent Binary Trees
3
0952. Largest Component Size by Common Factor
3
0953. Verifying an Alien Dictionary
3
0954. Array of Doubled Pairs
3
0955. Delete Columns to Make Sorted II
3
0956. Tallest Billboard
3
0957. Prison Cells After N Days
3
0958. Check Completeness of a Binary Tree
3
0959. Regions Cut By Slashes
3
0960. Delete Columns to Make Sorted III
3
0961. N-Repeated Element in Size 2N Array
3
0962. Maximum Width Ramp
3
0963. Minimum Area Rectangle II
3
0964. Least Operators to Express Number
3
0966. Vowel Spellchecker
3
0967. Numbers With Same Consecutive Differences
3
0968. Binary Tree Cameras
3
0969. Pancake Sorting
3
0970. Powerful Integers
3
0971. Flip Binary Tree To Match Preorder Traversal
3
0972. Equal Rational Numbers
3
0973. K Closest Points to Origin
3
0974. Subarray Sums Divisible by K
3
0975. Odd Even Jump
3
0976. Largest Perimeter Triangle
3
0977. Squares of a Sorted Array
3
0978. Longest Turbulent Subarray
3
0979. Distribute Coins in Binary Tree
3
0980. Unique Paths III
3
0981. Time Based Key-Value Store
3
0982. Triples with Bitwise AND Equal To Zero
3
0983. Minimum Cost For Tickets
3
0984. String Without AAA or BBB
3
0985. Sum of Even Numbers After Queries
3
0986. Interval List Intersections
3
0987. Vertical Order Traversal of a Binary Tree
3
0988. Smallest String Starting From Leaf
3
0989. Add to Array-Form of Integer
3
0990. Satisfiability of Equality Equations
3
0991. Broken Calculator
3
0992. Subarrays with K Different Integers
3
0993. Cousins in Binary Tree
3
0994. Rotting Oranges
3
0995. Minimum Number of K Consecutive Bit Flips
3
0996. Number of Squareful Arrays
3
0997. Find the Town Judge
3
0998. Maximum Binary Tree II
3
0999. Available Captures for Rook
3
1000. Minimum Cost to Merge Stones
3
1001. Grid Illumination
3
1002. Find Common Characters
3
1003. Check If Word Is Valid After Substitutions
3
1004. Max Consecutive Ones III
3
1005. Maximize Sum Of Array After K Negations
3
1006. Clumsy Factorial
3
1007. Minimum Domino Rotations For Equal Row
3
1008. Construct Binary Search Tree from Preorder Traversal
3
1009. Complement of Base 10 Integer
3
1010. Pairs of Songs With Total Durations Divisible by 60
3
1011. Capacity To Ship Packages Within D Days
3
1012. Numbers With Repeated Digits
3
1013. Partition Array Into Three Parts With Equal Sum
3
1014. Best Sightseeing Pair
3
1015. Smallest Integer Divisible by K
3
1016. Binary String With Substrings Representing 1 To N
3
1017. Convert to Base -2
3
1018. Binary Prefix Divisible By 5
3
1019. Next Greater Node In Linked List
3
1020. Number of Enclaves
3
1023. Camelcase Matching
3
1024. Video Stitching
3
1025. Divisor Game
3
1026. Maximum Difference Between Node and Ancestor
3
1027. Longest Arithmetic Subsequence
3
1028. Recover a Tree From Preorder Traversal
3
1029. Two City Scheduling
3
1031. Maximum Sum of Two Non-Overlapping Subarrays
3
1032. Stream of Characters
3
1033. Moving Stones Until Consecutive
3
1034. Coloring A Border
3
1035. Uncrossed Lines
3
1036. Escape a Large Maze
3
1037. Valid Boomerang
3
1038. Binary Search Tree to Greater Sum Tree
3
1039. Minimum Score Triangulation of Polygon
3
1040. Moving Stones Until Consecutive II
3
1041. Robot Bounded In Circle
3
1042. Flower Planting With No Adjacent
3
1043. Partition Array for Maximum Sum
3
1044. Longest Duplicate Substring
3
1047. Remove All Adjacent Duplicates In String
3
1048. Longest String Chain
3
1049. Last Stone Weight II
3
1051. Height Checker
3
1052. Grumpy Bookstore Owner
3
1053. Previous Permutation With One Swap
3
1054. Distant Barcodes
3
1055. Shortest Way to Form String
3
1057. Campus Bikes
3
1058. Minimize Rounding Error to Meet Target
3
1059. All Paths from Source Lead to Destination
3
1060. Missing Element in Sorted Array
3
1061. Lexicographically Smallest Equivalent String
3
1062. Longest Repeating Substring
3
1063. Number of Valid Subarrays
3
1066. Campus Bikes II
3
1067. Digit Count in Range
3
1071. Greatest Common Divisor of Strings
3
1072. Flip Columns For Maximum Number of Equal Rows
3
1073. Adding Two Negabinary Numbers
3
1074. Number of Submatrices That Sum to Target
3
1078. Occurrences After Bigram
3
1080. Insufficient Nodes in Root to Leaf Paths
3
1081. Smallest Subsequence of Distinct Characters
3
1088. Confusing Number II
3
1089. Duplicate Zeros
3
1090. Largest Values From Labels
3
1091. Shortest Path in Binary Matrix
3
1092. Shortest Common Supersequence
3
1093. Statistics from a Large Sample
3
1094. Car Pooling
3
1095. Find in Mountain Array
3
1096. Brace Expansion II
3
1099. Two Sum Less Than K
3
1102. Path With Maximum Minimum Value
3
1103. Distribute Candies to People
3
1104. Path In Zigzag Labelled Binary Tree
3
1106. Parsing A Boolean Expression
3
1108. Defanging an IP Address
3
1109. Corporate Flight Bookings
3
1110. Delete Nodes And Return Forest
3
1114. Print in Order
3
1120. Maximum Average Subtree
3
1121. Divide Array Into Increasing Sequences
3
1122. Relative Sort Array
3
1123. Lowest Common Ancestor of Deepest Leaves
3
1124. Longest Well-Performing Interval
3
1125. Smallest Sufficient Team
3
1128. Number of Equivalent Domino Pairs
3
1130. Minimum Cost Tree From Leaf Values
3
1131. Maximum of Absolute Value Expression
3
1136. Parallel Courses
3
1138. Alphabet Board Path
3
1140. Stone Game II
3
1143. Longest Common Subsequence
3
1144. Decrease Elements To Make Array Zigzag
3
1145. Binary Tree Coloring Game
3
1146. Snapshot Array
3
1147. Longest Chunked Palindrome Decomposition
3
1151. Minimum Swaps to Group All 1's Together
3
1153. String Transforms Into Another String
3
1154. Day of the Year
3
1155. Number of Dice Rolls With Target Sum
3
1156. Swap For Longest Repeated Character Substring
3
1157. Online Majority Element In Subarray
3
1160. Find Words That Can Be Formed by Characters
3
1163. Last Substring in Lexicographical Order
3
1168. Optimize Water Distribution in a Village
3
1169. Invalid Transactions
3
1170. Compare Strings by Frequency of the Smallest Character
3
1171. Remove Zero Sum Consecutive Nodes from Linked List
3
1172. Dinner Plate Stacks
3
1175. Prime Arrangements
3
1177. Can Make Palindrome from Substring
3
1178. Number of Valid Words for Each Puzzle
3
1183. Maximum Number of Ones
3
1184. Distance Between Bus Stops
3
1185. Day of the Week
3
1187. Make Array Strictly Increasing
3
1189. Maximum Number of Balloons
3
1192. Critical Connections in a Network
3
1197. Minimum Knight Moves
3
1199. Minimum Time to Build Blocks
3
1200. Minimum Absolute Difference
3
1201. Ugly Number III
3
1202. Smallest String With Swaps
3
1203. Sort Items by Groups Respecting Dependencies
3
1206. Design Skiplist
3
1207. Unique Number of Occurrences
3
1208. Get Equal Substrings Within Budget
3
1209. Remove All Adjacent Duplicates in String II
3
1210. Minimum Moves to Reach Target with Rotations
3
1213. Intersection of Three Sorted Arrays
3
1216. Valid Palindrome III
3
1217. Play with Chips
3
1218. Longest Arithmetic Subsequence of Given Difference
3
1220. Count Vowels Permutation
3
1221. Split a String in Balanced Strings
3
1222. Queens That Can Attack the King
3
1223. Dice Roll Simulation
3
1224. Maximum Equal Frequency
3
1227. Airplane Seat Assignment Probability
3
1231. Divide Chocolate
3
1232. Check If It Is a Straight Line
3
1233. Remove Sub-Folders from the Filesystem
3
1234. Replace the Substring for Balanced String
3
1235. Maximum Profit in Job Scheduling
3
1236. Web Crawler
3
1237. Find Positive Integer Solution for a Given Equation
3
1238. Circular Permutation in Binary Representation
3
1240. Tiling a Rectangle with the Fewest Squares
3
1242. Web Crawler Multithreaded
3
1244. Design A Leaderboard
3
1245. Tree Diameter
3
1246. Palindrome Removal
3
1248. Count Number of Nice Subarrays
3
1249. Minimum Remove to Make Valid Parentheses
3
1250. Check If It Is a Good Array
3
1252. Cells with Odd Values in a Matrix
3
1253. Reconstruct a 2-Row Binary Matrix
3
1254. Number of Closed Islands
3
1255. Maximum Score Words Formed by Letters
3
1257. Smallest Common Region
3
1259. Handshakes That Don't Cross
3
1260. Shift 2D Grid
3
1261. Find Elements in a Contaminated Binary Tree
3
1262. Greatest Sum Divisible by Three
3
1265. Print Immutable Linked List in Reverse
3
1266. Minimum Time Visiting All Points
3
1267. Count Servers that Communicate
3
1269. Number of Ways to Stay in the Same Place After Some Steps
3
1273. Delete Tree Nodes
3
1274. Number of Ships in a Rectangle
3
1275. Find Winner on a Tic Tac Toe Game
3
1276. Number of Burgers with No Waste of Ingredients
3
1277. Count Square Submatrices with All Ones
3
1278. Palindrome Partitioning III
3
1281. Subtract the Product and Sum of Digits of an Integer
3
1287. Element Appearing More Than 25% In Sorted Array
3
1290. Convert Binary Number in a Linked List to Integer
3
1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
3
1293. Shortest Path in a Grid with Obstacles Elimination
3
1295. Find Numbers with Even Number of Digits
3
1296. Divide Array in Sets of K Consecutive Numbers
3
1299. Replace Elements with Greatest Element on Right Side
3
1300. Sum of Mutated Array Closest to Target
3
1302. Deepest Leaves Sum
3
1304. Find N Unique Integers Sum up to Zero
3
1305. All Elements in Two Binary Search Trees
3
1306. Jump Game III
3
1307. Verbal Arithmetic Puzzle
3
1309. Decrypt String from Alphabet to Integer Mapping
3
1310. XOR Queries of a Subarray
3
1311. Get Watched Videos by Your Friends
3
1313. Decompress Run-Length Encoded List
3
1315. Sum of Nodes with Even-Valued Grandparent
3
1317. Convert Integer to the Sum of Two No-Zero Integers
3
1319. Number of Operations to Make Network Connected
3
1323. Maximum 69 Number
3
1326. Minimum Number of Taps to Open to Water a Garden
3
1329. Sort the Matrix Diagonally
3
1330. Reverse Subarray To Maximize Array Value
3
1331. Rank Transform of an Array
3
1333. Filter Restaurants by Vegan-Friendly, Price and Distance
3
1335. Minimum Difficulty of a Job Schedule
3
1337. The K Weakest Rows in a Matrix
3
1338. Reduce Array Size to The Half
3
1339. Maximum Product of Splitted Binary Tree
3
1344. Angle Between Hands of a Clock
3
1348. Tweet Counts Per Frequency
3
1349. Maximum Students Taking Exam
3
1351. Count Negative Numbers in a Sorted Matrix
3
1353. Maximum Number of Events That Can Be Attended
3
1356. Sort Integers by The Number of 1 Bits
3
1359. Count All Valid Pickup and Delivery Options
3
1361. Validate Binary Tree Nodes
3
1362. Closest Divisors
3
1363. Largest Multiple of Three
3
1371. Find the Longest Substring Containing Vowels in Even Counts
3
1373. Maximum Sum BST in Binary Tree
3
1376. Time Needed to Inform All Employees
3
1377. Frog Position After T Seconds
3
1390. Four Divisors
3
1391. Check if There is a Valid Path in a Grid
3
1396. Design Underground System
3
1401. Circle and Rectangle Overlapping
3
1405. Longest Happy String
3
1406. Stone Game III
3
1411. Number of Ways to Paint N × 3 Grid
3
1416. Restore The Array
3
1423. Maximum Points You Can Obtain from Cards
3
1424. Diagonal Traverse II
3
1425. Constrained Subsequence Sum
3
1428. Leftmost Column with at Least a One
3
1434. Number of Ways to Wear Different Hats to Each Other
3
1436. Destination City
3
1437. Check If All 1's Are at Least Length K Places Away
3
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
3
1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows
3
1441. Build an Array With Stack Operations
3
1442. Count Triplets That Can Form Two Arrays of Equal XOR
3
1443. Minimum Time to Collect All Apples in a Tree
3
1444. Number of Ways of Cutting a Pizza
3
1448. Count Good Nodes in Binary Tree
3
1449. Form Largest Integer With Digits That Add up to Target
3
1450. Number of Students Doing Homework at a Given Time
3
1451. Rearrange Words in a Sentence
3
1452. People Whose List of Favorite Companies Is Not a Subset of Another List
3
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
3
1456. Maximum Number of Vowels in a Substring of Given Length
3
1457. Pseudo-Palindromic Paths in a Binary Tree
3
1458. Max Dot Product of Two Subsequences
3
1463. Cherry Pickup II
3
1466. Reorder Routes to Make All Paths Lead to the City Zero
3
1469. Find All The Lonely Nodes
3
1472. Design Browser History
3
1473. Paint House III
3
1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
3
1478. Allocate Mailboxes
3
1483. Kth Ancestor of a Tree Node
3
1485. Clone Binary Tree With Random Pointer
3
1490. Clone N-ary Tree
3
1494. Parallel Courses II
3
1496. Path Crossing
3
1497. Check If Array Pairs Are Divisible by k
3
1498. Number of Subsequences That Satisfy the Given Sum Condition
3
1499. Max Value of Equation
3
1502. Can Make Arithmetic Progression From Sequence
3
1503. Last Moment Before All Ants Fall Out of a Plank
3
1504. Count Submatrices With All Ones
3
1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
3
1508. Range Sum of Sorted Subarray Sums
3
1509. Minimum Difference Between Largest and Smallest Value in Three Moves
3
1510. Stone Game IV
3
1512. Number of Good Pairs
3
1513. Number of Substrings With Only 1s
3
1514. Path with Maximum Probability
3
1518. Water Bottles
3
1519. Number of Nodes in the Sub-Tree With the Same Label
3
1520. Maximum Number of Non-Overlapping Substrings
3
1521. Find a Value of a Mysterious Function Closest to Target
3
1523. Count Odd Numbers in an Interval Range
3
1524. Number of Sub-arrays With Odd Sum
3
1525. Number of Good Ways to Split a String
3
1526. Minimum Number of Increments on Subarrays to Form a Target Array
3
1528. Shuffle String
3
1529. Minimum Suffix Flips
3
1530. Number of Good Leaf Nodes Pairs
3
1531. String Compression II
3
1537. Get the Maximum Score
3
1539. Kth Missing Positive Number
3
1542. Find Longest Awesome Substring
3
1547. Minimum Cost to Cut a Stick
3
1548. The Most Similar Path in a Graph
3
1559. Detect Cycles in 2D Grid
3
1563. Stone Game V
3
1569. Number of Ways to Reorder Array to Get Same BST
3
1570. Dot Product of Two Sparse Vectors
3
1583. Count Unhappy Friends
3
1592. Rearrange Spaces Between Words
3
1593. Split a String Into the Max Number of Unique Substrings
3
1594. Maximum Non Negative Product in a Matrix
3
1597. Build Binary Expression Tree From Infix Expression
3
1598. Crawler Log Folder
3
1599. Maximum Profit of Operating a Centennial Wheel
3
1600. Throne Inheritance
3
1601. Maximum Number of Achievable Transfer Requests
3
1603. Design Parking System
3
1610. Maximum Number of Visible Points
3
1625. Lexicographically Smallest String After Applying Operations
3
1626. Best Team With No Conflicts
3
1631. Path With Minimum Effort
3
1641. Count Sorted Vowel Strings
3
1657. Determine if Two Strings Are Close
3
1664. Ways to Make a Fair Array
3
1666. Change the Root of a Binary Tree
3
1671. Minimum Number of Removals to Make Mountain Array
3
1676. Lowest Common Ancestor of a Binary Tree IV
3
1682. Longest Palindromic Subsequence II
3
1686. Stone Game VI
3
1687. Delivering Boxes from Storage to Ports
3
1690. Stone Game VII
3
1691. Maximum Height by Stacking Cuboids
3
1692. Count Ways to Distribute Candies
3
1697. Checking Existence of Edge Length Limited Paths
3
1701. Average Waiting Time
3
1703. Minimum Adjacent Swaps for K Consecutive Ones
3
1706. Where Will the Ball Fall
3
1712. Ways to Split Array Into Three Subarrays
3
1724. Checking Existence of Edge Length Limited Paths II
3
1727. Largest Submatrix With Rearrangements
3
1728. Cat and Mouse II
3
1737. Change Minimum Characters to Satisfy One of Three Conditions
3
1738. Find Kth Largest XOR Coordinate Value
3
1739. Building Boxes
3
1740. Find Distance in a Binary Tree
3
1743. Restore the Array From Adjacent Pairs
3
1745. Palindrome Partitioning IV
3
1751. Maximum Number of Events That Can Be Attended II
3
1752. Check if Array Is Sorted and Rotated
3
1753. Maximum Score From Removing Stones
3
1755. Closest Subsequence Sum
3
1768. Merge Strings Alternately
3
1769. Minimum Number of Operations to Move All Balls to Each Box
3
1770. Maximum Score from Performing Multiplication Operations
3
1771. Maximize Palindrome Length From Subsequences
3
1772. Sort Features by Popularity
3
1773. Count Items Matching a Rule
3
1774. Closest Dessert Cost
3
1775. Equal Sum Arrays With Minimum Number of Operations
3
1776. Car Fleet II
3
1778. Shortest Path in a Hidden Grid
3
1779. Find Nearest Point That Has the Same X or Y Coordinate
3
1780. Check if Number is a Sum of Powers of Three
3
1781. Sum of Beauty of All Substrings
3
1782. Count Pairs Of Nodes
3
1784. Check if Binary String Has at Most One Segment of Ones
3
1785. Minimum Elements to Add to Form a Given Sum
3
1786. Number of Restricted Paths From First to Last Node
3
1801. Number of Orders in the Backlog
3
1802. Maximum Value at a Given Index in a Bounded Array
3
1803. Count Pairs With XOR in a Range
3
1804. Implement Trie II (Prefix Tree)
3
1806. Minimum Number of Operations to Reinitialize a Permutation
3
1807. Evaluate the Bracket Pairs of a String
3
1808. Maximize Number of Nice Divisors
3
1810. Minimum Path Cost in a Hidden Grid
3
1813. Sentence Similarity III
3
1814. Count Nice Pairs in an Array
3
1815. Maximum Number of Groups Getting Fresh Donuts
3
1816. Truncate Sentence
3
1817. Finding the Users Active Minutes
3
1818. Minimum Absolute Sum Difference
3
1819. Number of Different Subsequences GCDs
3
1820. Maximum Number of Accepted Invitations
3
1822. Sign of the Product of an Array
3
1823. Find the Winner of the Circular Game
3
1824. Minimum Sideway Jumps
3
1825. Finding MK Average
3
1826. Faulty Sensor
3
1827. Minimum Operations to Make the Array Increasing
3
1828. Queries on Number of Points Inside a Circle
3
1829. Maximum XOR for Each Query
3
1832. Check if the Sentence Is Pangram
3
1833. Maximum Ice Cream Bars
3
1834. Single-Threaded CPU
3
1835. Find XOR Sum of All Pairs Bitwise AND
3
1836. Remove Duplicates From an Unsorted Linked List
3
1837. Sum of Digits in Base K
3
1838. Frequency of the Most Frequent Element
3
1839. Longest Substring Of All Vowels in Order
3
1840. Maximum Building Height
3
1842. Next Palindrome Using Same Digits
3
1844. Replace All Digits with Characters
3
1845. Seat Reservation Manager
3
1846. Maximum Element After Decreasing and Rearranging
3
1847. Closest Room
3
1848. Minimum Distance to the Target Element
3
1849. Splitting a String Into Descending Consecutive Values
3
1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
3
1851. Minimum Interval to Include Each Query
3
1855. Maximum Distance Between a Pair of Values
3
1856. Maximum Subarray Min-Product
3
1857. Largest Color Value in a Directed Graph
3
1858. Longest Word With All Prefixes
3
1859. Sorting the Sentence
3
1860. Incremental Memory Leak
3
1861. Rotating the Box
3
1862. Sum of Floored Pairs
3
1863. Sum of All Subset XOR Totals
3
1864. Minimum Number of Swaps to Make the Binary String Alternating
3
1865. Finding Pairs With a Certain Sum
3
1866. Number of Ways to Rearrange Sticks With K Sticks Visible
3
1868. Product of Two Run-Length Encoded Arrays
3
1869. Longer Contiguous Segments of Ones than Zeros
3
1870. Minimum Speed to Arrive on Time
3
1871. Jump Game VII
3
1872. Stone Game VIII
3
1874. Minimize Product Sum of Two Arrays
3
1876. Substrings of Size Three with Distinct Characters
3
1877. Minimize Maximum Pair Sum in Array
3
1879. Minimum XOR Sum of Two Arrays
3
1881. Maximum Value after Insertion
3
1882. Process Tasks Using Servers
3
1883. Minimum Skips to Arrive at Meeting On Time
3
1884. Egg Drop With 2 Eggs and N Floors
3
1885. Count Pairs in Two Arrays
3
1886. Determine Whether Matrix Can Be Obtained By Rotation
3
1887. Reduction Operations to Make the Array Elements Equal
3
1888. Minimum Number of Flips to Make the Binary String Alternating
3
1889. Minimum Space Wasted From Packaging
3
1891. Cutting Ribbons
3
1893. Check if All the Integers in a Range Are Covered
3
1894. Find the Student that Will Replace the Chalk
3
1897. Redistribute Characters to Make All Strings Equal
3
1898. Maximum Number of Removable Characters
3
1899. Merge Triplets to Form Target Triplet
3
1900. The Earliest and Latest Rounds Where Players Compete
3
1901. Find a Peak Element II
3
1902. Depth of BST Given Insertion Order
3
1903. Largest Odd Number in String
3
1904. The Number of Full Rounds You Have Played
3
1905. Count Sub Islands
3
1906. Minimum Absolute Difference Queries
3
1909. Remove One Element to Make the Array Strictly Increasing
3
1910. Remove All Occurrences of a Substring
3
1911. Maximum Alternating Subsequence Sum
3
1912. Design Movie Rental System
3
1913. Maximum Product Difference Between Two Pairs
3
1914. Cyclically Rotating a Grid
3
1915. Number of Wonderful Substrings
3
1916. Count Ways to Build Rooms in an Ant Colony
3
1920. Build Array from Permutation
3
1921. Eliminate Maximum Number of Monsters
3
1922. Count Good Numbers
3
1925. Count Square Sum Triples
3
1926. Nearest Exit from Entrance in Maze
3
1927. Sum Game
3
1928. Minimum Cost to Reach Destination in Time
3
1929. Concatenation of Array
3
1930. Unique Length-3 Palindromic Subsequences
3
1931. Painting a Grid With Three Different Colors
3
1932. Merge BSTs to Create Single BST
3
1935. Maximum Number of Words You Can Type
3
1936. Add Minimum Number of Rungs
3
1937. Maximum Number of Points with Cost
3
1938. Maximum Genetic Difference Query
3
1944. Number of Visible People in a Queue
3
1948. Delete Duplicate Folders in System
3
1955. Count Number of Special Subsequences
3
1960. Maximum Product of the Length of Two Palindromic Substrings
3
1964. Find the Longest Valid Obstacle Course at Each Position
3
1970. Last Day Where You Can Still Cross
3
2000. Reverse Prefix of Word
3
2001. Number of Pairs of Interchangeable Rectangles
3
2002. Maximum Product of the Length of Two Palindromic Subsequences
3
2003. Smallest Missing Genetic Value in Each Subtree
3
2005. Subtree Removal Game with Fibonacci Tree
3
2006. Count Number of Pairs With Absolute Difference K
3
2007. Find Original Array From Doubled Array
3
2008. Maximum Earnings From Taxi
3
2009. Minimum Number of Operations to Make Array Continuous
3
2011. Final Value of Variable After Performing Operations
3
2012. Sum of Beauty in the Array
3
2013. Detect Squares
3
2014. Longest Subsequence Repeated k Times
3
2015. Average Height of Buildings in Each Segment
3
2016. Maximum Difference Between Increasing Elements
3
2017. Grid Game
3
2018. Check if Word Can Be Placed In Crossword
3
2019. The Score of Students Solving Math Expression
3
2021. Brightest Position on Street
3
2022. Convert 1D Array Into 2D Array
3
2023. Number of Pairs of Strings With Concatenation Equal to Target
3
2024. Maximize the Confusion of an Exam
3
2025. Maximum Number of Ways to Partition an Array
3
2028. Find Missing Observations
3
2029. Stone Game IX
3
2030. Smallest K-Length Subsequence With Occurrences of a Letter
3
2031. Count Subarrays With More Ones Than Zeros
3
2032. Two Out of Three
3
2033. Minimum Operations to Make a Uni-Value Grid
3
2034. Stock Price Fluctuation
3
2035. Partition Array Into Two Arrays to Minimize Sum Difference
3
2036. Maximum Alternating Subarray Sum
3
2037. Minimum Number of Moves to Seat Everyone
3
2038. Remove Colored Pieces if Both Neighbors are the Same Color
3
2039. The Time When the Network Becomes Idle
3
2040. Kth Smallest Product of Two Sorted Arrays
3
2042. Check if Numbers Are Ascending in a Sentence
3
2043. Simple Bank System
3
2044. Count Number of Maximum Bitwise-OR Subsets
3
2045. Second Minimum Time to Reach Destination
3
2046. Sort Linked List Already Sorted Using Absolute Values
3
2047. Number of Valid Words in a Sentence
3
2048. Next Greater Numerically Balanced Number
3
2049. Count Nodes With the Highest Score
3
2050. Parallel Courses III
3
2052. Minimum Cost to Separate Sentence Into Rows
3
2053. Kth Distinct String in an Array
3
2054. Two Best Non-Overlapping Events
3
2055. Plates Between Candles
3
2056. Number of Valid Move Combinations On Chessboard
3
2057. Smallest Index With Equal Value
3
2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
3
2059. Minimum Operations to Convert Number
3
2060. Check if an Original String Exists Given Two Encoded Strings
3
2061. Number of Spaces Cleaning Robot Cleaned
3
2062. Count Vowel Substrings of a String
3
2063. Vowels of All Substrings
3
2064. Minimized Maximum of Products Distributed to Any Store
3
2065. Maximum Path Quality of a Graph
3
2067. Number of Equal Count Substrings
3
2069. Walking Robot Simulation II
3
2070. Most Beautiful Item for Each Query
3
2071. Maximum Number of Tasks You Can Assign
3
2073. Time Needed to Buy Tickets
3
2074. Reverse Nodes in Even Length Groups
3
2075. Decode the Slanted Ciphertext
3
2076. Process Restricted Friend Requests
3
2077. Paths in Maze That Lead to Same Room
3
2079. Watering Plants
3
2080. Range Frequency Queries
3
2081. Sum of k-Mirror Numbers
3
2083. Substrings That Begin and End With the Same Letter
3
2085. Count Common Words With One Occurrence
3
2086. Minimum Number of Buckets Required to Collect Rainwater from Houses
3
2087. Minimum Cost Homecoming of a Robot in a Grid
3
2088. Count Fertile Pyramids in a Land
3
2089. Find Target Indices After Sorting Array
3
2090. K Radius Subarray Averages
3
2091. Removing Minimum and Maximum From Array
3
2092. Find All People With Secret
3
2093. Minimum Cost to Reach City With Discounts
3
2094. Finding 3-Digit Even Numbers
3
2095. Delete the Middle Node of a Linked List
3
2096. Step-By-Step Directions From a Binary Tree Node to Another
3
2097. Valid Arrangement of Pairs
3
2098. Subsequence of Size K With the Largest Even Sum
3
2099. Find Subsequence of Length K With the Largest Sum
3
2100. Find Good Days to Rob the Bank
3
2101. Detonate the Maximum Bombs
3
2102. Sequentially Ordinal Rank Tracker
3
2103. Rings and Rods
3
2104. Sum of Subarray Ranges
3
2105. Watering Plants II
3
2106. Maximum Fruits Harvested After at Most K Steps
3
2108. Find First Palindromic String in the Array
3
2109. Adding Spaces to a String
3
2110. Number of Smooth Descent Periods of a Stock
3
2111. Minimum Operations to Make the Array K-Increasing
3
2113. Elements in Array After Removing and Replacing Elements
3
2114. Maximum Number of Words Found in Sentences
3
2115. Find All Possible Recipes from Given Supplies
3
2116. Check if a Parentheses String Can Be Valid
3
2117. Abbreviating the Product of a Range
3
2119. A Number After a Double Reversal
3
2120. Execution of All Suffix Instructions Staying in a Grid
3
2121. Intervals Between Identical Elements
3
2122. Recover the Original Array
3
2123. Minimum Operations to Remove Adjacent Ones in Matrix
3
2124. Check if All A's Appears Before All B's
3
2125. Number of Laser Beams in a Bank
3
2126. Destroying Asteroids
3
2127. Maximum Employees to Be Invited to a Meeting
3
2128. Remove All Ones With Row and Column Flips
3
2129. Capitalize the Title
3
2130. Maximum Twin Sum of a Linked List
3
2131. Longest Palindrome by Concatenating Two Letter Words
3
2132. Stamping the Grid
3
2133. Check if Every Row and Column Contains All Numbers
3
2134. Minimum Swaps to Group All 1's Together II
3
2135. Count Words Obtained After Adding a Letter
3
2136. Earliest Possible Day of Full Bloom
3
2137. Pour Water Between Buckets to Make Water Levels Equal
3
2138. Divide a String Into Groups of Size k
3
2139. Minimum Moves to Reach Target Score
3
2140. Solving Questions With Brainpower
3
2141. Maximum Running Time of N Computers
3
2143. Choose Numbers From Two Arrays in Range
3
2144. Minimum Cost of Buying Candies With Discount
3
2145. Count the Hidden Sequences
3
2146. K Highest Ranked Items Within a Price Range
3
2147. Number of Ways to Divide a Long Corridor
3
2148. Count Elements With Strictly Smaller and Greater Elements
3
2149. Rearrange Array Elements by Sign
3
2150. Find All Lonely Numbers in the Array
3
2151. Maximum Good People Based on Statements
3
2152. Minimum Number of Lines to Cover Points
3
2154. Keep Multiplying Found Values by Two
3
2155. All Divisions With the Highest Score of a Binary Array
3
2156. Find Substring With Given Hash Value
3
2157. Groups of Strings
3
2158. Amount of New Area Painted Each Day
3
2160. Minimum Sum of Four Digit Number After Splitting Digits
3
2161. Partition Array According to Given Pivot
3
2162. Minimum Cost to Set Cooking Time
3
2163. Minimum Difference in Sums After Removal of Elements
3
2164. Sort Even and Odd Indices Independently
3
2165. Smallest Value of the Rearranged Number
3
2166. Design Bitset
3
2167. Minimum Time to Remove All Cars Containing Illegal Goods
3
2168. Unique Substrings With Equal Digit Frequency
3
2169. Count Operations to Obtain Zero
3
2170. Minimum Operations to Make the Array Alternating
3
2171. Removing Minimum Number of Magic Beans
3
2172. Maximum AND Sum of Array
3
2174. Remove All Ones With Row and Column Flips II
3
2176. Count Equal and Divisible Pairs in an Array
3
2177. Find Three Consecutive Integers That Sum to a Given Number
3
2178. Maximum Split of Positive Even Integers
3
2179. Count Good Triplets in an Array
3
2180. Count Integers With Even Digit Sum
3
2181. Merge Nodes in Between Zeros
3
2182. Construct String With Repeat Limit
3
2183. Count Array Pairs Divisible by K
3
2184. Number of Ways to Build Sturdy Brick Wall
3
2185. Counting Words With a Given Prefix
3
2186. Minimum Number of Steps to Make Two Strings Anagram II
3
2187. Minimum Time to Complete Trips
3
2188. Minimum Time to Finish the Race
3
2190. Most Frequent Number Following Key In an Array
3
2191. Sort the Jumbled Numbers
3
2192. All Ancestors of a Node in a Directed Acyclic Graph
3
2193. Minimum Number of Moves to Make Palindrome
3
2194. Cells in a Range on an Excel Sheet
3
2195. Append K Integers With Minimal Sum
3
2196. Create Binary Tree From Descriptions
3
2197. Replace Non-Coprime Numbers in Array
3
2198. Number of Single Divisor Triplets
3
2200. Find All K-Distant Indices in an Array
3
2201. Count Artifacts That Can Be Extracted
3
2202. Maximize the Topmost Element After K Moves
3
2203. Minimum Weighted Subgraph With the Required Paths
3
2204. Distance to a Cycle in Undirected Graph
3
2206. Divide Array Into Equal Pairs
3
2207. Maximize Number of Subsequences in a String
3
2208. Minimum Operations to Halve Array Sum
3
2209. Minimum White Tiles After Covering With Carpets
3
2210. Count Hills and Valleys in an Array
3
2211. Count Collisions on a Road
3
2212. Maximum Points in an Archery Competition
3
2213. Longest Substring of One Repeating Character
3
2214. Minimum Health to Beat Game
3
2215. Find the Difference of Two Arrays
3
2216. Minimum Deletions to Make Array Beautiful
3
2217. Find Palindrome With Fixed Length
3
2218. Maximum Value of K Coins From Piles
3
2219. Maximum Sum Score of Array
3
2220. Minimum Bit Flips to Convert Number
3
2221. Find Triangular Sum of an Array
3
2222. Number of Ways to Select Buildings
3
2223. Sum of Scores of Built Strings
3
2224. Minimum Number of Operations to Convert Time
3
2225. Find Players With Zero or One Losses
3
2226. Maximum Candies Allocated to K Children
3
2227. Encrypt and Decrypt Strings
3
2229. Check if an Array Is Consecutive
3
2231. Largest Number After Digit Swaps by Parity
3
2232. Minimize Result by Adding Parentheses to Expression
3
2233. Maximum Product After K Increments
3
2234. Maximum Total Beauty of the Gardens
3
2235. Add Two Integers
3
2236. Root Equals Sum of Children
3
2237. Count Positions on Street With Required Brightness
3
2239. Find Closest Number to Zero
3
2240. Number of Ways to Buy Pens and Pencils
3
2241. Design an ATM Machine
3
2242. Maximum Score of a Node Sequence
3
2243. Calculate Digit Sum of a String
3
2244. Minimum Rounds to Complete All Tasks
3
2245. Maximum Trailing Zeros in a Cornered Path
3
2246. Longest Path With Different Adjacent Characters
3
Ready
UTF-8
cpp
Ln 1, Col 1