Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
LeetCode 解题思维训练
LeetCode 解题思维训练

题解索引

  • 0001. Two Sum
  • 0002. Add Two Numbers
  • 0003. Longest Substring Without Repeating Characters
  • 0004. Median of Two Sorted Arrays
  • 0005. Longest Palindromic Substring
  • 0006. Zigzag Conversion
  • 0007. Reverse Integer
  • 0008. String to Integer (atoi)
  • 0009. Palindrome Number
  • 0010. Regular Expression Matching
  • 0011. Container With Most Water
  • 0012. Integer to Roman
  • 0013. Roman to Integer
  • 0014. Longest Common Prefix
  • 0015. 3Sum
  • 0016. 3Sum Closest
  • 0017. Letter Combinations of a Phone Number
  • 0018. 4Sum
  • 0019. Remove Nth Node From End of List
  • 0020. Valid Parentheses
  • 0021. Merge Two Sorted Lists
  • 0022. Generate Parentheses
  • 0023. Merge k Sorted Lists
  • 0024. Swap Nodes in Pairs
  • 0025. Reverse Nodes in k-Group
  • 0026. Remove Duplicates from Sorted Array
  • 0027. Remove Element
  • 0028. Find the Index of the First Occurrence in a String
  • 0029. Divide Two Integers
  • 0030. Substring with Concatenation of All Words
  • 0031. Next Permutation
  • 0032. Longest Valid Parentheses
  • 0033. Search in Rotated Sorted Array
  • 0034. Find First and Last Position of Element in Sorted Array
  • 0035. Search Insert Position
  • 0036. Valid Sudoku
  • 0037. Sudoku Solver
  • 0038. Count and Say
  • 0039. Combination Sum
  • 0040. Combination Sum II
  • 0041. First Missing Positive
  • 0042. Trapping Rain Water
  • 0043. Multiply Strings
  • 0044. Wildcard Matching
  • 0045. Jump Game II
  • 0046. Permutations
  • 0047. Permutations II
  • 0048. Rotate Image
  • 0049. Group Anagrams
  • 0050. Pow(x, n)
  • 0051. N-Queens
  • 0052. N-Queens II
  • 0053. Maximum Subarray
  • 0054. Spiral Matrix
  • 0055. Jump Game
  • 0056. Merge Intervals
  • 0057. Insert Interval
  • 0058. Length of Last Word
  • 0059. Spiral Matrix II
  • 0060. Permutation Sequence
  • 0061. Rotate List
  • 0062. Unique Paths
  • 0063. Unique Paths II
  • 0064. Minimum Path Sum
  • 0065. Valid Number
  • 0066. Plus One
  • 0067. Add Binary
  • 0068. Text Justification
  • 0069. Sqrt(x)
  • 0070. Climbing Stairs
  • 0071. Simplify Path
  • 0072. Edit Distance
  • 0073. Set Matrix Zeroes
  • 0074. Search a 2D Matrix
  • 0075. Sort Colors
  • 0076. Minimum Window Substring
  • 0077. Combinations
  • 0078. Subsets
  • 0079. Word Search
  • 0080. Remove Duplicates from Sorted Array II
  • 0081. Search in Rotated Sorted Array II
  • 0082. Remove Duplicates from Sorted List II
  • 0083. Remove Duplicates from Sorted List
  • 0084. Largest Rectangle in Histogram
  • 0085. Maximal Rectangle
  • 0086. Partition List
  • 0087. Scramble String
  • 0088. Merge Sorted Array
  • 0089. Gray Code
  • 0090. Subsets II
  • 0091. Decode Ways
  • 0092. Reverse Linked List II
  • 0093. Restore IP Addresses
  • 0094. Binary Tree Inorder Traversal
  • 0095. Unique Binary Search Trees II
  • 0096. Unique Binary Search Trees
  • 0097. Interleaving String
  • 0098. Validate Binary Search Tree
  • 0099. Recover Binary Search Tree
  • 0100. Same Tree
  • 0101. Symmetric Tree
  • 0102. Binary Tree Level Order Traversal
  • 0103. Binary Tree Zigzag Level Order Traversal
  • 0104. Maximum Depth of Binary Tree
  • 0105. Construct Binary Tree from Preorder and Inorder Traversal
  • 0106. Construct Binary Tree from Inorder and Postorder Traversal
  • 0107. Binary Tree Level Order Traversal II
  • 0108. Convert Sorted Array to Binary Search Tree
  • 0109. Convert Sorted List to Binary Search Tree
  • 0110. Balanced Binary Tree
  • 0111. Minimum Depth of Binary Tree
  • 0112. Path Sum
  • 0113. Path Sum II
  • 0114. Flatten Binary Tree to Linked List
  • 0115. Distinct Subsequences
  • 0116. Populating Next Right Pointers in Each Node
  • 0117. Populating Next Right Pointers in Each Node II
  • 0118. Pascal's Triangle
  • 0119. Pascal's Triangle II
  • 0120. Triangle
  • 0121. Best Time to Buy and Sell Stock
  • 0122. Best Time to Buy and Sell Stock II
  • 0123. Best Time to Buy and Sell Stock III
  • 0124. Binary Tree Maximum Path Sum
  • 0125. Valid Palindrome
  • 0126. Word Ladder II
  • 0127. Word Ladder
  • 0128. Longest Consecutive Sequence
  • 0129. Sum Root to Leaf Numbers
  • 0130. Surrounded Regions
  • 0131. Palindrome Partitioning
  • 0132. Palindrome Partitioning II
  • 0133. Clone Graph
  • 0134. Gas Station
  • 0135. Candy
  • 0136. Single Number
  • 0137. Single Number II
  • 0138. Copy List with Random Pointer
  • 0139. Word Break
  • 0140. Word Break II
  • 0141. Linked List Cycle
  • 0142. Linked List Cycle II
  • 0143. Reorder List
  • 0144. Binary Tree Preorder Traversal
  • 0145. Binary Tree Postorder Traversal
  • 0146. LRU Cache
  • 0147. Insertion Sort List
  • 0148. Sort List
  • 0149. Max Points on a Line
  • 0150. Evaluate Reverse Polish Notation
  • 0151. Reverse Words in a String
  • 0152. Maximum Product Subarray
  • 0153. Find Minimum in Rotated Sorted Array
  • 0154. Find Minimum in Rotated Sorted Array II
  • 0155. Min Stack
  • 0156. Binary Tree Upside Down
  • 0157. Read N Characters Given Read4
  • 0158. Read N Characters Given Read4 II - Call multiple times
  • 0159. Longest Substring with At Most Two Distinct Characters
  • 0160. Intersection of Two Linked Lists
  • 0161. One Edit Distance
  • 0162. Find Peak Element
  • 0163. Missing Ranges
  • 0164. Maximum Gap
  • 0165. Compare Version Numbers
  • 0166. Fraction to Recurring Decimal
  • 0167. Two Sum II - Input Array Is Sorted
  • 0168. Excel Sheet Column Title
  • 0169. Majority Element
  • 0170. Two Sum III - Data structure design
  • 0171. Excel Sheet Column Number
  • 0172. Factorial Trailing Zeroes
  • 0173. Binary Search Tree Iterator
  • 0174. Dungeon Game
  • 0175. Combine Two Tables
  • 0176. Second Highest Salary
  • 0177. Nth Highest Salary
  • 0178. Rank Scores
  • 0179. Largest Number
  • 0180. Consecutive Numbers
  • 0181. Employees Earning More Than Their Managers
  • 0182. Duplicate Emails
  • 0183. Customers Who Never Order
  • 0184. Department Highest Salary
  • 0185. Department Top Three Salaries
  • 0186. Reverse Words in a String II
  • 0187. Repeated DNA Sequences
  • 0188. Best Time to Buy and Sell Stock IV
  • 0189. Rotate Array
  • 0190. Reverse Bits
  • 0191. Number of 1 Bits
  • 0192. Word Frequency
  • 0193. Valid Phone Numbers
  • 0194. Transpose File
  • 0195. Tenth Line
  • 0196. Delete Duplicate Emails
  • 0197. Rising Temperature
  • 0198. House Robber
  • 0199. Binary Tree Right Side View
  • 0200. Number of Islands
  • 0201. Bitwise AND of Numbers Range
  • 0202. Happy Number
  • 0203. Remove Linked List Elements
  • 0204. Count Primes
  • 0205. Isomorphic Strings
  • 0206. Reverse Linked List
  • 0207. Course Schedule
  • 0208. Implement Trie (Prefix Tree)
  • 0209. Minimum Size Subarray Sum
  • 0210. Course Schedule II
  • 0211. Design Add and Search Words Data Structure
  • 0212. Word Search II
  • 0213. House Robber II
  • 0214. Shortest Palindrome
  • 0215. Kth Largest Element in an Array
  • 0216. Combination Sum III
  • 0217. Contains Duplicate
  • 0218. The Skyline Problem
  • 0219. Contains Duplicate II
  • 0220. Contains Duplicate III
  • 0221. Maximal Square
  • 0222. Count Complete Tree Nodes
  • 0223. Rectangle Area
  • 0224. Basic Calculator
  • 0225. Implement Stack using Queues
  • 0226. Invert Binary Tree
  • 0227. Basic Calculator II
  • 0228. Summary Ranges
  • 0229. Majority Element II
  • 0230. Kth Smallest Element in a BST
  • 0231. Power of Two
  • 0232. Implement Queue using Stacks
  • 0233. Number of Digit One
  • 0234. Palindrome Linked List
  • 0235. Lowest Common Ancestor of a Binary Search Tree
  • 0236. Lowest Common Ancestor of a Binary Tree
  • 0237. Delete Node in a Linked List
  • 0238. Product of Array Except Self
  • 0239. Sliding Window Maximum
  • 0240. Search a 2D Matrix II
  • 0241. Different Ways to Add Parentheses
  • 0242. Valid Anagram
  • 0243. Shortest Word Distance
  • 0244. Shortest Word Distance II
  • 0245. Shortest Word Distance III
  • 0246. Strobogrammatic Number
  • 0247. Strobogrammatic Number II
  • 0248. Strobogrammatic Number III
  • 0249. Group Shifted Strings
  • 0250. Count Univalue Subtrees
  • 0251. Flatten 2D Vector
  • 0252. Meeting Rooms
  • 0253. Meeting Rooms II
  • 0254. Factor Combinations
  • 0255. Verify Preorder Sequence in Binary Search Tree
  • 0256. Paint House
  • 0257. Binary Tree Paths
  • 0258. Add Digits
  • 0259. 3Sum Smaller
  • 0260. Single Number III
  • 0261. Graph Valid Tree
  • 0262. Trips and Users
  • 0263. Ugly Number
  • 0264. Ugly Number II
  • 0265. Paint House II
  • 0266. Palindrome Permutation
  • 0267. Palindrome Permutation II
  • 0268. Missing Number
  • 0269. Alien Dictionary
  • 0270. Closest Binary Search Tree Value
  • 0271. Encode and Decode Strings
  • 0272. Closest Binary Search Tree Value II
  • 0273. Integer to English Words
  • 0274. H-Index
  • 0275. H-Index II
  • 0276. Paint Fence
  • 0277. Find the Celebrity
  • 0278. First Bad Version
  • 0279. Perfect Squares
  • 0280. Wiggle Sort
  • 0281. Zigzag Iterator
  • 0282. Expression Add Operators
  • 0283. Move Zeroes
  • 0284. Peeking Iterator
  • 0285. Inorder Successor in BST
  • 0286. Walls and Gates
  • 0287. Find the Duplicate Number
  • 0288. Unique Word Abbreviation
  • 0289. Game of Life
  • 0290. Word Pattern
  • 0291. Word Pattern II
  • 0292. Nim Game
  • 0293. Flip Game
  • 0294. Flip Game II
  • 0295. Find Median from Data Stream
  • 0296. Best Meeting Point
  • 0297. Serialize and Deserialize Binary Tree
  • 0298. Binary Tree Longest Consecutive Sequence
  • 0299. Bulls and Cows
  • 0300. Longest Increasing Subsequence
  • 0301. Remove Invalid Parentheses
  • 0302. Smallest Rectangle Enclosing Black Pixels
  • 0303. Range Sum Query - Immutable
  • 0304. Range Sum Query 2D - Immutable
  • 0305. Number of Islands II
  • 0306. Additive Number
  • 0307. Range Sum Query - Mutable
  • 0308. Range Sum Query 2D - Mutable
  • 0309. Best Time to Buy and Sell Stock with Cooldown
  • 0310. Minimum Height Trees
  • 0311. Sparse Matrix Multiplication
  • 0312. Burst Balloons
  • 0313. Super Ugly Number
  • 0314. Binary Tree Vertical Order Traversal
  • 0315. Count of Smaller Numbers After Self
  • 0316. Remove Duplicate Letters
  • 0317. Shortest Distance from All Buildings
  • 0318. Maximum Product of Word Lengths
  • 0319. Bulb Switcher
  • 0320. Generalized Abbreviation
  • 0321. Create Maximum Number
  • 0322. Coin Change
  • 0323. Number of Connected Components in an Undirected Graph
  • 0324. Wiggle Sort II
  • 0325. Maximum Size Subarray Sum Equals k
  • 0326. Power of Three
  • 0327. Count of Range Sum
  • 0328. Odd Even Linked List
  • 0329. Longest Increasing Path in a Matrix
  • 0330. Patching Array
  • 0331. Verify Preorder Serialization of a Binary Tree
  • 0332. Reconstruct Itinerary
  • 0333. Largest BST Subtree
  • 0334. Increasing Triplet Subsequence
  • 0335. Self Crossing
  • 0336. Palindrome Pairs
  • 0337. House Robber III
  • 0338. Counting Bits
  • 0339. Nested List Weight Sum
  • 0340. Longest Substring with At Most K Distinct Characters
  • 0341. Flatten Nested List Iterator
  • 0342. Power of Four
  • 0343. Integer Break
  • 0344. Reverse String
  • 0345. Reverse Vowels of a String
  • 0346. Moving Average from Data Stream
  • 0347. Top K Frequent Elements
  • 0348. Design Tic-Tac-Toe
  • 0349. Intersection of Two Arrays
  • 0350. Intersection of Two Arrays II
  • 0351. Android Unlock Patterns
  • 0352. Data Stream as Disjoint Intervals
  • 0353. Design Snake Game
  • 0354. Russian Doll Envelopes
  • 0355. Design Twitter
  • 0356. Line Reflection
  • 0357. Count Numbers with Unique Digits
  • 0358. Rearrange String k Distance Apart
  • 0359. Logger Rate Limiter
  • 0360. Sort Transformed Array
  • 0361. Bomb Enemy
  • 0362. Design Hit Counter
  • 0363. Max Sum of Rectangle No Larger Than K
  • 0364. Nested List Weight Sum II
  • 0365. Water and Jug Problem
  • 0366. Find Leaves of Binary Tree
  • 0367. Valid Perfect Square
  • 0368. Largest Divisible Subset
  • 0369. Plus One Linked List
  • 0370. Range Addition
  • 0371. Sum of Two Integers
  • 0372. Super Pow
  • 0373. Find K Pairs with Smallest Sums
  • 0374. Guess Number Higher or Lower
  • 0375. Guess Number Higher or Lower II
  • 0376. Wiggle Subsequence
  • 0377. Combination Sum IV
  • 0378. Kth Smallest Element in a Sorted Matrix
  • 0379. Design Phone Directory
  • 0380. Insert Delete GetRandom O(1)
  • 0381. Insert Delete GetRandom O(1) - Duplicates allowed
  • 0382. Linked List Random Node
  • 0383. Ransom Note
  • 0384. Shuffle an Array
  • 0385. Mini Parser
  • 0386. Lexicographical Numbers
  • 0387. First Unique Character in a String
  • 0388. Longest Absolute File Path
  • 0389. Find the Difference
  • 0390. Elimination Game
  • 0391. Perfect Rectangle
  • 0392. Is Subsequence
  • 0393. UTF-8 Validation
  • 0394. Decode String
  • 0395. Longest Substring with At Least K Repeating Characters
  • 0396. Rotate Function
  • 0397. Integer Replacement
  • 0398. Random Pick Index
  • 0399. Evaluate Division
  • 0400. Nth Digit
  • 0401. Binary Watch
  • 0402. Remove K Digits
  • 0403. Frog Jump
  • 0404. Sum of Left Leaves
  • 0405. Convert a Number to Hexadecimal
  • 0406. Queue Reconstruction by Height
  • 0407. Trapping Rain Water II
  • 0408. Valid Word Abbreviation
  • 0409. Longest Palindrome
  • 0410. Split Array Largest Sum
  • 0411. Minimum Unique Word Abbreviation
  • 0412. Fizz Buzz
  • 0413. Arithmetic Slices
  • 0414. Third Maximum Number
  • 0415. Add Strings
  • 0416. Partition Equal Subset Sum
  • 0417. Pacific Atlantic Water Flow
  • 0418. Sentence Screen Fitting
  • 0419. Battleships in a Board
  • 0420. Strong Password Checker
  • 0421. Maximum XOR of Two Numbers in an Array
  • 0422. Valid Word Square
  • 0423. Reconstruct Original Digits from English
  • 0424. Longest Repeating Character Replacement
  • 0425. Word Squares
  • 0426. Convert Binary Search Tree to Sorted Doubly Linked List
  • 0427. Construct Quad Tree
  • 0428. Serialize and Deserialize N-ary Tree
  • 0429. N-ary Tree Level Order Traversal
  • 0430. Flatten a Multilevel Doubly Linked List
  • 0431. Encode N-ary Tree to Binary Tree
  • 0432. All O`one Data Structure
  • 0433. Minimum Genetic Mutation
  • 0434. Number of Segments in a String
  • 0435. Non-overlapping Intervals
  • 0436. Find Right Interval
  • 0437. Path Sum III
  • 0438. Find All Anagrams in a String
  • 0439. Ternary Expression Parser
  • 0440. K-th Smallest in Lexicographical Order
  • 0441. Arranging Coins
  • 0442. Find All Duplicates in an Array
  • 0443. String Compression
  • 0444. Sequence Reconstruction
  • 0445. Add Two Numbers II
  • 0446. Arithmetic Slices II - Subsequence
  • 0447. Number of Boomerangs
  • 0448. Find All Numbers Disappeared in an Array
  • 0449. Serialize and Deserialize BST
  • 0450. Delete Node in a BST
  • 0451. Sort Characters By Frequency
  • 0452. Minimum Number of Arrows to Burst Balloons
  • 0453. Minimum Moves to Equal Array Elements
  • 0454. 4Sum II
  • 0455. Assign Cookies
  • 0456. 132 Pattern
  • 0457. Circular Array Loop
  • 0458. Poor Pigs
  • 0459. Repeated Substring Pattern
  • 0460. LFU Cache
  • 0461. Hamming Distance
  • 0462. Minimum Moves to Equal Array Elements II
  • 0463. Island Perimeter
  • 0464. Can I Win
  • 0465. Optimal Account Balancing
  • 0466. Count The Repetitions
  • 0467. Unique Substrings in Wraparound String
  • 0468. Validate IP Address
  • 0469. Convex Polygon
  • 0470. Implement Rand10() Using Rand7()
  • 0471. Encode String with Shortest Length
  • 0472. Concatenated Words
  • 0473. Matchsticks to Square
  • 0474. Ones and Zeroes
  • 0475. Heaters
  • 0476. Number Complement
  • 0477. Total Hamming Distance
  • 0478. Generate Random Point in a Circle
  • 0479. Largest Palindrome Product
  • 0480. Sliding Window Median
  • 0481. Magical String
  • 0482. License Key Formatting
  • 0483. Smallest Good Base
  • 0484. Find Permutation
  • 0485. Max Consecutive Ones
  • 0486. Predict the Winner
  • 0487. Max Consecutive Ones II
  • 0488. Zuma Game
  • 0489. Robot Room Cleaner
  • 0490. The Maze
  • 0491. Non-decreasing Subsequences
  • 0492. Construct the Rectangle
  • 0493. Reverse Pairs
  • 0494. Target Sum
  • 0495. Teemo Attacking
  • 0496. Next Greater Element I
  • 0497. Random Point in Non-overlapping Rectangles
  • 0498. Diagonal Traverse
  • 0499. The Maze III
  • 0500. Keyboard Row
  • 0501. Find Mode in Binary Search Tree
  • 0502. IPO
  • 0503. Next Greater Element II
  • 0504. Base 7
  • 0505. The Maze II
  • 0506. Relative Ranks
  • 0507. Perfect Number
  • 0508. Most Frequent Subtree Sum
  • 0509. Fibonacci Number
  • 0510. Inorder Successor in BST II
  • 0511. Game Play Analysis I
  • 0512. Game Play Analysis II
  • 0513. Find Bottom Left Tree Value
  • 0514. Freedom Trail
  • 0515. Find Largest Value in Each Tree Row
  • 0516. Longest Palindromic Subsequence
  • 0517. Super Washing Machines
  • 0518. Coin Change II
  • 0519. Random Flip Matrix
  • 0520. Detect Capital
  • 0521. Longest Uncommon Subsequence I
  • 0522. Longest Uncommon Subsequence II
  • 0523. Continuous Subarray Sum
  • 0524. Longest Word in Dictionary through Deleting
  • 0525. Contiguous Array
  • 0526. Beautiful Arrangement
  • 0527. Word Abbreviation
  • 0528. Random Pick with Weight
  • 0529. Minesweeper
  • 0530. Minimum Absolute Difference in BST
  • 0531. Lonely Pixel I
  • 0532. K-diff Pairs in an Array
  • 0533. Lonely Pixel II
  • 0534. Game Play Analysis III
  • 0535. Encode and Decode TinyURL
  • 0536. Construct Binary Tree from String
  • 0537. Complex Number Multiplication
  • 0538. Convert BST to Greater Tree
  • 0539. Minimum Time Difference
  • 0540. Single Element in a Sorted Array
  • 0541. Reverse String II
  • 0542. 01 Matrix
  • 0543. Diameter of Binary Tree
  • 0544. Output Contest Matches
  • 0545. Boundary of Binary Tree
  • 0546. Remove Boxes
  • 0547. Number of Provinces
  • 0548. Split Array with Equal Sum
  • 0549. Binary Tree Longest Consecutive Sequence II
  • 0550. Game Play Analysis IV
  • 0551. Student Attendance Record I
  • 0552. Student Attendance Record II
  • 0553. Optimal Division
  • 0554. Brick Wall
  • 0555. Split Concatenated Strings
  • 0556. Next Greater Element III
  • 0557. Reverse Words in a String III
  • 0558. Logical OR of Two Binary Grids Represented as Quad-Trees
  • 0559. Maximum Depth of N-ary Tree
  • 0560. Subarray Sum Equals K
  • 0561. Array Partition
  • 0562. Longest Line of Consecutive One in Matrix
  • 0563. Binary Tree Tilt
  • 0564. Find the Closest Palindrome
  • 0565. Array Nesting
  • 0566. Reshape the Matrix
  • 0567. Permutation in String
  • 0568. Maximum Vacation Days
  • 0569. Median Employee Salary
  • 0570. Managers with at Least 5 Direct Reports
  • 0571. Find Median Given Frequency of Numbers
  • 0572. Subtree of Another Tree
  • 0573. Squirrel Simulation
  • 0574. Winning Candidate
  • 0575. Distribute Candies
  • 0576. Out of Boundary Paths
  • 0577. Employee Bonus
  • 0578. Get Highest Answer Rate Question
  • 0579. Find Cumulative Salary of an Employee
  • 0580. Count Student Number in Departments
  • 0581. Shortest Unsorted Continuous Subarray
  • 0582. Kill Process
  • 0583. Delete Operation for Two Strings
  • 0584. Find Customer Referee
  • 0585. Investments in 2016
  • 0586. Customer Placing the Largest Number of Orders
  • 0587. Erect the Fence
  • 0588. Design In-Memory File System
  • 0589. N-ary Tree Preorder Traversal
  • 0590. N-ary Tree Postorder Traversal
  • 0591. Tag Validator
  • 0592. Fraction Addition and Subtraction
  • 0593. Valid Square
  • 0594. Longest Harmonious Subsequence
  • 0595. Big Countries
  • 0596. Classes With at Least 5 Students
  • 0597. Friend Requests I Overall Acceptance Rate
  • 0598. Range Addition II
  • 0599. Minimum Index Sum of Two Lists
  • 0600. Non-negative Integers without Consecutive Ones
  • 0601. Human Traffic of Stadium
  • 0602. Friend Requests II Who Has the Most Friends
  • 0603. Consecutive Available Seats
  • 0604. Design Compressed String Iterator
  • 0605. Can Place Flowers
  • 0606. Construct String from Binary Tree
  • 0607. Sales Person
  • 0608. Tree Node
  • 0609. Find Duplicate File in System
  • 0610. Triangle Judgement
  • 0611. Valid Triangle Number
  • 0612. Shortest Distance in a Plane
  • 0613. Shortest Distance in a Line
  • 0614. Second Degree Follower
  • 0615. Average Salary Departments VS Company
  • 0616. Add Bold Tag in String
  • 0617. Merge Two Binary Trees
  • 0618. Students Report By Geography
  • 0619. Biggest Single Number
  • 0620. Not Boring Movies
  • 0621. Task Scheduler
  • 0622. Design Circular Queue
  • 0623. Add One Row to Tree
  • 0624. Maximum Distance in Arrays
  • 0625. Minimum Factorization
  • 0626. Exchange Seats
  • 0627. Swap Sex of Employees
  • 0628. Maximum Product of Three Numbers
  • 0629. K Inverse Pairs Array
  • 0630. Course Schedule III
  • 0631. Design Excel Sum Formula
  • 0632. Smallest Range Covering Elements from K Lists
  • 0633. Sum of Square Numbers
  • 0634. Find the Derangement of An Array
  • 0635. Design Log Storage System
  • 0636. Exclusive Time of Functions
  • 0637. Average of Levels in Binary Tree
  • 0638. Shopping Offers
  • 0639. Decode Ways II
  • 0640. Solve the Equation
  • 0641. Design Circular Deque
  • 0642. Design Search Autocomplete System
  • 0643. Maximum Average Subarray I
  • 0644. Maximum Average Subarray II
  • 0645. Set Mismatch
  • 0646. Maximum Length of Pair Chain
  • 0647. Palindromic Substrings
  • 0648. Replace Words
  • 0649. Dota2 Senate
  • 0650. 2 Keys Keyboard
  • 0651. 4 Keys Keyboard
  • 0652. Find Duplicate Subtrees
  • 0653. Two Sum IV - Input is a BST
  • 0654. Maximum Binary Tree
  • 0655. Print Binary Tree
  • 0656. Coin Path
  • 0657. Robot Return to Origin
  • 0658. Find K Closest Elements
  • 0659. Split Array into Consecutive Subsequences
  • 0660. Remove 9
  • 0661. Image Smoother
  • 0662. Maximum Width of Binary Tree
  • 0663. Equal Tree Partition
  • 0664. Strange Printer
  • 0665. Non-decreasing Array
  • 0666. Path Sum IV
  • 0667. Beautiful Arrangement II
  • 0668. Kth Smallest Number in Multiplication Table
  • 0669. Trim a Binary Search Tree
  • 0670. Maximum Swap
  • 0671. Second Minimum Node In a Binary Tree
  • 0672. Bulb Switcher II
  • 0673. Number of Longest Increasing Subsequence
  • 0674. Longest Continuous Increasing Subsequence
  • 0675. Cut Off Trees for Golf Event
  • 0676. Implement Magic Dictionary
  • 0677. Map Sum Pairs
  • 0678. Valid Parenthesis String
  • 0679. 24 Game
  • 0680. Valid Palindrome II
  • 0681. Next Closest Time
  • 0682. Baseball Game
  • 0683. K Empty Slots
  • 0684. Redundant Connection
  • 0685. Redundant Connection II
  • 0686. Repeated String Match
  • 0687. Longest Univalue Path
  • 0688. Knight Probability in Chessboard
  • 0689. Maximum Sum of 3 Non-Overlapping Subarrays
  • 0690. Employee Importance
  • 0691. Stickers to Spell Word
  • 0692. Top K Frequent Words
  • 0693. Binary Number with Alternating Bits
  • 0694. Number of Distinct Islands
  • 0695. Max Area of Island
  • 0696. Count Binary Substrings
  • 0697. Degree of an Array
  • 0698. Partition to K Equal Sum Subsets
  • 0699. Falling Squares
  • 0700. Search in a Binary Search Tree
  • 0701. Insert into a Binary Search Tree
  • 0702. Search in a Sorted Array of Unknown Size
  • 0703. Kth Largest Element in a Stream
  • 0704. Binary Search
  • 0705. Design HashSet
  • 0706. Design HashMap
  • 0707. Design Linked List
  • 0708. Insert into a Sorted Circular Linked List
  • 0709. To Lower Case
  • 0710. Random Pick with Blacklist
  • 0711. Number of Distinct Islands II
  • 0712. Minimum ASCII Delete Sum for Two Strings
  • 0713. Subarray Product Less Than K
  • 0714. Best Time to Buy and Sell Stock with Transaction Fee
  • 0715. Range Module
  • 0716. Max Stack
  • 0717. 1-bit and 2-bit Characters
  • 0718. Maximum Length of Repeated Subarray
  • 0719. Find K-th Smallest Pair Distance
  • 0720. Longest Word in Dictionary
  • 0721. Accounts Merge
  • 0722. Remove Comments
  • 0723. Candy Crush
  • 0724. Find Pivot Index
  • 0725. Split Linked List in Parts
  • 0726. Number of Atoms
  • 0727. Minimum Window Subsequence
  • 0728. Self Dividing Numbers
  • 0729. My Calendar I
  • 0730. Count Different Palindromic Subsequences
  • 0731. My Calendar II
  • 0732. My Calendar III
  • 0733. Flood Fill
  • 0734. Sentence Similarity
  • 0735. Asteroid Collision
  • 0736. Parse Lisp Expression
  • 0737. Sentence Similarity II
  • 0738. Monotone Increasing Digits
  • 0739. Daily Temperatures
  • 0740. Delete and Earn
  • 0741. Cherry Pickup
  • 0742. Closest Leaf in a Binary Tree
  • 0743. Network Delay Time
  • 0744. Find Smallest Letter Greater Than Target
  • 0745. Prefix and Suffix Search
  • 0746. Min Cost Climbing Stairs
  • 0747. Largest Number At Least Twice of Others
  • 0748. Shortest Completing Word
  • 0749. Contain Virus
  • 0750. Number Of Corner Rectangles
  • 0751. IP to CIDR
  • 0752. Open the Lock
  • 0753. Cracking the Safe
  • 0754. Reach a Number
  • 0755. Pour Water
  • 0756. Pyramid Transition Matrix
  • 0757. Set Intersection Size At Least Two
  • 0758. Bold Words in String
  • 0759. Employee Free Time
  • 0760. Find Anagram Mappings
  • 0761. Special Binary String
  • 0762. Prime Number of Set Bits in Binary Representation
  • 0763. Partition Labels
  • 0764. Largest Plus Sign
  • 0765. Couples Holding Hands
  • 0766. Toeplitz Matrix
  • 0767. Reorganize String
  • 0768. Max Chunks To Make Sorted II
  • 0769. Max Chunks To Make Sorted
  • 0770. Basic Calculator IV
  • 0771. Jewels and Stones
  • 0772. Basic Calculator III
  • 0773. Sliding Puzzle
  • 0774. Minimize Max Distance to Gas Station
  • 0775. Global and Local Inversions
  • 0776. Split BST
  • 0777. Swap Adjacent in LR String
  • 0778. Swim in Rising Water
  • 0779. K-th Symbol in Grammar
  • 0780. Reaching Points
  • 0781. Rabbits in Forest
  • 0782. Transform to Chessboard
  • 0783. Minimum Distance Between BST Nodes
  • 0784. Letter Case Permutation
  • 0785. Is Graph Bipartite
  • 0786. K-th Smallest Prime Fraction
  • 0787. Cheapest Flights Within K Stops
  • 0788. Rotated Digits
  • 0789. Escape The Ghosts
  • 0790. Domino and Tromino Tiling
  • 0791. Custom Sort String
  • 0792. Number of Matching Subsequences
  • 0793. Preimage Size of Factorial Zeroes Function
  • 0794. Valid Tic-Tac-Toe State
  • 0795. Number of Subarrays with Bounded Maximum
  • 0796. Rotate String
  • 0797. All Paths From Source to Target
  • 0798. Smallest Rotation with Highest Score
  • 0799. Champagne Tower
  • 0800. Similar RGB Color
  • 0801. Minimum Swaps To Make Sequences Increasing
  • 0802. Find Eventual Safe States
  • 0803. Bricks Falling When Hit
  • 0804. Unique Morse Code Words
  • 0805. Split Array With Same Average
  • 0806. Number of Lines To Write String
  • 0807. Max Increase to Keep City Skyline
  • 0808. Soup Servings
  • 0809. Expressive Words
  • 0810. Chalkboard XOR Game
  • 0811. Subdomain Visit Count
  • 0812. Largest Triangle Area
  • 0813. Largest Sum of Averages
  • 0814. Binary Tree Pruning
  • 0815. Bus Routes
  • 0816. Ambiguous Coordinates
  • 0817. Linked List Components
  • 0818. Race Car
  • 0819. Most Common Word
  • 0820. Short Encoding of Words
  • 0821. Shortest Distance to a Character
  • 0822. Card Flipping Game
  • 0823. Binary Trees With Factors
  • 0824. Goat Latin
  • 0825. Friends Of Appropriate Ages
  • 0826. Most Profit Assigning Work
  • 0827. Making A Large Island
  • 0828. Count Unique Characters of All Substrings of a Given String
  • 0829. Consecutive Numbers Sum
  • 0830. Positions of Large Groups
  • 0831. Masking Personal Information
  • 0832. Flipping an Image
  • 0833. Find And Replace in String
  • 0834. Sum of Distances in Tree
  • 0835. Image Overlap
  • 0836. Rectangle Overlap
  • 0837. New 21 Game
  • 0838. Push Dominoes
  • 0839. Similar String Groups
  • 0840. Magic Squares In Grid
  • 0841. Keys and Rooms
  • 0842. Split Array into Fibonacci Sequence
  • 0843. Guess the Word
  • 0844. Backspace String Compare
  • 0845. Longest Mountain in Array
  • 0846. Hand of Straights
  • 0847. Shortest Path Visiting All Nodes
  • 0848. Shifting Letters
  • 0849. Maximize Distance to Closest Person
  • 0850. Rectangle Area II
  • 0851. Loud and Rich
  • 0852. Peak Index in a Mountain Array
  • 0853. Car Fleet
  • 0854. K-Similar Strings
  • 0855. Exam Room
  • 0856. Score of Parentheses
  • 0857. Minimum Cost to Hire K Workers
  • 0858. Mirror Reflection
  • 0859. Buddy Strings
  • 0860. Lemonade Change
  • 0861. Score After Flipping Matrix
  • 0862. Shortest Subarray with Sum at Least K
  • 0863. All Nodes Distance K in Binary Tree
  • 0864. Shortest Path to Get All Keys
  • 0865. Smallest Subtree with all the Deepest Nodes
  • 0866. Prime Palindrome
  • 0867. Transpose Matrix
  • 0868. Binary Gap
  • 0869. Reordered Power of 2
  • 0870. Advantage Shuffle
  • 0871. Minimum Number of Refueling Stops
  • 0872. Leaf-Similar Trees
  • 0873. Length of Longest Fibonacci Subsequence
  • 0874. Walking Robot Simulation
  • 0875. Koko Eating Bananas
  • 0876. Middle of the Linked List
  • 0877. Stone Game
  • 0878. Nth Magical Number
  • 0879. Profitable Schemes
  • 0880. Decoded String at Index
  • 0881. Boats to Save People
  • 0882. Reachable Nodes In Subdivided Graph
  • 0883. Projection Area of 3D Shapes
  • 0884. Uncommon Words from Two Sentences
  • 0885. Spiral Matrix III
  • 0886. Possible Bipartition
  • 0887. Super Egg Drop
  • 0888. Fair Candy Swap
  • 0889. Construct Binary Tree from Preorder and Postorder Traversal
  • 0890. Find and Replace Pattern
  • 0891. Sum of Subsequence Widths
  • 0892. Surface Area of 3D Shapes
  • 0893. Groups of Special-Equivalent Strings
  • 0894. All Possible Full Binary Trees
  • 0895. Maximum Frequency Stack
  • 0896. Monotonic Array
  • 0897. Increasing Order Search Tree
  • 0898. Bitwise ORs of Subarrays
  • 0899. Orderly Queue
  • 0900. RLE Iterator
  • 0901. Online Stock Span
  • 0902. Numbers At Most N Given Digit Set
  • 0903. Valid Permutations for DI Sequence
  • 0904. Fruit Into Baskets
  • 0905. Sort Array By Parity
  • 0906. Super Palindromes
  • 0907. Sum of Subarray Minimums
  • 0908. Smallest Range I
  • 0909. Snakes and Ladders
  • 0910. Smallest Range II
  • 0911. Online Election
  • 0912. Sort an Array
  • 0913. Cat and Mouse
  • 0914. X of a Kind in a Deck of Cards
  • 0915. Partition Array into Disjoint Intervals
  • 0916. Word Subsets
  • 0917. Reverse Only Letters
  • 0918. Maximum Sum Circular Subarray
  • 0919. Complete Binary Tree Inserter
  • 0920. Number of Music Playlists
  • 0921. Minimum Add to Make Parentheses Valid
  • 0922. Sort Array By Parity II
  • 0923. 3Sum With Multiplicity
  • 0924. Minimize Malware Spread
  • 0925. Long Pressed Name
  • 0926. Flip String to Monotone Increasing
  • 0927. Three Equal Parts
  • 0928. Minimize Malware Spread II
  • 0929. Unique Email Addresses
  • 0930. Binary Subarrays With Sum
  • 0931. Minimum Falling Path Sum
  • 0932. Beautiful Array
  • 0933. Number of Recent Calls
  • 0934. Shortest Bridge
  • 0935. Knight Dialer
  • 0936. Stamping The Sequence
  • 0937. Reorder Data in Log Files
  • 0938. Range Sum of BST
  • 0939. Minimum Area Rectangle
  • 0940. Distinct Subsequences II
  • 0941. Valid Mountain Array
  • 0942. DI String Match
  • 0943. Find the Shortest Superstring
  • 0944. Delete Columns to Make Sorted
  • 0945. Minimum Increment to Make Array Unique
  • 0946. Validate Stack Sequences
  • 0947. Most Stones Removed with Same Row or Column
  • 0948. Bag of Tokens
  • 0949. Largest Time for Given Digits
  • 0950. Reveal Cards In Increasing Order
  • 0951. Flip Equivalent Binary Trees
  • 0952. Largest Component Size by Common Factor
  • 0953. Verifying an Alien Dictionary
  • 0954. Array of Doubled Pairs
  • 0955. Delete Columns to Make Sorted II
  • 0956. Tallest Billboard
  • 0957. Prison Cells After N Days
  • 0958. Check Completeness of a Binary Tree
  • 0959. Regions Cut By Slashes
  • 0960. Delete Columns to Make Sorted III
  • 0961. N-Repeated Element in Size 2N Array
  • 0962. Maximum Width Ramp
  • 0963. Minimum Area Rectangle II
  • 0964. Least Operators to Express Number
  • 0965. Univalued Binary Tree
  • 0966. Vowel Spellchecker
  • 0967. Numbers With Same Consecutive Differences
  • 0968. Binary Tree Cameras
  • 0969. Pancake Sorting
  • 0970. Powerful Integers
  • 0971. Flip Binary Tree To Match Preorder Traversal
  • 0972. Equal Rational Numbers
  • 0973. K Closest Points to Origin
  • 0974. Subarray Sums Divisible by K
  • 0975. Odd Even Jump
  • 0976. Largest Perimeter Triangle
  • 0977. Squares of a Sorted Array
  • 0978. Longest Turbulent Subarray
  • 0979. Distribute Coins in Binary Tree
  • 0980. Unique Paths III
  • 0981. Time Based Key-Value Store
  • 0982. Triples with Bitwise AND Equal To Zero
  • 0983. Minimum Cost For Tickets
  • 0984. String Without AAA or BBB
  • 0985. Sum of Even Numbers After Queries
  • 0986. Interval List Intersections
  • 0987. Vertical Order Traversal of a Binary Tree
  • 0988. Smallest String Starting From Leaf
  • 0989. Add to Array-Form of Integer
  • 0990. Satisfiability of Equality Equations
  • 0991. Broken Calculator
  • 0992. Subarrays with K Different Integers
  • 0993. Cousins in Binary Tree
  • 0994. Rotting Oranges
  • 0995. Minimum Number of K Consecutive Bit Flips
  • 0996. Number of Squareful Arrays
  • 0997. Find the Town Judge
  • 0998. Maximum Binary Tree II
  • 0999. Available Captures for Rook
  • 1000. Minimum Cost to Merge Stones
  • 1001. Grid Illumination
  • 1002. Find Common Characters
  • 1003. Check If Word Is Valid After Substitutions
  • 1004. Max Consecutive Ones III
  • 1005. Maximize Sum Of Array After K Negations
  • 1006. Clumsy Factorial
  • 1007. Minimum Domino Rotations For Equal Row
  • 1008. Construct Binary Search Tree from Preorder Traversal
  • 1009. Complement of Base 10 Integer
  • 1010. Pairs of Songs With Total Durations Divisible by 60
  • 1011. Capacity To Ship Packages Within D Days
  • 1012. Numbers With Repeated Digits
  • 1013. Partition Array Into Three Parts With Equal Sum
  • 1014. Best Sightseeing Pair
  • 1015. Smallest Integer Divisible by K
  • 1016. Binary String With Substrings Representing 1 To N
  • 1017. Convert to Base -2
  • 1018. Binary Prefix Divisible By 5
  • 1019. Next Greater Node In Linked List
  • 1020. Number of Enclaves
  • 1021. Remove Outermost Parentheses
  • 1022. Sum of Root To Leaf Binary Numbers
  • 1023. Camelcase Matching
  • 1024. Video Stitching
  • 1025. Divisor Game
  • 1026. Maximum Difference Between Node and Ancestor
  • 1027. Longest Arithmetic Subsequence
  • 1028. Recover a Tree From Preorder Traversal
  • 1029. Two City Scheduling
  • 1030. Matrix Cells in Distance Order
  • 1031. Maximum Sum of Two Non-Overlapping Subarrays
  • 1032. Stream of Characters
  • 1033. Moving Stones Until Consecutive
  • 1034. Coloring A Border
  • 1035. Uncrossed Lines
  • 1036. Escape a Large Maze
  • 1037. Valid Boomerang
  • 1038. Binary Search Tree to Greater Sum Tree
  • 1039. Minimum Score Triangulation of Polygon
  • 1040. Moving Stones Until Consecutive II
  • 1041. Robot Bounded In Circle
  • 1042. Flower Planting With No Adjacent
  • 1043. Partition Array for Maximum Sum
  • 1044. Longest Duplicate Substring
  • 1045. Customers Who Bought All Products
  • 1046. Last Stone Weight
  • 1047. Remove All Adjacent Duplicates In String
  • 1048. Longest String Chain
  • 1049. Last Stone Weight II
  • 1050. Actors and Directors Who Cooperated At Least Three Times
  • 1051. Height Checker
  • 1052. Grumpy Bookstore Owner
  • 1053. Previous Permutation With One Swap
  • 1054. Distant Barcodes
  • 1055. Shortest Way to Form String
  • 1056. Confusing Number
  • 1057. Campus Bikes
  • 1058. Minimize Rounding Error to Meet Target
  • 1059. All Paths from Source Lead to Destination
  • 1060. Missing Element in Sorted Array
  • 1061. Lexicographically Smallest Equivalent String
  • 1062. Longest Repeating Substring
  • 1063. Number of Valid Subarrays
  • 1064. Fixed Point
  • 1065. Index Pairs of a String
  • 1066. Campus Bikes II
  • 1067. Digit Count in Range
  • 1068. Product Sales Analysis I
  • 1069. Product Sales Analysis II
  • 1070. Product Sales Analysis III
  • 1071. Greatest Common Divisor of Strings
  • 1072. Flip Columns For Maximum Number of Equal Rows
  • 1073. Adding Two Negabinary Numbers
  • 1074. Number of Submatrices That Sum to Target
  • 1075. Project Employees I
  • 1076. Project Employees II
  • 1077. Project Employees III
  • 1078. Occurrences After Bigram
  • 1079. Letter Tile Possibilities
  • 1080. Insufficient Nodes in Root to Leaf Paths
  • 1081. Smallest Subsequence of Distinct Characters
  • 1082. Sales Analysis I
  • 1083. Sales Analysis II
  • 1084. Sales Analysis III
  • 1085. Sum of Digits in the Minimum Number
  • 1086. High Five
  • 1087. Brace Expansion
  • 1088. Confusing Number II
  • 1089. Duplicate Zeros
  • 1090. Largest Values From Labels
  • 1091. Shortest Path in Binary Matrix
  • 1092. Shortest Common Supersequence
  • 1093. Statistics from a Large Sample
  • 1094. Car Pooling
  • 1095. Find in Mountain Array
  • 1096. Brace Expansion II
  • 1097. Game Play Analysis V
  • 1098. Unpopular Books
  • 1099. Two Sum Less Than K
  • 1100. Find K-Length Substrings With No Repeated Characters
  • 1101. The Earliest Moment When Everyone Become Friends
  • 1102. Path With Maximum Minimum Value
  • 1103. Distribute Candies to People
  • 1104. Path In Zigzag Labelled Binary Tree
  • 1105. Filling Bookcase Shelves
  • 1106. Parsing A Boolean Expression
  • 1107. New Users Daily Count
  • 1108. Defanging an IP Address
  • 1109. Corporate Flight Bookings
  • 1110. Delete Nodes And Return Forest
  • 1111. Maximum Nesting Depth of Two Valid Parentheses Strings
  • 1112. Highest Grade For Each Student
  • 1113. Reported Posts
  • 1114. Print in Order
  • 1115. Print FooBar Alternately
  • 1116. Print Zero Even Odd
  • 1117. Building H2O
  • 1118. Number of Days in a Month
  • 1119. Remove Vowels from a String
  • 1120. Maximum Average Subtree
  • 1121. Divide Array Into Increasing Sequences
  • 1122. Relative Sort Array
  • 1123. Lowest Common Ancestor of Deepest Leaves
  • 1124. Longest Well-Performing Interval
  • 1125. Smallest Sufficient Team
  • 1126. Active Businesses
  • 1127. User Purchase Platform
  • 1128. Number of Equivalent Domino Pairs
  • 1129. Shortest Path with Alternating Colors
  • 1130. Minimum Cost Tree From Leaf Values
  • 1131. Maximum of Absolute Value Expression
  • 1132. Reported Posts II
  • 1133. Largest Unique Number
  • 1134. Armstrong Number
  • 1135. Connecting Cities With Minimum Cost
  • 1136. Parallel Courses
  • 1137. N-th Tribonacci Number
  • 1138. Alphabet Board Path
  • 1139. Largest 1-Bordered Square
  • 1140. Stone Game II
  • 1141. User Activity for the Past 30 Days I
  • 1142. User Activity for the Past 30 Days II
  • 1143. Longest Common Subsequence
  • 1144. Decrease Elements To Make Array Zigzag
  • 1145. Binary Tree Coloring Game
  • 1146. Snapshot Array
  • 1147. Longest Chunked Palindrome Decomposition
  • 1148. Article Views I
  • 1149. Article Views II
  • 1150. Check If a Number Is Majority Element in a Sorted Array
  • 1151. Minimum Swaps to Group All 1's Together
  • 1152. Analyze User Website Visit Pattern
  • 1153. String Transforms Into Another String
  • 1154. Day of the Year
  • 1155. Number of Dice Rolls With Target Sum
  • 1156. Swap For Longest Repeated Character Substring
  • 1157. Online Majority Element In Subarray
  • 1158. Market Analysis I
  • 1159. Market Analysis II
  • 1160. Find Words That Can Be Formed by Characters
  • 1161. Maximum Level Sum of a Binary Tree
  • 1162. As Far from Land as Possible
  • 1163. Last Substring in Lexicographical Order
  • 1164. Product Price at a Given Date
  • 1165. Single-Row Keyboard
  • 1166. Design File System
  • 1167. Minimum Cost to Connect Sticks
  • 1168. Optimize Water Distribution in a Village
  • 1169. Invalid Transactions
  • 1170. Compare Strings by Frequency of the Smallest Character
  • 1171. Remove Zero Sum Consecutive Nodes from Linked List
  • 1172. Dinner Plate Stacks
  • 1173. Immediate Food Delivery I
  • 1174. Immediate Food Delivery II
  • 1175. Prime Arrangements
  • 1176. Diet Plan Performance
  • 1177. Can Make Palindrome from Substring
  • 1178. Number of Valid Words for Each Puzzle
  • 1179. Reformat Department Table
  • 1180. Count Substrings with Only One Distinct Letter
  • 1181. Before and After Puzzle
  • 1182. Shortest Distance to Target Color
  • 1183. Maximum Number of Ones
  • 1184. Distance Between Bus Stops
  • 1185. Day of the Week
  • 1186. Maximum Subarray Sum with One Deletion
  • 1187. Make Array Strictly Increasing
  • 1188. Design Bounded Blocking Queue
  • 1189. Maximum Number of Balloons
  • 1190. Reverse Substrings Between Each Pair of Parentheses
  • 1191. K-Concatenation Maximum Sum
  • 1192. Critical Connections in a Network
  • 1193. Monthly Transactions I
  • 1194. Tournament Winners
  • 1195. Fizz Buzz Multithreaded
  • 1196. How Many Apples Can You Put into the Basket
  • 1197. Minimum Knight Moves
  • 1198. Find Smallest Common Element in All Rows
  • 1199. Minimum Time to Build Blocks
  • 1200. Minimum Absolute Difference
  • 1201. Ugly Number III
  • 1202. Smallest String With Swaps
  • 1203. Sort Items by Groups Respecting Dependencies
  • 1204. Last Person to Fit in the Bus
  • 1205. Monthly Transactions II
  • 1206. Design Skiplist
  • 1207. Unique Number of Occurrences
  • 1208. Get Equal Substrings Within Budget
  • 1209. Remove All Adjacent Duplicates in String II
  • 1210. Minimum Moves to Reach Target with Rotations
  • 1211. Queries Quality and Percentage
  • 1212. Team Scores in Football Tournament
  • 1213. Intersection of Three Sorted Arrays
  • 1214. Two Sum BSTs
  • 1215. Stepping Numbers
  • 1216. Valid Palindrome III
  • 1217. Minimum Cost to Move Chips to The Same Position
  • 1218. Longest Arithmetic Subsequence of Given Difference
  • 1219. Path with Maximum Gold
  • 1220. Count Vowels Permutation
  • 1221. Split a String in Balanced Strings
  • 1222. Queens That Can Attack the King
  • 1223. Dice Roll Simulation
  • 1224. Maximum Equal Frequency
  • 1225. Report Contiguous Dates
  • 1226. The Dining Philosophers
  • 1227. Airplane Seat Assignment Probability
  • 1228. Missing Number In Arithmetic Progression
  • 1229. Meeting Scheduler
  • 1230. Toss Strange Coins
  • 1231. Divide Chocolate
  • 1232. Check If It Is a Straight Line
  • 1233. Remove Sub-Folders from the Filesystem
  • 1234. Replace the Substring for Balanced String
  • 1235. Maximum Profit in Job Scheduling
  • 1236. Web Crawler
  • 1237. Find Positive Integer Solution for a Given Equation
  • 1238. Circular Permutation in Binary Representation
  • 1239. Maximum Length of a Concatenated String with Unique Characters
  • 1240. Tiling a Rectangle with the Fewest Squares
  • 1241. Number of Comments per Post
  • 1242. Web Crawler Multithreaded
  • 1243. Array Transformation
  • 1244. Design A Leaderboard
  • 1245. Tree Diameter
  • 1246. Palindrome Removal
  • 1247. Minimum Swaps to Make Strings Equal
  • 1248. Count Number of Nice Subarrays
  • 1249. Minimum Remove to Make Valid Parentheses
  • 1250. Check If It Is a Good Array
  • 1251. Average Selling Price
  • 1252. Cells with Odd Values in a Matrix
  • 1253. Reconstruct a 2-Row Binary Matrix
  • 1254. Number of Closed Islands
  • 1255. Maximum Score Words Formed by Letters
  • 1256. Encode Number
  • 1257. Smallest Common Region
  • 1258. Synonymous Sentences
  • 1259. Handshakes That Don't Cross
  • 1260. Shift 2D Grid
  • 1261. Find Elements in a Contaminated Binary Tree
  • 1262. Greatest Sum Divisible by Three
  • 1263. Minimum Moves to Move a Box to Their Target Location
  • 1264. Page Recommendations
  • 1265. Print Immutable Linked List in Reverse
  • 1266. Minimum Time Visiting All Points
  • 1267. Count Servers that Communicate
  • 1268. Search Suggestions System
  • 1269. Number of Ways to Stay in the Same Place After Some Steps
  • 1270. All People Report to the Given Manager
  • 1271. Hexspeak
  • 1272. Remove Interval
  • 1273. Delete Tree Nodes
  • 1274. Number of Ships in a Rectangle
  • 1275. Find Winner on a Tic Tac Toe Game
  • 1276. Number of Burgers with No Waste of Ingredients
  • 1277. Count Square Submatrices with All Ones
  • 1278. Palindrome Partitioning III
  • 1279. Traffic Light Controlled Intersection
  • 1280. Students and Examinations
  • 1281. Subtract the Product and Sum of Digits of an Integer
  • 1282. Group the People Given the Group Size They Belong To
  • 1283. Find the Smallest Divisor Given a Threshold
  • 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
  • 1285. Find the Start and End Number of Continuous Ranges
  • 1286. Iterator for Combination
  • 1287. Element Appearing More Than 25% In Sorted Array
  • 1288. Remove Covered Intervals
  • 1289. Minimum Falling Path Sum II
  • 1290. Convert Binary Number in a Linked List to Integer
  • 1291. Sequential Digits
  • 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
  • 1293. Shortest Path in a Grid with Obstacles Elimination
  • 1294. Weather Type in Each Country
  • 1295. Find Numbers with Even Number of Digits
  • 1296. Divide Array in Sets of K Consecutive Numbers
  • 1297. Maximum Number of Occurrences of a Substring
  • 1298. Maximum Candies You Can Get from Boxes
  • 1299. Replace Elements with Greatest Element on Right Side
  • 1300. Sum of Mutated Array Closest to Target
  • 1301. Number of Paths with Max Score
  • 1302. Deepest Leaves Sum
  • 1303. Find the Team Size
  • 1304. Find N Unique Integers Sum up to Zero
  • 1305. All Elements in Two Binary Search Trees
  • 1306. Jump Game III
  • 1307. Verbal Arithmetic Puzzle
  • 1308. Running Total for Different Genders
  • 1309. Decrypt String from Alphabet to Integer Mapping
  • 1310. XOR Queries of a Subarray
  • 1311. Get Watched Videos by Your Friends
  • 1312. Minimum Insertion Steps to Make a String Palindrome
  • 1313. Decompress Run-Length Encoded List
  • 1314. Matrix Block Sum
  • 1315. Sum of Nodes with Even-Valued Grandparent
  • 1316. Distinct Echo Substrings
  • 1317. Convert Integer to the Sum of Two No-Zero Integers
  • 1318. Minimum Flips to Make a OR b Equal to c
  • 1319. Number of Operations to Make Network Connected
  • 1320. Minimum Distance to Type a Word Using Two Fingers
  • 1321. Restaurant Growth
  • 1322. Ads Performance
  • 1323. Maximum 69 Number
  • 1324. Print Words Vertically
  • 1325. Delete Leaves With a Given Value
  • 1326. Minimum Number of Taps to Open to Water a Garden
  • 1327. List the Products Ordered in a Period
  • 1328. Break a Palindrome
  • 1329. Sort the Matrix Diagonally
  • 1330. Reverse Subarray To Maximize Array Value
  • 1331. Rank Transform of an Array
  • 1332. Remove Palindromic Subsequences
  • 1333. Filter Restaurants by Vegan-Friendly, Price and Distance
  • 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
  • 1335. Minimum Difficulty of a Job Schedule
  • 1336. Number of Transactions per Visit
  • 1337. The K Weakest Rows in a Matrix
  • 1338. Reduce Array Size to The Half
  • 1339. Maximum Product of Splitted Binary Tree
  • 1340. Jump Game V
  • 1341. Movie Rating
  • 1342. Number of Steps to Reduce a Number to Zero
  • 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
  • 1344. Angle Between Hands of a Clock
  • 1345. Jump Game IV
  • 1346. Check If N and Its Double Exist
  • 1347. Minimum Number of Steps to Make Two Strings Anagram
  • 1348. Tweet Counts Per Frequency
  • 1349. Maximum Students Taking Exam
  • 1350. Students With Invalid Departments
  • 1351. Count Negative Numbers in a Sorted Matrix
  • 1352. Product of the Last K Numbers
  • 1353. Maximum Number of Events That Can Be Attended
  • 1354. Construct Target Array With Multiple Sums
  • 1355. Activity Participants
  • 1356. Sort Integers by The Number of 1 Bits
  • 1357. Apply Discount Every n Orders
  • 1358. Number of Substrings Containing All Three Characters
  • 1359. Count All Valid Pickup and Delivery Options
  • 1360. Number of Days Between Two Dates
  • 1361. Validate Binary Tree Nodes
  • 1362. Closest Divisors
  • 1363. Largest Multiple of Three
  • 1364. Number of Trusted Contacts of a Customer
  • 1365. How Many Numbers Are Smaller Than the Current Number
  • 1366. Rank Teams by Votes
  • 1367. Linked List in Binary Tree
  • 1368. Minimum Cost to Make at Least One Valid Path in a Grid
  • 1369. Get the Second Most Recent Activity
  • 1370. Increasing Decreasing String
  • 1371. Find the Longest Substring Containing Vowels in Even Counts
  • 1372. Longest ZigZag Path in a Binary Tree
  • 1373. Maximum Sum BST in Binary Tree
  • 1374. Generate a String With Characters That Have Odd Counts
  • 1375. Number of Times Binary String Is Prefix-Aligned
  • 1376. Time Needed to Inform All Employees
  • 1377. Frog Position After T Seconds
  • 1378. Replace Employee ID With The Unique Identifier
  • 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
  • 1380. Lucky Numbers in a Matrix
  • 1381. Design a Stack With Increment Operation
  • 1382. Balance a Binary Search Tree
  • 1383. Maximum Performance of a Team
  • 1384. Total Sales Amount by Year
  • 1385. Find the Distance Value Between Two Arrays
  • 1386. Cinema Seat Allocation
  • 1387. Sort Integers by The Power Value
  • 1388. Pizza With 3n Slices
  • 1389. Create Target Array in the Given Order
  • 1390. Four Divisors
  • 1391. Check if There is a Valid Path in a Grid
  • 1392. Longest Happy Prefix
  • 1393. Capital Gain/Loss
  • 1394. Find Lucky Integer in an Array
  • 1395. Count Number of Teams
  • 1396. Design Underground System
  • 1397. Find All Good Strings
  • 1398. Customers Who Bought Products A and B but Not C
  • 1399. Count Largest Group
  • 1400. Construct K Palindrome Strings
  • 1401. Circle and Rectangle Overlapping
  • 1402. Reducing Dishes
  • 1403. Minimum Subsequence in Non-Increasing Order
  • 1404. Number of Steps to Reduce a Number in Binary Representation to One
  • 1405. Longest Happy String
  • 1406. Stone Game III
  • 1407. Top Travellers
  • 1408. String Matching in an Array
  • 1409. Queries on a Permutation With Key
  • 1410. HTML Entity Parser
  • 1411. Number of Ways to Paint N × 3 Grid
  • 1412. Find the Quiet Students in All Exams
  • 1413. Minimum Value to Get Positive Step by Step Sum
  • 1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
  • 1415. The k-th Lexicographical String of All Happy Strings of Length n
  • 1416. Restore The Array
  • 1417. Reformat The String
  • 1418. Display Table of Food Orders in a Restaurant
  • 1419. Minimum Number of Frogs Croaking
  • 1420. Build Array Where You Can Find The Maximum Exactly K Comparisons
  • 1421. NPV Queries
  • 1422. Maximum Score After Splitting a String
  • 1423. Maximum Points You Can Obtain from Cards
  • 1424. Diagonal Traverse II
  • 1425. Constrained Subsequence Sum
  • 1426. Counting Elements
  • 1427. Perform String Shifts
  • 1428. Leftmost Column with at Least a One
  • 1429. First Unique Number
  • 1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
  • 1431. Kids With the Greatest Number of Candies
  • 1432. Max Difference You Can Get From Changing an Integer
  • 1433. Check If a String Can Break Another String
  • 1434. Number of Ways to Wear Different Hats to Each Other
  • 1435. Create a Session Bar Chart
  • 1436. Destination City
  • 1437. Check If All 1's Are at Least Length K Places Away
  • 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
  • 1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows
  • 1440. Evaluate Boolean Expression
  • 1441. Build an Array With Stack Operations
  • 1442. Count Triplets That Can Form Two Arrays of Equal XOR
  • 1443. Minimum Time to Collect All Apples in a Tree
  • 1444. Number of Ways of Cutting a Pizza
  • 1445. Apples & Oranges
  • 1446. Consecutive Characters
  • 1447. Simplified Fractions
  • 1448. Count Good Nodes in Binary Tree
  • 1449. Form Largest Integer With Digits That Add up to Target
  • 1450. Number of Students Doing Homework at a Given Time
  • 1451. Rearrange Words in a Sentence
  • 1452. People Whose List of Favorite Companies Is Not a Subset of Another List
  • 1453. Maximum Number of Darts Inside of a Circular Dartboard
  • 1454. Active Users
  • 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
  • 1456. Maximum Number of Vowels in a Substring of Given Length
  • 1457. Pseudo-Palindromic Paths in a Binary Tree
  • 1458. Max Dot Product of Two Subsequences
  • 1459. Rectangles Area
  • 1460. Make Two Arrays Equal by Reversing Subarrays
  • 1461. Check If a String Contains All Binary Codes of Size K
  • 1462. Course Schedule IV
  • 1463. Cherry Pickup II
  • 1464. Maximum Product of Two Elements in an Array
  • 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
  • 1466. Reorder Routes to Make All Paths Lead to the City Zero
  • 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
  • 1468. Calculate Salaries
  • 1469. Find All The Lonely Nodes
  • 1470. Shuffle the Array
  • 1471. The k Strongest Values in an Array
  • 1472. Design Browser History
  • 1473. Paint House III
  • 1474. Delete N Nodes After M Nodes of a Linked List
  • 1475. Final Prices With a Special Discount in a Shop
  • 1476. Subrectangle Queries
  • 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
  • 1478. Allocate Mailboxes
  • 1479. Sales by Day of the Week
  • 1480. Running Sum of 1d Array
  • 1481. Least Number of Unique Integers after K Removals
  • 1482. Minimum Number of Days to Make m Bouquets
  • 1483. Kth Ancestor of a Tree Node
  • 1484. Group Sold Products By The Date
  • 1485. Clone Binary Tree With Random Pointer
  • 1486. XOR Operation in an Array
  • 1487. Making File Names Unique
  • 1488. Avoid Flood in The City
  • 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
  • 1490. Clone N-ary Tree
  • 1491. Average Salary Excluding the Minimum and Maximum Salary
  • 1492. The kth Factor of n
  • 1493. Longest Subarray of 1's After Deleting One Element
  • 1494. Parallel Courses II
  • 1495. Friendly Movies Streamed Last Month
  • 1496. Path Crossing
  • 1497. Check If Array Pairs Are Divisible by k
  • 1498. Number of Subsequences That Satisfy the Given Sum Condition
  • 1499. Max Value of Equation
  • 1500. Design a File Sharing System
  • 1501. Countries You Can Safely Invest In
  • 1502. Can Make Arithmetic Progression From Sequence
  • 1503. Last Moment Before All Ants Fall Out of a Plank
  • 1504. Count Submatrices With All Ones
  • 1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
  • 1506. Find Root of N-Ary Tree
  • 1507. Reformat Date
  • 1508. Range Sum of Sorted Subarray Sums
  • 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
  • 1510. Stone Game IV
  • 1511. Customer Order Frequency
  • 1512. Number of Good Pairs
  • 1513. Number of Substrings With Only 1s
  • 1514. Path with Maximum Probability
  • 1515. Best Position for a Service Centre
  • 1516. Move Sub-Tree of N-Ary Tree
  • 1517. Find Users With Valid E-Mails
  • 1518. Water Bottles
  • 1519. Number of Nodes in the Sub-Tree With the Same Label
  • 1520. Maximum Number of Non-Overlapping Substrings
  • 1521. Find a Value of a Mysterious Function Closest to Target
  • 1522. Diameter of N-Ary Tree
  • 1523. Count Odd Numbers in an Interval Range
  • 1524. Number of Sub-arrays With Odd Sum
  • 1525. Number of Good Ways to Split a String
  • 1526. Minimum Number of Increments on Subarrays to Form a Target Array
  • 1527. Patients With a Condition
  • 1528. Shuffle String
  • 1529. Minimum Suffix Flips
  • 1530. Number of Good Leaf Nodes Pairs
  • 1531. String Compression II
  • 1532. The Most Recent Three Orders
  • 1533. Find the Index of the Large Integer
  • 1534. Count Good Triplets
  • 1535. Find the Winner of an Array Game
  • 1536. Minimum Swaps to Arrange a Binary Grid
  • 1537. Get the Maximum Score
  • 1538. Guess the Majority in a Hidden Array
  • 1539. Kth Missing Positive Number
  • 1540. Can Convert String in K Moves
  • 1541. Minimum Insertions to Balance a Parentheses String
  • 1542. Find Longest Awesome Substring
  • 1543. Fix Product Name Format
  • 1544. Make The String Great
  • 1545. Find Kth Bit in Nth Binary String
  • 1546. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
  • 1547. Minimum Cost to Cut a Stick
  • 1548. The Most Similar Path in a Graph
  • 1549. The Most Recent Orders for Each Product
  • 1550. Three Consecutive Odds
  • 1551. Minimum Operations to Make Array Equal
  • 1552. Magnetic Force Between Two Balls
  • 1553. Minimum Number of Days to Eat N Oranges
  • 1554. Strings Differ by One Character
  • 1555. Bank Account Summary
  • 1556. Thousand Separator
  • 1557. Minimum Number of Vertices to Reach All Nodes
  • 1558. Minimum Numbers of Function Calls to Make Target Array
  • 1559. Detect Cycles in 2D Grid
  • 1560. Most Visited Sector in a Circular Track
  • 1561. Maximum Number of Coins You Can Get
  • 1562. Find Latest Group of Size M
  • 1563. Stone Game V
  • 1564. Put Boxes Into the Warehouse I
  • 1565. Unique Orders and Customers Per Month
  • 1566. Detect Pattern of Length M Repeated K or More Times
  • 1567. Maximum Length of Subarray With Positive Product
  • 1568. Minimum Number of Days to Disconnect Island
  • 1569. Number of Ways to Reorder Array to Get Same BST
  • 1570. Dot Product of Two Sparse Vectors
  • 1571. Warehouse Manager
  • 1572. Matrix Diagonal Sum
  • 1573. Number of Ways to Split a String
  • 1574. Shortest Subarray to be Removed to Make Array Sorted
  • 1575. Count All Possible Routes
  • 1576. Replace All ?'s to Avoid Consecutive Repeating Characters
  • 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
  • 1578. Minimum Time to Make Rope Colorful
  • 1579. Remove Max Number of Edges to Keep Graph Fully Traversable
  • 1580. Put Boxes Into the Warehouse II
  • 1581. Customer Who Visited but Did Not Make Any Transactions
  • 1582. Special Positions in a Binary Matrix
  • 1583. Count Unhappy Friends
  • 1584. Min Cost to Connect All Points
  • 1585. Check If String Is Transformable With Substring Sort Operations
  • 1586. Binary Search Tree Iterator II
  • 1587. Bank Account Summary II
  • 1588. Sum of All Odd Length Subarrays
  • 1589. Maximum Sum Obtained of Any Permutation
  • 1590. Make Sum Divisible by P
  • 1591. Strange Printer II
  • 1592. Rearrange Spaces Between Words
  • 1593. Split a String Into the Max Number of Unique Substrings
  • 1594. Maximum Non Negative Product in a Matrix
  • 1595. Minimum Cost to Connect Two Groups of Points
  • 1596. The Most Frequently Ordered Products for Each Customer
  • 1597. Build Binary Expression Tree From Infix Expression
  • 1598. Crawler Log Folder
  • 1599. Maximum Profit of Operating a Centennial Wheel
  • 1600. Throne Inheritance
  • 1601. Maximum Number of Achievable Transfer Requests
  • 1602. Find Nearest Right Node in Binary Tree
  • 1603. Design Parking System
  • 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period
  • 1605. Find Valid Matrix Given Row and Column Sums
  • 1606. Find Servers That Handled Most Number of Requests
  • 1607. Sellers With No Sales
  • 1608. Special Array With X Elements Greater Than or Equal X
  • 1609. Even Odd Tree
  • 1610. Maximum Number of Visible Points
  • 1611. Minimum One Bit Operations to Make Integers Zero
  • 1612. Check If Two Expression Trees are Equivalent
  • 1613. Find the Missing IDs
  • 1614. Maximum Nesting Depth of the Parentheses
  • 1615. Maximal Network Rank
  • 1616. Split Two Strings to Make Palindrome
  • 1617. Count Subtrees With Max Distance Between Cities
  • 1618. Maximum Font to Fit a Sentence in a Screen
  • 1619. Mean of Array After Removing Some Elements
  • 1620. Coordinate With Maximum Network Quality
  • 1621. Number of Sets of K Non-Overlapping Line Segments
  • 1622. Fancy Sequence
  • 1623. All Valid Triplets That Can Represent a Country
  • 1624. Largest Substring Between Two Equal Characters
  • 1625. Lexicographically Smallest String After Applying Operations
  • 1626. Best Team With No Conflicts
  • 1627. Graph Connectivity With Threshold
  • 1628. Design an Expression Tree With Evaluate Function
  • 1629. Slowest Key
  • 1630. Arithmetic Subarrays
  • 1631. Path With Minimum Effort
  • 1632. Rank Transform of a Matrix
  • 1633. Percentage of Users Attended a Contest
  • 1634. Add Two Polynomials Represented as Linked Lists
  • 1635. Hopper Company Queries I
  • 1636. Sort Array by Increasing Frequency
  • 1637. Widest Vertical Area Between Two Points Containing No Points
  • 1638. Count Substrings That Differ by One Character
  • 1639. Number of Ways to Form a Target String Given a Dictionary
  • 1640. Check Array Formation Through Concatenation
  • 1641. Count Sorted Vowel Strings
  • 1642. Furthest Building You Can Reach
  • 1643. Kth Smallest Instructions
  • 1644. Lowest Common Ancestor of a Binary Tree II
  • 1645. Hopper Company Queries II
  • 1646. Get Maximum in Generated Array
  • 1647. Minimum Deletions to Make Character Frequencies Unique
  • 1648. Sell Diminishing-Valued Colored Balls
  • 1649. Create Sorted Array through Instructions
  • 1650. Lowest Common Ancestor of a Binary Tree III
  • 1651. Hopper Company Queries III
  • 1652. Defuse the Bomb
  • 1653. Minimum Deletions to Make String Balanced
  • 1654. Minimum Jumps to Reach Home
  • 1655. Distribute Repeating Integers
  • 1656. Design an Ordered Stream
  • 1657. Determine if Two Strings Are Close
  • 1658. Minimum Operations to Reduce X to Zero
  • 1659. Maximize Grid Happiness
  • 1660. Correct a Binary Tree
  • 1661. Average Time of Process per Machine
  • 1662. Check If Two String Arrays are Equivalent
  • 1663. Smallest String With A Given Numeric Value
  • 1664. Ways to Make a Fair Array
  • 1665. Minimum Initial Energy to Finish Tasks
  • 1666. Change the Root of a Binary Tree
  • 1667. Fix Names in a Table
  • 1668. Maximum Repeating Substring
  • 1669. Merge In Between Linked Lists
  • 1670. Design Front Middle Back Queue
  • 1671. Minimum Number of Removals to Make Mountain Array
  • 1672. Richest Customer Wealth
  • 1673. Find the Most Competitive Subsequence
  • 1674. Minimum Moves to Make Array Complementary
  • 1675. Minimize Deviation in Array
  • 1676. Lowest Common Ancestor of a Binary Tree IV
  • 1677. Product's Worth Over Invoices
  • 1678. Goal Parser Interpretation
  • 1679. Max Number of K-Sum Pairs
  • 1680. Concatenation of Consecutive Binary Numbers
  • 1681. Minimum Incompatibility
  • 1682. Longest Palindromic Subsequence II
  • 1683. Invalid Tweets
  • 1684. Count the Number of Consistent Strings
  • 1685. Sum of Absolute Differences in a Sorted Array
  • 1686. Stone Game VI
  • 1687. Delivering Boxes from Storage to Ports
  • 1688. Count of Matches in Tournament
  • 1689. Partitioning Into Minimum Number Of Deci-Binary Numbers
  • 1690. Stone Game VII
  • 1691. Maximum Height by Stacking Cuboids
  • 1692. Count Ways to Distribute Candies
  • 1693. Daily Leads and Partners
  • 1694. Reformat Phone Number
  • 1695. Maximum Erasure Value
  • 1696. Jump Game VI
  • 1697. Checking Existence of Edge Length Limited Paths
  • 1698. Number of Distinct Substrings in a String
  • 1699. Number of Calls Between Two Persons
  • 1700. Number of Students Unable to Eat Lunch
  • 1701. Average Waiting Time
  • 1702. Maximum Binary String After Change
  • 1703. Minimum Adjacent Swaps for K Consecutive Ones
  • 1704. Determine if String Halves Are Alike
  • 1705. Maximum Number of Eaten Apples
  • 1706. Where Will the Ball Fall
  • 1707. Maximum XOR With an Element From Array
  • 1708. Largest Subarray Length K
  • 1709. Biggest Window Between Visits
  • 1710. Maximum Units on a Truck
  • 1711. Count Good Meals
  • 1712. Ways to Split Array Into Three Subarrays
  • 1713. Minimum Operations to Make a Subsequence
  • 1714. Sum Of Special Evenly-Spaced Elements In Array
  • 1715. Count Apples and Oranges
  • 1716. Calculate Money in Leetcode Bank
  • 1717. Maximum Score From Removing Substrings
  • 1718. Construct the Lexicographically Largest Valid Sequence
  • 1719. Number Of Ways To Reconstruct A Tree
  • 1720. Decode XORed Array
  • 1721. Swapping Nodes in a Linked List
  • 1722. Minimize Hamming Distance After Swap Operations
  • 1723. Find Minimum Time to Finish All Jobs
  • 1724. Checking Existence of Edge Length Limited Paths II
  • 1725. Number Of Rectangles That Can Form The Largest Square
  • 1726. Tuple with Same Product
  • 1727. Largest Submatrix With Rearrangements
  • 1728. Cat and Mouse II
  • 1729. Find Followers Count
  • 1730. Shortest Path to Get Food
  • 1731. The Number of Employees Which Report to Each Employee
  • 1732. Find the Highest Altitude
  • 1733. Minimum Number of People to Teach
  • 1734. Decode XORed Permutation
  • 1735. Count Ways to Make Array With Product
  • 1736. Latest Time by Replacing Hidden Digits
  • 1737. Change Minimum Characters to Satisfy One of Three Conditions
  • 1738. Find Kth Largest XOR Coordinate Value
  • 1739. Building Boxes
  • 1740. Find Distance in a Binary Tree
  • 1741. Find Total Time Spent by Each Employee
  • 1742. Maximum Number of Balls in a Box
  • 1743. Restore the Array From Adjacent Pairs
  • 1744. Can You Eat Your Favorite Candy on Your Favorite Day?
  • 1745. Palindrome Partitioning IV
  • 1746. Maximum Subarray Sum After One Operation
  • 1747. Leetflex Banned Accounts
  • 1748. Sum of Unique Elements
  • 1749. Maximum Absolute Sum of Any Subarray
  • 1750. Minimum Length of String After Deleting Similar Ends
  • 1751. Maximum Number of Events That Can Be Attended II
  • 1752. Check if Array Is Sorted and Rotated
  • 1753. Maximum Score From Removing Stones
  • 1754. Largest Merge Of Two Strings
  • 1755. Closest Subsequence Sum
  • 1756. Design Most Recently Used Queue
  • 1757. Recyclable and Low Fat Products
  • 1758. Minimum Changes To Make Alternating Binary String
  • 1759. Count Number of Homogenous Substrings
  • 1760. Minimum Limit of Balls in a Bag
  • 1761. Minimum Degree of a Connected Trio in a Graph
  • 1762. Buildings With an Ocean View
  • 1763. Longest Nice Substring
  • 1764. Form Array by Concatenating Subarrays of Another Array
  • 1765. Map of Highest Peak
  • 1766. Tree of Coprimes
  • 1767. Find the Subtasks That Did Not Execute
  • 1768. Merge Strings Alternately
  • 1769. Minimum Number of Operations to Move All Balls to Each Box
  • 1770. Maximum Score from Performing Multiplication Operations
  • 1771. Maximize Palindrome Length From Subsequences
  • 1772. Sort Features by Popularity
  • 1773. Count Items Matching a Rule
  • 1774. Closest Dessert Cost
  • 1775. Equal Sum Arrays With Minimum Number of Operations
  • 1776. Car Fleet II
  • 1777. Product's Price for Each Store
  • 1778. Shortest Path in a Hidden Grid
  • 1779. Find Nearest Point That Has the Same X or Y Coordinate
  • 1780. Check if Number is a Sum of Powers of Three
  • 1781. Sum of Beauty of All Substrings
  • 1782. Count Pairs Of Nodes
  • 1783. Grand Slam Titles
  • 1784. Check if Binary String Has at Most One Segment of Ones
  • 1785. Minimum Elements to Add to Form a Given Sum
  • 1786. Number of Restricted Paths From First to Last Node
  • 1787. Make the XOR of All Segments Equal to Zero
  • 1788. Maximize the Beauty of the Garden
  • 1789. Primary Department for Each Employee
  • 1790. Check if One String Swap Can Make Strings Equal
  • 1791. Find Center of Star Graph
  • 1792. Maximum Average Pass Ratio
  • 1793. Maximum Score of a Good Subarray
  • 1794. Count Pairs of Equal Substrings With Minimum Difference
  • 1795. Rearrange Products Table
  • 1796. Second Largest Digit in a String
  • 1797. Design Authentication Manager
  • 1798. Maximum Number of Consecutive Values You Can Make
  • 1799. Maximize Score After N Operations
  • 1800. Maximum Ascending Subarray Sum
  • 1801. Number of Orders in the Backlog
  • 1802. Maximum Value at a Given Index in a Bounded Array
  • 1803. Count Pairs With XOR in a Range
  • 1804. Implement Trie II (Prefix Tree)
  • 1805. Number of Different Integers in a String
  • 1806. Minimum Number of Operations to Reinitialize a Permutation
  • 1807. Evaluate the Bracket Pairs of a String
  • 1808. Maximize Number of Nice Divisors
  • 1809. Ad-Free Sessions
  • 1810. Minimum Path Cost in a Hidden Grid
  • 1811. Find Interview Candidates
  • 1812. Determine Color of a Chessboard Square
  • 1813. Sentence Similarity III
  • 1814. Count Nice Pairs in an Array
  • 1815. Maximum Number of Groups Getting Fresh Donuts
  • 1816. Truncate Sentence
  • 1817. Finding the Users Active Minutes
  • 1818. Minimum Absolute Sum Difference
  • 1819. Number of Different Subsequences GCDs
  • 1820. Maximum Number of Accepted Invitations
  • 1821. Find Customers With Positive Revenue this Year
  • 1822. Sign of the Product of an Array
  • 1823. Find the Winner of the Circular Game
  • 1824. Minimum Sideway Jumps
  • 1825. Finding MK Average
  • 1826. Faulty Sensor
  • 1827. Minimum Operations to Make the Array Increasing
  • 1828. Queries on Number of Points Inside a Circle
  • 1829. Maximum XOR for Each Query
  • 1830. Minimum Number of Operations to Make String Sorted
  • 1831. Maximum Transaction Each Day
  • 1832. Check if the Sentence Is Pangram
  • 1833. Maximum Ice Cream Bars
  • 1834. Single-Threaded CPU
  • 1835. Find XOR Sum of All Pairs Bitwise AND
  • 1836. Remove Duplicates From an Unsorted Linked List
  • 1837. Sum of Digits in Base K
  • 1838. Frequency of the Most Frequent Element
  • 1839. Longest Substring Of All Vowels in Order
  • 1840. Maximum Building Height
  • 1841. League Statistics
  • 1842. Next Palindrome Using Same Digits
  • 1843. Suspicious Bank Accounts
  • 1844. Replace All Digits with Characters
  • 1845. Seat Reservation Manager
  • 1846. Maximum Element After Decreasing and Rearranging
  • 1847. Closest Room
  • 1848. Minimum Distance to the Target Element
  • 1849. Splitting a String Into Descending Consecutive Values
  • 1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
  • 1851. Minimum Interval to Include Each Query
  • 1852. Distinct Numbers in Each Subarray
  • 1853. Convert Date Format
  • 1854. Maximum Population Year
  • 1855. Maximum Distance Between a Pair of Values
  • 1856. Maximum Subarray Min-Product
  • 1857. Largest Color Value in a Directed Graph
  • 1858. Longest Word With All Prefixes
  • 1859. Sorting the Sentence
  • 1860. Incremental Memory Leak
  • 1861. Rotating the Box
  • 1862. Sum of Floored Pairs
  • 1863. Sum of All Subset XOR Totals
  • 1864. Minimum Number of Swaps to Make the Binary String Alternating
  • 1865. Finding Pairs With a Certain Sum
  • 1866. Number of Ways to Rearrange Sticks With K Sticks Visible
  • 1867. Orders With Maximum Quantity Above Average
  • 1868. Product of Two Run-Length Encoded Arrays
  • 1869. Longer Contiguous Segments of Ones than Zeros
  • 1870. Minimum Speed to Arrive on Time
  • 1871. Jump Game VII
  • 1872. Stone Game VIII
  • 1873. Calculate Special Bonus
  • 1874. Minimize Product Sum of Two Arrays
  • 1875. Group Employees of the Same Salary
  • 1876. Substrings of Size Three with Distinct Characters
  • 1877. Minimize Maximum Pair Sum in Array
  • 1878. Get Biggest Three Rhombus Sums in a Grid
  • 1879. Minimum XOR Sum of Two Arrays
  • 1880. Check if Word Equals Summation of Two Words
  • 1881. Maximum Value after Insertion
  • 1882. Process Tasks Using Servers
  • 1883. Minimum Skips to Arrive at Meeting On Time
  • 1884. Egg Drop With 2 Eggs and N Floors
  • 1885. Count Pairs in Two Arrays
  • 1886. Determine Whether Matrix Can Be Obtained By Rotation
  • 1887. Reduction Operations to Make the Array Elements Equal
  • 1888. Minimum Number of Flips to Make the Binary String Alternating
  • 1889. Minimum Space Wasted From Packaging
  • 1890. The Latest Login in 2020
  • 1891. Cutting Ribbons
  • 1892. Page Recommendations II
  • 1893. Check if All the Integers in a Range Are Covered
  • 1894. Find the Student that Will Replace the Chalk
  • 1895. Largest Magic Square
  • 1896. Minimum Cost to Change the Final Value of Expression
  • 1897. Redistribute Characters to Make All Strings Equal
  • 1898. Maximum Number of Removable Characters
  • 1899. Merge Triplets to Form Target Triplet
  • 1900. The Earliest and Latest Rounds Where Players Compete
  • 1901. Find a Peak Element II
  • 1902. Depth of BST Given Insertion Order
  • 1903. Largest Odd Number in String
  • 1904. The Number of Full Rounds You Have Played
  • 1905. Count Sub Islands
  • 1906. Minimum Absolute Difference Queries
  • 1907. Count Salary Categories
  • 1908. Game of Nim
  • 1909. Remove One Element to Make the Array Strictly Increasing
  • 1910. Remove All Occurrences of a Substring
  • 1911. Maximum Alternating Subsequence Sum
  • 1912. Design Movie Rental System
  • 1913. Maximum Product Difference Between Two Pairs
  • 1914. Cyclically Rotating a Grid
  • 1915. Number of Wonderful Substrings
  • 1916. Count Ways to Build Rooms in an Ant Colony
  • 1917. Leetcodify Friends Recommendations
  • 1918. Kth Smallest Subarray Sum
  • 1919. Leetcodify Similar Friends
  • 1920. Build Array from Permutation
  • 1921. Eliminate Maximum Number of Monsters
  • 1922. Count Good Numbers
  • 1923. Longest Common Subpath
  • 1924. Erect the Fence II
  • 1925. Count Square Sum Triples
  • 1926. Nearest Exit from Entrance in Maze
  • 1927. Sum Game
  • 1928. Minimum Cost to Reach Destination in Time
  • 1929. Concatenation of Array
  • 1930. Unique Length-3 Palindromic Subsequences
  • 1931. Painting a Grid With Three Different Colors
  • 1932. Merge BSTs to Create Single BST
  • 1933. Check if String Is Decomposable Into Value-Equal Substrings
  • 1934. Confirmation Rate
  • 1935. Maximum Number of Words You Can Type
  • 1936. Add Minimum Number of Rungs
  • 1937. Maximum Number of Points with Cost
  • 1938. Maximum Genetic Difference Query
  • 1939. Users That Actively Request Confirmation Messages
  • 1940. Longest Common Subsequence Between Sorted Arrays
  • 1941. Check if All Characters Have Equal Number of Occurrences
  • 1942. The Number of the Smallest Unoccupied Chair
  • 1943. Describe the Painting
  • 1944. Number of Visible People in a Queue
  • 1945. Sum of Digits of String After Convert
  • 1946. Largest Number After Mutating Substring
  • 1947. Maximum Compatibility Score Sum
  • 1948. Delete Duplicate Folders in System
  • 1949. Strong Friendship
  • 1950. Maximum of Minimum Values in All Subarrays
  • 1951. All the Pairs With the Maximum Number of Common Followers
  • 1952. Three Divisors
  • 1953. Maximum Number of Weeks for Which You Can Work
  • 1954. Minimum Garden Perimeter to Collect Enough Apples
  • 1955. Count Number of Special Subsequences
  • 1956. Minimum Time For K Virus Variants to Spread
  • 1957. Delete Characters to Make Fancy String
  • 1958. Check if Move is Legal
  • 1959. Minimum Total Space Wasted With K Resizing Operations
  • 1960. Maximum Product of the Length of Two Palindromic Substrings
  • 1961. Check If String Is a Prefix of Array
  • 1962. Remove Stones to Minimize the Total
  • 1963. Minimum Number of Swaps to Make the String Balanced
  • 1964. Find the Longest Valid Obstacle Course at Each Position
  • 1965. Employees With Missing Information
  • 1966. Binary Searchable Numbers in an Unsorted Array
  • 1967. Number of Strings That Appear as Substrings in Word
  • 1968. Array With Elements Not Equal to Average of Neighbors
  • 1969. Minimum Non-Zero Product of the Array Elements
  • 1970. Last Day Where You Can Still Cross
  • 1971. Find if Path Exists in Graph
  • 1972. First and Last Call On the Same Day
  • 1973. Count Nodes Equal to Sum of Descendants
  • 1974. Minimum Time to Type Word Using Special Typewriter
  • 1975. Maximum Matrix Sum
  • 1976. Number of Ways to Arrive at Destination
  • 1977. Number of Ways to Separate Numbers
  • 1978. Employees Whose Manager Left the Company
  • 1979. Find Greatest Common Divisor of Array
  • 1980. Find Unique Binary String
  • 1981. Minimize the Difference Between Target and Chosen Elements
  • 1982. Find Array Given Subset Sums
  • 1983. Widest Pair of Indices With Equal Range Sum
  • 1984. Minimum Difference Between Highest and Lowest of K Scores
  • 1985. Find the Kth Largest Integer in the Array
  • 1986. Minimum Number of Work Sessions to Finish the Tasks
  • 1987. Number of Unique Good Subsequences
  • 1988. Find Cutoff Score for Each School
  • 1989. Maximum Number of People That Can Be Caught in Tag
  • 1990. Count the Number of Experiments
  • 1991. Find the Middle Index in Array
  • 1992. Find All Groups of Farmland
  • 1993. Operations on Tree
  • 1994. The Number of Good Subsets
  • 1995. Count Special Quadruplets
  • 1996. The Number of Weak Characters in the Game
  • 1997. First Day Where You Have Been in All the Rooms
  • 1998. GCD Sort of an Array
  • 1999. Smallest Greater Multiple Made of Two Digits
  • 2000. Reverse Prefix of Word
  • 2001. Number of Pairs of Interchangeable Rectangles
  • 2002. Maximum Product of the Length of Two Palindromic Subsequences
  • 2003. Smallest Missing Genetic Value in Each Subtree
  • 2004. The Number of Seniors and Juniors to Join the Company
  • 2005. Subtree Removal Game with Fibonacci Tree
  • 2006. Count Number of Pairs With Absolute Difference K
  • 2007. Find Original Array From Doubled Array
  • 2008. Maximum Earnings From Taxi
  • 2009. Minimum Number of Operations to Make Array Continuous
  • 2010. The Number of Seniors and Juniors to Join the Company II
  • 2011. Final Value of Variable After Performing Operations
  • 2012. Sum of Beauty in the Array
  • 2013. Detect Squares
  • 2014. Longest Subsequence Repeated k Times
  • 2015. Average Height of Buildings in Each Segment
  • 2016. Maximum Difference Between Increasing Elements
  • 2017. Grid Game
  • 2018. Check if Word Can Be Placed In Crossword
  • 2019. The Score of Students Solving Math Expression
  • 2020. Number of Accounts That Did Not Stream
  • 2021. Brightest Position on Street
  • 2022. Convert 1D Array Into 2D Array
  • 2023. Number of Pairs of Strings With Concatenation Equal to Target
  • 2024. Maximize the Confusion of an Exam
  • 2025. Maximum Number of Ways to Partition an Array
  • 2026. Low-Quality Problems
  • 2027. Minimum Moves to Convert String
  • 2028. Find Missing Observations
  • 2029. Stone Game IX
  • 2030. Smallest K-Length Subsequence With Occurrences of a Letter
  • 2031. Count Subarrays With More Ones Than Zeros
  • 2032. Two Out of Three
  • 2033. Minimum Operations to Make a Uni-Value Grid
  • 2034. Stock Price Fluctuation
  • 2035. Partition Array Into Two Arrays to Minimize Sum Difference
  • 2036. Maximum Alternating Subarray Sum
  • 2037. Minimum Number of Moves to Seat Everyone
  • 2038. Remove Colored Pieces if Both Neighbors are the Same Color
  • 2039. The Time When the Network Becomes Idle
  • 2040. Kth Smallest Product of Two Sorted Arrays
  • 2041. Accepted Candidates From the Interviews
  • 2042. Check if Numbers Are Ascending in a Sentence
  • 2043. Simple Bank System
  • 2044. Count Number of Maximum Bitwise-OR Subsets
  • 2045. Second Minimum Time to Reach Destination
  • 2046. Sort Linked List Already Sorted Using Absolute Values
  • 2047. Number of Valid Words in a Sentence
  • 2048. Next Greater Numerically Balanced Number
  • 2049. Count Nodes With the Highest Score
  • 2050. Parallel Courses III
  • 2051. The Category of Each Member in the Store
  • 2052. Minimum Cost to Separate Sentence Into Rows
  • 2053. Kth Distinct String in an Array
  • 2054. Two Best Non-Overlapping Events
  • 2055. Plates Between Candles
  • 2056. Number of Valid Move Combinations On Chessboard
  • 2057. Smallest Index With Equal Value
  • 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
  • 2059. Minimum Operations to Convert Number
  • 2060. Check if an Original String Exists Given Two Encoded Strings
  • 2061. Number of Spaces Cleaning Robot Cleaned
  • 2062. Count Vowel Substrings of a String
  • 2063. Vowels of All Substrings
  • 2064. Minimized Maximum of Products Distributed to Any Store
  • 2065. Maximum Path Quality of a Graph
  • 2066. Account Balance
  • 2067. Number of Equal Count Substrings
  • 2068. Check Whether Two Strings are Almost Equivalent
  • 2069. Walking Robot Simulation II
  • 2070. Most Beautiful Item for Each Query
  • 2071. Maximum Number of Tasks You Can Assign
  • 2072. The Winner University
  • 2073. Time Needed to Buy Tickets
  • 2074. Reverse Nodes in Even Length Groups
  • 2075. Decode the Slanted Ciphertext
  • 2076. Process Restricted Friend Requests
  • 2077. Paths in Maze That Lead to Same Room
  • 2078. Two Furthest Houses With Different Colors
  • 2079. Watering Plants
  • 2080. Range Frequency Queries
  • 2081. Sum of k-Mirror Numbers
  • 2082. The Number of Rich Customers
  • 2083. Substrings That Begin and End With the Same Letter
  • 2084. Drop Type 1 Orders for Customers With Type 0 Orders
  • 2085. Count Common Words With One Occurrence
  • 2086. Minimum Number of Food Buckets to Feed the Hamsters
  • 2087. Minimum Cost Homecoming of a Robot in a Grid
  • 2088. Count Fertile Pyramids in a Land
  • 2089. Find Target Indices After Sorting Array
  • 2090. K Radius Subarray Averages
  • 2091. Removing Minimum and Maximum From Array
  • 2092. Find All People With Secret
  • 2093. Minimum Cost to Reach City With Discounts
  • 2094. Finding 3-Digit Even Numbers
  • 2095. Delete the Middle Node of a Linked List
  • 2096. Step-By-Step Directions From a Binary Tree Node to Another
  • 2097. Valid Arrangement of Pairs
  • 2098. Subsequence of Size K With the Largest Even Sum
  • 2099. Find Subsequence of Length K With the Largest Sum
  • 2100. Find Good Days to Rob the Bank
  • 2101. Detonate the Maximum Bombs
  • 2102. Sequentially Ordinal Rank Tracker
  • 2103. Rings and Rods
  • 2104. Sum of Subarray Ranges
  • 2105. Watering Plants II
  • 2106. Maximum Fruits Harvested After at Most K Steps
  • 2107. Number of Unique Flavors After Sharing K Candies
  • 2108. Find First Palindromic String in the Array
  • 2109. Adding Spaces to a String
  • 2110. Number of Smooth Descent Periods of a Stock
  • 2111. Minimum Operations to Make the Array K-Increasing
  • 2112. The Airport With the Most Traffic
  • 2113. Elements in Array After Removing and Replacing Elements
  • 2114. Maximum Number of Words Found in Sentences
  • 2115. Find All Possible Recipes from Given Supplies
  • 2116. Check if a Parentheses String Can Be Valid
  • 2117. Abbreviating the Product of a Range
  • 2118. Build the Equation
  • 2119. A Number After a Double Reversal
  • 2120. Execution of All Suffix Instructions Staying in a Grid
  • 2121. Intervals Between Identical Elements
  • 2122. Recover the Original Array
  • 2123. Minimum Operations to Remove Adjacent Ones in Matrix
  • 2124. Check if All A's Appears Before All B's
  • 2125. Number of Laser Beams in a Bank
  • 2126. Destroying Asteroids
  • 2127. Maximum Employees to Be Invited to a Meeting
  • 2128. Remove All Ones With Row and Column Flips
  • 2129. Capitalize the Title
  • 2130. Maximum Twin Sum of a Linked List
  • 2131. Longest Palindrome by Concatenating Two Letter Words
  • 2132. Stamping the Grid
  • 2133. Check if Every Row and Column Contains All Numbers
  • 2134. Minimum Swaps to Group All 1's Together II
  • 2135. Count Words Obtained After Adding a Letter
  • 2136. Earliest Possible Day of Full Bloom
  • 2137. Pour Water Between Buckets to Make Water Levels Equal
  • 2138. Divide a String Into Groups of Size k
  • 2139. Minimum Moves to Reach Target Score
  • 2140. Solving Questions With Brainpower
  • 2141. Maximum Running Time of N Computers
  • 2142. The Number of Passengers in Each Bus I
  • 2143. Choose Numbers From Two Arrays in Range
  • 2144. Minimum Cost of Buying Candies With Discount
  • 2145. Count the Hidden Sequences
  • 2146. K Highest Ranked Items Within a Price Range
  • 2147. Number of Ways to Divide a Long Corridor
  • 2148. Count Elements With Strictly Smaller and Greater Elements
  • 2149. Rearrange Array Elements by Sign
  • 2150. Find All Lonely Numbers in the Array
  • 2151. Maximum Good People Based on Statements
  • 2152. Minimum Number of Lines to Cover Points
  • 2153. The Number of Passengers in Each Bus II
  • 2154. Keep Multiplying Found Values by Two
  • 2155. All Divisions With the Highest Score of a Binary Array
  • 2156. Find Substring With Given Hash Value
  • 2157. Groups of Strings
  • 2158. Amount of New Area Painted Each Day
  • 2159. Order Two Columns Independently
  • 2160. Minimum Sum of Four Digit Number After Splitting Digits
  • 2161. Partition Array According to Given Pivot
  • 2162. Minimum Cost to Set Cooking Time
  • 2163. Minimum Difference in Sums After Removal of Elements
  • 2164. Sort Even and Odd Indices Independently
  • 2165. Smallest Value of the Rearranged Number
  • 2166. Design Bitset
  • 2167. Minimum Time to Remove All Cars Containing Illegal Goods
  • 2168. Unique Substrings With Equal Digit Frequency
  • 2169. Count Operations to Obtain Zero
  • 2170. Minimum Operations to Make the Array Alternating
  • 2171. Removing Minimum Number of Magic Beans
  • 2172. Maximum AND Sum of Array
  • 2173. Longest Winning Streak
  • 2174. Remove All Ones With Row and Column Flips II
  • 2175. The Change in Global Rankings
  • 2176. Count Equal and Divisible Pairs in an Array
  • 2177. Find Three Consecutive Integers That Sum to a Given Number
  • 2178. Maximum Split of Positive Even Integers
  • 2179. Count Good Triplets in an Array
  • 2180. Count Integers With Even Digit Sum
  • 2181. Merge Nodes in Between Zeros
  • 2182. Construct String With Repeat Limit
  • 2183. Count Array Pairs Divisible by K
  • 2184. Number of Ways to Build Sturdy Brick Wall
  • 2185. Counting Words With a Given Prefix
  • 2186. Minimum Number of Steps to Make Two Strings Anagram II
  • 2187. Minimum Time to Complete Trips
  • 2188. Minimum Time to Finish the Race
  • 2189. Number of Ways to Build House of Cards
  • 2190. Most Frequent Number Following Key In an Array
  • 2191. Sort the Jumbled Numbers
  • 2192. All Ancestors of a Node in a Directed Acyclic Graph
  • 2193. Minimum Number of Moves to Make Palindrome
  • 2194. Cells in a Range on an Excel Sheet
  • 2195. Append K Integers With Minimal Sum
  • 2196. Create Binary Tree From Descriptions
  • 2197. Replace Non-Coprime Numbers in Array
  • 2198. Number of Single Divisor Triplets
  • 2199. Finding the Topic of Each Post
  • 2200. Find All K-Distant Indices in an Array
  • 2201. Count Artifacts That Can Be Extracted
  • 2202. Maximize the Topmost Element After K Moves
  • 2203. Minimum Weighted Subgraph With the Required Paths
  • 2204. Distance to a Cycle in Undirected Graph
  • 2205. The Number of Users That Are Eligible for Discount
  • 2206. Divide Array Into Equal Pairs
  • 2207. Maximize Number of Subsequences in a String
  • 2208. Minimum Operations to Halve Array Sum
  • 2209. Minimum White Tiles After Covering With Carpets
  • 2210. Count Hills and Valleys in an Array
  • 2211. Count Collisions on a Road
  • 2212. Maximum Points in an Archery Competition
  • 2213. Longest Substring of One Repeating Character
  • 2214. Minimum Health to Beat Game
  • 2215. Find the Difference of Two Arrays
  • 2216. Minimum Deletions to Make Array Beautiful
  • 2217. Find Palindrome With Fixed Length
  • 2218. Maximum Value of K Coins From Piles
  • 2219. Maximum Sum Score of Array
  • 2220. Minimum Bit Flips to Convert Number
  • 2221. Find Triangular Sum of an Array
  • 2222. Number of Ways to Select Buildings
  • 2223. Sum of Scores of Built Strings
  • 2224. Minimum Number of Operations to Convert Time
  • 2225. Find Players With Zero or One Losses
  • 2226. Maximum Candies Allocated to K Children
  • 2227. Encrypt and Decrypt Strings
  • 2228. Users With Two Purchases Within Seven Days
  • 2229. Check if an Array Is Consecutive
  • 2230. The Users That Are Eligible for Discount
  • 2231. Largest Number After Digit Swaps by Parity
  • 2232. Minimize Result by Adding Parentheses to Expression
  • 2233. Maximum Product After K Increments
  • 2234. Maximum Total Beauty of the Gardens
  • 2235. Add Two Integers
  • 2236. Root Equals Sum of Children
  • 2237. Count Positions on Street With Required Brightness
  • 2238. Number of Times a Driver Was a Passenger
  • 2239. Find Closest Number to Zero
  • 2240. Number of Ways to Buy Pens and Pencils
  • 2241. Design an ATM Machine
  • 2242. Maximum Score of a Node Sequence
  • 2243. Calculate Digit Sum of a String
  • 2244. Minimum Rounds to Complete All Tasks
  • 2245. Maximum Trailing Zeros in a Cornered Path
  • 2246. Longest Path With Different Adjacent Characters
  • 2247. Maximum Cost of Trip With K Highways
  • 2248. Intersection of Multiple Arrays
  • 2249. Count Lattice Points Inside a Circle
  • 2250. Count Number of Rectangles Containing Each Point
  • 2251. Number of Flowers in Full Bloom
  • 2252. Dynamic Pivoting of a Table
  • 2253. Dynamic Unpivoting of a Table
  • 2254. Design Video Sharing Platform
  • 2255. Count Prefixes of a Given String
  • 2256. Minimum Average Difference
  • 2257. Count Unguarded Cells in the Grid
  • 2258. Escape the Spreading Fire
  • 2259. Remove Digit From Number to Maximize Result
  • 2260. Minimum Consecutive Cards to Pick Up
  • 2261. K Divisible Elements Subarrays
  • 2262. Total Appeal of A String
  • 2263. Make Array Non-decreasing or Non-increasing
  • 2264. Largest 3-Same-Digit Number in String
  • 2265. Count Nodes Equal to Average of Subtree
  • 2266. Count Number of Texts
  • 2267. Check if There Is a Valid Parentheses String Path
  • 2268. Minimum Number of Keypresses
  • 2269. Find the K-Beauty of a Number
  • 2270. Number of Ways to Split Array
  • 2271. Maximum White Tiles Covered by a Carpet
  • 2272. Substring With Largest Variance
  • 2273. Find Resultant Array After Removing Anagrams
  • 2274. Maximum Consecutive Floors Without Special Floors
  • 2275. Largest Combination With Bitwise AND Greater Than Zero
  • 2276. Count Integers in Intervals
  • 2277. Closest Node to Path in Tree
  • 2278. Percentage of Letter in String
  • 2279. Maximum Bags With Full Capacity of Rocks
  • 2280. Minimum Lines to Represent a Line Chart
  • 2281. Sum of Total Strength of Wizards
  • 2282. Number of People That Can Be Seen in a Grid
  • 2283. Check if Number Has Equal Digit Count and Digit Value
  • 2284. Sender With Largest Word Count
  • 2285. Maximum Total Importance of Roads
  • 2286. Booking Concert Tickets in Groups
  • 2287. Rearrange Characters to Make Target String
  • 2288. Apply Discount to Prices
  • 2289. Steps to Make Array Non-decreasing
  • 2290. Minimum Obstacle Removal to Reach Corner
  • 2291. Maximum Profit From Trading Stocks
  • 2292. Products With Three or More Orders in Two Consecutive Years
  • 2293. Min Max Game
  • 2294. Partition Array Such That Maximum Difference Is K
  • 2295. Replace Elements in an Array
  • 2296. Design a Text Editor
  • 2297. Jump Game VIII
  • 2298. Tasks Count in the Weekend
  • 2299. Strong Password Checker II
  • 2300. Successful Pairs of Spells and Potions
  • 2301. Match Substring After Replacement
  • 2302. Count Subarrays With Score Less Than K
  • 2303. Calculate Amount Paid in Taxes
  • 2304. Minimum Path Cost in a Grid
  • 2305. Fair Distribution of Cookies
  • 2306. Naming a Company
  • 2307. Check for Contradictions in Equations
  • 2308. Arrange Table by Gender
  • 2309. Greatest English Letter in Upper and Lower Case
  • 2310. Sum of Numbers With Units Digit K
  • 2311. Longest Binary Subsequence Less Than or Equal to K
  • 2312. Selling Pieces of Wood
  • 2313. Minimum Flips in Binary Tree to Get Result
  • 2314. The First Day of the Maximum Recorded Degree in Each City
  • 2315. Count Asterisks
  • 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
  • 2317. Maximum XOR After Operations
  • 2318. Number of Distinct Roll Sequences
  • 2319. Check if Matrix Is X-Matrix
  • 2320. Count Number of Ways to Place Houses
  • 2321. Maximum Score Of Spliced Array
  • 2322. Minimum Score After Removals on a Tree
  • 2323. Find Minimum Time to Finish All Jobs II
  • 2324. Product Sales Analysis IV
  • 2325. Decode the Message
  • 2326. Spiral Matrix IV
  • 2327. Number of People Aware of a Secret
  • 2328. Number of Increasing Paths in a Grid
  • 2329. Product Sales Analysis V
  • 2330. Valid Palindrome IV
  • 2331. Evaluate Boolean Binary Tree
  • 2332. The Latest Time to Catch a Bus
  • 2333. Minimum Sum of Squared Difference
  • 2334. Subarray With Elements Greater Than Varying Threshold
  • 2335. Minimum Amount of Time to Fill Cups
  • 2336. Smallest Number in Infinite Set
  • 2337. Move Pieces to Obtain a String
  • 2338. Count the Number of Ideal Arrays
  • 2339. All the Matches of the League
  • 2340. Minimum Adjacent Swaps to Make a Valid Array
  • 2341. Maximum Number of Pairs in Array
  • 2342. Max Sum of a Pair With Equal Sum of Digits
  • 2343. Query Kth Smallest Trimmed Number
  • 2344. Minimum Deletions to Make Array Divisible
  • 2345. Finding the Number of Visible Mountains
  • 2346. Compute the Rank as a Percentage
  • 2347. Best Poker Hand
  • 2348. Number of Zero-Filled Subarrays
  • 2349. Design a Number Container System
  • 2350. Shortest Impossible Sequence of Rolls
  • 2351. First Letter to Appear Twice
  • 2352. Equal Row and Column Pairs
  • 2353. Design a Food Rating System
  • 2354. Number of Excellent Pairs
  • 2355. Maximum Number of Books You Can Take
  • 2356. Number of Unique Subjects Taught by Each Teacher
  • 2357. Make Array Zero by Subtracting Equal Amounts
  • 2358. Maximum Number of Groups Entering a Competition
  • 2359. Find Closest Node to Given Two Nodes
  • 2360. Longest Cycle in a Graph
  • 2361. Minimum Costs Using the Train Line
  • 2362. Generate the Invoice
  • 2363. Merge Similar Items
  • 2364. Count Number of Bad Pairs
  • 2365. Task Scheduler II
  • 2366. Minimum Replacements to Sort the Array
  • 2367. Number of Arithmetic Triplets
  • 2368. Reachable Nodes With Restrictions
  • 2369. Check if There is a Valid Partition For The Array
  • 2370. Longest Ideal Subsequence
  • 2371. Minimize Maximum Value in a Grid
  • 2372. Calculate the Influence of Each Salesperson
  • 2373. Largest Local Values in a Matrix
  • 2374. Node With Highest Edge Score
  • 2375. Construct Smallest Number From DI String
  • 2376. Count Special Integers
  • 2377. Sort the Olympic Table
  • 2378. Choose Edges to Maximize Score in a Tree
  • 2379. Minimum Recolors to Get K Consecutive Black Blocks
  • 2380. Time Needed to Rearrange a Binary String
  • 2381. Shifting Letters II
  • 2382. Maximum Segment Sum After Removals
  • 2383. Minimum Hours of Training to Win a Competition
  • 2384. Largest Palindromic Number
  • 2385. Amount of Time for Binary Tree to Be Infected
  • 2386. Find the K-Sum of an Array
  • 2387. Median of a Row Wise Sorted Matrix
  • 2388. Change Null Values in a Table to the Previous Value
  • 2389. Longest Subsequence With Limited Sum
  • 2390. Removing Stars From a String
  • 2391. Minimum Amount of Time to Collect Garbage
  • 2392. Build a Matrix With Conditions
  • 2393. Count Strictly Increasing Subarrays
  • 2394. Employees With Deductions
  • 2395. Find Subarrays With Equal Sum
  • 2396. Strictly Palindromic Number
  • 2397. Maximum Rows Covered by Columns
  • 2398. Maximum Number of Robots Within Budget
  • 2399. Check Distances Between Same Letters
  • 2400. Number of Ways to Reach a Position After Exactly k Steps
  • 2401. Longest Nice Subarray
  • 2402. Meeting Rooms III
  • 2403. Minimum Time to Kill All Monsters
  • 2404. Most Frequent Even Element
  • 2405. Optimal Partition of String
  • 2406. Divide Intervals Into Minimum Number of Groups
  • 2407. Longest Increasing Subsequence II
  • 2408. Design SQL
  • 2409. Count Days Spent Together
  • 2410. Maximum Matching of Players With Trainers
  • 2411. Smallest Subarrays With Maximum Bitwise OR
  • 2412. Minimum Money Required Before Transactions
  • 2413. Smallest Even Multiple
  • 2414. Length of the Longest Alphabetical Continuous Substring
  • 2415. Reverse Odd Levels of Binary Tree
  • 2416. Sum of Prefix Scores of Strings
  • 2417. Closest Fair Integer
  • 2418. Sort the People
  • 2419. Longest Subarray With Maximum Bitwise AND
  • 2420. Find All Good Indices
  • 2421. Number of Good Paths
  • 2422. Merge Operations to Turn Array Into a Palindrome
  • 2423. Remove Letter To Equalize Frequency
  • 2424. Longest Uploaded Prefix
  • 2425. Bitwise XOR of All Pairings
  • 2426. Number of Pairs Satisfying Inequality
  • 2427. Number of Common Factors
  • 2428. Maximum Sum of an Hourglass
  • 2429. Minimize XOR
  • 2430. Maximum Deletions on a String
  • 2431. Maximize Total Tastiness of Purchased Fruits
  • 2432. The Employee That Worked on the Longest Task
  • 2433. Find The Original Array of Prefix Xor
  • 2434. Using a Robot to Print the Lexicographically Smallest String
  • 2435. Paths in Matrix Whose Sum Is Divisible by K
  • 2436. Minimum Split Into Subarrays With GCD Greater Than One
  • 2437. Number of Valid Clock Times
  • 2438. Range Product Queries of Powers
  • 2439. Minimize Maximum of Array
  • 2440. Create Components With Same Value
  • 2441. Largest Positive Integer That Exists With Its Negative
  • 2442. Count Number of Distinct Integers After Reverse Operations
  • 2443. Sum of Number and Its Reverse
  • 2444. Count Subarrays With Fixed Bounds
  • 2445. Number of Nodes With Value One
  • 2446. Determine if Two Events Have Conflict
  • 2447. Number of Subarrays With GCD Equal to K
  • 2448. Minimum Cost to Make Array Equal
  • 2449. Minimum Number of Operations to Make Arrays Similar
  • 2450. Number of Distinct Binary Strings After Applying Operations
  • 2451. Odd String Difference
  • 2452. Words Within Two Edits of Dictionary
  • 2453. Destroy Sequential Targets
  • 2454. Next Greater Element IV
  • 2455. Average Value of Even Numbers That Are Divisible by Three
  • 2456. Most Popular Video Creator
  • 2457. Minimum Addition to Make Integer Beautiful
  • 2458. Height of Binary Tree After Subtree Removal Queries
  • 2459. Sort Array by Moving Items to Empty Space
  • 2460. Apply Operations to an Array
  • 2461. Maximum Sum of Distinct Subarrays With Length K
  • 2462. Total Cost to Hire K Workers
  • 2463. Minimum Total Distance Traveled
  • 2464. Minimum Subarrays in a Valid Split
  • 2465. Number of Distinct Averages
  • 2466. Count Ways To Build Good Strings
  • 2467. Most Profitable Path in a Tree
  • 2468. Split Message Based on Limit
  • 2469. Convert the Temperature
  • 2470. Number of Subarrays With LCM Equal to K
  • 2471. Minimum Number of Operations to Sort a Binary Tree by Level
  • 2472. Maximum Number of Non-overlapping Palindrome Substrings
  • 2473. Minimum Cost to Buy Apples
  • 2474. Customers With Strictly Increasing Purchases
  • 2475. Number of Unequal Triplets in Array
  • 2476. Closest Nodes Queries in a Binary Search Tree
  • 2477. Minimum Fuel Cost to Report to the Capital
  • 2478. Number of Beautiful Partitions
  • 2479. Maximum XOR of Two Non-Overlapping Subtrees
  • 2480. Form a Chemical Bond
  • 2481. Minimum Cuts to Divide a Circle
  • 2482. Difference Between Ones and Zeros in Row and Column
  • 2483. Minimum Penalty for a Shop
  • 2484. Count Palindromic Subsequences
  • 2485. Find the Pivot Integer
  • 2486. Append Characters to String to Make Subsequence
  • 2487. Remove Nodes From Linked List
  • 2488. Count Subarrays With Median K
  • 2489. Number of Substrings With Fixed Ratio
  • 2490. Circular Sentence
  • 2491. Divide Players Into Teams of Equal Skill
  • 2492. Minimum Score of a Path Between Two Cities
  • 2493. Divide Nodes Into the Maximum Number of Groups
  • 2494. Merge Overlapping Events in the Same Hall
  • 2495. Number of Subarrays Having Even Product
  • 2496. Maximum Value of a String in an Array
  • 2497. Maximum Star Sum of a Graph
  • 2498. Frog Jump II
  • 2499. Minimum Total Cost to Make Arrays Unequal
  • 2500. Delete Greatest Value in Each Row
  • 2501. Longest Square Streak in an Array
  • 2502. Design Memory Allocator
  • 2503. Maximum Number of Points From Grid Queries
  • 2504. Concatenate the Name and the Profession
  • 2505. Bitwise OR of All Subsequence Sums
  • 2506. Count Pairs Of Similar Strings
  • 2507. Smallest Value After Replacing With Sum of Prime Factors
  • 2508. Add Edges to Make Degrees of All Nodes Even
  • 2509. Cycle Length Queries in a Tree
  • 2510. Check if There is a Path With Equal Number of 0's And 1's
  • 2511. Maximum Enemy Forts That Can Be Captured
  • 2512. Reward Top K Students
  • 2513. Minimize the Maximum of Two Arrays
  • 2514. Count Anagrams
  • 2515. Shortest Distance to Target String in a Circular Array
  • 2516. Take K of Each Character From Left and Right
  • 2517. Maximum Tastiness of Candy Basket
  • 2518. Number of Great Partitions
  • 2519. Count the Number of K-Big Indices
  • 2520. Count the Digits That Divide a Number
  • 2521. Distinct Prime Factors of Product of Array
  • 2522. Partition String Into Substrings With Values at Most K
  • 2523. Closest Prime Numbers in Range
  • 2524. Maximum Frequency Score of a Subarray
  • 2525. Categorize Box According to Criteria
  • 2526. Find Consecutive Integers from a Data Stream
  • 2527. Find Xor-Beauty of Array
  • 2528. Maximize the Minimum Powered City
  • 2529. Maximum Count of Positive Integer and Negative Integer
  • 2530. Maximal Score After Applying K Operations
  • 2531. Make Number of Distinct Characters Equal
  • 2532. Time to Cross a Bridge
  • 2533. Number of Good Binary Strings
  • 2534. Time Taken to Cross the Door
  • 2535. Difference Between Element Sum and Digit Sum of an Array
  • 2536. Increment Submatrices by One
  • 2537. Count the Number of Good Subarrays
  • 2538. Difference Between Maximum and Minimum Price Sum
  • 2539. Count the Number of Good Subsequences
  • 2540. Minimum Common Value
  • 2541. Minimum Operations to Make Array Equal II
  • 2542. Maximum Subsequence Score
  • 2543. Check if Point Is Reachable
  • 2544. Alternating Digit Sum
  • 2545. Sort the Students by Their Kth Score
  • 2546. Apply Bitwise Operations to Make Strings Equal
  • 2547. Minimum Cost to Split an Array
  • 2548. Maximum Price to Fill a Bag
  • 2549. Count Distinct Numbers on Board
  • 2550. Count Collisions of Monkeys on a Polygon
  • 2551. Put Marbles in Bags
  • 2552. Count Increasing Quadruplets
  • 2553. Separate the Digits in an Array
  • 2554. Maximum Number of Integers to Choose From a Range I
  • 2555. Maximize Win From Two Segments
  • 2556. Disconnect Path in a Binary Matrix by at Most One Flip
  • 2557. Maximum Number of Integers to Choose From a Range II
  • 2558. Take Gifts From the Richest Pile
  • 2559. Count Vowel Strings in Ranges
  • 2560. House Robber IV
  • 2561. Rearranging Fruits
  • 2562. Find the Array Concatenation Value
  • 2563. Count the Number of Fair Pairs
  • 2564. Substring XOR Queries
  • 2565. Subsequence With the Minimum Score
  • 2566. Maximum Difference by Remapping a Digit
  • 2567. Minimum Score by Changing Two Elements
  • 2568. Minimum Impossible OR
  • 2569. Handling Sum Queries After Update
  • 2570. Merge Two 2D Arrays by Summing Values
  • 2571. Minimum Operations to Reduce an Integer to 0
  • 2572. Count the Number of Square-Free Subsets
  • 2573. Find the String with LCP
  • 2574. Left and Right Sum Differences
  • 2575. Find the Divisibility Array of a String
  • 2576. Find the Maximum Number of Marked Indices
  • 2577. Minimum Time to Visit a Cell In a Grid
  • 2578. Split With Minimum Sum
  • 2579. Count Total Number of Colored Cells
  • 2580. Count Ways to Group Overlapping Ranges
  • 2581. Count Number of Possible Root Nodes
  • 2582. Pass the Pillow
  • 2583. Kth Largest Sum in a Binary Tree
  • 2584. Split the Array to Make Coprime Products
  • 2585. Number of Ways to Earn Points
  • 2586. Count the Number of Vowel Strings in Range
  • 2587. Rearrange Array to Maximize Prefix Score
  • 2588. Count the Number of Beautiful Subarrays
  • 2589. Minimum Time to Complete All Tasks
  • 2590. Design a Todo List
  • 2591. Distribute Money to Maximum Children
  • 2592. Maximize Greatness of an Array
  • 2593. Find Score of an Array After Marking All Elements
  • 2594. Minimum Time to Repair Cars
  • 2595. Number of Even and Odd Bits
  • 2596. Check Knight Tour Configuration
  • 2597. The Number of Beautiful Subsets
  • 2598. Smallest Missing Non-negative Integer After Operations
  • 2599. Make the Prefix Sum Non-negative
  • 2600. K Items With the Maximum Sum
  • 2601. Prime Subtraction Operation
  • 2602. Minimum Operations to Make All Array Elements Equal
  • 2603. Collect Coins in a Tree
  • 2604. Minimum Time to Eat All Grains
  • 2605. Form Smallest Number From Two Digit Arrays
  • 2606. Find the Substring With Maximum Cost
  • 2607. Make K-Subarray Sums Equal
  • 2608. Shortest Cycle in a Graph
  • 2609. Find the Longest Balanced Substring of a Binary String
  • 2610. Convert an Array Into a 2D Array With Conditions
  • 2611. Mice and Cheese
  • 2612. Minimum Reverse Operations
  • 2613. Beautiful Pairs
  • 2614. Prime In Diagonal
  • 2615. Sum of Distances
  • 2616. Minimize the Maximum Difference of Pairs
  • 2617. Minimum Number of Visited Cells in a Grid
  • 2618. Check if Object Instance of Class
  • 2619. Array Prototype Last
  • 2620. Counter
  • 2621. Sleep
  • 2622. Cache With Time Limit
  • 2623. Memoize
  • 2624. Snail Traversal
  • 2625. Flatten Deeply Nested Array
  • 2626. Array Reduce Transformation
  • 2627. Debounce
  • 2628. JSON Deep Equal
  • 2629. Function Composition
  • 2630. Memoize II
  • 2631. Group By
  • 2632. Curry
  • 2633. Convert Object to JSON String
  • 2634. Filter Elements from Array
  • 2635. Apply Transform Over Each Element in Array
  • 2636. Promise Pool
  • 2637. Promise Time Limit
  • 2638. Count the Number of K-Free Subsets
  • 2639. Find the Width of Columns of a Grid
  • 2640. Find the Score of All Prefixes of an Array
  • 2641. Cousins in Binary Tree II
  • 2642. Design Graph With Shortest Path Calculator
  • 2643. Row With Maximum Ones
  • 2644. Find the Maximum Divisibility Score
  • 2645. Minimum Additions to Make Valid String
  • 2646. Minimize the Total Price of the Trips
  • 2647. Color the Triangle Red
  • 2648. Generate Fibonacci Sequence
  • 2649. Nested Array Generator
  • 2650. Design Cancellable Function
  • 2651. Calculate Delayed Arrival Time
  • 2652. Sum Multiples
  • 2653. Sliding Subarray Beauty
  • 2654. Minimum Number of Operations to Make All Array Elements Equal to 1
  • 2655. Find Maximal Uncovered Ranges
  • 2656. Maximum Sum With Exactly K Elements
  • 2657. Find the Prefix Common Array of Two Arrays
  • 2658. Maximum Number of Fish in a Grid
  • 2659. Make Array Empty
  • 2660. Determine the Winner of a Bowling Game
  • 2661. First Completely Painted Row or Column
  • 2662. Minimum Cost of a Path With Special Roads
  • 2663. Lexicographically Smallest Beautiful String
  • 2664. The Knight’s Tour
  • 2665. Counter II
  • 2666. Allow One Function Call
  • 2667. Create Hello World Function
  • 2668. Find Latest Salaries
  • 2669. Count Artist Occurrences On Spotify Ranking List
  • 2670. Find the Distinct Difference Array
  • 2671. Frequency Tracker
  • 2672. Number of Adjacent Elements With the Same Color
  • 2673. Make Costs of Paths Equal in a Binary Tree
  • 2674. Split a Circular Linked List
  • 2675. Array of Objects to Matrix
  • 2676. Throttle
  • 2677. Chunk Array
  • 2678. Number of Senior Citizens
  • 2679. Sum in a Matrix
  • 2680. Maximum OR
  • 2681. Power of Heroes
  • 2682. Find the Losers of the Circular Game
  • 2683. Neighboring Bitwise XOR
  • 2684. Maximum Number of Moves in a Grid
  • 2685. Count the Number of Complete Components
  • 2686. Immediate Food Delivery III
  • 2687. Bikes Last Time Used
  • 2688. Find Active Users
  • 2689. Extract Kth Character From The Rope Tree
  • 2690. Infinite Method Object
  • 2691. Immutability Helper
  • 2692. Make Object Immutable
  • 2693. Call Function with Custom Context
  • 2694. Event Emitter
  • 2695. Array Wrapper
  • 2696. Minimum String Length After Removing Substrings
  • 2697. Lexicographically Smallest Palindrome
  • 2698. Find the Punishment Number of an Integer
  • 2699. Modify Graph Edge Weights
  • 2700. Differences Between Two Objects
  • 2701. Consecutive Transactions with Increasing Amounts
  • 2702. Minimum Operations to Make Numbers Non-positive
  • 2703. Return Length of Arguments Passed
  • 2704. To Be Or Not To Be
  • 2705. Compact Object
  • 2706. Buy Two Chocolates
  • 2707. Extra Characters in a String
  • 2708. Maximum Strength of a Group
  • 2709. Greatest Common Divisor Traversal
  • 2710. Remove Trailing Zeros From a String
  • 2711. Difference of Number of Distinct Values on Diagonals
  • 2712. Minimum Cost to Make All Characters Equal
  • 2713. Maximum Strictly Increasing Cells in a Matrix
  • 2714. Find Shortest Path with K Hops
  • 2715. Timeout Cancellation
  • 2716. Minimize String Length
  • 2717. Semi-Ordered Permutation
  • 2718. Sum of Matrix After Queries
  • 2719. Count of Integers
  • 2720. Popularity Percentage
  • 2721. Execute Asynchronous Functions in Parallel
  • 2722. Join Two Arrays by ID
  • 2723. Add Two Promises
  • 2724. Sort By
  • 2725. Interval Cancellation
  • 2726. Calculator with Method Chaining
  • 2727. Is Object Empty
  • 2728. Count Houses in a Circular Street
  • 2729. Check if The Number is Fascinating
  • 2730. Find the Longest Semi-Repetitive Substring
  • 2731. Movement of Robots
  • 2732. Find a Good Subset of the Matrix
  • 2733. Neither Minimum nor Maximum
  • 2734. Lexicographically Smallest String After Substring Operation
  • 2735. Collecting Chocolates
  • 2736. Maximum Sum Queries
  • 2737. Find the Closest Marked Node
  • 2738. Count Occurrences in Text
  • 2739. Total Distance Traveled
  • 2740. Find the Value of the Partition
  • 2741. Special Permutations
  • 2742. Painting the Walls
  • 2743. Count Substrings Without Repeating Character
  • 2744. Find Maximum Number of String Pairs
  • 2745. Construct the Longest New String
  • 2746. Decremental String Concatenation
  • 2747. Count Zero Request Servers
  • 2748. Number of Beautiful Pairs
  • 2749. Minimum Operations to Make the Integer Zero
  • 2750. Ways to Split Array Into Good Subarrays
  • 2751. Robot Collisions
  • 2752. Customers with Maximum Number of Transactions on Consecutive Days
  • 2753. Count Houses in a Circular Street II
  • 2754. Bind Function to Context
  • 2755. Deep Merge of Two Objects
  • 2756. Query Batching
  • 2757. Generate Circular Array Values
  • 2758. Next Day
  • 2759. Convert JSON String to Object
  • 2760. Longest Even Odd Subarray With Threshold
  • 2761. Prime Pairs With Target Sum
  • 2762. Continuous Subarrays
  • 2763. Sum of Imbalance Numbers of All Subarrays
  • 2764. Is Array a Preorder of Some ‌Binary Tree
  • 2765. Longest Alternating Subarray
  • 2766. Relocate Marbles
  • 2767. Partition String Into Minimum Beautiful Substrings
  • 2768. Number of Black Blocks
  • 2769. Find the Maximum Achievable Number
  • 2770. Maximum Number of Jumps to Reach the Last Index
  • 2771. Longest Non-decreasing Subarray From Two Arrays
  • 2772. Apply Operations to Make All Array Elements Equal to Zero
  • 2773. Height of Special Binary Tree
  • 2774. Array Upper Bound
  • 2775. Undefined to Null
  • 2776. Convert Callback Based Function to Promise Based Function
  • 2777. Date Range Generator
  • 2778. Sum of Squares of Special Elements
  • 2779. Maximum Beauty of an Array After Applying Operation
  • 2780. Minimum Index of a Valid Split
  • 2781. Length of the Longest Valid Substring
  • 2782. Number of Unique Categories
  • 2783. Flight Occupancy and Waitlist Analysis
  • 2784. Check if Array is Good
  • 2785. Sort Vowels in a String
  • 2786. Visit Array Positions to Maximize Score
  • 2787. Ways to Express an Integer as Sum of Powers
  • 2788. Split Strings by Separator
  • 2789. Largest Element in an Array after Merge Operations
  • 2790. Maximum Number of Groups With Increasing Length
  • 2791. Count Paths That Can Form a Palindrome in a Tree
  • 2792. Count Nodes That Are Great Enough
  • 2793. Status of Flight Tickets
  • 2794. Create Object from Two Arrays
  • 2795. Parallel Execution of Promises for Individual Results Retrieval
  • 2796. Repeat String
  • 2797. Partial Function with Placeholders
  • 2798. Number of Employees Who Met the Target
  • 2799. Count Complete Subarrays in an Array
  • 2800. Shortest String That Contains Three Strings
  • 2801. Count Stepping Numbers in Range
  • 2802. Find The K-th Lucky Number
  • 2803. Factorial Generator
  • 2804. Array Prototype ForEach
  • 2805. Custom Interval
  • 2806. Account Balance After Rounded Purchase
  • 2807. Insert Greatest Common Divisors in Linked List
  • 2808. Minimum Seconds to Equalize a Circular Array
  • 2809. Minimum Time to Make Array Sum At Most x
  • 2810. Faulty Keyboard
  • 2811. Check if it is Possible to Split Array
  • 2812. Find the Safest Path in a Grid
  • 2813. Maximum Elegance of a K-Length Subsequence
  • 2814. Minimum Time Takes to Reach Destination Without Drowning
  • 2815. Max Pair Sum in an Array
  • 2816. Double a Number Represented as a Linked List
  • 2817. Minimum Absolute Difference Between Elements With Constraint
  • 2818. Apply Operations to Maximize Score
  • 2819. Minimum Relative Loss After Buying Chocolates
  • 2820. Election Results
  • 2821. Delay the Resolution of Each Promise
  • 2822. Inversion of Object
  • 2823. Deep Object Filter
  • 2824. Count Pairs Whose Sum is Less than Target
  • 2825. Make String a Subsequence Using Cyclic Increments
  • 2826. Sorting Three Groups
  • 2827. Number of Beautiful Integers in the Range
  • 2828. Check if a String Is an Acronym of Words
  • 2829. Determine the Minimum Sum of a k-avoiding Array
  • 2830. Maximize the Profit as the Salesman
  • 2831. Find the Longest Equal Subarray
  • 2832. Maximal Range That Each Element Is Maximum in It
  • 2833. Furthest Point From Origin
  • 2834. Find the Minimum Possible Sum of a Beautiful Array
  • 2835. Minimum Operations to Form Subsequence With Target Sum
  • 2836. Maximize Value of Function in a Ball Passing Game
  • 2837. Total Traveled Distance
  • 2838. Maximum Coins Heroes Can Collect
  • 2839. Check if Strings Can be Made Equal With Operations I
  • 2840. Check if Strings Can be Made Equal With Operations II
  • 2841. Maximum Sum of Almost Unique Subarray
  • 2842. Count K-Subsequences of a String With Maximum Beauty
  • 2843. Count Symmetric Integers
  • 2844. Minimum Operations to Make a Special Number
  • 2845. Count of Interesting Subarrays
  • 2846. Minimum Edge Weight Equilibrium Queries in a Tree
  • 2847. Smallest Number With Given Digit Product
  • 2848. Points That Intersect With Cars
  • 2849. Determine if a Cell Is Reachable at a Given Time
  • 2850. Minimum Moves to Spread Stones Over Grid
  • 2851. String Transformation
  • 2852. Sum of Remoteness of All Cells
  • 2853. Highest Salaries Difference
  • 2854. Rolling Average Steps
  • 2855. Minimum Right Shifts to Sort the Array
  • 2856. Minimum Array Length After Pair Removals
  • 2857. Count Pairs of Points With Distance k
  • 2858. Minimum Edge Reversals So Every Node Is Reachable
  • 2859. Sum of Values at Indices With K Set Bits
  • 2860. Happy Students
  • 2861. Maximum Number of Alloys
  • 2862. Maximum Element-Sum of a Complete Subset of Indices
  • 2863. Maximum Length of Semi-Decreasing Subarrays
  • 2864. Maximum Odd Binary Number
  • 2865. Beautiful Towers I
  • 2866. Beautiful Towers II
  • 2867. Count Valid Paths in a Tree
  • 2868. The Wording Game
  • 2869. Minimum Operations to Collect Elements
  • 2870. Minimum Number of Operations to Make Array Empty
  • 2871. Split Array Into Maximum Number of Subarrays
  • 2872. Maximum Number of K-Divisible Components
  • 2873. Maximum Value of an Ordered Triplet I
  • 2874. Maximum Value of an Ordered Triplet II
  • 2875. Minimum Size Subarray in Infinite Array
  • 2876. Count Visited Nodes in a Directed Graph
  • 2877. Create a DataFrame from List
  • 2878. Get the Size of a DataFrame
  • 2879. Display the First Three Rows
  • 2880. Select Data
  • 2881. Create a New Column
  • 2882. Drop Duplicate Rows
  • 2883. Drop Missing Data
  • 2884. Modify Columns
  • 2885. Rename Columns
  • 2886. Change Data Type
  • 2887. Fill Missing Data
  • 2888. Reshape Data: Concatenate
  • 2889. Reshape Data: Pivot
  • 2890. Reshape Data: Melt
  • 2891. Method Chaining
  • 2892. Minimizing Array After Replacing Pairs With Their Product
  • 2893. Calculate Orders Within Each Interval
  • 2894. Divisible and Non-divisible Sums Difference
  • 2895. Minimum Processing Time
  • 2896. Apply Operations to Make Two Strings Equal
  • 2897. Apply Operations on Array to Maximize Sum of Squares
  • 2898. Maximum Linear Stock Score
  • 2899. Last Visited Integers
  • 2900. Longest Unequal Adjacent Groups Subsequence I
  • 2901. Longest Unequal Adjacent Groups Subsequence II
  • 2902. Count of Sub-Multisets With Bounded Sum
  • 2903. Find Indices With Index and Value Difference I
  • 2904. Shortest and Lexicographically Smallest Beautiful String
  • 2905. Find Indices With Index and Value Difference II
  • 2906. Construct Product Matrix
  • 2907. Maximum Profitable Triplets With Increasing Prices I
  • 2908. Minimum Sum of Mountain Triplets I
  • 2909. Minimum Sum of Mountain Triplets II
  • 2910. Minimum Number of Groups to Create a Valid Assignment
  • 2911. Minimum Changes to Make K Semi-palindromes
  • 2912. Number of Ways to Reach Destination in the Grid
  • 2913. Subarrays Distinct Element Sum of Squares I
  • 2914. Minimum Number of Changes to Make Binary String Beautiful
  • 2915. Length of the Longest Subsequence That Sums to Target
  • 2916. Subarrays Distinct Element Sum of Squares II
  • 2917. Find the K-or of an Array
  • 2918. Minimum Equal Sum of Two Arrays After Replacing Zeros
  • 2919. Minimum Increment Operations to Make Array Beautiful
  • 2920. Maximum Points After Collecting Coins From All Nodes
  • 2921. Maximum Profitable Triplets With Increasing Prices II
  • 2922. Market Analysis III
  • 2923. Find Champion I
  • 2924. Find Champion II
  • 2925. Maximum Score After Applying Operations on a Tree
  • 2926. Maximum Balanced Subsequence Sum
  • 2927. Distribute Candies Among Children III
  • 2928. Distribute Candies Among Children I
  • 2929. Distribute Candies Among Children II
  • 2930. Number of Strings Which Can Be Rearranged to Contain Substring
  • 2931. Maximum Spending After Buying Items
  • 2932. Maximum Strong Pair XOR I
  • 2933. High-Access Employees
  • 2934. Minimum Operations to Maximize Last Elements in Arrays
  • 2935. Maximum Strong Pair XOR II
  • 2936. Number of Equal Numbers Blocks
  • 2937. Make Three Strings Equal
  • 2938. Separate Black and White Balls
  • 2939. Maximum Xor Product
  • 2940. Find Building Where Alice and Bob Can Meet
  • 2941. Maximum GCD-Sum of a Subarray
  • 2942. Find Words Containing Character
  • 2943. Maximize Area of Square Hole in Grid
  • 2944. Minimum Number of Coins for Fruits
  • 2945. Find Maximum Non-decreasing Array Length
  • 2946. Matrix Similarity After Cyclic Shifts
  • 2947. Count Beautiful Substrings I
  • 2948. Make Lexicographically Smallest Array by Swapping Elements
  • 2949. Count Beautiful Substrings II
  • 2950. Number of Divisible Substrings
  • 2951. Find the Peaks
  • 2952. Minimum Number of Coins to be Added
  • 2953. Count Complete Substrings
  • 2954. Count the Number of Infection Sequences
  • 2955. Number of Same-End Substrings
  • 2956. Find Common Elements Between Two Arrays
  • 2957. Remove Adjacent Almost-Equal Characters
  • 2958. Length of Longest Subarray With at Most K Frequency
  • 2959. Number of Possible Sets of Closing Branches
  • 2960. Count Tested Devices After Test Operations
  • 2961. Double Modular Exponentiation
  • 2962. Count Subarrays Where Max Element Appears at Least K Times
  • 2963. Count the Number of Good Partitions
  • 2964. Number of Divisible Triplet Sums
  • 2965. Find Missing and Repeated Values
  • 2966. Divide Array Into Arrays With Max Difference
  • 2967. Minimum Cost to Make Array Equalindromic
  • 2968. Apply Operations to Maximize Frequency Score
  • 2969. Minimum Number of Coins for Fruits II
  • 2970. Count the Number of Incremovable Subarrays I
  • 2971. Find Polygon With the Largest Perimeter
  • 2972. Count the Number of Incremovable Subarrays II
  • 2973. Find Number of Coins to Place in Tree Nodes
  • 2974. Minimum Number Game
  • 2975. Maximum Square Area by Removing Fences From a Field
  • 2976. Minimum Cost to Convert String I
  • 2977. Minimum Cost to Convert String II
  • 2978. Symmetric Coordinates
  • 2979. Most Expensive Item That Can Not Be Bought
  • 2980. Check if Bitwise OR Has Trailing Zeros
  • 2981. Find Longest Special Substring That Occurs Thrice I
  • 2982. Find Longest Special Substring That Occurs Thrice II
  • 2983. Palindrome Rearrangement Queries
  • 2984. Find Peak Calling Hours for Each City
  • 2985. Calculate Compressed Mean
  • 2986. Find Third Transaction
  • 2987. Find Expensive Cities
  • 2988. Manager of the Largest Department
  • 2989. Class Performance
  • 2990. Loan Types
  • 2991. Top Three Wineries
  • 2992. Number of Self-Divisible Permutations
  • 2993. Friday Purchases I
  • 2994. Friday Purchases II
  • 2995. Viewers Turned Streamers
  • 2996. Smallest Missing Integer Greater Than Sequential Prefix Sum
  • 2997. Minimum Number of Operations to Make Array XOR Equal to K
  • 2998. Minimum Number of Operations to Make X and Y Equal
  • 2999. Count the Number of Powerful Integers
  • 3000. Maximum Area of Longest Diagonal Rectangle
  • 3001. Minimum Moves to Capture The Queen
  • 3002. Maximum Size of a Set After Removals
  • 3003. Maximize the Number of Partitions After Operations
  • 3004. Maximum Subtree of the Same Color
  • 3005. Count Elements With Maximum Frequency
  • 3006. Find Beautiful Indices in the Given Array I
  • 3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
  • 3008. Find Beautiful Indices in the Given Array II
  • 3009. Maximum Number of Intersections on the Chart
  • 3010. Divide an Array Into Subarrays With Minimum Cost I
  • 3011. Find if Array Can Be Sorted
  • 3012. Minimize Length of Array Using Operations
  • 3013. Divide an Array Into Subarrays With Minimum Cost II
  • 3014. Minimum Number of Pushes to Type Word I
  • 3015. Count the Number of Houses at a Certain Distance I
  • 3016. Minimum Number of Pushes to Type Word II
  • 3017. Count the Number of Houses at a Certain Distance II
  • 3018. Maximum Number of Removal Queries That Can Be Processed I
  • 3019. Number of Changing Keys
  • 3020. Find the Maximum Number of Elements in Subset
  • 3021. Alice and Bob Playing Flower Game
  • 3022. Minimize OR of Remaining Elements Using Operations
  • 3023. Find Pattern in Infinite Stream I
  • 3024. Type of Triangle
  • 3025. Find the Number of Ways to Place People I
  • 3026. Maximum Good Subarray Sum
  • 3027. Find the Number of Ways to Place People II
  • 3028. Ant on the Boundary
  • 3029. Minimum Time to Revert Word to Initial State I
  • 3030. Find the Grid of Region Average
  • 3031. Minimum Time to Revert Word to Initial State II
  • 3032. Count Numbers With Unique Digits II
  • 3033. Modify the Matrix
  • 3034. Number of Subarrays That Match a Pattern I
  • 3035. Maximum Palindromes After Operations
  • 3036. Number of Subarrays That Match a Pattern II
  • 3037. Find Pattern in Infinite Stream II
  • 3038. Maximum Number of Operations With the Same Score I
  • 3039. Apply Operations to Make String Empty
  • 3040. Maximum Number of Operations With the Same Score II
  • 3041. Maximize Consecutive Elements in an Array After Modification
  • 3042. Count Prefix and Suffix Pairs I
  • 3043. Find the Length of the Longest Common Prefix
  • 3044. Most Frequent Prime
  • 3045. Count Prefix and Suffix Pairs II
  • 3046. Split the Array
  • 3047. Find the Largest Area of Square Inside Two Rectangles
  • 3048. Earliest Second to Mark Indices I
  • 3049. Earliest Second to Mark Indices II
  • 3050. Pizza Toppings Cost Analysis
  • 3051. Find Candidates for Data Scientist Position
  • 3052. Maximize Items
  • 3053. Classifying Triangles by Lengths
  • 3054. Binary Tree Nodes
  • 3055. Top Percentile Fraud
  • 3056. Snaps Analysis
  • 3057. Employees Project Allocation
  • 3058. Friends With No Mutual Friends
  • 3059. Find All Unique Email Domains
  • 3060. User Activities within Time Bounds
  • 3061. Calculate Trapping Rain Water
  • 3062. Winner of the Linked List Game
  • 3063. Linked List Frequency
  • 3064. Guess the Number Using Bitwise Questions I
  • 3065. Minimum Operations to Exceed Threshold Value I
  • 3066. Minimum Operations to Exceed Threshold Value II
  • 3067. Count Pairs of Connectable Servers in a Weighted Tree Network
  • 3068. Find the Maximum Sum of Node Values
  • 3069. Distribute Elements Into Two Arrays I
  • 3070. Count Submatrices with Top-Left Element and Sum Less Than k
  • 3071. Minimum Operations to Write the Letter Y on a Grid
  • 3072. Distribute Elements Into Two Arrays II
  • 3073. Maximum Increasing Triplet Value
  • 3074. Apple Redistribution into Boxes
  • 3075. Maximize Happiness of Selected Children
  • 3076. Shortest Uncommon Substring in an Array
  • 3077. Maximum Strength of K Disjoint Subarrays
  • 3078. Match Alphanumerical Pattern in Matrix I
  • 3079. Find the Sum of Encrypted Integers
  • 3080. Mark Elements on Array by Performing Queries
  • 3081. Replace Question Marks in String to Minimize Its Value
  • 3082. Find the Sum of the Power of All Subsequences
  • 3083. Existence of a Substring in a String and Its Reverse
  • 3084. Count Substrings Starting and Ending with Given Character
  • 3085. Minimum Deletions to Make String K-Special
  • 3086. Minimum Moves to Pick K Ones
  • 3087. Find Trending Hashtags
  • 3088. Make String Anti-palindrome
  • 3089. Find Bursty Behavior
  • 3090. Maximum Length Substring With Two Occurrences
  • 3091. Apply Operations to Make Sum of Array Greater Than or Equal to k
  • 3092. Most Frequent IDs
  • 3093. Longest Common Suffix Queries
  • 3094. Guess the Number Using Bitwise Questions II
  • 3095. Shortest Subarray With OR at Least K I
  • 3096. Minimum Levels to Gain More Points
  • 3097. Shortest Subarray With OR at Least K II
  • 3098. Find the Sum of Subsequence Powers
  • 3099. Harshad Number
  • 3100. Water Bottles II
  • 3101. Count Alternating Subarrays
  • 3102. Minimize Manhattan Distances
  • 3103. Find Trending Hashtags II
  • 3104. Find Longest Self-Contained Substring
  • 3105. Longest Strictly Increasing or Strictly Decreasing Subarray
  • 3106. Lexicographically Smallest String After Operations With Constraint
  • 3107. Minimum Operations to Make Median of Array Equal to K
  • 3108. Minimum Cost Walk in Weighted Graph
  • 3109. Find the Index of Permutation
  • 3110. Score of a String
  • 3111. Minimum Rectangles to Cover Points
  • 3112. Minimum Time to Visit Disappearing Nodes
  • 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum
  • 3114. Latest Time You Can Obtain After Replacing Characters
  • 3115. Maximum Prime Difference
  • 3116. Kth Smallest Amount With Single Denomination Combination
  • 3117. Minimum Sum of Values by Dividing Array
  • 3118. Friday Purchase III
  • 3119. Maximum Number of Potholes That Can Be Fixed
  • 3120. Count the Number of Special Characters I
  • 3121. Count the Number of Special Characters II
  • 3122. Minimum Number of Operations to Satisfy Conditions
  • 3123. Find Edges in Shortest Paths
  • 3124. Find Longest Calls
  • 3125. Maximum Number That Makes Result of Bitwise AND Zero
  • 3126. Server Utilization Time
  • 3127. Make a Square with the Same Color
  • 3128. Right Triangles
  • 3129. Find All Possible Stable Binary Arrays I
  • 3130. Find All Possible Stable Binary Arrays II
  • 3131. Find the Integer Added to Array I
  • 3132. Find the Integer Added to Array II
  • 3133. Minimum Array End
  • 3134. Find the Median of the Uniqueness Array
  • 3135. Equalize Strings by Adding or Removing Characters at Ends
  • 3136. Valid Word
  • 3137. Minimum Number of Operations to Make Word K-Periodic
  • 3138. Minimum Length of Anagram Concatenation
  • 3139. Minimum Cost to Equalize Array
  • 3140. Consecutive Available Seats II
  • 3141. Maximum Hamming Distances
  • 3142. Check if Grid Satisfies Conditions
  • 3143. Maximum Points Inside the Square
  • 3144. Minimum Substring Partition of Equal Character Frequency
  • 3145. Find Products of Elements of Big Array
  • 3146. Permutation Difference between Two Strings
  • 3147. Taking Maximum Energy From the Mystic Dungeon
  • 3148. Maximum Difference Score in a Grid
  • 3149. Find the Minimum Cost Array Permutation
  • 3150. Invalid Tweets II
  • 3151. Special Array I
  • 3152. Special Array II
  • 3153. Sum of Digit Differences of All Pairs
  • 3154. Find Number of Ways to Reach the K-th Stair
  • 3155. Maximum Number of Upgradable Servers
  • 3156. Employee Task Duration and Concurrent Tasks
  • 3157. Find the Level of Tree with Minimum Sum
  • 3158. Find the XOR of Numbers Which Appear Twice
  • 3159. Find Occurrences of an Element in an Array
  • 3160. Find the Number of Distinct Colors Among the Balls
  • 3161. Block Placement Queries
  • 3162. Find the Number of Good Pairs I
  • 3163. String Compression III
  • 3164. Find the Number of Good Pairs II
  • 3165. Maximum Sum of Subsequence With Non-adjacent Elements
  • 3166. Calculate Parking Fees and Duration
  • 3167. Better Compression of String
  • 3168. Minimum Number of Chairs in a Waiting Room
  • 3169. Count Days Without Meetings
  • 3170. Lexicographically Minimum String After Removing Stars
  • 3171. Find Subarray With Bitwise OR Closest to K
  • 3172. Second Day Verification
  • 3173. Bitwise OR of Adjacent Elements
  • 3174. Clear Digits
  • 3175. Find The First Player to win K Games in a Row
  • 3176. Find the Maximum Length of a Good Subsequence I
  • 3177. Find the Maximum Length of a Good Subsequence II
  • 3178. Find the Child Who Has the Ball After K Seconds
  • 3179. Find the N-th Value After K Seconds
  • 3180. Maximum Total Reward Using Operations I
  • 3181. Maximum Total Reward Using Operations II
  • 3182. Find Top Scoring Students
  • 3183. The Number of Ways to Make the Sum
  • 3184. Count Pairs That Form a Complete Day I
  • 3185. Count Pairs That Form a Complete Day II
  • 3186. Maximum Total Damage With Spell Casting
  • 3187. Peaks in Array
  • 3188. Find Top Scoring Students II
  • 3189. Minimum Moves to Get a Peaceful Board
  • 3190. Find Minimum Operations to Make All Elements Divisible by Three
  • 3191. Minimum Operations to Make Binary Array Elements Equal to One I
  • 3192. Minimum Operations to Make Binary Array Elements Equal to One II
  • 3193. Count the Number of Inversions
  • 3194. Minimum Average of Smallest and Largest Elements
  • 3195. Find the Minimum Area to Cover All Ones I
  • 3196. Maximize Total Cost of Alternating Subarrays
  • 3197. Find the Minimum Area to Cover All Ones II
  • 3198. Find Cities in Each State
  • 3199. Count Triplets with Even XOR Set Bits I
  • 3200. Maximum Height of a Triangle
  • 3201. Find the Maximum Length of Valid Subsequence I
  • 3202. Find the Maximum Length of Valid Subsequence II
  • 3203. Find Minimum Diameter After Merging Two Trees
  • 3204. Bitwise User Permissions Analysis
  • 3205. Maximum Array Hopping Score I
  • 3206. Alternating Groups I
  • 3207. Maximum Points After Enemy Battles
  • 3208. Alternating Groups II
  • 3209. Number of Subarrays With AND Value of K
  • 3210. Find the Encrypted String
  • 3211. Generate Binary Strings Without Adjacent Zeros
  • 3212. Count Submatrices With Equal Frequency of X and Y
  • 3213. Construct String with Minimum Cost
  • 3214. Year on Year Growth Rate
  • 3215. Count Triplets with Even XOR Set Bits II
  • 3216. Lexicographically Smallest String After a Swap
  • 3217. Delete Nodes From Linked List Present in Array
  • 3218. Minimum Cost for Cutting Cake I
  • 3219. Minimum Cost for Cutting Cake II
  • 3220. Odd and Even Transactions
  • 3221. Maximum Array Hopping Score II
  • 3222. Find the Winning Player in Coin Game
  • 3223. Minimum Length of String After Operations
  • 3224. Minimum Array Changes to Make Differences Equal
  • 3225. Maximum Score From Grid Operations
  • 3226. Number of Bit Changes to Make Two Integers Equal
  • 3227. Vowels Game in a String
  • 3228. Maximum Number of Operations to Move Ones to the End
  • 3229. Minimum Operations to Make Array Equal to Target
  • 3230. Customer Purchasing Behavior Analysis
  • 3231. Minimum Number of Increasing Subsequence to Be Removed
  • 3232. Find if Digit Game Can Be Won
  • 3233. Find the Count of Numbers Which Are Not Special
  • 3234. Count the Number of Substrings With Dominant Ones
  • 3235. Check if the Rectangle Corner Is Reachable
  • 3236. CEO Subordinate Hierarchy
  • 3237. Alt and Tab Simulation
  • 3238. Find the Number of Winning Players
  • 3239. Minimum Number of Flips to Make Binary Grid Palindromic I
  • 3240. Minimum Number of Flips to Make Binary Grid Palindromic II
  • 3241. Time Taken to Mark All Nodes
  • 3242. Design Neighbor Sum Service
  • 3243. Shortest Distance After Road Addition Queries I
  • 3244. Shortest Distance After Road Addition Queries II
  • 3245. Alternating Groups III
  • 3246. Premier League Table Ranking
  • 3247. Number of Subsequences with Odd Sum
  • 3248. Snake in Matrix
  • 3249. Count the Number of Good Nodes
  • 3250. Find the Count of Monotonic Pairs I
  • 3251. Find the Count of Monotonic Pairs II
  • 3252. Premier League Table Ranking II
  • 3253. Construct String with Minimum Cost (Easy)
  • 3254. Find the Power of K-Size Subarrays I
  • 3255. Find the Power of K-Size Subarrays II
  • 3256. Maximum Value Sum by Placing Three Rooks I
  • 3257. Maximum Value Sum by Placing Three Rooks II
  • 3258. Count Substrings That Satisfy K-Constraint I
  • 3259. Maximum Energy Boost From Two Drinks
  • 3260. Find the Largest Palindrome Divisible by K
  • 3261. Count Substrings That Satisfy K-Constraint II
  • 3262. Find Overlapping Shifts
  • 3263. Convert Doubly Linked List to Array I
  • 3264. Final Array State After K Multiplication Operations I
  • 3265. Count Almost Equal Pairs I
  • 3266. Final Array State After K Multiplication Operations II
  • 3267. Count Almost Equal Pairs II
  • 3268. Find Overlapping Shifts II
  • 3269. Constructing Two Increasing Arrays
  • 3270. Find the Key of the Numbers
  • 3271. Hash Divided String
  • 3272. Find the Count of Good Integers
  • 3273. Minimum Amount of Damage Dealt to Bob
  • 3274. Check if Two Chessboard Squares Have the Same Color
  • 3275. K-th Nearest Obstacle Queries
  • 3276. Select Cells in Grid With Maximum Score
  • 3277. Maximum XOR Score Subarray Queries
  • 3278. Find Candidates for Data Scientist Position II
  • 3279. Maximum Total Area Occupied by Pistons
  • 3280. Convert Date to Binary
  • 3281. Maximize Score of Numbers in Ranges
  • 3282. Reach End of Array With Max Score
  • 3283. Maximum Number of Moves to Kill All Pawns
  • 3284. Sum of Consecutive Subarrays
  • 3285. Find Indices of Stable Mountains
  • 3286. Find a Safe Walk Through a Grid
  • 3287. Find the Maximum Sequence Value of Array
  • 3288. Length of the Longest Increasing Path
  • 3289. The Two Sneaky Numbers of Digitville
  • 3290. Maximum Multiplication Score
  • 3291. Minimum Number of Valid Strings to Form Target I
  • 3292. Minimum Number of Valid Strings to Form Target II
  • 3293. Calculate Product Final Price
  • 3294. Convert Doubly Linked List to Array II
  • 3295. Report Spam Message
  • 3296. Minimum Number of Seconds to Make Mountain Height Zero
  • 3297. Count Substrings That Can Be Rearranged to Contain a String I
  • 3298. Count Substrings That Can Be Rearranged to Contain a String II
  • 3299. Sum of Consecutive Subsequences
  • 3300. Minimum Element After Replacement With Digit Sum
  • 3301. Maximize the Total Height of Unique Towers
  • 3302. Find the Lexicographically Smallest Valid Sequence
  • 3303. Find the Occurrence of First Almost Equal Substring
  • 3304. Find the K-th Character in String Game I
  • 3305. Count of Substrings Containing Every Vowel and K Consonants I
  • 3306. Count of Substrings Containing Every Vowel and K Consonants II
  • 3307. Find the K-th Character in String Game II
  • 3308. Find Top Performing Driver
  • 3309. Maximum Possible Number by Binary Concatenation
  • 3310. Remove Methods From Project
  • 3311. Construct 2D Grid Matching Graph Layout
  • 3312. Sorted GCD Pair Queries
  • 3313. Find the Last Marked Nodes in Tree
  • 3314. Construct the Minimum Bitwise Array I
  • 3315. Construct the Minimum Bitwise Array II
  • 3316. Find Maximum Removals From Source String
  • 3317. Find the Number of Possible Ways for an Event
  • 3318. Find X-Sum of All K-Long Subarrays I
  • 3319. K-th Largest Perfect Subtree Size in Binary Tree
  • 3320. Count The Number of Winning Sequences
  • 3321. Find X-Sum of All K-Long Subarrays II
  • 3322. Premier League Table Ranking III
  • 3323. Minimize Connected Groups by Inserting Interval
  • 3324. Find the Sequence of Strings Appeared on the Screen
  • 3325. Count Substrings With K-Frequency Characters I
  • 3326. Minimum Division Operations to Make Array Non Decreasing
  • 3327. Check if DFS Strings Are Palindromes
  • 3328. Find Cities in Each State II
  • 3329. Count Substrings With K-Frequency Characters II
  • 3330. Find the Original Typed String I
  • 3331. Find Subtree Sizes After Changes
  • 3332. Maximum Points Tourist Can Earn
  • 3333. Find the Original Typed String II
  • 3334. Find the Maximum Factor Score of Array
  • 3335. Total Characters in String After Transformations I
  • 3336. Find the Number of Subsequences With Equal GCD
  • 3337. Total Characters in String After Transformations II
  • 3338. Second Highest Salary II
  • 3339. Find the Number of K-Even Arrays
  • 3340. Check Balanced String
  • 3341. Find Minimum Time to Reach Last Room I
  • 3342. Find Minimum Time to Reach Last Room II
  • 3343. Count Number of Balanced Permutations
  • 3344. Maximum Sized Array
  • 3345. Smallest Divisible Digit Product I
  • 3346. Maximum Frequency of an Element After Performing Operations I
  • 3347. Maximum Frequency of an Element After Performing Operations II
  • 3348. Smallest Divisible Digit Product II
  • 3349. Adjacent Increasing Subarrays Detection I
  • 3350. Adjacent Increasing Subarrays Detection II
  • 3351. Sum of Good Subsequences
  • 3352. Count K-Reducible Numbers Less Than N
  • 3353. Minimum Total Operations
  • 3354. Make Array Elements Equal to Zero
  • 3355. Zero Array Transformation I
  • 3356. Zero Array Transformation II
  • 3357. Minimize the Maximum Adjacent Element Difference
  • 3358. Books with NULL Ratings
  • 3359. Find Sorted Submatrices With Maximum Element at Most K
  • 3360. Stone Removal Game
  • 3361. Shift Distance Between Two Strings
  • 3362. Zero Array Transformation III
  • 3363. Find the Maximum Number of Fruits Collected
  • 3364. Minimum Positive Sum Subarray
  • 3365. Rearrange K Substrings to Form Target String
  • 3366. Minimum Array Sum
  • 3367. Maximize Sum of Weights after Edge Removals
  • 3368. First Letter Capitalization
  • 3369. Design an Array Statistics Tracker
  • 3370. Smallest Number With All Set Bits
  • 3371. Identify the Largest Outlier in an Array
  • 3372. Maximize the Number of Target Nodes After Connecting Trees I
  • 3373. Maximize the Number of Target Nodes After Connecting Trees II
  • 3374. First Letter Capitalization II
  • 3375. Minimum Operations to Make Array Values Equal to K
  • 3376. Minimum Time to Break Locks I
  • 3377. Digit Operations to Make Two Integers Equal
  • 3378. Count Connected Components in LCM Graph
  • 3379. Transformed Array
  • 3380. Maximum Area Rectangle With Point Constraints I
  • 3381. Maximum Subarray Sum With Length Divisible by K
  • 3382. Maximum Area Rectangle With Point Constraints II
  • 3383. Minimum Runes to Add to Cast Spell
  • 3384. Team Dominance by Pass Success
  • 3385. Minimum Time to Break Locks II
  • 3386. Button with Longest Push Time
  • 3387. Maximize Amount After Two Days of Conversions
  • 3388. Count Beautiful Splits in an Array
  • 3389. Minimum Operations to Make Character Frequencies Equal
  • 3390. Longest Team Pass Streak
  • 3391. Design a 3D Binary Matrix with Efficient Layer Tracking
  • 3392. Count Subarrays of Length Three With a Condition
  • 3393. Count Paths With the Given XOR Value
  • 3394. Check if Grid can be Cut into Sections
  • 3395. Subsequences with a Unique Middle Mode I
  • 3396. Minimum Number of Operations to Make Elements in Array Distinct
  • 3397. Maximum Number of Distinct Elements After Operations
  • 3398. Smallest Substring With Identical Characters I
  • 3399. Smallest Substring With Identical Characters II
  • 3400. Maximum Number of Matching Indices After Right Shifts
  • 3401. Find Circular Gift Exchange Chains
  • 3402. Minimum Operations to Make Columns Strictly Increasing
  • 3403. Find the Lexicographically Largest String From the Box I
  • 3404. Count Special Subsequences
  • 3405. Count the Number of Arrays with K Matching Adjacent Elements
  • 3406. Find the Lexicographically Largest String From the Box II
  • 3407. Substring Matching Pattern
  • 3408. Design Task Manager
  • 3409. Longest Subsequence With Decreasing Adjacent Difference
  • 3410. Maximize Subarray Sum After Removing All Occurrences of One Element
  • 3411. Maximum Subarray With Equal Products
  • 3412. Find Mirror Score of a String
  • 3413. Maximum Coins From K Consecutive Bags
  • 3414. Maximum Score of Non-overlapping Intervals
  • 3415. Find Products with Three Consecutive Digits
  • 3416. Subsequences with a Unique Middle Mode II
  • 3417. Zigzag Grid Traversal With Skip
  • 3418. Maximum Amount of Money Robot Can Earn
  • 3419. Minimize the Maximum Edge Weight of Graph
  • 3420. Count Non-Decreasing Subarrays After K Operations
  • 3421. Find Students Who Improved
  • 3422. Minimum Operations to Make Subarray Elements Equal
  • 3423. Maximum Difference Between Adjacent Elements in a Circular Array
  • 3424. Minimum Cost to Make Arrays Identical
  • 3425. Longest Special Path
  • 3426. Manhattan Distances of All Arrangements of Pieces
  • 3427. Sum of Variable Length Subarrays
  • 3428. Maximum and Minimum Sums of at Most Size K Subsequences
  • 3429. Paint House IV
  • 3430. Maximum and Minimum Sums of at Most Size K Subarrays
  • 3431. Minimum Unlocked Indices to Sort Nums
  • 3432. Count Partitions with Even Sum Difference
  • 3433. Count Mentions Per User
  • 3434. Maximum Frequency After Subarray Operation
  • 3435. Frequencies of Shortest Supersequences
  • 3436. Find Valid Emails
  • 3437. Permutations III
  • 3438. Find Valid Pair of Adjacent Digits in String
  • 3439. Reschedule Meetings for Maximum Free Time I
  • 3440. Reschedule Meetings for Maximum Free Time II
  • 3441. Minimum Cost Good Caption
  • 3442. Maximum Difference Between Even and Odd Frequency I
  • 3443. Maximum Manhattan Distance After K Changes
  • 3444. Minimum Increments for Target Multiples in an Array
  • 3445. Maximum Difference Between Even and Odd Frequency II
  • 3446. Sort Matrix by Diagonals
  • 3447. Assign Elements to Groups with Constraints
  • 3448. Count Substrings Divisible By Last Digit
  • 3449. Maximize the Minimum Game Score
  • 3450. Maximum Students on a Single Bench
  • 3451. Find Invalid IP Addresses
  • 3452. Sum of Good Numbers
  • 3453. Separate Squares I
  • 3454. Separate Squares II
  • 3455. Shortest Matching Substring
  • 3456. Find Special Substring of Length K
  • 3457. Eat Pizzas!
  • 3458. Select K Disjoint Special Substrings
  • 3459. Length of Longest V-Shaped Diagonal Segment
  • 3460. Longest Common Prefix After at Most One Removal
  • 3461. Check If Digits Are Equal in String After Operations I
  • 3462. Maximum Sum With at Most K Elements
  • 3463. Check If Digits Are Equal in String After Operations II
  • 3464. Maximize the Distance Between Points on a Square
  • 3465. Find Products with Valid Serial Numbers
  • 3466. Maximum Coin Collection
  • 3467. Transform Array by Parity
  • 3468. Find the Number of Copy Arrays
  • 3469. Find Minimum Cost to Remove Array Elements
  • 3470. Permutations IV
  • 3471. Find the Largest Almost Missing Integer
  • 3472. Longest Palindromic Subsequence After at Most K Operations
  • 3473. Sum of K Subarrays With Length at Least M
  • 3474. Lexicographically Smallest Generated String
  • 3475. DNA Pattern Recognition
  • 3476. Maximize Profit from Task Assignment
  • 3477. Fruits Into Baskets II
  • 3478. Choose K Elements With Maximum Sum
  • 3479. Fruits Into Baskets III
  • 3480. Maximize Subarrays After Removing One Conflicting Pair
  • 3481. Apply Substitutions
  • 3482. Analyze Organization Hierarchy
  • 3483. Unique 3-Digit Even Numbers
  • 3484. Design Spreadsheet
  • 3485. Longest Common Prefix of K Strings After Removal
  • 3486. Longest Special Path II
  • 3487. Maximum Unique Subarray Sum After Deletion
  • 3488. Closest Equal Element Queries
  • 3489. Zero Array Transformation IV
  • 3490. Count Beautiful Numbers
  • 3491. Phone Number Prefix
  • 3492. Maximum Containers on a Ship
  • 3493. Properties Graph
  • 3494. Find the Minimum Amount of Time to Brew Potions
  • 3495. Minimum Operations to Make Array Elements Zero
  • 3496. Maximize Score After Pair Deletions
  • 3497. Analyze Subscription Conversion
  • 3498. Reverse Degree of a String
  • 3499. Maximize Active Section with Trade I
  • 3500. Minimum Cost to Divide Array Into Subarrays
  • 3501. Maximize Active Section with Trade II
  • 3502. Minimum Cost to Reach Every Position
  • 3503. Longest Palindrome After Substring Concatenation I
  • 3504. Longest Palindrome After Substring Concatenation II
  • 3505. Minimum Operations to Make Elements Within K Subarrays Equal
  • 3506. Find Time Required to Eliminate Bacterial Strains
  • 3507. Minimum Pair Removal to Sort Array I
  • 3508. Implement Router
  • 3509. Maximum Product of Subsequences With an Alternating Sum Equal to K
  • 3510. Minimum Pair Removal to Sort Array II
  • 3511. Make a Positive Array
  • 3512. Minimum Operations to Make Array Sum Divisible by K
  • 3513. Number of Unique XOR Triplets I
  • 3514. Number of Unique XOR Triplets II
  • 3515. Shortest Path in a Weighted Tree
  • 3516. Find Closest Person
  • 3517. Smallest Palindromic Rearrangement I
  • 3518. Smallest Palindromic Rearrangement II
  • 3519. Count Numbers with Non-Decreasing Digits
  • 3520. Minimum Threshold for Inversion Pairs Count
  • 3521. Find Product Recommendation Pairs
  • 3522. Calculate Score After Performing Instructions
  • 3523. Make Array Non-decreasing
  • 3524. Find X Value of Array I
  • 3525. Find X Value of Array II
  • 3526. Range XOR Queries with Subarray Reversals
  • 3527. Find the Most Common Response
  • 3528. Unit Conversion I
  • 3529. Count Cells in Overlapping Horizontal and Vertical Substrings
  • 3530. Maximum Profit from Valid Topological Order in DAG
  • 3531. Count Covered Buildings
  • 3532. Path Existence Queries in a Graph I
  • 3533. Concatenated Divisibility
  • 3534. Path Existence Queries in a Graph II
  • 3535. Unit Conversion II
  • 3536. Maximum Product of Two Digits
  • 3537. Fill a Special Grid
  • 3538. Merge Operations for Minimum Travel Time
  • 3539. Find Sum of Array Product of Magical Sequences
  • 3540. Minimum Time to Visit All Houses
  • 3541. Find Most Frequent Vowel and Consonant
  • 3542. Minimum Operations to Convert All Elements to Zero
  • 3543. Maximum Weighted K-Edge Path
  • 3544. Subtree Inversion Sum
  • 3545. Minimum Deletions for At Most K Distinct Characters
  • 3546. Equal Sum Grid Partition I
  • 3547. Maximum Sum of Edge Values in a Graph
  • 3548. Equal Sum Grid Partition II
  • 3549. Multiply Two Polynomials
  • 3550. Smallest Index With Digit Sum Equal to Index
  • 3551. Minimum Swaps to Sort by Digit Sum
  • 3552. Grid Teleportation Traversal
  • 3553. Minimum Weighted Subgraph With the Required Paths II
  • 3554. Find Category Recommendation Pairs
  • 3555. Smallest Subarray to Sort in Every Sliding Window
  • 3556. Sum of Largest Prime Substrings
  • 3557. Find Maximum Number of Non Intersecting Substrings
  • 3558. Number of Ways to Assign Edge Weights I
  • 3559. Number of Ways to Assign Edge Weights II
  • 3560. Find Minimum Log Transportation Cost
  • 3561. Resulting String After Adjacent Removals
  • 3562. Maximum Profit from Trading Stocks with Discounts
  • 3563. Lexicographically Smallest String After Adjacent Removals
  • 3564. Seasonal Sales Analysis
  • 3565. Sequential Grid Path Cover
  • 3566. Partition Array into Two Equal Product Subsets
  • 3567. Minimum Absolute Difference in Sliding Submatrix
  • 3568. Minimum Moves to Clean the Classroom
  • 3569. Maximize Count of Distinct Primes After Split
  • 3570. Find Books with No Available Copies
  • 3571. Find the Shortest Superstring II
  • 3572. Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values
  • 3573. Best Time to Buy and Sell Stock V
  • 3574. Maximize Subarray GCD Score
  • 3575. Maximum Good Subtree Score
  • 3576. Transform Array to All Equal Elements
  • 3577. Count the Number of Computer Unlocking Permutations
  • 3578. Count Partitions With Max-Min Difference at Most K
  • 3579. Minimum Steps to Convert String with Operations
  • 3580. Find Consistently Improving Employees
  • 3581. Count Odd Letters from Number
  • 3582. Generate Tag for Video Caption
  • 3583. Count Special Triplets
  • 3584. Maximum Product of First and Last Elements of a Subsequence
  • 3585. Find Weighted Median Node in Tree
  • 3586. Find COVID Recovery Patients
  • 3587. Minimum Adjacent Swaps to Alternate Parity
  • 3588. Find Maximum Area of a Triangle
  • 3589. Count Prime-Gap Balanced Subarrays
  • 3590. Kth Smallest Path XOR Sum
  • 3591. Check if Any Element Has Prime Frequency
  • 3592. Inverse Coin Change
  • 3593. Minimum Increments to Equalize Leaf Paths
  • 3594. Minimum Time to Transport All Individuals
  • 3595. Once Twice
  • 3596. Minimum Cost Path with Alternating Directions I
  • 3597. Partition String
  • 3598. Longest Common Prefix Between Adjacent Strings After Removals
  • 3599. Partition Array to Minimize XOR
  • 3600. Maximize Spanning Tree Stability with Upgrades
  • 3601. Find Drivers with Improved Fuel Efficiency
  • 3602. Hexadecimal and Hexatrigesimal Conversion
  • 3603. Minimum Cost Path with Alternating Directions II
  • 3604. Minimum Time to Reach Destination in Directed Graph
  • 3605. Minimum Stability Factor of Array
  • 3606. Coupon Code Validator
  • 3607. Power Grid Maintenance
  • 3608. Minimum Time for K Connected Components
  • 3609. Minimum Moves to Reach Target in Grid
  • 3610. Minimum Number of Primes to Sum to Target
  • 3611. Find Overbooked Employees
  • 3612. Process String with Special Operations I
  • 3613. Minimize Maximum Component Cost
  • 3614. Process String with Special Operations II
  • 3615. Longest Palindromic Path in Graph
  • 3616. Number of Student Replacements
  • 3617. Find Students with Study Spiral Pattern
  • 3618. Split Array by Prime Indices
  • 3619. Count Islands With Total Value Divisible by K
  • 3620. Network Recovery Pathways
  • 3621. Number of Integers With Popcount-Depth Equal to K I
  • 3622. Check Divisibility by Digit Sum and Product
  • 3623. Count Number of Trapezoids I
  • 3624. Number of Integers With Popcount-Depth Equal to K II
  • 3625. Count Number of Trapezoids II
  • 3626. Find Stores with Inventory Imbalance
  • 3627. Maximum Median Sum of Subsequences of Size 3
  • 3628. Maximum Number of Subsequences After One Inserting
  • 3629. Minimum Jumps to Reach End via Prime Teleportation
  • 3630. Partition Array for Maximum XOR and AND
  • 3631. Sort Threats by Severity and Exploitability
  • 3632. Subarrays with XOR at Least K
  • 3633. Earliest Finish Time for Land and Water Rides I
  • 3634. Minimum Removals to Balance Array
  • 3635. Earliest Finish Time for Land and Water Rides II
  • 3636. Threshold Majority Queries
  • 3637. Trionic Array I
  • 3638. Maximum Balanced Shipments
  • 3639. Minimum Time to Activate String
  • 3640. Trionic Array II
  • 3641. Longest Semi-Repeating Subarray
  • 3642. Find Books with Polarized Opinions
  • 3643. Flip Square Submatrix Vertically
  • 3644. Maximum K to Sort a Permutation
  • 3645. Maximum Total from Optimal Activation Order
  • 3646. Next Special Palindrome Number
  • 3647. Maximum Weight in Two Bags
  • 3648. Minimum Sensors to Cover Grid
  • 3649. Number of Perfect Pairs
  • 3650. Minimum Cost Path with Edge Reversals
  • 3651. Minimum Cost Path with Teleportations
  • 3652. Best Time to Buy and Sell Stock using Strategy
  • 3653. XOR After Range Multiplication Queries I
  • 3654. Minimum Sum After Divisible Sum Deletions
  • 3655. XOR After Range Multiplication Queries II
  • 3656. Determine if a Simple Graph Exists
  • 3657. Find Loyal Customers
  • 3658. GCD of Odd and Even Sums
  • 3659. Partition Array Into K-Distinct Groups
  • 3660. Jump Game IX
  • 3661. Maximum Walls Destroyed by Robots
  • 3662. Filter Characters by Frequency
  • 3663. Find The Least Frequent Digit
  • 3664. Two-Letter Card Game
  • 3665. Twisted Mirror Path Count
  • 3666. Minimum Operations to Equalize Binary String
  • 3667. Sort Array By Absolute Value
  • 3668. Restore Finishing Order
  • 3669. Balanced K-Factor Decomposition
  • 3670. Maximum Product of Two Integers With No Common Bits
  • 3671. Sum of Beautiful Subsequences
  • 3672. Sum of Weighted Modes in Subarrays
  • 3673. Find Zombie Sessions
  • 3674. Minimum Operations to Equalize Array
  • 3675. Minimum Operations to Transform String
  • 3676. Count Bowl Subarrays
  • 3677. Count Binary Palindromic Numbers
  • 3678. Smallest Absent Positive Greater Than Average
  • 3679. Minimum Discards to Balance Inventory
  • 3680. Generate Schedule
  • 3681. Maximum XOR of Subsequences
  • 3682. Minimum Index Sum of Common Elements
  • 3683. Earliest Time to Finish One Task
  • 3684. Maximize Sum of At Most K Distinct Elements
  • 3685. Subsequence Sum After Capping Elements
  • 3686. Number of Stable Subsequences
  • 3687. Library Late Fee Calculator
  • 3688. Bitwise OR of Even Numbers in an Array
  • 3689. Maximum Total Subarray Value I
  • 3690. Split and Merge Array Transformation
  • 3691. Maximum Total Subarray Value II
  • 3692. Majority Frequency Characters
  • 3693. Climbing Stairs II
  • 3694. Distinct Points Reachable After Substring Removal
  • 3695. Maximize Alternating Sum Using Swaps
  • 3696. Maximum Distance Between Unequal Words in Array I
  • 3697. Compute Decimal Representation
  • 3698. Split Array With Minimum Difference
  • 3699. Number of ZigZag Arrays I
  • 3700. Number of ZigZag Arrays II
  • 3701. Compute Alternating Sum
  • 3702. Longest Subsequence With Non-Zero Bitwise XOR
  • 3703. Remove K-Balanced Substrings
  • 3704. Count No-Zero Pairs That Sum to N
  • 3705. Find Golden Hour Customers
  • 3706. Maximum Distance Between Unequal Words in Array II
  • 3707. Equal Score Substrings
  • 3708. Longest Fibonacci Subarray
  • 3709. Design Exam Scores Tracker
  • 3710. Maximum Partition Factor
  • 3711. Maximum Transactions Without Negative Balance
  • 3712. Sum of Elements With Frequency Divisible by K
  • 3713. Longest Balanced Substring I
  • 3714. Longest Balanced Substring II
  • 3715. Sum of Perfect Square Ancestors
  • 3716. Find Churn Risk Customers
  • 3717. Minimum Operations to Make the Array Beautiful
  • 3718. Smallest Missing Multiple of K
  • 3719. Longest Balanced Subarray I
  • 3720. Lexicographically Smallest Permutation Greater Than Target
  • 3721. Longest Balanced Subarray II
  • 3722. Lexicographically Smallest String After Reverse
  • 3723. Maximize Sum of Squares of Digits
  • 3724. Minimum Operations to Transform Array
  • 3725. Count Ways to Choose Coprime Integers from Rows
  • 3726. Remove Zeros in Decimal Representation
  • 3727. Maximum Alternating Sum of Squares
  • 3728. Stable Subarrays With Equal Boundary and Interior Sum
  • 3729. Count Distinct Subarrays Divisible by K in Sorted Array
  • 3730. Maximum Calories Burnt from Jumps
  • 3731. Find Missing Elements
  • 3732. Maximum Product of Three Elements After One Replacement
  • 3733. Minimum Time to Complete All Deliveries
  • 3734. Lexicographically Smallest Palindromic Permutation Greater Than Target
  • 3735. Lexicographically Smallest String After Reverse II
  • 3736. Minimum Moves to Equal Array Elements III
  • 3737. Count Subarrays With Majority Element I
  • 3738. Longest Non-Decreasing Subarray After Replacing at Most One Element
  • 3739. Count Subarrays With Majority Element II
  • 3740. Minimum Distance Between Three Equal Elements I
  • 3741. Minimum Distance Between Three Equal Elements II
  • 3742. Maximum Path Score in a Grid
  • 3743. Maximize Cyclic Partition Score
  • 3744. Find Kth Character in Expanded String
  • 3745. Maximize Expression of Three Elements
  • 3746. Minimum String Length After Balanced Removals
  • 3747. Count Distinct Integers After Removing Zeros
  • 3748. Count Stable Subarrays
  • 3749. Evaluate Valid Expressions
  • 3750. Minimum Number of Flips to Reverse Binary String
  • 3751. Total Waviness of Numbers in Range I
  • 3752. Lexicographically Smallest Negated Permutation that Sums to Target
  • 3753. Total Waviness of Numbers in Range II
  • 3754. Concatenate Non-Zero Digits and Multiply by Sum I
  • 3755. Find Maximum Balanced XOR Subarray Length
  • 3756. Concatenate Non-Zero Digits and Multiply by Sum II
  • 3757. Number of Effective Subsequences
  • 3758. Convert Number Words to Digits
  • 3759. Count Elements With at Least K Greater Values
  • 3760. Maximum Substrings With Distinct Start
  • 3761. Minimum Absolute Distance Between Mirror Pairs
  • 3762. Minimum Operations to Equalize Subarrays
  • 3763. Maximum Total Sum with Threshold Constraints
  • 3764. Most Common Course Pairs
  • 3765. Complete Prime Number
  • 3766. Minimum Operations to Make Binary Palindrome
  • 3767. Maximize Points After Choosing K Tasks
  • 3768. Minimum Inversion Count in Subarrays of Fixed Length
  • 3769. Sort Integers by Binary Reflection
  • 3770. Largest Prime from Consecutive Prime Sum
  • 3771. Total Score of Dungeon Runs
  • 3772. Maximum Subgraph Score in a Tree
  • 3773. Maximum Number of Equal Length Runs
  • 3774. Absolute Difference Between Maximum and Minimum K Elements
  • 3775. Reverse Words With Same Vowel Count
  • 3776. Minimum Moves to Balance Circular Array
  • 3777. Minimum Deletions to Make Alternating Substring
  • 3778. Minimum Distance Excluding One Maximum Weighted Edge
  • 3779. Minimum Number of Operations to Have Distinct Elements
  • 3780. Maximum Sum of Three Numbers Divisible by Three
  • 3781. Maximum Score After Binary Swaps
  • 3782. Last Remaining Integer After Alternating Deletion Operations
  • 3783. Mirror Distance of an Integer
  • 3784. Minimum Deletion Cost to Make All Characters Equal
  • 3785. Minimum Swaps to Avoid Forbidden Values
  • 3786. Total Sum of Interaction Cost in Tree Groups
  • 3787. Find Diameter Endpoints of a Tree
  • 3788. Maximum Score of a Split
  • 3789. Minimum Cost to Acquire Required Items
  • 3790. Smallest All-Ones Multiple
  • 3791. Number of Balanced Integers in a Range
  • 3792. Sum of Increasing Product Blocks
  • 3793. Find Users with High Token Usage
  • 3794. Reverse String Prefix
  • 3795. Minimum Subarray Length With Distinct Sum At Least K
  • 3796. Find Maximum Value in a Constrained Sequence
  • 3797. Count Routes to Climb a Rectangular Grid
  • 3798. Largest Even Number
  • 3799. Word Squares II
  • 3800. Minimum Cost to Make Two Binary Strings Equal
  • 3801. Minimum Cost to Merge Sorted Lists
  • 3802. Number of Ways to Paint Sheets
  • 3803. Count Residue Prefixes
  • 3804. Number of Centered Subarrays
  • 3805. Count Caesar Cipher Pairs
  • 3806. Maximum Bitwise AND After Increment Operations
  • 3807. Minimum Cost to Repair Edges to Traverse a Graph
  • 3808. Find Emotionally Consistent Users
  • 3809. Best Reachable Tower
  • 3810. Minimum Operations to Reach Target Array
  • 3811. Number of Alternating XOR Partitions
  • 3812. Minimum Edge Toggles on a Tree
  • 3813. Vowel-Consonant Score
  • 3814. Maximum Capacity Within Budget
  • 3815. Design Auction System
  • 3816. Lexicographically Smallest String After Deleting Duplicate Characters
  • 3817. Good Indices in a Digit String
  • 3818. Minimum Prefix Removal to Make Array Strictly Increasing
  • 3819. Rotate Non Negative Elements
  • 3820. Pythagorean Distance Nodes in a Tree
  • 3821. Find Nth Smallest Integer With K One Bits
  • 3822. Design Order Management System
  • 3823. Reverse Letters Then Special Characters in a String
  • 3824. Minimum K to Reduce Array Within Limit
  • 3825. Longest Strictly Increasing Subsequence With Non-Zero Bitwise AND
  • 3826. Minimum Partition Score
  • 3827. Count Monobit Integers
  • 3828. Final Element After Subarray Deletions
  • 3829. Design Ride Sharing System
  • 3830. Longest Alternating Subarray After Removing At Most One Element
  • 3831. Median of a Binary Search Tree Level
  • 3832. Find Users with Persistent Behavior Patterns
  • 3833. Count Dominant Indices
  • 3834. Merge Adjacent Equal Elements
  • 3835. Count Subarrays With Cost Less Than or Equal to K
  • 3836. Maximum Score Using Exactly K Pairs
  • 3837. Delayed Count of Equal Elements
  • 3838. Weighted Word Mapping
  • 3839. Number of Prefix Connected Groups
  • 3840. House Robber V
  • 3841. Palindromic Path Queries in a Tree
  • 3842. Toggle Light Bulbs
  • 3843. First Element with Unique Frequency
  • 3844. Longest Almost-Palindromic Substring
  • 3845. Maximum Subarray XOR with Bounded Range
  • 3846. Total Distance to Type a String Using One Finger
  • 3847. Find the Score Difference in a Game
  • 3848. Check Digitorial Permutation
  • 3849. Maximum Bitwise XOR After Rearrangement
  • 3850. Count Sequences to K
  • 3851. Maximum Requests Without Violating the Limit
  • 3852. Smallest Pair With Different Frequencies
  • 3853. Merge Close Characters
  • 3854. Minimum Operations to Make Array Parity Alternating
  • 3855. Sum of K-Digit Numbers in a Range
  • 3856. Trim Trailing Vowels
  • 3857. Minimum Cost to Split into Ones
  • 3858. Minimum Bitwise OR From Grid
  • 3859. Count Subarrays With K Distinct Integers
  • 3860. Unique Email Groups
  • 3861. Minimum Capacity Box
  • 3862. Find the Smallest Balanced Index
  • 3863. Minimum Operations to Sort a String
  • 3864. Minimum Cost to Partition a Binary String
  • 3865. Reverse K Subarrays
  • 3866. First Unique Even Element
  • 3867. Sum of GCD of Formed Pairs
  • 3868. Minimum Cost to Equalize Arrays Using Swaps
  • 3869. Count Fancy Numbers in a Range
  • 3870. Count Commas in Range
  • 3871. Count Commas in Range II
  • 3872. Longest Arithmetic Sequence After Changing At Most One Element
  • 3873. Maximum Points Activated with One Addition
  • 3874. Valid Subarrays With Exactly One Peak
  • 3875. Construct Uniform Parity Array I
  • 3876. Construct Uniform Parity Array II
  • 3877. Minimum Removals to Achieve Target XOR
  • 3878. Count Good Subarrays
  • 3879. Maximum Distinct Path Sum in a Binary Tree
  • 3880. Minimum Absolute Difference Between Two Values
  • 3881. Direction Assignments with Exactly K Visible People
  • 3882. Minimum XOR Path in a Grid
  • 3883. Count Non Decreasing Arrays With Given Digit Sums
  • 3884. First Matching Character From Both Ends
  • 3885. Design Event Manager
  • 3886. Sum of Sortable Integers
  • 3887. Incremental Even-Weighted Cycle Queries
  • 3888. Minimum Operations to Make All Grid Elements Equal
  • 3889. Mirror Frequency Distance
  • 3890. Integers With Multiple Sum of Two Cubes
  • 3891. Minimum Increase to Maximize Special Indices
  • 3892. Minimum Operations to Achieve At Least K Peaks
  • 3893. Maximum Team Size with Overlapping Intervals
  • 3894. Traffic Signal Color
  • 3895. Count Digit Appearances
  • 3896. Minimum Operations to Transform Array into Alternating Prime
  • 3897. Maximum Value of Concatenated Binary Segments
  • 3898. Find the Degree of Each Vertex
  • 3899. Angles of a Triangle
  • 3900. Longest Balanced Substring After One Swap
  • 3901. Good Subsequence Queries
  • 3902. Zigzag Level Sum of Binary Tree
  • 3903. Smallest Stable Index I
  • 3904. Smallest Stable Index II
  • 3905. Multi Source Flood Fill
  • 3906. Count Good Integers on a Grid Path
  • 3907. Count Smaller Elements With Opposite Parity
  • 3908. Valid Digit Number
  • 3909. Compare Sums of Bitonic Parts
  • 3910. Count Connected Subgraphs with Even Node Sum
  • 3911. K-th Smallest Remaining Even Integer in Subarray Queries
  • 3912. Valid Elements in an Array
  • 3913. Sort Vowels by Frequency
  • 3914. Minimum Operations to Make Array Non Decreasing
  • 3915. Maximum Sum of Alternating Subsequence With Distance at Least K
  • 3916. Number of ZigZag Arrays III
  • 3917. Count Indices With Opposite Parity
  • 3918. Sum of Primes Between Number and Its Reverse
  • 3919. Minimum Cost to Move Between Indices
  • 3920. Maximize Fixed Points After Deletions
  • 3921. Score Validator
  • 3922. Minimum Flips to Make Binary String Coherent
  • 3923. Minimum Generations to Target Point
  • 3924. Minimum Threshold Path With Limited Heavy Edges
  • 3925. Concatenate Array With Reverse
  • 3926. Count Valid Word Occurrences
  • 3927. Minimize Array Sum Using Divisible Replacements
  • 3928. Minimum Cost to Buy Apples II
  • 3929. Minimum Partition Score II
  • 3930. Power Update After K-th Largest Insertion II
  • 3931. Check Adjacent Digit Differences
  • 3932. Count K-th Roots in a Range
  • 3933. Largest Local Values in a Matrix II
  • 3934. Smallest Unique Subarray
  • 3935. Power Update After K-th Largest Insertion I
  • 3936. Minimum Swaps to Move Zeros to End
  • 3937. Minimum Operations to Make Array Modulo Alternating I
  • 3938. Maximum Path Intersection Sum in a Grid
  • 3939. Count Non Adjacent Subsets in a Rooted Tree
  • 3940. Limit Occurrences in Sorted Array
  • 3941. Password Strength
  • 3942. Minimum Operations to Sort a Permutation
  • 3943. Number of Pairs After Increment
  • 3944. Minimum Operations to Make Array Modulo Alternating II
  • 3945. Digit Frequency Score
  • 3946. Maximum Number of Items From Sale I
  • 3947. Maximum Number of Items From Sale II
  • 3948. Lexicographically Maximum MEX Array
  • 3949. Subtree Inversion Sum II
  • 3950. Exactly One Consecutive Set Bits Pair
  • 3951. Minimum Energy to Maintain Brightness
  • 3952. Maximum Total Value of Covered Indices
  • 3953. Maximum Score with Co-Prime Element
  • 3954. Sum of Compatible Numbers in Range I
  • 3955. Valid Binary Strings With Cost Limit
  • 3956. Maximum Sum of M Non-Overlapping Subarrays I
  • 3957. Maximum Sum of M Non-Overlapping Subarrays II
  • 3958. Minimum Cost to Split into Ones II
  • 3959. Check Good Integer
  • 3960. Frequency Balance Subarray
  • 3961. Maximize Sum of Device Ratings
  • 3962. Maximum Subarray Sum After at Most K Swaps
  • 3963. Create Grid With Exactly One Path
  • 3964. Minimum Lights to Illuminate a Road
  • 3965. Finish Time of Tasks I
  • 3966. Count Good Integers in a Range
  • 3967. Finish Time of Tasks II
  • 3968. Maximum Manhattan Distance After All Moves
  • 3969. Valid Subarrays With Matching Sum Digits I
  • 3970. Shortest Path With At Most K Consecutive Identical Characters
  • 3971. Maximum Total Value
  • 3972. Valid Subarrays With Matching Sum Digits II
  • 3973. Distinct Gate Paths to LCA
  • 3974. Maximum Total Sum of K Selected Elements
  • 3975. Filter Occupied Intervals
  • 3976. Maximum Subarray Sum After Multiplier
  • 3977. Minimum Time to Reach Target With Limited Power
  • 3978. Unique Middle Element
  • 3979. Maximum Valid Pair Sum
  • 3980. Minimum Operations to Transform Binary String
  • 3981. Count Distinct Ways to Form Target from Two Strings
  • 3982. Sum of Integers with Maximum Digit Range
  • 3983. Subsequence After One Replacement
  • 3984. Divisible Game
  • 3985. Palindromic Subarray Sum
  • 3986. Number of Elapsed Seconds Between Two Times
  • 3987. Minimum Total Cost to Process All Elements
  • 3988. Create Grid With Exactly K Paths I
  • 3989. Maximum Consistent Columns in a Grid
  • 3990. Create Grid With Exactly K Paths II
  • 3991. Sort Array Using Prefix Reversals
  • 3992. Rearrange String to Avoid Character Pair
  • 3993. Maximum Value of an Alternating Sequence
  • 3994. Minimum Adjacent Swaps to Partition Array
  • 3995. Minimum Cost to Convert String III
  • 3996. Even Number of Knight Moves
  • 3997. Count Dominant Nodes in a Binary Tree
  • 3998. Transform Binary String Using Subsequence Sort
  • 3999. Minimum Number of String Groups Through Transformations
Back to top
View this page

0704. Binary Search¶

题目信息¶

题号:

0704

难度:

Easy

主题:

数组、二分查找

原题:

LeetCode 0704

重点:

数组严格升序且元素互不相同,返回目标值的零基下标;找不到时返回 -1,运行时间必须为 O(log n)

题目重述¶

给定一个按严格升序排列的整数数组 nums 和一个整数 target。数组中的元素互不相同。请在数组中查找 target:若存在,返回它的零基下标;若不存在,返回 -1。

算法的运行时间必须为 O(log n)。数组长度在 [1, 10^4] 范围内,且 -10^4 < nums[i], target < 10^4。

自建示例¶

目标值位于数组内部:

输入:nums = [-8,-3,0,4,11], target = 4
输出:3
解释:下标从 0 开始,数值 4 位于 ``nums[3]``。

目标值不存在:

输入:nums = [2,6,9,15], target = 8
输出:-1
解释:数组中没有数值 8,因此返回 -1。
Next
0705. Design HashSet
Previous
0703. Kth Largest Element in a Stream
Copyright © 2026, cxy251
Made with Sphinx and @pradyunsg's Furo
On this page
  • 0704. Binary Search
    • 题目信息
    • 题目重述
    • 自建示例