Tags
Below is a list of problems classified by tags, suitable for focused practice on a certain type of problem.
Array
- 1. Two Sum
- 4. Median of Two Sorted Arrays
- 11. Container With Most Water
- 15. 3Sum
- 16. 3Sum Closest
- 18. 4Sum
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 31. Next Permutation
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 36. Valid Sudoku
- 37. Sudoku Solver
- 39. Combination Sum
- 40. Combination Sum II
- 41. First Missing Positive
- 42. Trapping Rain Water
- 45. Jump Game II
- 46. Permutations
- 47. Permutations II
- 48. Rotate Image
- 49. Group Anagrams
- 51. N-Queens
- 53. Maximum Subarray
- 54. Spiral Matrix
- 55. Jump Game
- 56. Merge Intervals
- 57. Insert Interval
- 59. Spiral Matrix II
- 63. Unique Paths II
- 64. Minimum Path Sum
- 66. Plus One
- 68. Text Justification
- 73. Set Matrix Zeroes
- 74. Search a 2D Matrix
- 75. Sort Colors
- 78. Subsets
- 79. Word Search
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 84. Largest Rectangle in Histogram
- 85. Maximal Rectangle
- 88. Merge Sorted Array
- 90. Subsets II
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 108. Convert Sorted Array to Binary Search Tree
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 120. Triangle
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 123. Best Time to Buy and Sell Stock III
- 128. Longest Consecutive Sequence
- 130. Surrounded Regions
- 134. Gas Station
- 135. Candy
- 136. Single Number
- 137. Single Number II
- 139. Word Break
- 140. Word Break II
- 149. Max Points on a Line
- 150. Evaluate Reverse Polish Notation
- 152. Maximum Product Subarray
- 153. Find Minimum in Rotated Sorted Array
- 154. Find Minimum in Rotated Sorted Array II
- 157. Read N Characters Given Read4 π
- 158. Read N Characters Given read4 II - Call Multiple Times π
- 162. Find Peak Element
- 163. Missing Ranges π
- 164. Maximum Gap
- 167. Two Sum II - Input Array Is Sorted
- 169. Majority Element
- 170. Two Sum III - Data structure design π
- 174. Dungeon Game
- 179. Largest Number
- 188. Best Time to Buy and Sell Stock IV
- 189. Rotate Array
- 198. House Robber
- 200. Number of Islands
- 204. Count Primes
- 209. Minimum Size Subarray Sum
- 212. Word Search II
- 213. House Robber II
- 215. Kth Largest Element in an Array
- 216. Combination Sum III
- 217. Contains Duplicate
- 218. The Skyline Problem
- 219. Contains Duplicate II
- 220. Contains Duplicate III
- 221. Maximal Square
- 228. Summary Ranges
- 229. Majority Element II
- 238. Product of Array Except Self
- 239. Sliding Window Maximum
- 240. Search a 2D Matrix II
- 243. Shortest Word Distance π
- 244. Shortest Word Distance II π
- 245. Shortest Word Distance III π
- 247. Strobogrammatic Number II π
- 248. Strobogrammatic Number III π
- 249. Group Shifted Strings π
- 251. Flatten 2D Vector π
- 252. Meeting Rooms π
- 253. Meeting Rooms II π
- 255. Verify Preorder Sequence in Binary Search Tree π
- 256. Paint House π
- 259. 3Sum Smaller π
- 260. Single Number III
- 265. Paint House II π
- 268. Missing Number
- 269. Alien Dictionary π
- 271. Encode and Decode Strings π
- 274. H-Index
- 275. H-Index II
- 280. Wiggle Sort π
- 281. Zigzag Iterator π
- 283. Move Zeroes
- 284. Peeking Iterator
- 286. Walls and Gates π
- 287. Find the Duplicate Number
- 288. Unique Word Abbreviation π
- 289. Game of Life
- 296. Best Meeting Point π
- 300. Longest Increasing Subsequence
- 302. Smallest Rectangle Enclosing Black Pixels π
- 303. Range Sum Query - Immutable
- 304. Range Sum Query 2D - Immutable
- 305. Number of Islands II π
- 307. Range Sum Query - Mutable
- 308. Range Sum Query 2D - Mutable π
- 309. Best Time to Buy and Sell Stock with Cooldown
- 311. Sparse Matrix Multiplication π
- 312. Burst Balloons
- 313. Super Ugly Number
- 315. Count of Smaller Numbers After Self
- 317. Shortest Distance from All Buildings π
- 318. Maximum Product of Word Lengths
- 321. Create Maximum Number
- 322. Coin Change
- 324. Wiggle Sort II
- 325. Maximum Size Subarray Sum Equals k π
- 327. Count of Range Sum
- 329. Longest Increasing Path in a Matrix
- 330. Patching Array
- 334. Increasing Triplet Subsequence
- 335. Self Crossing
- 336. Palindrome Pairs
- 346. Moving Average from Data Stream π
- 347. Top K Frequent Elements
- 348. Design Tic-Tac-Toe π
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 353. Design Snake Game π
- 354. Russian Doll Envelopes
- 356. Line Reflection π
- 360. Sort Transformed Array π
- 361. Bomb Enemy π
- 362. Design Hit Counter π
- 363. Max Sum of Rectangle No Larger Than K
- 368. Largest Divisible Subset
- 370. Range Addition π
- 373. Find K Pairs with Smallest Sums
- 376. Wiggle Subsequence
- 377. Combination Sum IV
- 378. Kth Smallest Element in a Sorted Matrix
- 379. Design Phone Directory π
- 380. Insert Delete GetRandom O(1)
- 381. Insert Delete GetRandom O(1) - Duplicates allowed
- 384. Shuffle an Array
- 391. Perfect Rectangle
- 393. UTF-8 Validation
- 396. Rotate Function
- 399. Evaluate Division
- 403. Frog Jump
- 406. Queue Reconstruction by Height
- 407. Trapping Rain Water II
- 410. Split Array Largest Sum
- 411. Minimum Unique Word Abbreviation π
- 413. Arithmetic Slices
- 414. Third Maximum Number
- 416. Partition Equal Subset Sum
- 417. Pacific Atlantic Water Flow
- 418. Sentence Screen Fitting π
- 419. Battleships in a Board
- 421. Maximum XOR of Two Numbers in an Array
- 422. Valid Word Square π
- 425. Word Squares π
- 427. Construct Quad Tree
- 435. Non-overlapping Intervals
- 436. Find Right Interval
- 442. Find All Duplicates in an Array
- 444. Sequence Reconstruction π
- 446. Arithmetic Slices II - Subsequence
- 447. Number of Boomerangs
- 448. Find All Numbers Disappeared in an Array
- 452. Minimum Number of Arrows to Burst Balloons
- 453. Minimum Moves to Equal Array Elements
- 454. 4Sum II
- 455. Assign Cookies
- 456. 132 Pattern
- 457. Circular Array Loop
- 462. Minimum Moves to Equal Array Elements II
- 463. Island Perimeter
- 465. Optimal Account Balancing π
- 469. Convex Polygon π
- 472. Concatenated Words
- 473. Matchsticks to Square
- 474. Ones and Zeroes
- 475. Heaters
- 477. Total Hamming Distance
- 480. Sliding Window Median
- 484. Find Permutation π
- 485. Max Consecutive Ones
- 486. Predict the Winner
- 487. Max Consecutive Ones II π
- 490. The Maze π
- 491. Non-decreasing Subsequences
- 493. Reverse Pairs
- 494. Target Sum
- 495. Teemo Attacking
- 496. Next Greater Element I
- 497. Random Point in Non-overlapping Rectangles
- 498. Diagonal Traverse
- 499. The Maze III π
- 500. Keyboard Row
- 502. IPO
- 503. Next Greater Element II
- 505. The Maze II π
- 506. Relative Ranks
- 517. Super Washing Machines
- 518. Coin Change II
- 522. Longest Uncommon Subsequence II
- 523. Continuous Subarray Sum
- 524. Longest Word in Dictionary through Deleting
- 525. Contiguous Array
- 526. Beautiful Arrangement
- 527. Word Abbreviation π
- 528. Random Pick with Weight
- 529. Minesweeper
- 531. Lonely Pixel I π
- 532. K-diff Pairs in an Array
- 533. Lonely Pixel II π
- 539. Minimum Time Difference
- 540. Single Element in a Sorted Array
- 542. 1 Matrix
- 546. Remove Boxes
- 548. Split Array with Equal Sum π
- 553. Optimal Division
- 554. Brick Wall
- 555. Split Concatenated Strings π
- 560. Subarray Sum Equals K
- 561. Array Partition
- 562. Longest Line of Consecutive One in Matrix π
- 565. Array Nesting
- 566. Reshape the Matrix
- 568. Maximum Vacation Days π
- 573. Squirrel Simulation π
- 575. Distribute Candies
- 581. Shortest Unsorted Continuous Subarray
- 582. Kill Process π
- 587. Erect the Fence
- 594. Longest Harmonious Subsequence
- 598. Range Addition II
- 599. Minimum Index Sum of Two Lists
- 604. Design Compressed String Iterator π
- 605. Can Place Flowers
- 609. Find Duplicate File in System
- 611. Valid Triangle Number
- 616. Add Bold Tag in String π
- 621. Task Scheduler
- 622. Design Circular Queue
- 624. Maximum Distance in Arrays
- 628. Maximum Product of Three Numbers
- 630. Course Schedule III
- 631. Design Excel Sum Formula π
- 632. Smallest Range Covering Elements from K Lists
- 636. Exclusive Time of Functions
- 638. Shopping Offers
- 641. Design Circular Deque
- 643. Maximum Average Subarray I
- 644. Maximum Average Subarray II π
- 645. Set Mismatch
- 646. Maximum Length of Pair Chain
- 648. Replace Words
- 654. Maximum Binary Tree
- 656. Coin Path π
- 658. Find K Closest Elements
- 659. Split Array into Consecutive Subsequences
- 661. Image Smoother
- 665. Non-decreasing Array
- 666. Path Sum IV π
- 667. Beautiful Arrangement II
- 673. Number of Longest Increasing Subsequence
- 674. Longest Continuous Increasing Subsequence
- 675. Cut Off Trees for Golf Event
- 679. 24 Game
- 682. Baseball Game
- 683. K Empty Slots π
- 689. Maximum Sum of 3 Non-Overlapping Subarrays
- 690. Employee Importance
- 691. Stickers to Spell Word
- 695. Max Area of Island
- 697. Degree of an Array
- 698. Partition to K Equal Sum Subsets
- 699. Falling Squares
- 702. Search in a Sorted Array of Unknown Size π
- 704. Binary Search
- 705. Design HashSet
- 706. Design HashMap
- 710. Random Pick with Blacklist
- 713. Subarray Product Less Than K
- 714. Best Time to Buy and Sell Stock with Transaction Fee
- 717. 1-bit and 2-bit Characters
- 718. Maximum Length of Repeated Subarray
- 719. Find K-th Smallest Pair Distance
- 720. Longest Word in Dictionary
- 721. Accounts Merge
- 722. Remove Comments
- 723. Candy Crush π
- 724. Find Pivot Index
- 729. My Calendar I
- 731. My Calendar II
- 733. Flood Fill
- 734. Sentence Similarity π
- 735. Asteroid Collision
- 737. Sentence Similarity II π
- 739. Daily Temperatures
- 740. Delete and Earn
- 741. Cherry Pickup
- 744. Find Smallest Letter Greater Than Target
- 745. Prefix and Suffix Search
- 746. Min Cost Climbing Stairs
- 747. Largest Number At Least Twice of Others
- 748. Shortest Completing Word
- 749. Contain Virus
- 750. Number Of Corner Rectangles π
- 752. Open the Lock
- 755. Pour Water π
- 757. Set Intersection Size At Least Two
- 758. Bold Words in String π
- 759. Employee Free Time π
- 760. Find Anagram Mappings π
- 764. Largest Plus Sign
- 766. Toeplitz Matrix
- 768. Max Chunks To Make Sorted II
- 769. Max Chunks To Make Sorted
- 773. Sliding Puzzle
- 774. Minimize Max Distance to Gas Station π
- 775. Global and Local Inversions
- 778. Swim in Rising Water
- 781. Rabbits in Forest
- 782. Transform to Chessboard
- 786. K-th Smallest Prime Fraction
- 789. Escape The Ghosts
- 792. Number of Matching Subsequences
- 794. Valid Tic-Tac-Toe State
- 795. Number of Subarrays with Bounded Maximum
- 798. Smallest Rotation with Highest Score
- 801. Minimum Swaps To Make Sequences Increasing
- 803. Bricks Falling When Hit
- 804. Unique Morse Code Words
- 805. Split Array With Same Average
- 806. Number of Lines To Write String
- 807. Max Increase to Keep City Skyline
- 809. Expressive Words
- 810. Chalkboard XOR Game
- 811. Subdomain Visit Count
- 812. Largest Triangle Area
- 813. Largest Sum of Averages
- 815. Bus Routes
- 817. Linked List Components
- 819. Most Common Word
- 820. Short Encoding of Words
- 821. Shortest Distance to a Character
- 822. Card Flipping Game
- 823. Binary Trees With Factors
- 825. Friends Of Appropriate Ages
- 826. Most Profit Assigning Work
- 827. Making A Large Island
- 832. Flipping an Image
- 833. Find And Replace in String
- 835. Image Overlap
- 839. Similar String Groups
- 840. Magic Squares In Grid
- 843. Guess the Word
- 845. Longest Mountain in Array
- 846. Hand of Straights
- 848. Shifting Letters
- 849. Maximize Distance to Closest Person
- 850. Rectangle Area II
- 851. Loud and Rich
- 852. Peak Index in a Mountain Array
- 853. Car Fleet
- 857. Minimum Cost to Hire K Workers
- 860. Lemonade Change
- 861. Score After Flipping Matrix
- 862. Shortest Subarray with Sum at Least K
- 864. Shortest Path to Get All Keys
- 867. Transpose Matrix
- 870. Advantage Shuffle
- 871. Minimum Number of Refueling Stops
- 873. Length of Longest Fibonacci Subsequence
- 874. Walking Robot Simulation
- 875. Koko Eating Bananas
- 877. Stone Game
- 879. Profitable Schemes
- 881. Boats to Save People
- 883. Projection Area of 3D Shapes
- 885. Spiral Matrix III
- 888. Fair Candy Swap
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 890. Find and Replace Pattern
- 891. Sum of Subsequence Widths
- 892. Surface Area of 3D Shapes
- 893. Groups of Special-Equivalent Strings
- 896. Monotonic Array
- 898. Bitwise ORs of Subarrays
- 900. RLE Iterator
- 902. Numbers At Most N Given Digit Set
- 904. Fruit Into Baskets
- 905. Sort Array By Parity
- 907. Sum of Subarray Minimums
- 908. Smallest Range I
- 909. Snakes and Ladders
- 910. Smallest Range II
- 911. Online Election
- 912. Sort an Array
- 914. X of a Kind in a Deck of Cards
- 915. Partition Array into Disjoint Intervals
- 916. Word Subsets
- 918. Maximum Sum Circular Subarray
- 922. Sort Array By Parity II
- 923. 3Sum With Multiplicity
- 924. Minimize Malware Spread
- 927. Three Equal Parts
- 928. Minimize Malware Spread II
- 929. Unique Email Addresses
- 930. Binary Subarrays With Sum
- 931. Minimum Falling Path Sum
- 932. Beautiful Array
- 934. Shortest Bridge
- 937. Reorder Data in Log Files
- 939. Minimum Area Rectangle
- 941. Valid Mountain Array
- 942. DI String Match
- 943. Find the Shortest Superstring
- 944. Delete Columns to Make Sorted
- 945. Minimum Increment to Make Array Unique
- 946. Validate Stack Sequences
- 948. Bag of Tokens
- 949. Largest Time for Given Digits
- 950. Reveal Cards In Increasing Order
- 952. Largest Component Size by Common Factor
- 953. Verifying an Alien Dictionary
- 954. Array of Doubled Pairs
- 955. Delete Columns to Make Sorted II
- 956. Tallest Billboard
- 957. Prison Cells After N Days
- 959. Regions Cut By Slashes
- 960. Delete Columns to Make Sorted III
- 961. N-Repeated Element in Size 2N Array
- 962. Maximum Width Ramp
- 963. Minimum Area Rectangle II
- 966. Vowel Spellchecker
- 969. Pancake Sorting
- 973. K Closest Points to Origin
- 974. Subarray Sums Divisible by K
- 975. Odd Even Jump
- 976. Largest Perimeter Triangle
- 977. Squares of a Sorted Array
- 978. Longest Turbulent Subarray
- 980. Unique Paths III
- 982. Triples with Bitwise AND Equal To Zero
- 983. Minimum Cost For Tickets
- 985. Sum of Even Numbers After Queries
- 986. Interval List Intersections
- 989. Add to Array-Form of Integer
- 990. Satisfiability of Equality Equations
- 992. Subarrays with K Different Integers
- 994. Rotting Oranges
- 995. Minimum Number of K Consecutive Bit Flips
- 996. Number of Squareful Arrays
- 997. Find the Town Judge
- 999. Available Captures for Rook
- 1000. Minimum Cost to Merge Stones
- 1001. Grid Illumination
- 1002. Find Common Characters
- 1004. Max Consecutive Ones III
- 1005. Maximize Sum Of Array After K Negations
- 1007. Minimum Domino Rotations For Equal Row
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 1011. Capacity To Ship Packages Within D Days
- 1013. Partition Array Into Three Parts With Equal Sum
- 1014. Best Sightseeing Pair
- 1018. Binary Prefix Divisible By 5
- 1019. Next Greater Node In Linked List
- 1020. Number of Enclaves
- 1023. Camelcase Matching
- 1024. Video Stitching
- 1027. Longest Arithmetic Subsequence
- 1029. Two City Scheduling
- 1030. Matrix Cells in Distance Order
- 1031. Maximum Sum of Two Non-Overlapping Subarrays
- 1032. Stream of Characters
- 1034. Coloring A Border
- 1035. Uncrossed Lines
- 1036. Escape a Large Maze
- 1037. Valid Boomerang
- 1039. Minimum Score Triangulation of Polygon
- 1040. Moving Stones Until Consecutive II
- 1043. Partition Array for Maximum Sum
- 1046. Last Stone Weight
- 1048. Longest String Chain
- 1049. Last Stone Weight II
- 1051. Height Checker
- 1052. Grumpy Bookstore Owner
- 1053. Previous Permutation With One Swap
- 1054. Distant Barcodes
- 1057. Campus Bikes π
- 1058. Minimize Rounding Error to Meet Target π
- 1060. Missing Element in Sorted Array π
- 1063. Number of Valid Subarrays π
- 1064. Fixed Point π
- 1065. Index Pairs of a String π
- 1066. Campus Bikes II π
- 1072. Flip Columns For Maximum Number of Equal Rows
- 1073. Adding Two Negabinary Numbers
- 1074. Number of Submatrices That Sum to Target
- 1085. Sum of Digits in the Minimum Number π
- 1086. High Five π
- 1089. Duplicate Zeros
- 1090. Largest Values From Labels
- 1091. Shortest Path in Binary Matrix
- 1093. Statistics from a Large Sample
- 1094. Car Pooling
- 1095. Find in Mountain Array
- 1099. Two Sum Less Than K π
- 1101. The Earliest Moment When Everyone Become Friends π
- 1102. Path With Maximum Minimum Value π
- 1105. Filling Bookcase Shelves
- 1109. Corporate Flight Bookings
- 1110. Delete Nodes And Return Forest
- 1121. Divide Array Into Increasing Sequences π
- 1122. Relative Sort Array
- 1124. Longest Well-Performing Interval
- 1125. Smallest Sufficient Team
- 1128. Number of Equivalent Domino Pairs
- 1130. Minimum Cost Tree From Leaf Values
- 1131. Maximum of Absolute Value Expression
- 1133. Largest Unique Number π
- 1139. Largest 1-Bordered Square
- 1140. Stone Game II
- 1144. Decrease Elements To Make Array Zigzag
- 1146. Snapshot Array
- 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 π
- 1157. Online Majority Element In Subarray
- 1160. Find Words That Can Be Formed by Characters
- 1162. As Far from Land as Possible
- 1167. Minimum Cost to Connect Sticks π
- 1169. Invalid Transactions
- 1170. Compare Strings by Frequency of the Smallest Character
- 1176. Diet Plan Performance π
- 1177. Can Make Palindrome from Substring
- 1178. Number of Valid Words for Each Puzzle
- 1181. Before and After Puzzle π
- 1182. Shortest Distance to Target Color π
- 1184. Distance Between Bus Stops
- 1186. Maximum Subarray Sum with One Deletion
- 1187. Make Array Strictly Increasing
- 1191. K-Concatenation Maximum Sum
- 1196. How Many Apples Can You Put into the Basket π
- 1198. Find Smallest Common Element in All Rows π
- 1199. Minimum Time to Build Blocks π
- 1200. Minimum Absolute Difference
- 1202. Smallest String With Swaps
- 1207. Unique Number of Occurrences
- 1210. Minimum Moves to Reach Target with Rotations
- 1213. Intersection of Three Sorted Arrays π
- 1217. Minimum Cost to Move Chips to The Same Position
- 1218. Longest Arithmetic Subsequence of Given Difference
- 1219. Path with Maximum Gold
- 1222. Queens That Can Attack the King
- 1223. Dice Roll Simulation
- 1224. Maximum Equal Frequency
- 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
- 1235. Maximum Profit in Job Scheduling
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1243. Array Transformation π
- 1246. Palindrome Removal π
- 1248. Count Number of Nice Subarrays
- 1250. Check If It Is a Good Array
- 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
- 1257. Smallest Common Region π
- 1258. Synonymous Sentences π
- 1260. Shift 2D Grid
- 1262. Greatest Sum Divisible by Three
- 1263. Minimum Moves to Move a Box to Their Target Location
- 1266. Minimum Time Visiting All Points
- 1267. Count Servers that Communicate
- 1268. Search Suggestions System
- 1272. Remove Interval π
- 1273. Delete Tree Nodes π
- 1274. Number of Ships in a Rectangle π
- 1275. Find Winner on a Tic Tac Toe Game
- 1277. Count Square Submatrices with All Ones
- 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
- 1287. Element Appearing More Than 25% In Sorted Array
- 1288. Remove Covered Intervals
- 1289. Minimum Falling Path Sum II
- 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1293. Shortest Path in a Grid with Obstacles Elimination
- 1295. Find Numbers with Even Number of Digits
- 1296. Divide Array in Sets of K Consecutive Numbers
- 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
- 1304. Find N Unique Integers Sum up to Zero
- 1306. Jump Game III
- 1307. Verbal Arithmetic Puzzle
- 1310. XOR Queries of a Subarray
- 1311. Get Watched Videos by Your Friends
- 1313. Decompress Run-Length Encoded List
- 1314. Matrix Block Sum
- 1324. Print Words Vertically
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1329. Sort the Matrix Diagonally
- 1330. Reverse Subarray To Maximize Array Value
- 1331. Rank Transform of an Array
- 1333. Filter Restaurants by Vegan-Friendly, Price and Distance
- 1335. Minimum Difficulty of a Job Schedule
- 1337. The K Weakest Rows in a Matrix
- 1338. Reduce Array Size to The Half
- 1340. Jump Game V
- 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- 1345. Jump Game IV
- 1346. Check If N and Its Double Exist
- 1349. Maximum Students Taking Exam
- 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
- 1356. Sort Integers by The Number of 1 Bits
- 1357. Apply Discount Every n Orders
- 1363. Largest Multiple of Three
- 1365. How Many Numbers Are Smaller Than the Current Number
- 1366. Rank Teams by Votes
- 1368. Minimum Cost to Make at Least One Valid Path in a Grid
- 1375. Number of Times Binary String Is Prefix-Aligned
- 1380. Lucky Numbers in a Matrix
- 1381. Design a Stack With Increment Operation
- 1383. Maximum Performance of a Team
- 1385. Find the Distance Value Between Two Arrays
- 1386. Cinema Seat Allocation
- 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
- 1394. Find Lucky Integer in an Array
- 1395. Count Number of Teams
- 1402. Reducing Dishes
- 1403. Minimum Subsequence in Non-Increasing Order
- 1406. Stone Game III
- 1408. String Matching in an Array
- 1409. Queries on a Permutation With Key
- 1413. Minimum Value to Get Positive Step by Step Sum
- 1418. Display Table of Food Orders in a Restaurant
- 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 π
- 1431. Kids With the Greatest Number of Candies
- 1434. Number of Ways to Wear Different Hats to Each Other
- 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
- 1441. Build an Array With Stack Operations
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1444. Number of Ways of Cutting a Pizza
- 1449. Form Largest Integer With Digits That Add up to Target
- 1450. Number of Students Doing Homework at a Given Time
- 1452. People Whose List of Favorite Companies Is Not a Subset of Another List
- 1453. Maximum Number of Darts Inside of a Circular Dartboard
- 1458. Max Dot Product of Two Subsequences
- 1460. Make Two Arrays Equal by Reversing Subarrays
- 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
- 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1470. Shuffle the Array
- 1471. The k Strongest Values in an Array
- 1472. Design Browser History
- 1473. Paint House III
- 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
- 1480. Running Sum of 1d Array
- 1481. Least Number of Unique Integers after K Removals
- 1482. Minimum Number of Days to Make m Bouquets
- 1487. Making File Names Unique
- 1488. Avoid Flood in The City
- 1491. Average Salary Excluding the Minimum and Maximum Salary
- 1493. Longest Subarray of 1's After Deleting One Element
- 1497. Check If Array Pairs Are Divisible by k
- 1498. Number of Subsequences That Satisfy the Given Sum Condition
- 1499. Max Value of Equation
- 1502. Can Make Arithmetic Progression From Sequence
- 1503. Last Moment Before All Ants Fall Out of a Plank
- 1504. Count Submatrices With All Ones
- 1508. Range Sum of Sorted Subarray Sums
- 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
- 1512. Number of Good Pairs
- 1514. Path with Maximum Probability
- 1515. Best Position for a Service Centre
- 1521. Find a Value of a Mysterious Function Closest to Target
- 1524. Number of Sub-arrays With Odd Sum
- 1526. Minimum Number of Increments on Subarrays to Form a Target Array
- 1528. Shuffle String
- 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
- 1546. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
- 1547. Minimum Cost to Cut a Stick
- 1550. Three Consecutive Odds
- 1552. Magnetic Force Between Two Balls
- 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 π
- 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 π
- 1572. Matrix Diagonal Sum
- 1574. Shortest Subarray to be Removed to Make Array Sorted
- 1575. Count All Possible Routes
- 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1578. Minimum Time to Make Rope Colorful
- 1580. Put Boxes Into the Warehouse II π
- 1582. Special Positions in a Binary Matrix
- 1583. Count Unhappy Friends
- 1584. Min Cost to Connect All Points
- 1588. Sum of All Odd Length Subarrays
- 1589. Maximum Sum Obtained of Any Permutation
- 1590. Make Sum Divisible by P
- 1591. Strange Printer II
- 1594. Maximum Non Negative Product in a Matrix
- 1595. Minimum Cost to Connect Two Groups of Points
- 1598. Crawler Log Folder
- 1599. Maximum Profit of Operating a Centennial Wheel
- 1601. Maximum Number of Achievable Transfer Requests
- 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
- 1608. Special Array With X Elements Greater Than or Equal X
- 1610. Maximum Number of Visible Points
- 1618. Maximum Font to Fit a Sentence in a Screen π
- 1619. Mean of Array After Removing Some Elements
- 1620. Coordinate With Maximum Network Quality
- 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
- 1636. Sort Array by Increasing Frequency
- 1637. Widest Vertical Area Between Two Points Containing No Points
- 1639. Number of Ways to Form a Target String Given a Dictionary
- 1640. Check Array Formation Through Concatenation
- 1642. Furthest Building You Can Reach
- 1643. Kth Smallest Instructions
- 1646. Get Maximum in Generated Array
- 1648. Sell Diminishing-Valued Colored Balls
- 1649. Create Sorted Array through Instructions
- 1652. Defuse the Bomb
- 1654. Minimum Jumps to Reach Home
- 1655. Distribute Repeating Integers
- 1656. Design an Ordered Stream
- 1658. Minimum Operations to Reduce X to Zero
- 1662. Check If Two String Arrays are Equivalent
- 1664. Ways to Make a Fair Array
- 1665. Minimum Initial Energy to Finish Tasks
- 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
- 1679. Max Number of K-Sum Pairs
- 1681. Minimum Incompatibility
- 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
- 1690. Stone Game VII
- 1691. Maximum Height by Stacking Cuboids
- 1695. Maximum Erasure Value
- 1696. Jump Game VI
- 1697. Checking Existence of Edge Length Limited Paths
- 1700. Number of Students Unable to Eat Lunch
- 1701. Average Waiting Time
- 1703. Minimum Adjacent Swaps for K Consecutive Ones
- 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 π
- 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 π
- 1718. Construct the Lexicographically Largest Valid Sequence
- 1720. Decode XORed Array
- 1722. Minimize Hamming Distance After Swap Operations
- 1723. Find Minimum Time to Finish All Jobs
- 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
- 1730. Shortest Path to Get Food π
- 1732. Find the Highest Altitude
- 1733. Minimum Number of People to Teach
- 1734. Decode XORed Permutation
- 1735. Count Ways to Make Array With Product
- 1738. Find Kth Largest XOR Coordinate Value
- 1743. Restore the Array From Adjacent Pairs
- 1744. Can You Eat Your Favorite Candy on Your Favorite Day
- 1746. Maximum Subarray Sum After One Operation π
- 1748. Sum of Unique Elements
- 1749. Maximum Absolute Sum of Any Subarray
- 1751. Maximum Number of Events That Can Be Attended II
- 1752. Check if Array Is Sorted and Rotated
- 1755. Closest Subsequence Sum
- 1756. Design Most Recently Used Queue π
- 1760. Minimum Limit of Balls in a Bag
- 1762. Buildings With an Ocean View π
- 1764. Form Array by Concatenating Subarrays of Another Array
- 1765. Map of Highest Peak
- 1766. Tree of Coprimes
- 1769. Minimum Number of Operations to Move All Balls to Each Box
- 1770. Maximum Score from Performing Multiplication Operations
- 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
- 1779. Find Nearest Point That Has the Same X or Y Coordinate
- 1782. Count Pairs Of Nodes
- 1785. Minimum Elements to Add to Form a Given Sum
- 1787. Make the XOR of All Segments Equal to Zero
- 1788. Maximize the Beauty of the Garden π
- 1792. Maximum Average Pass Ratio
- 1793. Maximum Score of a Good Subarray
- 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
- 1803. Count Pairs With XOR in a Range
- 1806. Minimum Number of Operations to Reinitialize a Permutation
- 1807. Evaluate the Bracket Pairs of a String
- 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 π
- 1822. Sign of the Product of an Array
- 1823. Find the Winner of the Circular Game
- 1824. Minimum Sideway Jumps
- 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
- 1833. Maximum Ice Cream Bars
- 1834. Single-Threaded CPU
- 1835. Find XOR Sum of All Pairs Bitwise AND
- 1838. Frequency of the Most Frequent Element
- 1840. Maximum Building Height
- 1846. Maximum Element After Decreasing and Rearranging
- 1847. Closest Room
- 1848. Minimum Distance to the Target Element
- 1851. Minimum Interval to Include Each Query
- 1852. Distinct Numbers in Each Subarray π
- 1854. Maximum Population Year
- 1855. Maximum Distance Between a Pair of Values
- 1856. Maximum Subarray Min-Product
- 1861. Rotating the Box
- 1862. Sum of Floored Pairs
- 1863. Sum of All Subset XOR Totals
- 1865. Finding Pairs With a Certain Sum
- 1868. Product of Two Run-Length Encoded Arrays π
- 1870. Minimum Speed to Arrive on Time
- 1872. Stone Game VIII
- 1874. Minimize Product Sum of Two Arrays π
- 1877. Minimize Maximum Pair Sum in Array
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1879. Minimum XOR Sum of Two Arrays
- 1882. Process Tasks Using Servers
- 1883. Minimum Skips to Arrive at Meeting On Time
- 1885. Count Pairs in Two Arrays π
- 1886. Determine Whether Matrix Can Be Obtained By Rotation
- 1887. Reduction Operations to Make the Array Elements Equal
- 1889. Minimum Space Wasted From Packaging
- 1891. Cutting Ribbons π
- 1893. Check if All the Integers in a Range Are Covered
- 1894. Find the Student that Will Replace the Chalk
- 1895. Largest Magic Square
- 1898. Maximum Number of Removable Characters
- 1899. Merge Triplets to Form Target Triplet
- 1901. Find a Peak Element II
- 1902. Depth of BST Given Insertion Order π
- 1905. Count Sub Islands
- 1906. Minimum Absolute Difference Queries
- 1908. Game of Nim π
- 1909. Remove One Element to Make the Array Strictly Increasing
- 1911. Maximum Alternating Subsequence Sum
- 1912. Design Movie Rental System
- 1913. Maximum Product Difference Between Two Pairs
- 1914. Cyclically Rotating a Grid
- 1918. Kth Smallest Subarray Sum π
- 1920. Build Array from Permutation
- 1921. Eliminate Maximum Number of Monsters
- 1923. Longest Common Subpath
- 1924. Erect the Fence II π
- 1926. Nearest Exit from Entrance in Maze
- 1928. Minimum Cost to Reach Destination in Time
- 1929. Concatenation of Array
- 1936. Add Minimum Number of Rungs
- 1937. Maximum Number of Points with Cost
- 1938. Maximum Genetic Difference Query
- 1940. Longest Common Subsequence Between Sorted Arrays π
- 1942. The Number of the Smallest Unoccupied Chair
- 1943. Describe the Painting
- 1944. Number of Visible People in a Queue
- 1946. Largest Number After Mutating Substring
- 1947. Maximum Compatibility Score Sum
- 1948. Delete Duplicate Folders in System
- 1950. Maximum of Minimum Values in All Subarrays π
- 1953. Maximum Number of Weeks for Which You Can Work
- 1955. Count Number of Special Subsequences
- 1956. Minimum Time For K Virus Variants to Spread π
- 1958. Check if Move is Legal
- 1959. Minimum Total Space Wasted With K Resizing Operations
- 1961. Check If String Is a Prefix of Array
- 1962. Remove Stones to Minimize the Total
- 1964. Find the Longest Valid Obstacle Course at Each Position
- 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
- 1970. Last Day Where You Can Still Cross
- 1975. Maximum Matrix Sum
- 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
- 1989. Maximum Number of People That Can Be Caught in Tag π
- 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
- 2001. Number of Pairs of Interchangeable Rectangles
- 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
- 2011. Final Value of Variable After Performing Operations
- 2012. Sum of Beauty in the Array
- 2013. Detect Squares
- 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
- 2021. Brightest Position on Street π
- 2022. Convert 1D Array Into 2D Array
- 2023. Number of Pairs of Strings With Concatenation Equal to Target
- 2025. Maximum Number of Ways to Partition an Array
- 2028. Find Missing Observations
- 2029. Stone Game IX
- 2031. Count Subarrays With More Ones Than Zeros π
- 2032. Two Out of Three
- 2033. Minimum Operations to Make a Uni-Value Grid
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2036. Maximum Alternating Subarray Sum π
- 2037. Minimum Number of Moves to Seat Everyone
- 2039. The Time When the Network Becomes Idle
- 2040. Kth Smallest Product of Two Sorted Arrays
- 2043. Simple Bank System
- 2044. Count Number of Maximum Bitwise-OR Subsets
- 2049. Count Nodes With the Highest Score
- 2050. Parallel Courses III
- 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
- 2059. Minimum Operations to Convert Number
- 2061. Number of Spaces Cleaning Robot Cleaned π
- 2064. Minimized Maximum of Products Distributed to Any Store
- 2065. Maximum Path Quality of a Graph
- 2070. Most Beautiful Item for Each Query
- 2071. Maximum Number of Tasks You Can Assign
- 2073. Time Needed to Buy Tickets
- 2078. Two Furthest Houses With Different Colors
- 2079. Watering Plants
- 2080. Range Frequency Queries
- 2085. Count Common Words With One Occurrence
- 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
- 2094. Finding 3-Digit Even Numbers
- 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
- 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
- 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
- 2121. Intervals Between Identical Elements
- 2122. Recover the Original Array
- 2123. Minimum Operations to Remove Adjacent Ones in Matrix π
- 2125. Number of Laser Beams in a Bank
- 2126. Destroying Asteroids
- 2128. Remove All Ones With Row and Column Flips π
- 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 π
- 2140. Solving Questions With Brainpower
- 2141. Maximum Running Time of N Computers
- 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
- 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 π
- 2154. Keep Multiplying Found Values by Two
- 2155. All Divisions With the Highest Score of a Binary Array
- 2158. Amount of New Area Painted Each Day π
- 2161. Partition Array According to Given Pivot
- 2163. Minimum Difference in Sums After Removal of Elements
- 2164. Sort Even and Odd Indices Independently
- 2166. Design Bitset
- 2170. Minimum Operations to Make the Array Alternating
- 2171. Removing Minimum Number of Magic Beans
- 2172. Maximum AND Sum of Array
- 2174. Remove All Ones With Row and Column Flips II π
- 2176. Count Equal and Divisible Pairs in an Array
- 2179. Count Good Triplets in an Array
- 2183. Count Array Pairs Divisible by K
- 2184. Number of Ways to Build Sturdy Brick Wall π
- 2185. Counting Words With a Given Prefix
- 2187. Minimum Time to Complete Trips
- 2188. Minimum Time to Finish the Race
- 2190. Most Frequent Number Following Key In an Array
- 2191. Sort the Jumbled Numbers
- 2195. Append K Integers With Minimal Sum
- 2196. Create Binary Tree From Descriptions
- 2197. Replace Non-Coprime Numbers in Array
- 2200. Find All K-Distant Indices in an Array
- 2201. Count Artifacts That Can Be Extracted
- 2202. Maximize the Topmost Element After K Moves
- 2206. Divide Array Into Equal Pairs
- 2208. Minimum Operations to Halve Array Sum
- 2210. Count Hills and Valleys in an Array
- 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 π
- 2221. Find Triangular Sum of an Array
- 2225. Find Players With Zero or One Losses
- 2226. Maximum Candies Allocated to K Children
- 2227. Encrypt and Decrypt Strings
- 2229. Check if an Array Is Consecutive π
- 2233. Maximum Product After K Increments
- 2234. Maximum Total Beauty of the Gardens
- 2237. Count Positions on Street With Required Brightness π
- 2239. Find Closest Number to Zero
- 2241. Design an ATM Machine
- 2242. Maximum Score of a Node Sequence
- 2244. Minimum Rounds to Complete All Tasks
- 2245. Maximum Trailing Zeros in a Cornered Path
- 2246. Longest Path With Different Adjacent Characters
- 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
- 2255. Count Prefixes of a Given String
- 2256. Minimum Average Difference
- 2257. Count Unguarded Cells in the Grid
- 2258. Escape the Spreading Fire
- 2260. Minimum Consecutive Cards to Pick Up
- 2261. K Divisible Elements Subarrays
- 2267. Check if There Is a Valid Parentheses String Path
- 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
- 2277. Closest Node to Path in Tree π
- 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 π
- 2284. Sender With Largest Word Count
- 2289. Steps to Make Array Non-decreasing
- 2290. Minimum Obstacle Removal to Reach Corner
- 2291. Maximum Profit From Trading Stocks π
- 2293. Min Max Game
- 2294. Partition Array Such That Maximum Difference Is K
- 2295. Replace Elements in an Array
- 2297. Jump Game VIII π
- 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 π
- 2312. Selling Pieces of Wood
- 2317. Maximum XOR After Operations
- 2319. Check if Matrix Is X-Matrix
- 2321. Maximum Score Of Spliced Array
- 2322. Minimum Score After Removals on a Tree
- 2323. Find Minimum Time to Finish All Jobs II π
- 2326. Spiral Matrix IV
- 2328. Number of Increasing Paths in a Grid
- 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
- 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 π
- 2347. Best Poker Hand
- 2348. Number of Zero-Filled Subarrays
- 2350. Shortest Impossible Sequence of Rolls
- 2352. Equal Row and Column Pairs
- 2354. Number of Excellent Pairs
- 2355. Maximum Number of Books You Can Take π
- 2357. Make Array Zero by Subtracting Equal Amounts
- 2358. Maximum Number of Groups Entering a Competition
- 2361. Minimum Costs Using the Train Line π
- 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
- 2371. Minimize Maximum Value in a Grid π
- 2373. Largest Local Values in a Matrix
- 2381. Shifting Letters II
- 2382. Maximum Segment Sum After Removals
- 2383. Minimum Hours of Training to Win a Competition
- 2386. Find the K-Sum of an Array
- 2387. Median of a Row Wise Sorted Matrix π
- 2389. Longest Subsequence With Limited Sum
- 2391. Minimum Amount of Time to Collect Garbage
- 2392. Build a Matrix With Conditions
- 2393. Count Strictly Increasing Subarrays π
- 2395. Find Subarrays With Equal Sum
- 2397. Maximum Rows Covered by Columns
- 2398. Maximum Number of Robots Within Budget
- 2399. Check Distances Between Same Letters
- 2401. Longest Nice Subarray
- 2402. Meeting Rooms III
- 2403. Minimum Time to Kill All Monsters π
- 2404. Most Frequent Even Element
- 2406. Divide Intervals Into Minimum Number of Groups
- 2407. Longest Increasing Subsequence II
- 2408. Design SQL π
- 2410. Maximum Matching of Players With Trainers
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2412. Minimum Money Required Before Transactions
- 2416. Sum of Prefix Scores of Strings
- 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 π
- 2425. Bitwise XOR of All Pairings
- 2426. Number of Pairs Satisfying Inequality
- 2428. Maximum Sum of an Hourglass
- 2431. Maximize Total Tastiness of Purchased Fruits π
- 2432. The Employee That Worked on the Longest Task
- 2433. Find The Original Array of Prefix Xor
- 2435. Paths in Matrix Whose Sum Is Divisible by K
- 2436. Minimum Split Into Subarrays With GCD Greater Than One π
- 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
- 2444. Count Subarrays With Fixed Bounds
- 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
- 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
- 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
- 2467. Most Profitable Path in a Tree
- 2470. Number of Subarrays With LCM Equal to K
- 2473. Minimum Cost to Buy Apples π
- 2475. Number of Unequal Triplets in Array
- 2476. Closest Nodes Queries in a Binary Search Tree
- 2482. Difference Between Ones and Zeros in Row and Column
- 2488. Count Subarrays With Median K
- 2491. Divide Players Into Teams of Equal Skill
- 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
- 2505. Bitwise OR of All Subsequence Sums π
- 2506. Count Pairs Of Similar Strings
- 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
- 2515. Shortest Distance to Target String in a Circular Array
- 2517. Maximum Tastiness of Candy Basket
- 2518. Number of Great Partitions
- 2519. Count the Number of K-Big Indices π
- 2521. Distinct Prime Factors of Product of Array
- 2524. Maximum Frequency Score of a Subarray π
- 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
- 2532. Time to Cross a Bridge
- 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
- 2540. Minimum Common Value
- 2541. Minimum Operations to Make Array Equal II
- 2542. Maximum Subsequence Score
- 2545. Sort the Students by Their Kth Score
- 2547. Minimum Cost to Split an Array
- 2548. Maximum Price to Fill a Bag π
- 2549. Count Distinct Numbers on Board
- 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
- 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
- 2572. Count the Number of Square-Free Subsets
- 2573. Find the String with
- 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
- 2580. Count Ways to Group Overlapping Ranges
- 2581. Count Number of Possible Root Nodes
- 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 π
- 2592. Maximize Greatness of an Array
- 2593. Find Score of an Array After Marking All Elements
- 2594. Minimum Time to Repair Cars
- 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 π
- 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
- 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
- 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
- 2643. Row With Maximum Ones
- 2644. Find the Maximum Divisibility Score
- 2646. Minimize the Total Price of the Trips
- 2647. Color the Triangle Red π
- 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
- 2664. The Knightβs Tour π
- 2670. Find the Distinct Difference Array
- 2672. Number of Adjacent Elements With the Same Color
- 2673. Make Costs of Paths Equal in a Binary Tree
- 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
- 2702. Minimum Operations to Make Numbers Non-positive π
- 2706. Buy Two Chocolates
- 2707. Extra Characters in a String
- 2708. Maximum Strength of a Group
- 2709. Greatest Common Divisor Traversal
- 2711. Difference of Number of Distinct Values on Diagonals
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2717. Semi-Ordered Permutation
- 2718. Sum of Matrix After Queries
- 2728. Count Houses in a Circular Street π
- 2731. Movement of Robots
- 2732. Find a Good Subset of the Matrix
- 2733. Neither Minimum nor Maximum
- 2735. Collecting Chocolates
- 2736. Maximum Sum Queries
- 2737. Find the Closest Marked Node π
- 2740. Find the Value of the Partition
- 2741. Special Permutations
- 2742. Painting the Walls
- 2744. Find Maximum Number of String Pairs
- 2746. Decremental String Concatenation
- 2747. Count Zero Request Servers
- 2748. Number of Beautiful Pairs
- 2750. Ways to Split Array Into Good Subarrays
- 2751. Robot Collisions
- 2760. Longest Even Odd Subarray With Threshold
- 2761. Prime Pairs With Target Sum
- 2762. Continuous Subarrays
- 2763. Sum of Imbalance Numbers of All Subarrays
- 2765. Longest Alternating Subarray
- 2766. Relocate Marbles
- 2768. Number of Black Blocks
- 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
- 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
- 2784. Check if Array is Good
- 2786. Visit Array Positions to Maximize Score
- 2788. Split Strings by Separator
- 2789. Largest Element in an Array after Merge Operations
- 2790. Maximum Number of Groups With Increasing Length
- 2798. Number of Employees Who Met the Target
- 2799. Count Complete Subarrays in an Array
- 2808. Minimum Seconds to Equalize a Circular Array
- 2809. Minimum Time to Make Array Sum At Most x
- 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
- 2817. Minimum Absolute Difference Between Elements With Constraint
- 2818. Apply Operations to Maximize Score
- 2819. Minimum Relative Loss After Buying Chocolates π
- 2824. Count Pairs Whose Sum is Less than Target
- 2826. Sorting Three Groups
- 2828. Check if a String Is an Acronym of Words
- 2830. Maximize the Profit as the Salesman
- 2831. Find the Longest Equal Subarray
- 2832. Maximal Range That Each Element Is Maximum in It π
- 2835. Minimum Operations to Form Subsequence With Target Sum
- 2836. Maximize Value of Function in a Ball Passing Game
- 2838. Maximum Coins Heroes Can Collect π
- 2841. Maximum Sum of Almost Unique Subarray
- 2845. Count of Interesting Subarrays
- 2846. Minimum Edge Weight Equilibrium Queries in a Tree
- 2848. Points That Intersect With Cars
- 2850. Minimum Moves to Spread Stones Over Grid
- 2852. Sum of Remoteness of All Cells π
- 2855. Minimum Right Shifts to Sort the Array
- 2856. Minimum Array Length After Pair Removals
- 2857. Count Pairs of Points With Distance k
- 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 π
- 2865. Beautiful Towers I
- 2866. Beautiful Towers II
- 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
- 2873. Maximum Value of an Ordered Triplet I
- 2874. Maximum Value of an Ordered Triplet II
- 2875. Minimum Size Subarray in Infinite Array
- 2892. Minimizing Array After Replacing Pairs With Their Product π
- 2895. Minimum Processing Time
- 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
- 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
- 2913. Subarrays Distinct Element Sum of Squares I
- 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 π
- 2923. Find Champion I
- 2926. Maximum Balanced Subsequence Sum
- 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 π
- 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
- 2948. Make Lexicographically Smallest Array by Swapping Elements
- 2951. Find the Peaks
- 2952. Minimum Number of Coins to be Added
- 2954. Count the Number of Infection Sequences
- 2955. Number of Same-End Substrings π
- 2956. Find Common Elements Between Two Arrays
- 2958. Length of Longest Subarray With at Most K Frequency
- 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
- 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
- 2980. Check if Bitwise OR Has Trailing Zeros
- 2992. Number of Self-Divisible Permutations π
- 2996. Smallest Missing Integer Greater Than Sequential Prefix Sum
- 2997. Minimum Number of Operations to Make Array XOR Equal to K
- 3000. Maximum Area of Longest Diagonal Rectangle
- 3002. Maximum Size of a Set After Removals
- 3004. Maximum Subtree of the Same Color π
- 3005. Count Elements With Maximum Frequency
- 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
- 3018. Maximum Number of Removal Queries That Can Be Processed I π
- 3020. Find the Maximum Number of Elements in Subset
- 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
- 3030. Find the Grid of Region Average
- 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
- 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
- 3082. Find the Sum of the Power of All Subsequences
- 3086. Minimum Moves to Pick K Ones
- 3092. Most Frequent IDs
- 3093. Longest Common Suffix Queries
- 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
- 3101. Count Alternating Subarrays
- 3102. Minimize Manhattan Distances
- 3105. Longest Strictly Increasing or Strictly Decreasing Subarray
- 3107. Minimum Operations to Make Median of Array Equal to K
- 3108. Minimum Cost Walk in Weighted Graph
- 3109. Find the Index of Permutation π
- 3111. Minimum Rectangles to Cover Points
- 3112. Minimum Time to Visit Disappearing Nodes
- 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum
- 3115. Maximum Prime Difference
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3117. Minimum Sum of Values by Dividing Array
- 3122. Minimum Number of Operations to Satisfy Conditions
- 3127. Make a Square with the Same Color
- 3128. Right Triangles
- 3131. Find the Integer Added to Array I
- 3132. Find the Integer Added to Array II
- 3134. Find the Median of the Uniqueness Array
- 3139. Minimum Cost to Equalize Array
- 3141. Maximum Hamming Distances π
- 3142. Check if Grid Satisfies Conditions
- 3143. Maximum Points Inside the Square
- 3145. Find Products of Elements of Big Array
- 3147. Taking Maximum Energy From the Mystic Dungeon
- 3148. Maximum Difference Score in a Grid
- 3149. Find the Minimum Cost Array Permutation
- 3151. Special Array I
- 3152. Special Array II
- 3153. Sum of Digit Differences of All Pairs
- 3155. Maximum Number of Upgradable Servers π
- 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
- 3164. Find the Number of Good Pairs II
- 3165. Maximum Sum of Subsequence With Non-adjacent Elements
- 3169. Count Days Without Meetings
- 3171. Find Subarray With Bitwise OR Closest to K
- 3173. Bitwise OR of Adjacent Elements π
- 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
- 3179. Find the N-th Value After K Seconds
- 3180. Maximum Total Reward Using Operations I
- 3181. Maximum Total Reward Using Operations II
- 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
- 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
- 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
- 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
- 3212. Count Submatrices With Equal Frequency of X and Y
- 3213. Construct String with Minimum Cost
- 3215. Count Triplets with Even XOR Set Bits II π
- 3217. Delete Nodes From Linked List Present in Array
- 3218. Minimum Cost for Cutting Cake I
- 3219. Minimum Cost for Cutting Cake II
- 3221. Maximum Array Hopping Score II π
- 3224. Minimum Array Changes to Make Differences Equal
- 3225. Maximum Score From Grid Operations
- 3229. Minimum Operations to Make Array Equal to Target
- 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
- 3235. Check if the Rectangle Corner Is Reachable
- 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
- 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
- 3247. Number of Subsequences with Odd Sum π
- 3248. Snake in Matrix
- 3250. Find the Count of Monotonic Pairs I
- 3251. Find the Count of Monotonic Pairs II
- 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
- 3259. Maximum Energy Boost From Two Drinks
- 3261. Count Substrings That Satisfy K-Constraint II
- 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
- 3269. Constructing Two Increasing Arrays π
- 3273. Minimum Amount of Damage Dealt to Bob
- 3275. K-th Nearest Obstacle Queries
- 3276. Select Cells in Grid With Maximum Score
- 3277. Maximum XOR Score Subarray Queries
- 3279. Maximum Total Area Occupied by Pistons π
- 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
- 3294. Convert Doubly Linked List to Array II π
- 3295. Report Spam Message
- 3296. Minimum Number of Seconds to Make Mountain Height Zero
- 3299. Sum of Consecutive Subsequences π
- 3300. Minimum Element After Replacement With Digit Sum
- 3301. Maximize the Total Height of Unique Towers
- 3309. Maximum Possible Number by Binary Concatenation
- 3311. Construct 2D Grid Matching Graph Layout
- 3312. Sorted GCD Pair Queries
- 3314. Construct the Minimum Bitwise Array I
- 3315. Construct the Minimum Bitwise Array II
- 3316. Find Maximum Removals From Source String
- 3318. Find X-Sum of All K-Long Subarrays I
- 3321. Find X-Sum of All K-Long Subarrays II
- 3323. Minimize Connected Groups by Inserting Interval π
- 3326. Minimum Division Operations to Make Array Non Decreasing
- 3327. Check if DFS Strings Are Palindromes
- 3331. Find Subtree Sizes After Changes
- 3332. Maximum Points Tourist Can Earn
- 3334. Find the Maximum Factor Score of Array
- 3336. Find the Number of Subsequences With Equal GCD
- 3341. Find Minimum Time to Reach Last Room I
- 3342. Find Minimum Time to Reach Last Room II
- 3346. Maximum Frequency of an Element After Performing Operations I
- 3347. Maximum Frequency of an Element After Performing Operations II
- 3349. Adjacent Increasing Subarrays Detection I
- 3350. Adjacent Increasing Subarrays Detection II
- 3351. Sum of Good Subsequences
- 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
- 3359. Find Sorted Submatrices With Maximum Element at Most K π
- 3361. Shift Distance Between Two Strings
- 3362. Zero Array Transformation III
- 3363. Find the Maximum Number of Fruits Collected
- 3364. Minimum Positive Sum Subarray
- 3366. Minimum Array Sum
- 3371. Identify the Largest Outlier in an Array
- 3375. Minimum Operations to Make Array Values Equal to K
- 3376. Minimum Time to Break Locks I
- 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 π
Backtracking
- 17. Letter Combinations of a Phone Number
- 22. Generate Parentheses
- 37. Sudoku Solver
- 39. Combination Sum
- 40. Combination Sum II
- 46. Permutations
- 47. Permutations II
- 51. N-Queens
- 52. N-Queens II
- 77. Combinations
- 78. Subsets
- 79. Word Search
- 89. Gray Code
- 90. Subsets II
- 93. Restore IP Addresses
- 95. Unique Binary Search Trees II
- 113. Path Sum II
- 126. Word Ladder II
- 131. Palindrome Partitioning
- 140. Word Break II
- 212. Word Search II
- 216. Combination Sum III
- 254. Factor Combinations π
- 257. Binary Tree Paths
- 267. Palindrome Permutation II π
- 282. Expression Add Operators
- 291. Word Pattern II π
- 294. Flip Game II π
- 301. Remove Invalid Parentheses
- 306. Additive Number
- 320. Generalized Abbreviation π
- 351. Android Unlock Patterns π
- 357. Count Numbers with Unique Digits
- 401. Binary Watch
- 411. Minimum Unique Word Abbreviation π
- 425. Word Squares π
- 465. Optimal Account Balancing π
- 473. Matchsticks to Square
- 489. Robot Room Cleaner π
- 491. Non-decreasing Subsequences
- 494. Target Sum
- 526. Beautiful Arrangement
- 638. Shopping Offers
- 679. 24 Game
- 681. Next Closest Time π
- 691. Stickers to Spell Word
- 698. Partition to K Equal Sum Subsets
- 773. Sliding Puzzle
- 784. Letter Case Permutation
- 797. All Paths From Source to Target
- 816. Ambiguous Coordinates
- 842. Split Array into Fibonacci Sequence
- 967. Numbers With Same Consecutive Differences
- 980. Unique Paths III
- 988. Smallest String Starting From Leaf
- 996. Number of Squareful Arrays
- 1066. Campus Bikes II π
- 1079. Letter Tile Possibilities
- 1087. Brace Expansion π
- 1088. Confusing Number II π
- 1096. Brace Expansion II
- 1215. Stepping Numbers π
- 1219. Path with Maximum Gold
- 1238. Circular Permutation in Binary Representation
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1240. Tiling a Rectangle with the Fewest Squares
- 1255. Maximum Score Words Formed by Letters
- 1258. Synonymous Sentences π
- 1286. Iterator for Combination
- 1307. Verbal Arithmetic Puzzle
- 1415. The k-th Lexicographical String of All Happy Strings of Length n
- 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1593. Split a String Into the Max Number of Unique Substrings
- 1601. Maximum Number of Achievable Transfer Requests
- 1655. Distribute Repeating Integers
- 1718. Construct the Lexicographically Largest Valid Sequence
- 1723. Find Minimum Time to Finish All Jobs
- 1774. Closest Dessert Cost
- 1799. Maximize Score After N Operations
- 1849. Splitting a String Into Descending Consecutive Values
- 1863. Sum of All Subset XOR Totals
- 1947. Maximum Compatibility Score Sum
- 1980. Find Unique Binary String
- 1986. Minimum Number of Work Sessions to Finish the Tasks
- 2002. Maximum Product of the Length of Two Palindromic Subsequences
- 2014. Longest Subsequence Repeated k Times
- 2044. Count Number of Maximum Bitwise-OR Subsets
- 2048. Next Greater Numerically Balanced Number
- 2056. Number of Valid Move Combinations On Chessboard
- 2065. Maximum Path Quality of a Graph
- 2151. Maximum Good People Based on Statements
- 2152. Minimum Number of Lines to Cover Points π
- 2178. Maximum Split of Positive Even Integers
- 2212. Maximum Points in an Archery Competition
- 2305. Fair Distribution of Cookies
- 2375. Construct Smallest Number From DI String
- 2397. Maximum Rows Covered by Columns
- 2597. The Number of Beautiful Subsets
- 2664. The Knightβs Tour π
- 2698. Find the Punishment Number of an Integer
- 2708. Maximum Strength of a Group
- 2767. Partition String Into Minimum Beautiful Substrings
- 2992. Number of Self-Divisible Permutations π
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3348. Smallest Divisible Digit Product II
- 3376. Minimum Time to Break Locks I
Biconnected Component
Binary Indexed Tree
- 218. The Skyline Problem
- 307. Range Sum Query - Mutable
- 308. Range Sum Query 2D - Mutable π
- 315. Count of Smaller Numbers After Self
- 327. Count of Range Sum
- 406. Queue Reconstruction by Height
- 493. Reverse Pairs
- 673. Number of Longest Increasing Subsequence
- 683. K Empty Slots π
- 1157. Online Majority Element In Subarray
- 1395. Count Number of Teams
- 1409. Queries on a Permutation With Key
- 1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1649. Create Sorted Array through Instructions
- 1756. Design Most Recently Used Queue π
- 1964. Find the Longest Valid Obstacle Course at Each Position
- 2031. Count Subarrays With More Ones Than Zeros π
- 2179. Count Good Triplets in an Array
- 2193. Minimum Number of Moves to Make Palindrome
- 2250. Count Number of Rectangles Containing Each Point
- 2286. Booking Concert Tickets in Groups
- 2407. Longest Increasing Subsequence II
- 2424. Longest Uploaded Prefix
- 2426. Number of Pairs Satisfying Inequality
- 2519. Count the Number of K-Big Indices π
- 2552. Count Increasing Quadruplets
- 2659. Make Array Empty
- 2736. Maximum Sum Queries
- 2907. Maximum Profitable Triplets With Increasing Prices I π
- 2916. Subarrays Distinct Element Sum of Squares II
- 2921. Maximum Profitable Triplets With Increasing Prices II π
- 2926. Maximum Balanced Subsequence Sum
- 2940. Find Building Where Alice and Bob Can Meet
- 3009. Maximum Number of Intersections on the Chart π
- 3072. Distribute Elements Into Two Arrays II
- 3109. Find the Index of Permutation π
- 3161. Block Placement Queries
- 3187. Peaks in Array
- 3245. Alternating Groups III
- 3380. Maximum Area Rectangle With Point Constraints I
- 3382. Maximum Area Rectangle With Point Constraints II
Binary Search
- 4. Median of Two Sorted Arrays
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 69. Sqrt(x)
- 74. Search a 2D Matrix
- 81. Search in Rotated Sorted Array II
- 153. Find Minimum in Rotated Sorted Array
- 154. Find Minimum in Rotated Sorted Array II
- 162. Find Peak Element
- 167. Two Sum II - Input Array Is Sorted
- 209. Minimum Size Subarray Sum
- 222. Count Complete Tree Nodes
- 240. Search a 2D Matrix II
- 259. 3Sum Smaller π
- 268. Missing Number
- 270. Closest Binary Search Tree Value π
- 275. H-Index II
- 278. First Bad Version
- 287. Find the Duplicate Number
- 300. Longest Increasing Subsequence
- 302. Smallest Rectangle Enclosing Black Pixels π
- 315. Count of Smaller Numbers After Self
- 327. Count of Range Sum
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 352. Data Stream as Disjoint Intervals
- 354. Russian Doll Envelopes
- 362. Design Hit Counter π
- 363. Max Sum of Rectangle No Larger Than K
- 367. Valid Perfect Square
- 374. Guess Number Higher or Lower
- 378. Kth Smallest Element in a Sorted Matrix
- 400. Nth Digit
- 410. Split Array Largest Sum
- 436. Find Right Interval
- 441. Arranging Coins
- 456. 132 Pattern
- 475. Heaters
- 483. Smallest Good Base
- 493. Reverse Pairs
- 497. Random Point in Non-overlapping Rectangles
- 528. Random Pick with Weight
- 532. K-diff Pairs in an Array
- 540. Single Element in a Sorted Array
- 611. Valid Triangle Number
- 633. Sum of Square Numbers
- 644. Maximum Average Subarray II π
- 658. Find K Closest Elements
- 668. Kth Smallest Number in Multiplication Table
- 702. Search in a Sorted Array of Unknown Size π
- 704. Binary Search
- 710. Random Pick with Blacklist
- 713. Subarray Product Less Than K
- 718. Maximum Length of Repeated Subarray
- 719. Find K-th Smallest Pair Distance
- 729. My Calendar I
- 731. My Calendar II
- 732. My Calendar III
- 744. Find Smallest Letter Greater Than Target
- 754. Reach a Number
- 774. Minimize Max Distance to Gas Station π
- 778. Swim in Rising Water
- 786. K-th Smallest Prime Fraction
- 792. Number of Matching Subsequences
- 793. Preimage Size of Factorial Zeroes Function
- 825. Friends Of Appropriate Ages
- 826. Most Profit Assigning Work
- 852. Peak Index in a Mountain Array
- 862. Shortest Subarray with Sum at Least K
- 875. Koko Eating Bananas
- 878. Nth Magical Number
- 887. Super Egg Drop
- 888. Fair Candy Swap
- 902. Numbers At Most N Given Digit Set
- 911. Online Election
- 981. Time Based Key-Value Store
- 1004. Max Consecutive Ones III
- 1011. Capacity To Ship Packages Within D Days
- 1027. Longest Arithmetic Subsequence
- 1044. Longest Duplicate Substring
- 1055. Shortest Way to Form String π
- 1060. Missing Element in Sorted Array π
- 1062. Longest Repeating Substring π
- 1064. Fixed Point π
- 1095. Find in Mountain Array
- 1099. Two Sum Less Than K π
- 1102. Path With Maximum Minimum Value π
- 1146. Snapshot Array
- 1150. Check If a Number Is Majority Element in a Sorted Array π
- 1157. Online Majority Element In Subarray
- 1170. Compare Strings by Frequency of the Smallest Character
- 1182. Shortest Distance to Target Color π
- 1187. Make Array Strictly Increasing
- 1198. Find Smallest Common Element in All Rows π
- 1201. Ugly Number III
- 1208. Get Equal Substrings Within Budget
- 1213. Intersection of Three Sorted Arrays π
- 1214. Two Sum BSTs π
- 1231. Divide Chocolate π
- 1235. Maximum Profit in Job Scheduling
- 1237. Find Positive Integer Solution for a Given Equation
- 1268. Search Suggestions System
- 1283. Find the Smallest Divisor Given a Threshold
- 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1300. Sum of Mutated Array Closest to Target
- 1337. The K Weakest Rows in a Matrix
- 1346. Check If N and Its Double Exist
- 1348. Tweet Counts Per Frequency
- 1351. Count Negative Numbers in a Sorted Matrix
- 1385. Find the Distance Value Between Two Arrays
- 1428. Leftmost Column with at Least a One π
- 1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows
- 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1482. Minimum Number of Days to Make m Bouquets
- 1483. Kth Ancestor of a Tree Node
- 1488. Avoid Flood in The City
- 1498. Number of Subsequences That Satisfy the Given Sum Condition
- 1508. Range Sum of Sorted Subarray Sums
- 1521. Find a Value of a Mysterious Function Closest to Target
- 1533. Find the Index of the Large Integer π
- 1539. Kth Missing Positive Number
- 1552. Magnetic Force Between Two Balls
- 1562. Find Latest Group of Size M
- 1574. Shortest Subarray to be Removed to Make Array Sorted
- 1608. Special Array With X Elements Greater Than or Equal X
- 1618. Maximum Font to Fit a Sentence in a Screen π
- 1631. Path With Minimum Effort
- 1648. Sell Diminishing-Valued Colored Balls
- 1649. Create Sorted Array through Instructions
- 1658. Minimum Operations to Reduce X to Zero
- 1671. Minimum Number of Removals to Make Mountain Array
- 1712. Ways to Split Array Into Three Subarrays
- 1713. Minimum Operations to Make a Subsequence
- 1739. Building Boxes
- 1751. Maximum Number of Events That Can Be Attended II
- 1760. Minimum Limit of Balls in a Bag
- 1782. Count Pairs Of Nodes
- 1793. Maximum Score of a Good Subarray
- 1802. Maximum Value at a Given Index in a Bounded Array
- 1818. Minimum Absolute Sum Difference
- 1838. Frequency of the Most Frequent Element
- 1847. Closest Room
- 1851. Minimum Interval to Include Each Query
- 1855. Maximum Distance Between a Pair of Values
- 1862. Sum of Floored Pairs
- 1870. Minimum Speed to Arrive on Time
- 1885. Count Pairs in Two Arrays π
- 1889. Minimum Space Wasted From Packaging
- 1891. Cutting Ribbons π
- 1894. Find the Student that Will Replace the Chalk
- 1898. Maximum Number of Removable Characters
- 1901. Find a Peak Element II
- 1918. Kth Smallest Subarray Sum π
- 1923. Longest Common Subpath
- 1932. Merge BSTs to Create Single BST
- 1954. Minimum Garden Perimeter to Collect Enough Apples
- 1956. Minimum Time For K Virus Variants to Spread π
- 1964. Find the Longest Valid Obstacle Course at Each Position
- 1966. Binary Searchable Numbers in an Unsorted Array π
- 1970. Last Day Where You Can Still Cross
- 2008. Maximum Earnings From Taxi
- 2009. Minimum Number of Operations to Make Array Continuous
- 2024. Maximize the Confusion of an Exam
- 2031. Count Subarrays With More Ones Than Zeros π
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2040. Kth Smallest Product of Two Sorted Arrays
- 2054. Two Best Non-Overlapping Events
- 2055. Plates Between Candles
- 2064. Minimized Maximum of Products Distributed to Any Store
- 2070. Most Beautiful Item for Each Query
- 2071. Maximum Number of Tasks You Can Assign
- 2080. Range Frequency Queries
- 2089. Find Target Indices After Sorting Array
- 2106. Maximum Fruits Harvested After at Most K Steps
- 2111. Minimum Operations to Make the Array K-Increasing
- 2137. Pour Water Between Buckets to Make Water Levels Equal π
- 2141. Maximum Running Time of N Computers
- 2179. Count Good Triplets in an Array
- 2187. Minimum Time to Complete Trips
- 2223. Sum of Scores of Built Strings
- 2226. Maximum Candies Allocated to K Children
- 2234. Maximum Total Beauty of the Gardens
- 2250. Count Number of Rectangles Containing Each Point
- 2251. Number of Flowers in Full Bloom
- 2258. Escape the Spreading Fire
- 2271. Maximum White Tiles Covered by a Carpet
- 2286. Booking Concert Tickets in Groups
- 2300. Successful Pairs of Spells and Potions
- 2302. Count Subarrays With Score Less Than K
- 2332. The Latest Time to Catch a Bus
- 2333. Minimum Sum of Squared Difference
- 2354. Number of Excellent Pairs
- 2358. Maximum Number of Groups Entering a Competition
- 2387. Median of a Row Wise Sorted Matrix π
- 2389. Longest Subsequence With Limited Sum
- 2398. Maximum Number of Robots Within Budget
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2424. Longest Uploaded Prefix
- 2426. Number of Pairs Satisfying Inequality
- 2439. Minimize Maximum of Array
- 2448. Minimum Cost to Make Array Equal
- 2454. Next Greater Element IV
- 2468. Split Message Based on Limit
- 2476. Closest Nodes Queries in a Binary Search Tree
- 2498. Frog Jump II
- 2501. Longest Square Streak in an Array
- 2513. Minimize the Maximum of Two Arrays
- 2517. Maximum Tastiness of Candy Basket
- 2519. Count the Number of K-Big Indices π
- 2528. Maximize the Minimum Powered City
- 2529. Maximum Count of Positive Integer and Negative Integer
- 2540. Minimum Common Value
- 2554. Maximum Number of Integers to Choose From a Range I
- 2555. Maximize Win From Two Segments
- 2557. Maximum Number of Integers to Choose From a Range II π
- 2560. House Robber IV
- 2563. Count the Number of Fair Pairs
- 2565. Subsequence With the Minimum Score
- 2576. Find the Maximum Number of Marked Indices
- 2589. Minimum Time to Complete All Tasks
- 2594. Minimum Time to Repair Cars
- 2601. Prime Subtraction Operation
- 2602. Minimum Operations to Make All Array Elements Equal
- 2604. Minimum Time to Eat All Grains π
- 2616. Minimize the Maximum Difference of Pairs
- 2659. Make Array Empty
- 2702. Minimum Operations to Make Numbers Non-positive π
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2736. Maximum Sum Queries
- 2779. Maximum Beauty of an Array After Applying Operation
- 2790. Maximum Number of Groups With Increasing Length
- 2812. Find the Safest Path in a Grid
- 2817. Minimum Absolute Difference Between Elements With Constraint
- 2819. Minimum Relative Loss After Buying Chocolates π
- 2824. Count Pairs Whose Sum is Less than Target
- 2826. Sorting Three Groups
- 2830. Maximize the Profit as the Salesman
- 2831. Find the Longest Equal Subarray
- 2838. Maximum Coins Heroes Can Collect π
- 2856. Minimum Array Length After Pair Removals
- 2861. Maximum Number of Alloys
- 2926. Maximum Balanced Subsequence Sum
- 2936. Number of Equal Numbers Blocks π
- 2940. Find Building Where Alice and Bob Can Meet
- 2941. Maximum GCD-Sum of a Subarray π
- 2945. Find Maximum Non-decreasing Array Length
- 2967. Minimum Cost to Make Array Equalindromic
- 2968. Apply Operations to Maximize Frequency Score
- 2970. Count the Number of Incremovable Subarrays I
- 2972. Count the Number of Incremovable Subarrays II
- 2981. Find Longest Special Substring That Occurs Thrice I
- 2982. Find Longest Special Substring That Occurs Thrice II
- 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
- 3048. Earliest Second to Mark Indices I
- 3049. Earliest Second to Mark Indices II
- 3104. Find Longest Self-Contained Substring π
- 3109. Find the Index of Permutation π
- 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3117. Minimum Sum of Values by Dividing Array
- 3134. Find the Median of the Uniqueness Array
- 3135. Equalize Strings by Adding or Removing Characters at Ends π
- 3143. Maximum Points Inside the Square
- 3145. Find Products of Elements of Big Array
- 3152. Special Array II
- 3155. Maximum Number of Upgradable Servers π
- 3161. Block Placement Queries
- 3171. Find Subarray With Bitwise OR Closest to K
- 3186. Maximum Total Damage With Spell Casting
- 3209. Number of Subarrays With AND Value of K
- 3231. Minimum Number of Increasing Subsequence to Be Removed π
- 3261. Count Substrings That Satisfy K-Constraint II
- 3281. Maximize Score of Numbers in Ranges
- 3288. Length of the Longest Increasing Path
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
- 3296. Minimum Number of Seconds to Make Mountain Height Zero
- 3312. Sorted GCD Pair Queries
- 3323. Minimize Connected Groups by Inserting Interval π
- 3344. Maximum Sized Array π
- 3346. Maximum Frequency of an Element After Performing Operations I
- 3347. Maximum Frequency of an Element After Performing Operations II
- 3350. Adjacent Increasing Subarrays Detection II
- 3356. Zero Array Transformation II
- 3357. Minimize the Maximum Adjacent Element Difference
- 3369. Design an Array Statistics Tracker π
Binary Search Tree
- 95. Unique Binary Search Trees II
- 96. Unique Binary Search Trees
- 98. Validate Binary Search Tree
- 99. Recover Binary Search Tree
- 108. Convert Sorted Array to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- 173. Binary Search Tree Iterator
- 230. Kth Smallest Element in a BST
- 235. Lowest Common Ancestor of a Binary Search Tree
- 255. Verify Preorder Sequence in Binary Search Tree π
- 270. Closest Binary Search Tree Value π
- 272. Closest Binary Search Tree Value II π
- 285. Inorder Successor in BST π
- 333. Largest BST Subtree π
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 449. Serialize and Deserialize BST
- 450. Delete Node in a BST
- 501. Find Mode in Binary Search Tree
- 510. Inorder Successor in BST II π
- 530. Minimum Absolute Difference in BST
- 538. Convert BST to Greater Tree
- 653. Two Sum IV - Input is a BST
- 669. Trim a Binary Search Tree
- 700. Search in a Binary Search Tree
- 701. Insert into a Binary Search Tree
- 703. Kth Largest Element in a Stream
- 776. Split BST π
- 783. Minimum Distance Between BST Nodes
- 897. Increasing Order Search Tree
- 938. Range Sum of BST
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1038. Binary Search Tree to Greater Sum Tree
- 1214. Two Sum BSTs π
- 1305. All Elements in Two Binary Search Trees
- 1373. Maximum Sum BST in Binary Tree
- 1382. Balance a Binary Search Tree
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1586. Binary Search Tree Iterator II π
- 1902. Depth of BST Given Insertion Order π
- 2476. Closest Nodes Queries in a Binary Search Tree
Binary Tree
- 94. Binary Tree Inorder Traversal
- 95. Unique Binary Search Trees II
- 96. Unique Binary Search Trees
- 98. Validate Binary Search Tree
- 99. Recover Binary Search Tree
- 100. Same Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 107. Binary Tree Level Order Traversal II
- 108. Convert Sorted Array to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 113. Path Sum II
- 114. Flatten Binary Tree to Linked List
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 124. Binary Tree Maximum Path Sum
- 129. Sum Root to Leaf Numbers
- 144. Binary Tree Preorder Traversal
- 145. Binary Tree Postorder Traversal
- 156. Binary Tree Upside Down π
- 173. Binary Search Tree Iterator
- 199. Binary Tree Right Side View
- 222. Count Complete Tree Nodes
- 226. Invert Binary Tree
- 230. Kth Smallest Element in a BST
- 235. Lowest Common Ancestor of a Binary Search Tree
- 236. Lowest Common Ancestor of a Binary Tree
- 250. Count Univalue Subtrees π
- 255. Verify Preorder Sequence in Binary Search Tree π
- 257. Binary Tree Paths
- 270. Closest Binary Search Tree Value π
- 272. Closest Binary Search Tree Value II π
- 285. Inorder Successor in BST π
- 297. Serialize and Deserialize Binary Tree
- 298. Binary Tree Longest Consecutive Sequence π
- 314. Binary Tree Vertical Order Traversal π
- 331. Verify Preorder Serialization of a Binary Tree
- 333. Largest BST Subtree π
- 337. House Robber III
- 366. Find Leaves of Binary Tree π
- 404. Sum of Left Leaves
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 431. Encode N-ary Tree to Binary Tree π
- 437. Path Sum III
- 449. Serialize and Deserialize BST
- 450. Delete Node in a BST
- 501. Find Mode in Binary Search Tree
- 508. Most Frequent Subtree Sum
- 510. Inorder Successor in BST II π
- 513. Find Bottom Left Tree Value
- 515. Find Largest Value in Each Tree Row
- 530. Minimum Absolute Difference in BST
- 536. Construct Binary Tree from String π
- 538. Convert BST to Greater Tree
- 543. Diameter of Binary Tree
- 545. Boundary of Binary Tree π
- 549. Binary Tree Longest Consecutive Sequence II π
- 563. Binary Tree Tilt
- 572. Subtree of Another Tree
- 606. Construct String from Binary Tree
- 617. Merge Two Binary Trees
- 623. Add One Row to Tree
- 637. Average of Levels in Binary Tree
- 652. Find Duplicate Subtrees
- 653. Two Sum IV - Input is a BST
- 654. Maximum Binary Tree
- 655. Print Binary Tree
- 662. Maximum Width of Binary Tree
- 663. Equal Tree Partition π
- 666. Path Sum IV π
- 669. Trim a Binary Search Tree
- 671. Second Minimum Node In a Binary Tree
- 687. Longest Univalue Path
- 700. Search in a Binary Search Tree
- 701. Insert into a Binary Search Tree
- 703. Kth Largest Element in a Stream
- 742. Closest Leaf in a Binary Tree π
- 776. Split BST π
- 783. Minimum Distance Between BST Nodes
- 814. Binary Tree Pruning
- 863. All Nodes Distance K in Binary Tree
- 865. Smallest Subtree with all the Deepest Nodes
- 872. Leaf-Similar Trees
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 894. All Possible Full Binary Trees
- 897. Increasing Order Search Tree
- 919. Complete Binary Tree Inserter
- 938. Range Sum of BST
- 951. Flip Equivalent Binary Trees
- 958. Check Completeness of a Binary Tree
- 965. Univalued Binary Tree
- 968. Binary Tree Cameras
- 971. Flip Binary Tree To Match Preorder Traversal
- 979. Distribute Coins in Binary Tree
- 987. Vertical Order Traversal of a Binary Tree
- 988. Smallest String Starting From Leaf
- 993. Cousins in Binary Tree
- 998. Maximum Binary Tree II
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1022. Sum of Root To Leaf Binary Numbers
- 1026. Maximum Difference Between Node and Ancestor
- 1028. Recover a Tree From Preorder Traversal
- 1038. Binary Search Tree to Greater Sum Tree
- 1080. Insufficient Nodes in Root to Leaf Paths
- 1104. Path In Zigzag Labelled Binary Tree
- 1110. Delete Nodes And Return Forest
- 1120. Maximum Average Subtree π
- 1123. Lowest Common Ancestor of Deepest Leaves
- 1145. Binary Tree Coloring Game
- 1161. Maximum Level Sum of a Binary Tree
- 1214. Two Sum BSTs π
- 1261. Find Elements in a Contaminated Binary Tree
- 1302. Deepest Leaves Sum
- 1305. All Elements in Two Binary Search Trees
- 1315. Sum of Nodes with Even-Valued Grandparent
- 1325. Delete Leaves With a Given Value
- 1339. Maximum Product of Splitted Binary Tree
- 1361. Validate Binary Tree Nodes
- 1367. Linked List in Binary Tree
- 1372. Longest ZigZag Path in a Binary Tree
- 1373. Maximum Sum BST in Binary Tree
- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1382. Balance a Binary Search Tree
- 1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree π
- 1448. Count Good Nodes in Binary Tree
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1469. Find All The Lonely Nodes π
- 1485. Clone Binary Tree With Random Pointer π
- 1530. Number of Good Leaf Nodes Pairs
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1586. Binary Search Tree Iterator II π
- 1597. Build Binary Expression Tree From Infix Expression π
- 1602. Find Nearest Right Node in Binary Tree π
- 1609. Even Odd Tree
- 1612. Check If Two Expression Trees are Equivalent π
- 1628. Design an Expression Tree With Evaluate Function π
- 1644. Lowest Common Ancestor of a Binary Tree II π
- 1650. Lowest Common Ancestor of a Binary Tree III π
- 1660. Correct a Binary Tree π
- 1666. Change the Root of a Binary Tree π
- 1676. Lowest Common Ancestor of a Binary Tree IV π
- 1740. Find Distance in a Binary Tree π
- 1902. Depth of BST Given Insertion Order π
- 1932. Merge BSTs to Create Single BST
- 1973. Count Nodes Equal to Sum of Descendants π
- 2005. Subtree Removal Game with Fibonacci Tree π
- 2049. Count Nodes With the Highest Score
- 2096. Step-By-Step Directions From a Binary Tree Node to Another
- 2196. Create Binary Tree From Descriptions
- 2236. Root Equals Sum of Children
- 2265. Count Nodes Equal to Average of Subtree
- 2313. Minimum Flips in Binary Tree to Get Result π
- 2331. Evaluate Boolean Binary Tree
- 2385. Amount of Time for Binary Tree to Be Infected
- 2415. Reverse Odd Levels of Binary Tree
- 2445. Number of Nodes With Value One π
- 2458. Height of Binary Tree After Subtree Removal Queries
- 2471. Minimum Number of Operations to Sort a Binary Tree by Level
- 2476. Closest Nodes Queries in a Binary Search Tree
- 2509. Cycle Length Queries in a Tree
- 2583. Kth Largest Sum in a Binary Tree
- 2641. Cousins in Binary Tree II
- 2673. Make Costs of Paths Equal in a Binary Tree
- 2689. Extract Kth Character From The Rope Tree π
- 2764. Is Array a Preorder of Some βBinary Tree π
- 2773. Height of Special Binary Tree π
- 2792. Count Nodes That Are Great Enough π
- 3157. Find the Level of Tree with Minimum Sum π
- 3319. K-th Largest Perfect Subtree Size in Binary Tree
Bit Manipulation
- 29. Divide Two Integers
- 67. Add Binary
- 78. Subsets
- 89. Gray Code
- 90. Subsets II
- 136. Single Number
- 137. Single Number II
- 187. Repeated DNA Sequences
- 190. Reverse Bits
- 191. Number of 1 Bits
- 201. Bitwise AND of Numbers Range
- 222. Count Complete Tree Nodes
- 231. Power of Two
- 260. Single Number III
- 266. Palindrome Permutation π
- 268. Missing Number
- 287. Find the Duplicate Number
- 318. Maximum Product of Word Lengths
- 320. Generalized Abbreviation π
- 338. Counting Bits
- 342. Power of Four
- 351. Android Unlock Patterns π
- 371. Sum of Two Integers
- 389. Find the Difference
- 393. UTF-8 Validation
- 397. Integer Replacement
- 401. Binary Watch
- 405. Convert a Number to Hexadecimal
- 411. Minimum Unique Word Abbreviation π
- 421. Maximum XOR of Two Numbers in an Array
- 461. Hamming Distance
- 464. Can I Win
- 465. Optimal Account Balancing π
- 473. Matchsticks to Square
- 476. Number Complement
- 477. Total Hamming Distance
- 491. Non-decreasing Subsequences
- 526. Beautiful Arrangement
- 638. Shopping Offers
- 645. Set Mismatch
- 672. Bulb Switcher II
- 691. Stickers to Spell Word
- 693. Binary Number with Alternating Bits
- 698. Partition to K Equal Sum Subsets
- 751. IP to CIDR π
- 756. Pyramid Transition Matrix
- 762. Prime Number of Set Bits in Binary Representation
- 779. K-th Symbol in Grammar
- 782. Transform to Chessboard
- 784. Letter Case Permutation
- 805. Split Array With Same Average
- 810. Chalkboard XOR Game
- 832. Flipping an Image
- 847. Shortest Path Visiting All Nodes
- 861. Score After Flipping Matrix
- 864. Shortest Path to Get All Keys
- 868. Binary Gap
- 898. Bitwise ORs of Subarrays
- 943. Find the Shortest Superstring
- 957. Prison Cells After N Days
- 980. Unique Paths III
- 982. Triples with Bitwise AND Equal To Zero
- 995. Minimum Number of K Consecutive Bit Flips
- 996. Number of Squareful Arrays
- 1009. Complement of Base 10 Integer
- 1018. Binary Prefix Divisible By 5
- 1066. Campus Bikes II π
- 1125. Smallest Sufficient Team
- 1177. Can Make Palindrome from Substring
- 1178. Number of Valid Words for Each Puzzle
- 1238. Circular Permutation in Binary Representation
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1255. Maximum Score Words Formed by Letters
- 1256. Encode Number π
- 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1310. XOR Queries of a Subarray
- 1318. Minimum Flips to Make a OR b Equal to c
- 1342. Number of Steps to Reduce a Number to Zero
- 1349. Maximum Students Taking Exam
- 1356. Sort Integers by The Number of 1 Bits
- 1371. Find the Longest Substring Containing Vowels in Even Counts
- 1386. Cinema Seat Allocation
- 1404. Number of Steps to Reduce a Number in Binary Representation to One
- 1434. Number of Ways to Wear Different Hats to Each Other
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1461. Check If a String Contains All Binary Codes of Size K
- 1486. XOR Operation in an Array
- 1494. Parallel Courses II
- 1506. Find Root of N-Ary Tree π
- 1521. Find a Value of a Mysterious Function Closest to Target
- 1525. Number of Good Ways to Split a String
- 1542. Find Longest Awesome Substring
- 1558. Minimum Numbers of Function Calls to Make Target Array
- 1595. Minimum Cost to Connect Two Groups of Points
- 1601. Maximum Number of Achievable Transfer Requests
- 1611. Minimum One Bit Operations to Make Integers Zero
- 1617. Count Subtrees With Max Distance Between Cities
- 1655. Distribute Repeating Integers
- 1659. Maximize Grid Happiness
- 1680. Concatenation of Consecutive Binary Numbers
- 1681. Minimum Incompatibility
- 1684. Count the Number of Consistent Strings
- 1707. Maximum XOR With an Element From Array
- 1720. Decode XORed Array
- 1723. Find Minimum Time to Finish All Jobs
- 1734. Decode XORed Permutation
- 1738. Find Kth Largest XOR Coordinate Value
- 1755. Closest Subsequence Sum
- 1763. Longest Nice Substring
- 1787. Make the XOR of All Segments Equal to Zero
- 1799. Maximize Score After N Operations
- 1803. Count Pairs With XOR in a Range
- 1815. Maximum Number of Groups Getting Fresh Donuts
- 1829. Maximum XOR for Each Query
- 1835. Find XOR Sum of All Pairs Bitwise AND
- 1863. Sum of All Subset XOR Totals
- 1879. Minimum XOR Sum of Two Arrays
- 1908. Game of Nim π
- 1915. Number of Wonderful Substrings
- 1930. Unique Length-3 Palindromic Subsequences
- 1938. Maximum Genetic Difference Query
- 1947. Maximum Compatibility Score Sum
- 1986. Minimum Number of Work Sessions to Finish the Tasks
- 1994. The Number of Good Subsets
- 2002. Maximum Product of the Length of Two Palindromic Subsequences
- 2032. Two Out of Three
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2044. Count Number of Maximum Bitwise-OR Subsets
- 2128. Remove All Ones With Row and Column Flips π
- 2135. Count Words Obtained After Adding a Letter
- 2151. Maximum Good People Based on Statements
- 2152. Minimum Number of Lines to Cover Points π
- 2157. Groups of Strings
- 2172. Maximum AND Sum of Array
- 2174. Remove All Ones With Row and Column Flips II π
- 2184. Number of Ways to Build Sturdy Brick Wall π
- 2206. Divide Array Into Equal Pairs
- 2212. Maximum Points in an Archery Competition
- 2220. Minimum Bit Flips to Convert Number
- 2247. Maximum Cost of Trip With K Highways π
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 2305. Fair Distribution of Cookies
- 2306. Naming a Company
- 2317. Maximum XOR After Operations
- 2322. Minimum Score After Removals on a Tree
- 2351. First Letter to Appear Twice
- 2354. Number of Excellent Pairs
- 2397. Maximum Rows Covered by Columns
- 2401. Longest Nice Subarray
- 2403. Minimum Time to Kill All Monsters π
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2419. Longest Subarray With Maximum Bitwise AND
- 2425. Bitwise XOR of All Pairings
- 2429. Minimize XOR
- 2433. Find The Original Array of Prefix Xor
- 2438. Range Product Queries of Powers
- 2505. Bitwise OR of All Subsequence Sums π
- 2506. Count Pairs Of Similar Strings
- 2527. Find Xor-Beauty of Array
- 2546. Apply Bitwise Operations to Make Strings Equal
- 2564. Substring XOR Queries
- 2568. Minimum Impossible OR
- 2571. Minimum Operations to Reduce an Integer to 0
- 2572. Count the Number of Square-Free Subsets
- 2588. Count the Number of Beautiful Subarrays
- 2595. Number of Even and Odd Bits
- 2657. Find the Prefix Common Array of Two Arrays
- 2680. Maximum OR
- 2683. Neighboring Bitwise XOR
- 2708. Maximum Strength of a Group
- 2732. Find a Good Subset of the Matrix
- 2741. Special Permutations
- 2749. Minimum Operations to Make the Integer Zero
- 2791. Count Paths That Can Form a Palindrome in a Tree
- 2802. Find The K-th Lucky Number π
- 2835. Minimum Operations to Form Subsequence With Target Sum
- 2836. Maximize Value of Function in a Ball Passing Game
- 2857. Count Pairs of Points With Distance k
- 2859. Sum of Values at Indices With K Set Bits
- 2869. Minimum Operations to Collect Elements
- 2871. Split Array Into Maximum Number of Subarrays
- 2897. Apply Operations on Array to Maximize Sum of Squares
- 2917. Find the K-or of an Array
- 2920. Maximum Points After Collecting Coins From All Nodes
- 2932. Maximum Strong Pair XOR I
- 2935. Maximum Strong Pair XOR II
- 2939. Maximum Xor Product
- 2959. Number of Possible Sets of Closing Branches
- 2980. Check if Bitwise OR Has Trailing Zeros
- 2992. Number of Self-Divisible Permutations π
- 2997. Minimum Number of Operations to Make Array XOR Equal to K
- 3003. Maximize the Number of Partitions After Operations
- 3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
- 3011. Find if Array Can Be Sorted
- 3022. Minimize OR of Remaining Elements Using Operations
- 3064. Guess the Number Using Bitwise Questions I π
- 3068. Find the Maximum Sum of Node Values
- 3094. Guess the Number Using Bitwise Questions II π
- 3095. Shortest Subarray With OR at Least K I
- 3097. Shortest Subarray With OR at Least K II
- 3108. Minimum Cost Walk in Weighted Graph
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3117. Minimum Sum of Values by Dividing Array
- 3133. Minimum Array End
- 3141. Maximum Hamming Distances π
- 3145. Find Products of Elements of Big Array
- 3149. Find the Minimum Cost Array Permutation
- 3154. Find Number of Ways to Reach the K-th Stair
- 3158. Find the XOR of Numbers Which Appear Twice
- 3171. Find Subarray With Bitwise OR Closest to K
- 3173. Bitwise OR of Adjacent Elements π
- 3181. Maximum Total Reward Using Operations II
- 3191. Minimum Operations to Make Binary Array Elements Equal to One I
- 3199. Count Triplets with Even XOR Set Bits I π
- 3209. Number of Subarrays With AND Value of K
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3215. Count Triplets with Even XOR Set Bits II π
- 3226. Number of Bit Changes to Make Two Integers Equal
- 3276. Select Cells in Grid With Maximum Score
- 3283. Maximum Number of Moves to Kill All Pawns
- 3287. Find the Maximum Sequence Value of Array
- 3304. Find the K-th Character in String Game I
- 3307. Find the K-th Character in String Game II
- 3309. Maximum Possible Number by Binary Concatenation
- 3314. Construct the Minimum Bitwise Array I
- 3315. Construct the Minimum Bitwise Array II
- 3344. Maximum Sized Array π
- 3370. Smallest Number With All Set Bits
- 3376. Minimum Time to Break Locks I
Bitmask
- 351. Android Unlock Patterns π
- 464. Can I Win
- 465. Optimal Account Balancing π
- 473. Matchsticks to Square
- 526. Beautiful Arrangement
- 638. Shopping Offers
- 691. Stickers to Spell Word
- 698. Partition to K Equal Sum Subsets
- 805. Split Array With Same Average
- 847. Shortest Path Visiting All Nodes
- 943. Find the Shortest Superstring
- 996. Number of Squareful Arrays
- 1066. Campus Bikes II π
- 1125. Smallest Sufficient Team
- 1255. Maximum Score Words Formed by Letters
- 1349. Maximum Students Taking Exam
- 1434. Number of Ways to Wear Different Hats to Each Other
- 1494. Parallel Courses II
- 1595. Minimum Cost to Connect Two Groups of Points
- 1617. Count Subtrees With Max Distance Between Cities
- 1655. Distribute Repeating Integers
- 1659. Maximize Grid Happiness
- 1681. Minimum Incompatibility
- 1723. Find Minimum Time to Finish All Jobs
- 1755. Closest Subsequence Sum
- 1799. Maximize Score After N Operations
- 1815. Maximum Number of Groups Getting Fresh Donuts
- 1879. Minimum XOR Sum of Two Arrays
- 1947. Maximum Compatibility Score Sum
- 1986. Minimum Number of Work Sessions to Finish the Tasks
- 1994. The Number of Good Subsets
- 2002. Maximum Product of the Length of Two Palindromic Subsequences
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2152. Minimum Number of Lines to Cover Points π
- 2172. Maximum AND Sum of Array
- 2184. Number of Ways to Build Sturdy Brick Wall π
- 2247. Maximum Cost of Trip With K Highways π
- 2305. Fair Distribution of Cookies
- 2403. Minimum Time to Kill All Monsters π
- 2572. Count the Number of Square-Free Subsets
- 2741. Special Permutations
- 2791. Count Paths That Can Form a Palindrome in a Tree
- 2992. Number of Self-Divisible Permutations π
- 3003. Maximize the Number of Partitions After Operations
- 3149. Find the Minimum Cost Array Permutation
- 3276. Select Cells in Grid With Maximum Score
- 3283. Maximum Number of Moves to Kill All Pawns
- 3376. Minimum Time to Break Locks I
Brainteaser
- 292. Nim Game
- 319. Bulb Switcher
- 810. Chalkboard XOR Game
- 1025. Divisor Game
- 1033. Moving Stones Until Consecutive
- 1227. Airplane Seat Assignment Probability
- 1503. Last Moment Before All Ants Fall Out of a Plank
- 1908. Game of Nim π
- 2396. Strictly Palindromic Number
- 2419. Longest Subarray With Maximum Bitwise AND
- 2425. Bitwise XOR of All Pairings
- 2505. Bitwise OR of All Subsequence Sums π
- 2568. Minimum Impossible OR
- 2731. Movement of Robots
- 2745. Construct the Longest New String
- 2749. Minimum Operations to Make the Integer Zero
- 3227. Vowels Game in a String
Breadth-First Search
- 100. Same Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 107. Binary Tree Level Order Traversal II
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 126. Word Ladder II
- 127. Word Ladder
- 130. Surrounded Regions
- 133. Clone Graph
- 199. Binary Tree Right Side View
- 200. Number of Islands
- 207. Course Schedule
- 210. Course Schedule II
- 226. Invert Binary Tree
- 261. Graph Valid Tree π
- 269. Alien Dictionary π
- 279. Perfect Squares
- 286. Walls and Gates π
- 297. Serialize and Deserialize Binary Tree
- 301. Remove Invalid Parentheses
- 302. Smallest Rectangle Enclosing Black Pixels π
- 310. Minimum Height Trees
- 314. Binary Tree Vertical Order Traversal π
- 317. Shortest Distance from All Buildings π
- 322. Coin Change
- 323. Number of Connected Components in an Undirected Graph π
- 329. Longest Increasing Path in a Matrix
- 339. Nested List Weight Sum π
- 364. Nested List Weight Sum II π
- 365. Water and Jug Problem
- 399. Evaluate Division
- 404. Sum of Left Leaves
- 407. Trapping Rain Water II
- 417. Pacific Atlantic Water Flow
- 428. Serialize and Deserialize N-ary Tree π
- 429. N-ary Tree Level Order Traversal
- 431. Encode N-ary Tree to Binary Tree π
- 433. Minimum Genetic Mutation
- 449. Serialize and Deserialize BST
- 463. Island Perimeter
- 488. Zuma Game
- 490. The Maze π
- 499. The Maze III π
- 505. The Maze II π
- 513. Find Bottom Left Tree Value
- 514. Freedom Trail
- 515. Find Largest Value in Each Tree Row
- 529. Minesweeper
- 530. Minimum Absolute Difference in BST
- 542. 1 Matrix
- 547. Number of Provinces
- 559. Maximum Depth of N-ary Tree
- 582. Kill Process π
- 617. Merge Two Binary Trees
- 623. Add One Row to Tree
- 637. Average of Levels in Binary Tree
- 653. Two Sum IV - Input is a BST
- 655. Print Binary Tree
- 662. Maximum Width of Binary Tree
- 672. Bulb Switcher II
- 675. Cut Off Trees for Golf Event
- 684. Redundant Connection
- 685. Redundant Connection II
- 690. Employee Importance
- 694. Number of Distinct Islands π
- 695. Max Area of Island
- 711. Number of Distinct Islands II π
- 721. Accounts Merge
- 733. Flood Fill
- 737. Sentence Similarity II π
- 742. Closest Leaf in a Binary Tree π
- 743. Network Delay Time
- 749. Contain Virus
- 752. Open the Lock
- 756. Pyramid Transition Matrix
- 765. Couples Holding Hands
- 773. Sliding Puzzle
- 778. Swim in Rising Water
- 783. Minimum Distance Between BST Nodes
- 785. Is Graph Bipartite
- 787. Cheapest Flights Within K Stops
- 797. All Paths From Source to Target
- 802. Find Eventual Safe States
- 815. Bus Routes
- 827. Making A Large Island
- 839. Similar String Groups
- 841. Keys and Rooms
- 847. Shortest Path Visiting All Nodes
- 854. K-Similar Strings
- 863. All Nodes Distance K in Binary Tree
- 864. Shortest Path to Get All Keys
- 865. Smallest Subtree with all the Deepest Nodes
- 886. Possible Bipartition
- 909. Snakes and Ladders
- 919. Complete Binary Tree Inserter
- 924. Minimize Malware Spread
- 928. Minimize Malware Spread II
- 934. Shortest Bridge
- 958. Check Completeness of a Binary Tree
- 959. Regions Cut By Slashes
- 965. Univalued Binary Tree
- 967. Numbers With Same Consecutive Differences
- 987. Vertical Order Traversal of a Binary Tree
- 993. Cousins in Binary Tree
- 994. Rotting Oranges
- 1020. Number of Enclaves
- 1034. Coloring A Border
- 1036. Escape a Large Maze
- 1042. Flower Planting With No Adjacent
- 1087. Brace Expansion π
- 1091. Shortest Path in Binary Matrix
- 1096. Brace Expansion II
- 1102. Path With Maximum Minimum Value π
- 1123. Lowest Common Ancestor of Deepest Leaves
- 1129. Shortest Path with Alternating Colors
- 1161. Maximum Level Sum of a Binary Tree
- 1162. As Far from Land as Possible
- 1197. Minimum Knight Moves π
- 1202. Smallest String With Swaps
- 1203. Sort Items by Groups Respecting Dependencies
- 1210. Minimum Moves to Reach Target with Rotations
- 1215. Stepping Numbers π
- 1236. Web Crawler π
- 1242. Web Crawler Multithreaded π
- 1245. Tree Diameter π
- 1254. Number of Closed Islands
- 1257. Smallest Common Region π
- 1261. Find Elements in a Contaminated Binary Tree
- 1263. Minimum Moves to Move a Box to Their Target Location
- 1267. Count Servers that Communicate
- 1273. Delete Tree Nodes π
- 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1293. Shortest Path in a Grid with Obstacles Elimination
- 1298. Maximum Candies You Can Get from Boxes
- 1302. Deepest Leaves Sum
- 1306. Jump Game III
- 1311. Get Watched Videos by Your Friends
- 1315. Sum of Nodes with Even-Valued Grandparent
- 1319. Number of Operations to Make Network Connected
- 1345. Jump Game IV
- 1361. Validate Binary Tree Nodes
- 1368. Minimum Cost to Make at Least One Valid Path in a Grid
- 1376. Time Needed to Inform All Employees
- 1377. Frog Position After T Seconds
- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1391. Check if There is a Valid Path in a Grid
- 1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree π
- 1443. Minimum Time to Collect All Apples in a Tree
- 1448. Count Good Nodes in Binary Tree
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1462. Course Schedule IV
- 1466. Reorder Routes to Make All Paths Lead to the City Zero
- 1469. Find All The Lonely Nodes π
- 1483. Kth Ancestor of a Tree Node
- 1485. Clone Binary Tree With Random Pointer π
- 1490. Clone N-ary Tree π
- 1519. Number of Nodes in the Sub-Tree With the Same Label
- 1559. Detect Cycles in 2D Grid
- 1568. Minimum Number of Days to Disconnect Island
- 1602. Find Nearest Right Node in Binary Tree π
- 1609. Even Odd Tree
- 1625. Lexicographically Smallest String After Applying Operations
- 1631. Path With Minimum Effort
- 1654. Minimum Jumps to Reach Home
- 1660. Correct a Binary Tree π
- 1730. Shortest Path to Get Food π
- 1740. Find Distance in a Binary Tree π
- 1765. Map of Highest Peak
- 1778. Shortest Path in a Hidden Grid π
- 1810. Minimum Path Cost in a Hidden Grid π
- 1905. Count Sub Islands
- 1926. Nearest Exit from Entrance in Maze
- 1970. Last Day Where You Can Still Cross
- 1971. Find if Path Exists in Graph
- 1992. Find All Groups of Farmland
- 1993. Operations on Tree
- 2039. The Time When the Network Becomes Idle
- 2045. Second Minimum Time to Reach Destination
- 2059. Minimum Operations to Convert Number
- 2092. Find All People With Secret
- 2101. Detonate the Maximum Bombs
- 2146. K Highest Ranked Items Within a Price Range
- 2174. Remove All Ones With Row and Column Flips II π
- 2192. All Ancestors of a Node in a Directed Acyclic Graph
- 2204. Distance to a Cycle in Undirected Graph π
- 2258. Escape the Spreading Fire
- 2277. Closest Node to Path in Tree π
- 2290. Minimum Obstacle Removal to Reach Corner
- 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
- 2328. Number of Increasing Paths in a Grid
- 2368. Reachable Nodes With Restrictions
- 2385. Amount of Time for Binary Tree to Be Infected
- 2415. Reverse Odd Levels of Binary Tree
- 2445. Number of Nodes With Value One π
- 2458. Height of Binary Tree After Subtree Removal Queries
- 2467. Most Profitable Path in a Tree
- 2471. Minimum Number of Operations to Sort a Binary Tree by Level
- 2477. Minimum Fuel Cost to Report to the Capital
- 2492. Minimum Score of a Path Between Two Cities
- 2493. Divide Nodes Into the Maximum Number of Groups
- 2503. Maximum Number of Points From Grid Queries
- 2556. Disconnect Path in a Binary Matrix by at Most One Flip
- 2577. Minimum Time to Visit a Cell In a Grid
- 2583. Kth Largest Sum in a Binary Tree
- 2596. Check Knight Tour Configuration
- 2608. Shortest Cycle in a Graph
- 2612. Minimum Reverse Operations
- 2617. Minimum Number of Visited Cells in a Grid
- 2641. Cousins in Binary Tree II
- 2658. Maximum Number of Fish in a Grid
- 2685. Count the Number of Complete Components
- 2773. Height of Special Binary Tree π
- 2812. Find the Safest Path in a Grid
- 2814. Minimum Time Takes to Reach Destination Without Drowning π
- 2850. Minimum Moves to Spread Stones Over Grid
- 2852. Sum of Remoteness of All Cells π
- 2858. Minimum Edge Reversals So Every Node Is Reachable
- 2998. Minimum Number of Operations to Make X and Y Equal
- 3015. Count the Number of Houses at a Certain Distance I
- 3123. Find Edges in Shortest Paths
- 3141. Maximum Hamming Distances π
- 3157. Find the Level of Tree with Minimum Sum π
- 3203. Find Minimum Diameter After Merging Two Trees
- 3235. Check if the Rectangle Corner Is Reachable
- 3243. Shortest Distance After Road Addition Queries I
- 3283. Maximum Number of Moves to Kill All Pawns
- 3286. Find a Safe Walk Through a Grid
- 3310. Remove Methods From Project
- 3372. Maximize the Number of Target Nodes After Connecting Trees I
- 3373. Maximize the Number of Target Nodes After Connecting Trees II
- 3383. Minimum Runes to Add to Cast Spell π
Bucket Sort
- 164. Maximum Gap
- 220. Contains Duplicate III
- 347. Top K Frequent Elements
- 451. Sort Characters By Frequency
- 692. Top K Frequent Words
- 912. Sort an Array
Combinatorics
- 62. Unique Paths
- 458. Poor Pigs
- 920. Number of Music Playlists
- 1201. Ugly Number III
- 1359. Count All Valid Pickup and Delivery Options
- 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1621. Number of Sets of K Non-Overlapping Line Segments
- 1641. Count Sorted Vowel Strings
- 1643. Kth Smallest Instructions
- 1735. Count Ways to Make Array With Product
- 1830. Minimum Number of Operations to Make String Sorted
- 1863. Sum of All Subset XOR Totals
- 1866. Number of Ways to Rearrange Sticks With K Sticks Visible
- 1916. Count Ways to Build Rooms in an Ant Colony
- 2063. Vowels of All Substrings
- 2221. Find Triangular Sum of an Array
- 2338. Count the Number of Ideal Arrays
- 2400. Number of Ways to Reach a Position After Exactly k Steps
- 2514. Count Anagrams
- 2539. Count the Number of Good Subsequences π
- 2597. The Number of Beautiful Subsets
- 2638. Count the Number of K-Free Subsets π
- 2842. Count K-Subsequences of a String With Maximum Beauty
- 2912. Number of Ways to Reach Destination in the Grid π
- 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
- 2954. Count the Number of Infection Sequences
- 2963. Count the Number of Good Partitions
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3128. Right Triangles
- 3154. Find Number of Ways to Reach the K-th Stair
- 3179. Find the N-th Value After K Seconds
- 3247. Number of Subsequences with Odd Sum π
- 3250. Find the Count of Monotonic Pairs I
- 3251. Find the Count of Monotonic Pairs II
- 3272. Find the Count of Good Integers
- 3312. Sorted GCD Pair Queries
- 3317. Find the Number of Possible Ways for an Event
- 3343. Count Number of Balanced Permutations
- 3352. Count K-Reducible Numbers Less Than N
Concurrency
- 1114. Print in Order
- 1115. Print FooBar Alternately
- 1116. Print Zero Even Odd
- 1117. Building H2O
- 1188. Design Bounded Blocking Queue π
- 1195. Fizz Buzz Multithreaded
- 1226. The Dining Philosophers
- 1242. Web Crawler Multithreaded π
- 1279. Traffic Light Controlled Intersection π
Counting
- 169. Majority Element
- 229. Majority Element II
- 299. Bulls and Cows
- 347. Top K Frequent Elements
- 358. Rearrange String k Distance Apart π
- 383. Ransom Note
- 387. First Unique Character in a String
- 451. Sort Characters By Frequency
- 594. Longest Harmonious Subsequence
- 621. Task Scheduler
- 692. Top K Frequent Words
- 767. Reorganize String
- 811. Subdomain Visit Count
- 819. Most Common Word
- 869. Reordered Power of 2
- 884. Uncommon Words from Two Sentences
- 900. RLE Iterator
- 914. X of a Kind in a Deck of Cards
- 923. 3Sum With Multiplicity
- 945. Minimum Increment to Make Array Unique
- 992. Subarrays with K Different Integers
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 1054. Distant Barcodes
- 1079. Letter Tile Possibilities
- 1090. Largest Values From Labels
- 1121. Divide Array Into Increasing Sequences π
- 1128. Number of Equivalent Domino Pairs
- 1160. Find Words That Can Be Formed by Characters
- 1189. Maximum Number of Balloons
- 1198. Find Smallest Common Element in All Rows π
- 1213. Intersection of Three Sorted Arrays π
- 1221. Split a String in Balanced Strings
- 1267. Count Servers that Communicate
- 1347. Minimum Number of Steps to Make Two Strings Anagram
- 1356. Sort Integers by The Number of 1 Bits
- 1365. How Many Numbers Are Smaller Than the Current Number
- 1366. Rank Teams by Votes
- 1370. Increasing Decreasing String
- 1394. Find Lucky Integer in an Array
- 1400. Construct K Palindrome Strings
- 1419. Minimum Number of Frogs Croaking
- 1481. Least Number of Unique Integers after K Removals
- 1497. Check If Array Pairs Are Divisible by k
- 1512. Number of Good Pairs
- 1519. Number of Nodes in the Sub-Tree With the Same Label
- 1603. Design Parking System
- 1612. Check If Two Expression Trees are Equivalent π
- 1657. Determine if Two Strings Are Close
- 1684. Count the Number of Consistent Strings
- 1704. Determine if String Halves Are Alike
- 1726. Tuple with Same Product
- 1737. Change Minimum Characters to Satisfy One of Three Conditions
- 1742. Maximum Number of Balls in a Box
- 1748. Sum of Unique Elements
- 1775. Equal Sum Arrays With Minimum Number of Operations
- 1781. Sum of Beauty of All Substrings
- 1790. Check if One String Swap Can Make Strings Equal
- 1814. Count Nice Pairs in an Array
- 1819. Number of Different Subsequences GCDs
- 1854. Maximum Population Year
- 1857. Largest Color Value in a Directed Graph
- 1876. Substrings of Size Three with Distinct Characters
- 1897. Redistribute Characters to Make All Strings Equal
- 1940. Longest Common Subsequence Between Sorted Arrays π
- 1941. Check if All Characters Have Equal Number of Occurrences
- 2001. Number of Pairs of Interchangeable Rectangles
- 2006. Count Number of Pairs With Absolute Difference K
- 2013. Detect Squares
- 2014. Longest Subsequence Repeated k Times
- 2023. Number of Pairs of Strings With Concatenation Equal to Target
- 2025. Maximum Number of Ways to Partition an Array
- 2029. Stone Game IX
- 2053. Kth Distinct String in an Array
- 2067. Number of Equal Count Substrings π
- 2068. Check Whether Two Strings are Almost Equivalent
- 2083. Substrings That Begin and End With the Same Letter π
- 2085. Count Common Words With One Occurrence
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 2148. Count Elements With Strictly Smaller and Greater Elements
- 2150. Find All Lonely Numbers in the Array
- 2168. Unique Substrings With Equal Digit Frequency π
- 2170. Minimum Operations to Make the Array Alternating
- 2182. Construct String With Repeat Limit
- 2186. Minimum Number of Steps to Make Two Strings Anagram II
- 2190. Most Frequent Number Following Key In an Array
- 2206. Divide Array Into Equal Pairs
- 2225. Find Players With Zero or One Losses
- 2244. Minimum Rounds to Complete All Tasks
- 2248. Intersection of Multiple Arrays
- 2268. Minimum Number of Keypresses π
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 2283. Check if Number Has Equal Digit Count and Digit Value
- 2284. Sender With Largest Word Count
- 2287. Rearrange Characters to Make Target String
- 2341. Maximum Number of Pairs in Array
- 2347. Best Poker Hand
- 2351. First Letter to Appear Twice
- 2364. Count Number of Bad Pairs
- 2384. Largest Palindromic Number
- 2404. Most Frequent Even Element
- 2416. Sum of Prefix Scores of Strings
- 2423. Remove Letter To Equalize Frequency
- 2442. Count Number of Distinct Integers After Reverse Operations
- 2453. Destroy Sequential Targets
- 2499. Minimum Total Cost to Make Arrays Unequal
- 2506. Count Pairs Of Similar Strings
- 2514. Count Anagrams
- 2526. Find Consecutive Integers from a Data Stream
- 2529. Maximum Count of Positive Integer and Negative Integer
- 2531. Make Number of Distinct Characters Equal
- 2539. Count the Number of Good Subsequences π
- 2547. Minimum Cost to Split an Array
- 2586. Count the Number of Vowel Strings in Range
- 2748. Number of Beautiful Pairs
- 2782. Number of Unique Categories π
- 2833. Furthest Point From Origin
- 2856. Minimum Array Length After Pair Removals
- 2870. Minimum Number of Operations to Make Array Empty
- 2950. Number of Divisible Substrings π
- 2955. Number of Same-End Substrings π
- 2960. Count Tested Devices After Test Operations
- 2981. Find Longest Special Substring That Occurs Thrice I
- 2982. Find Longest Special Substring That Occurs Thrice II
- 3005. Count Elements With Maximum Frequency
- 3016. Minimum Number of Pushes to Type Word II
- 3035. Maximum Palindromes After Operations
- 3039. Apply Operations to Make String Empty
- 3044. Most Frequent Prime
- 3046. Split the Array
- 3063. Linked List Frequency π
- 3071. Minimum Operations to Write the Letter Y on a Grid
- 3081. Replace Question Marks in String to Minimize Its Value
- 3084. Count Substrings Starting and Ending with Given Character
- 3085. Minimum Deletions to Make String K-Special
- 3128. Right Triangles
- 3137. Minimum Number of Operations to Make Word K-Periodic
- 3138. Minimum Length of Anagram Concatenation
- 3144. Minimum Substring Partition of Equal Character Frequency
- 3153. Sum of Digit Differences of All Pairs
- 3167. Better Compression of String π
- 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
- 3223. Minimum Length of String After Operations
- 3228. Maximum Number of Operations to Move Ones to the End
- 3238. Find the Number of Winning Players
- 3265. Count Almost Equal Pairs I
- 3267. Count Almost Equal Pairs II
- 3279. Maximum Total Area Occupied by Pistons π
- 3312. Sorted GCD Pair Queries
- 3335. Total Characters in String After Transformations I
- 3337. Total Characters in String After Transformations II
- 3371. Identify the Largest Outlier in an Array
Counting Sort
- 274. H-Index
- 561. Array Partition
- 912. Sort an Array
- 1051. Height Checker
- 1122. Relative Sort Array
- 1833. Maximum Ice Cream Bars
- 2037. Minimum Number of Moves to Seat Everyone
- 3088. Make String Anti-palindrome π
- 3189. Minimum Moves to Get a Peaceful Board π
Data Stream
- 170. Two Sum III - Data structure design π
- 295. Find Median from Data Stream
- 346. Moving Average from Data Stream π
- 359. Logger Rate Limiter π
- 362. Design Hit Counter π
- 642. Design Search Autocomplete System π
- 703. Kth Largest Element in a Stream
- 901. Online Stock Span
- 933. Number of Recent Calls
- 1032. Stream of Characters
- 1352. Product of the Last K Numbers
- 1429. First Unique Number π
- 1472. Design Browser History
- 1500. Design a File Sharing System π
- 1656. Design an Ordered Stream
- 1670. Design Front Middle Back Queue
- 1825. Finding MK Average
- 2034. Stock Price Fluctuation
- 2102. Sequentially Ordinal Rank Tracker
- 2526. Find Consecutive Integers from a Data Stream
Database
- 175. Combine Two Tables
- 176. Second Highest Salary
- 177. Nth Highest Salary
- 178. Rank Scores
- 180. Consecutive Numbers
- 181. Employees Earning More Than Their Managers
- 182. Duplicate Emails
- 183. Customers Who Never Order
- 184. Department Highest Salary
- 185. Department Top Three Salaries
- 196. Delete Duplicate Emails
- 197. Rising Temperature
- 262. Trips and Users
- 511. Game Play Analysis I
- 512. Game Play Analysis II π
- 534. Game Play Analysis III π
- 550. Game Play Analysis IV
- 569. Median Employee Salary π
- 570. Managers with at Least 5 Direct Reports
- 571. Find Median Given Frequency of Numbers π
- 574. Winning Candidate π
- 577. Employee Bonus
- 578. Get Highest Answer Rate Question π
- 579. Find Cumulative Salary of an Employee π
- 580. Count Student Number in Departments π
- 584. Find Customer Referee
- 585. Investments in 2016
- 586. Customer Placing the Largest Number of Orders
- 595. Big Countries
- 596. Classes More Than 5 Students
- 597. Friend Requests I Overall Acceptance Rate π
- 601. Human Traffic of Stadium
- 602. Friend Requests II Who Has the Most Friends
- 603. Consecutive Available Seats π
- 607. Sales Person
- 608. Tree Node
- 610. Triangle Judgement
- 612. Shortest Distance in a Plane π
- 613. Shortest Distance in a Line π
- 614. Second Degree Follower π
- 615. Average Salary Departments VS Company π
- 618. Students Report By Geography π
- 619. Biggest Single Number
- 620. Not Boring Movies
- 626. Exchange Seats
- 627. Swap Salary
- 1045. Customers Who Bought All Products
- 1050. Actors and Directors Who Cooperated At Least Three Times
- 1068. Product Sales Analysis I
- 1069. Product Sales Analysis II π
- 1070. Product Sales Analysis III
- 1075. Project Employees I
- 1076. Project Employees II π
- 1077. Project Employees III π
- 1082. Sales Analysis I π
- 1083. Sales Analysis II π
- 1084. Sales Analysis III
- 1097. Game Play Analysis V π
- 1098. Unpopular Books π
- 1107. New Users Daily Count π
- 1112. Highest Grade For Each Student π
- 1113. Reported Posts π
- 1126. Active Businesses π
- 1127. User Purchase Platform π
- 1132. Reported Posts II π
- 1141. User Activity for the Past 30 Days I
- 1142. User Activity for the Past 30 Days II π
- 1148. Article Views I
- 1149. Article Views II π
- 1158. Market Analysis I
- 1159. Market Analysis II π
- 1164. Product Price at a Given Date
- 1173. Immediate Food Delivery I π
- 1174. Immediate Food Delivery II
- 1179. Reformat Department Table
- 1193. Monthly Transactions I
- 1194. Tournament Winners π
- 1204. Last Person to Fit in the Bus
- 1205. Monthly Transactions II π
- 1211. Queries Quality and Percentage
- 1212. Team Scores in Football Tournament π
- 1225. Report Contiguous Dates π
- 1241. Number of Comments per Post π
- 1251. Average Selling Price
- 1264. Page Recommendations π
- 1270. All People Report to the Given Manager π
- 1280. Students and Examinations
- 1285. Find the Start and End Number of Continuous Ranges π
- 1294. Weather Type in Each Country π
- 1303. Find the Team Size π
- 1308. Running Total for Different Genders π
- 1321. Restaurant Growth
- 1322. Ads Performance π
- 1327. List the Products Ordered in a Period
- 1336. Number of Transactions per Visit π
- 1341. Movie Rating
- 1350. Students With Invalid Departments π
- 1355. Activity Participants π
- 1364. Number of Trusted Contacts of a Customer π
- 1369. Get the Second Most Recent Activity π
- 1378. Replace Employee ID With The Unique Identifier
- 1384. Total Sales Amount by Year π
- 1393. Capital GainLoss
- 1398. Customers Who Bought Products A and B but Not C π
- 1407. Top Travellers
- 1412. Find the Quiet Students in All Exams π
- 1421. NPV Queries π
- 1435. Create a Session Bar Chart π
- 1440. Evaluate Boolean Expression π
- 1445. Apples & Oranges π
- 1454. Active Users π
- 1459. Rectangles Area π
- 1468. Calculate Salaries π
- 1479. Sales by Day of the Week π
- 1484. Group Sold Products By The Date
- 1495. Friendly Movies Streamed Last Month π
- 1501. Countries You Can Safely Invest In π
- 1511. Customer Order Frequency π
- 1517. Find Users With Valid E-Mails
- 1527. Patients With a Condition
- 1532. The Most Recent Three Orders π
- 1543. Fix Product Name Format π
- 1549. The Most Recent Orders for Each Product π
- 1555. Bank Account Summary π
- 1565. Unique Orders and Customers Per Month π
- 1571. Warehouse Manager π
- 1581. Customer Who Visited but Did Not Make Any Transactions
- 1587. Bank Account Summary II
- 1596. The Most Frequently Ordered Products for Each Customer π
- 1607. Sellers With No Sales π
- 1613. Find the Missing IDs π
- 1623. All Valid Triplets That Can Represent a Country π
- 1633. Percentage of Users Attended a Contest
- 1635. Hopper Company Queries I π
- 1645. Hopper Company Queries II π
- 1651. Hopper Company Queries III π
- 1661. Average Time of Process per Machine
- 1667. Fix Names in a Table
- 1677. Product's Worth Over Invoices π
- 1683. Invalid Tweets
- 1693. Daily Leads and Partners
- 1699. Number of Calls Between Two Persons π
- 1709. Biggest Window Between Visits π
- 1715. Count Apples and Oranges π
- 1729. Find Followers Count
- 1731. The Number of Employees Which Report to Each Employee
- 1741. Find Total Time Spent by Each Employee
- 1747. Leetflex Banned Accounts π
- 1757. Recyclable and Low Fat Products
- 1767. Find the Subtasks That Did Not Execute π
- 1777. Product's Price for Each Store π
- 1783. Grand Slam Titles π
- 1789. Primary Department for Each Employee
- 1795. Rearrange Products Table
- 1809. Ad-Free Sessions π
- 1811. Find Interview Candidates π
- 1821. Find Customers With Positive Revenue this Year π
- 1831. Maximum Transaction Each Day π
- 1841. League Statistics π
- 1843. Suspicious Bank Accounts π
- 1853. Convert Date Format π
- 1867. Orders With Maximum Quantity Above Average π
- 1873. Calculate Special Bonus
- 1875. Group Employees of the Same Salary π
- 1890. The Latest Login in 2020
- 1892. Page Recommendations II π
- 1907. Count Salary Categories
- 1917. Leetcodify Friends Recommendations π
- 1919. Leetcodify Similar Friends π
- 1934. Confirmation Rate
- 1939. Users That Actively Request Confirmation Messages π
- 1949. Strong Friendship π
- 1951. All the Pairs With the Maximum Number of Common Followers π
- 1965. Employees With Missing Information
- 1972. First and Last Call On the Same Day π
- 1978. Employees Whose Manager Left the Company
- 1988. Find Cutoff Score for Each School π
- 1990. Count the Number of Experiments π
- 2004. The Number of Seniors and Juniors to Join the Company π
- 2010. The Number of Seniors and Juniors to Join the Company II π
- 2020. Number of Accounts That Did Not Stream π
- 2026. Low-Quality Problems π
- 2041. Accepted Candidates From the Interviews π
- 2051. The Category of Each Member in the Store π
- 2066. Account Balance π
- 2072. The Winner University π
- 2082. The Number of Rich Customers π
- 2084. Drop Type 1 Orders for Customers With Type 0 Orders π
- 2112. The Airport With the Most Traffic π
- 2118. Build the Equation π
- 2142. The Number of Passengers in Each Bus I π
- 2153. The Number of Passengers in Each Bus II π
- 2159. Order Two Columns Independently π
- 2173. Longest Winning Streak π
- 2175. The Change in Global Rankings π
- 2199. Finding the Topic of Each Post π
- 2205. The Number of Users That Are Eligible for Discount π
- 2228. Users With Two Purchases Within Seven Days π
- 2230. The Users That Are Eligible for Discount π
- 2238. Number of Times a Driver Was a Passenger π
- 2252. Dynamic Pivoting of a Table π
- 2253. Dynamic Unpivoting of a Table π
- 2292. Products With Three or More Orders in Two Consecutive Years π
- 2298. Tasks Count in the Weekend π
- 2308. Arrange Table by Gender π
- 2314. The First Day of the Maximum Recorded Degree in Each City π
- 2324. Product Sales Analysis IV π
- 2329. Product Sales Analysis V π
- 2339. All the Matches of the League π
- 2346. Compute the Rank as a Percentage π
- 2356. Number of Unique Subjects Taught by Each Teacher
- 2362. Generate the Invoice π
- 2372. Calculate the Influence of Each Salesperson π
- 2377. Sort the Olympic Table π
- 2388. Change Null Values in a Table to the Previous Value π
- 2394. Employees With Deductions π
- 2474. Customers With Strictly Increasing Purchases π
- 2480. Form a Chemical Bond π
- 2494. Merge Overlapping Events in the Same Hall π
- 2504. Concatenate the Name and the Profession π
- 2668. Find Latest Salaries π
- 2669. Count Artist Occurrences On Spotify Ranking List π
- 2686. Immediate Food Delivery III π
- 2687. Bikes Last Time Used π
- 2688. Find Active Users π
- 2701. Consecutive Transactions with Increasing Amounts π
- 2720. Popularity Percentage π
- 2738. Count Occurrences in Text π
- 2752. Customers with Maximum Number of Transactions on Consecutive Days π
- 2783. Flight Occupancy and Waitlist Analysis π
- 2793. Status of Flight Tickets π
- 2820. Election Results π
- 2837. Total Traveled Distance π
- 2853. Highest Salaries Difference π
- 2854. Rolling Average Steps π
- 2893. Calculate Orders Within Each Interval π
- 2922. Market Analysis III π
- 2978. Symmetric Coordinates π
- 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 π
- 2993. Friday Purchases I π
- 2994. Friday Purchases II π
- 2995. Viewers Turned Streamers π
- 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 π
- 3087. Find Trending Hashtags π
- 3089. Find Bursty Behavior π
- 3103. Find Trending Hashtags II π
- 3118. Friday Purchase III π
- 3124. Find Longest Calls π
- 3126. Server Utilization Time π
- 3140. Consecutive Available Seats II π
- 3150. Invalid Tweets II π
- 3156. Employee Task Duration and Concurrent Tasks π
- 3166. Calculate Parking Fees and Duration π
- 3172. Second Day Verification π
- 3182. Find Top Scoring Students π
- 3188. Find Top Scoring Students II π
- 3198. Find Cities in Each State π
- 3204. Bitwise User Permissions Analysis π
- 3214. Year on Year Growth Rate π
- 3220. Odd and Even Transactions
- 3230. Customer Purchasing Behavior Analysis π
- 3236. CEO Subordinate Hierarchy π
- 3246. Premier League Table Ranking π
- 3252. Premier League Table Ranking II π
- 3262. Find Overlapping Shifts π
- 3268. Find Overlapping Shifts II π
- 3278. Find Candidates for Data Scientist Position II π
- 3293. Calculate Product Final Price π
- 3308. Find Top Performing Driver π
- 3322. Premier League Table Ranking III π
- 3328. Find Cities in Each State II π
- 3338. Second Highest Salary II π
- 3358. Books with NULL Ratings π
- 3368. First Letter Capitalization π
- 3374. First Letter Capitalization II
- 3384. Team Dominance by Pass Success π
- 3390. Longest Team Pass Streak π
Depth-First Search
- 94. Binary Tree Inorder Traversal
- 98. Validate Binary Search Tree
- 99. Recover Binary Search Tree
- 100. Same Tree
- 101. Symmetric Tree
- 104. Maximum Depth of Binary Tree
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 113. Path Sum II
- 114. Flatten Binary Tree to Linked List
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 124. Binary Tree Maximum Path Sum
- 129. Sum Root to Leaf Numbers
- 130. Surrounded Regions
- 133. Clone Graph
- 144. Binary Tree Preorder Traversal
- 145. Binary Tree Postorder Traversal
- 156. Binary Tree Upside Down π
- 199. Binary Tree Right Side View
- 200. Number of Islands
- 207. Course Schedule
- 210. Course Schedule II
- 211. Design Add and Search Words Data Structure
- 226. Invert Binary Tree
- 230. Kth Smallest Element in a BST
- 235. Lowest Common Ancestor of a Binary Search Tree
- 236. Lowest Common Ancestor of a Binary Tree
- 250. Count Univalue Subtrees π
- 257. Binary Tree Paths
- 261. Graph Valid Tree π
- 269. Alien Dictionary π
- 270. Closest Binary Search Tree Value π
- 272. Closest Binary Search Tree Value II π
- 285. Inorder Successor in BST π
- 297. Serialize and Deserialize Binary Tree
- 298. Binary Tree Longest Consecutive Sequence π
- 302. Smallest Rectangle Enclosing Black Pixels π
- 310. Minimum Height Trees
- 314. Binary Tree Vertical Order Traversal π
- 323. Number of Connected Components in an Undirected Graph π
- 329. Longest Increasing Path in a Matrix
- 332. Reconstruct Itinerary
- 333. Largest BST Subtree π
- 337. House Robber III
- 339. Nested List Weight Sum π
- 341. Flatten Nested List Iterator
- 364. Nested List Weight Sum II π
- 365. Water and Jug Problem
- 366. Find Leaves of Binary Tree π
- 385. Mini Parser
- 386. Lexicographical Numbers
- 388. Longest Absolute File Path
- 399. Evaluate Division
- 404. Sum of Left Leaves
- 417. Pacific Atlantic Water Flow
- 419. Battleships in a Board
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 428. Serialize and Deserialize N-ary Tree π
- 430. Flatten a Multilevel Doubly Linked List
- 431. Encode N-ary Tree to Binary Tree π
- 437. Path Sum III
- 449. Serialize and Deserialize BST
- 463. Island Perimeter
- 472. Concatenated Words
- 490. The Maze π
- 499. The Maze III π
- 501. Find Mode in Binary Search Tree
- 505. The Maze II π
- 508. Most Frequent Subtree Sum
- 513. Find Bottom Left Tree Value
- 514. Freedom Trail
- 515. Find Largest Value in Each Tree Row
- 529. Minesweeper
- 530. Minimum Absolute Difference in BST
- 536. Construct Binary Tree from String π
- 538. Convert BST to Greater Tree
- 543. Diameter of Binary Tree
- 545. Boundary of Binary Tree π
- 547. Number of Provinces
- 549. Binary Tree Longest Consecutive Sequence II π
- 559. Maximum Depth of N-ary Tree
- 563. Binary Tree Tilt
- 565. Array Nesting
- 572. Subtree of Another Tree
- 582. Kill Process π
- 589. N-ary Tree Preorder Traversal
- 590. N-ary Tree Postorder Traversal
- 606. Construct String from Binary Tree
- 617. Merge Two Binary Trees
- 623. Add One Row to Tree
- 637. Average of Levels in Binary Tree
- 642. Design Search Autocomplete System π
- 652. Find Duplicate Subtrees
- 653. Two Sum IV - Input is a BST
- 655. Print Binary Tree
- 662. Maximum Width of Binary Tree
- 663. Equal Tree Partition π
- 666. Path Sum IV π
- 669. Trim a Binary Search Tree
- 671. Second Minimum Node In a Binary Tree
- 672. Bulb Switcher II
- 676. Implement Magic Dictionary
- 684. Redundant Connection
- 685. Redundant Connection II
- 687. Longest Univalue Path
- 690. Employee Importance
- 694. Number of Distinct Islands π
- 695. Max Area of Island
- 711. Number of Distinct Islands II π
- 721. Accounts Merge
- 733. Flood Fill
- 737. Sentence Similarity II π
- 742. Closest Leaf in a Binary Tree π
- 743. Network Delay Time
- 749. Contain Virus
- 753. Cracking the Safe
- 756. Pyramid Transition Matrix
- 765. Couples Holding Hands
- 778. Swim in Rising Water
- 783. Minimum Distance Between BST Nodes
- 785. Is Graph Bipartite
- 787. Cheapest Flights Within K Stops
- 797. All Paths From Source to Target
- 802. Find Eventual Safe States
- 814. Binary Tree Pruning
- 827. Making A Large Island
- 834. Sum of Distances in Tree
- 839. Similar String Groups
- 841. Keys and Rooms
- 851. Loud and Rich
- 863. All Nodes Distance K in Binary Tree
- 865. Smallest Subtree with all the Deepest Nodes
- 872. Leaf-Similar Trees
- 886. Possible Bipartition
- 897. Increasing Order Search Tree
- 924. Minimize Malware Spread
- 928. Minimize Malware Spread II
- 934. Shortest Bridge
- 938. Range Sum of BST
- 947. Most Stones Removed with Same Row or Column
- 951. Flip Equivalent Binary Trees
- 959. Regions Cut By Slashes
- 965. Univalued Binary Tree
- 968. Binary Tree Cameras
- 971. Flip Binary Tree To Match Preorder Traversal
- 979. Distribute Coins in Binary Tree
- 987. Vertical Order Traversal of a Binary Tree
- 988. Smallest String Starting From Leaf
- 993. Cousins in Binary Tree
- 1020. Number of Enclaves
- 1022. Sum of Root To Leaf Binary Numbers
- 1026. Maximum Difference Between Node and Ancestor
- 1028. Recover a Tree From Preorder Traversal
- 1034. Coloring A Border
- 1036. Escape a Large Maze
- 1038. Binary Search Tree to Greater Sum Tree
- 1042. Flower Planting With No Adjacent
- 1080. Insufficient Nodes in Root to Leaf Paths
- 1102. Path With Maximum Minimum Value π
- 1110. Delete Nodes And Return Forest
- 1120. Maximum Average Subtree π
- 1123. Lowest Common Ancestor of Deepest Leaves
- 1145. Binary Tree Coloring Game
- 1161. Maximum Level Sum of a Binary Tree
- 1192. Critical Connections in a Network
- 1202. Smallest String With Swaps
- 1203. Sort Items by Groups Respecting Dependencies
- 1214. Two Sum BSTs π
- 1233. Remove Sub-Folders from the Filesystem
- 1236. Web Crawler π
- 1242. Web Crawler Multithreaded π
- 1245. Tree Diameter π
- 1254. Number of Closed Islands
- 1257. Smallest Common Region π
- 1261. Find Elements in a Contaminated Binary Tree
- 1267. Count Servers that Communicate
- 1273. Delete Tree Nodes π
- 1302. Deepest Leaves Sum
- 1305. All Elements in Two Binary Search Trees
- 1306. Jump Game III
- 1315. Sum of Nodes with Even-Valued Grandparent
- 1319. Number of Operations to Make Network Connected
- 1325. Delete Leaves With a Given Value
- 1339. Maximum Product of Splitted Binary Tree
- 1361. Validate Binary Tree Nodes
- 1367. Linked List in Binary Tree
- 1372. Longest ZigZag Path in a Binary Tree
- 1373. Maximum Sum BST in Binary Tree
- 1376. Time Needed to Inform All Employees
- 1377. Frog Position After T Seconds
- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1382. Balance a Binary Search Tree
- 1391. Check if There is a Valid Path in a Grid
- 1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree π
- 1443. Minimum Time to Collect All Apples in a Tree
- 1448. Count Good Nodes in Binary Tree
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1462. Course Schedule IV
- 1466. Reorder Routes to Make All Paths Lead to the City Zero
- 1469. Find All The Lonely Nodes π
- 1483. Kth Ancestor of a Tree Node
- 1485. Clone Binary Tree With Random Pointer π
- 1490. Clone N-ary Tree π
- 1506. Find Root of N-Ary Tree π
- 1516. Move Sub-Tree of N-Ary Tree π
- 1519. Number of Nodes in the Sub-Tree With the Same Label
- 1522. Diameter of N-Ary Tree π
- 1530. Number of Good Leaf Nodes Pairs
- 1559. Detect Cycles in 2D Grid
- 1568. Minimum Number of Days to Disconnect Island
- 1600. Throne Inheritance
- 1612. Check If Two Expression Trees are Equivalent π
- 1625. Lexicographically Smallest String After Applying Operations
- 1631. Path With Minimum Effort
- 1644. Lowest Common Ancestor of a Binary Tree II π
- 1660. Correct a Binary Tree π
- 1666. Change the Root of a Binary Tree π
- 1676. Lowest Common Ancestor of a Binary Tree IV π
- 1722. Minimize Hamming Distance After Swap Operations
- 1740. Find Distance in a Binary Tree π
- 1743. Restore the Array From Adjacent Pairs
- 1766. Tree of Coprimes
- 1778. Shortest Path in a Hidden Grid π
- 1810. Minimum Path Cost in a Hidden Grid π
- 1820. Maximum Number of Accepted Invitations π
- 1858. Longest Word With All Prefixes π
- 1905. Count Sub Islands
- 1932. Merge BSTs to Create Single BST
- 1938. Maximum Genetic Difference Query
- 1970. Last Day Where You Can Still Cross
- 1971. Find if Path Exists in Graph
- 1973. Count Nodes Equal to Sum of Descendants π
- 1992. Find All Groups of Farmland
- 1993. Operations on Tree
- 2003. Smallest Missing Genetic Value in Each Subtree
- 2049. Count Nodes With the Highest Score
- 2092. Find All People With Secret
- 2096. Step-By-Step Directions From a Binary Tree Node to Another
- 2097. Valid Arrangement of Pairs
- 2101. Detonate the Maximum Bombs
- 2127. Maximum Employees to Be Invited to a Meeting
- 2192. All Ancestors of a Node in a Directed Acyclic Graph
- 2204. Distance to a Cycle in Undirected Graph π
- 2246. Longest Path With Different Adjacent Characters
- 2265. Count Nodes Equal to Average of Subtree
- 2277. Closest Node to Path in Tree π
- 2307. Check for Contradictions in Equations π
- 2313. Minimum Flips in Binary Tree to Get Result π
- 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
- 2322. Minimum Score After Removals on a Tree
- 2328. Number of Increasing Paths in a Grid
- 2331. Evaluate Boolean Binary Tree
- 2359. Find Closest Node to Given Two Nodes
- 2360. Longest Cycle in a Graph
- 2368. Reachable Nodes With Restrictions
- 2378. Choose Edges to Maximize Score in a Tree π
- 2385. Amount of Time for Binary Tree to Be Infected
- 2415. Reverse Odd Levels of Binary Tree
- 2440. Create Components With Same Value
- 2445. Number of Nodes With Value One π
- 2458. Height of Binary Tree After Subtree Removal Queries
- 2467. Most Profitable Path in a Tree
- 2476. Closest Nodes Queries in a Binary Search Tree
- 2477. Minimum Fuel Cost to Report to the Capital
- 2479. Maximum XOR of Two Non-Overlapping Subtrees π
- 2492. Minimum Score of a Path Between Two Cities
- 2538. Difference Between Maximum and Minimum Price Sum
- 2556. Disconnect Path in a Binary Matrix by at Most One Flip
- 2581. Count Number of Possible Root Nodes
- 2596. Check Knight Tour Configuration
- 2641. Cousins in Binary Tree II
- 2646. Minimize the Total Price of the Trips
- 2658. Maximum Number of Fish in a Grid
- 2685. Count the Number of Complete Components
- 2689. Extract Kth Character From The Rope Tree π
- 2764. Is Array a Preorder of Some βBinary Tree π
- 2773. Height of Special Binary Tree π
- 2791. Count Paths That Can Form a Palindrome in a Tree
- 2792. Count Nodes That Are Great Enough π
- 2852. Sum of Remoteness of All Cells π
- 2858. Minimum Edge Reversals So Every Node Is Reachable
- 2867. Count Valid Paths in a Tree
- 2872. Maximum Number of K-Divisible Components
- 2920. Maximum Points After Collecting Coins From All Nodes
- 2925. Maximum Score After Applying Operations on a Tree
- 2973. Find Number of Coins to Place in Tree Nodes
- 3004. Maximum Subtree of the Same Color π
- 3067. Count Pairs of Connectable Servers in a Weighted Tree Network
- 3123. Find Edges in Shortest Paths
- 3157. Find the Level of Tree with Minimum Sum π
- 3203. Find Minimum Diameter After Merging Two Trees
- 3235. Check if the Rectangle Corner Is Reachable
- 3241. Time Taken to Mark All Nodes
- 3249. Count the Number of Good Nodes
- 3310. Remove Methods From Project
- 3313. Find the Last Marked Nodes in Tree π
- 3319. K-th Largest Perfect Subtree Size in Binary Tree
- 3327. Check if DFS Strings Are Palindromes
- 3331. Find Subtree Sizes After Changes
- 3367. Maximize Sum of Weights after Edge Removals
- 3372. Maximize the Number of Target Nodes After Connecting Trees I
- 3373. Maximize the Number of Target Nodes After Connecting Trees II
- 3383. Minimum Runes to Add to Cast Spell π
Design
- 146. LRU Cache
- 155. Min Stack
- 170. Two Sum III - Data structure design π
- 173. Binary Search Tree Iterator
- 208. Implement Trie (Prefix Tree)
- 211. Design Add and Search Words Data Structure
- 225. Implement Stack using Queues
- 232. Implement Queue using Stacks
- 244. Shortest Word Distance II π
- 251. Flatten 2D Vector π
- 271. Encode and Decode Strings π
- 281. Zigzag Iterator π
- 284. Peeking Iterator
- 288. Unique Word Abbreviation π
- 295. Find Median from Data Stream
- 297. Serialize and Deserialize Binary Tree
- 303. Range Sum Query - Immutable
- 304. Range Sum Query 2D - Immutable
- 307. Range Sum Query - Mutable
- 308. Range Sum Query 2D - Mutable π
- 341. Flatten Nested List Iterator
- 346. Moving Average from Data Stream π
- 348. Design Tic-Tac-Toe π
- 352. Data Stream as Disjoint Intervals
- 353. Design Snake Game π
- 355. Design Twitter
- 359. Logger Rate Limiter π
- 362. Design Hit Counter π
- 379. Design Phone Directory π
- 380. Insert Delete GetRandom O(1)
- 381. Insert Delete GetRandom O(1) - Duplicates allowed
- 384. Shuffle an Array
- 431. Encode N-ary Tree to Binary Tree π
- 432. All O`one Data Structure
- 449. Serialize and Deserialize BST
- 460. LFU Cache
- 535. Encode and Decode TinyURL
- 588. Design In-Memory File System π
- 604. Design Compressed String Iterator π
- 622. Design Circular Queue
- 631. Design Excel Sum Formula π
- 635. Design Log Storage System π
- 641. Design Circular Deque
- 642. Design Search Autocomplete System π
- 676. Implement Magic Dictionary
- 677. Map Sum Pairs
- 703. Kth Largest Element in a Stream
- 705. Design HashSet
- 706. Design HashMap
- 707. Design Linked List
- 715. Range Module
- 716. Max Stack π
- 729. My Calendar I
- 731. My Calendar II
- 732. My Calendar III
- 745. Prefix and Suffix Search
- 855. Exam Room
- 895. Maximum Frequency Stack
- 900. RLE Iterator
- 901. Online Stock Span
- 911. Online Election
- 919. Complete Binary Tree Inserter
- 933. Number of Recent Calls
- 981. Time Based Key-Value Store
- 1032. Stream of Characters
- 1146. Snapshot Array
- 1157. Online Majority Element In Subarray
- 1166. Design File System π
- 1172. Dinner Plate Stacks
- 1206. Design Skiplist
- 1244. Design A Leaderboard π
- 1261. Find Elements in a Contaminated Binary Tree
- 1286. Iterator for Combination
- 1348. Tweet Counts Per Frequency
- 1352. Product of the Last K Numbers
- 1357. Apply Discount Every n Orders
- 1381. Design a Stack With Increment Operation
- 1396. Design Underground System
- 1429. First Unique Number π
- 1472. Design Browser History
- 1476. Subrectangle Queries
- 1483. Kth Ancestor of a Tree Node
- 1500. Design a File Sharing System π
- 1570. Dot Product of Two Sparse Vectors π
- 1586. Binary Search Tree Iterator II π
- 1600. Throne Inheritance
- 1603. Design Parking System
- 1622. Fancy Sequence
- 1628. Design an Expression Tree With Evaluate Function π
- 1656. Design an Ordered Stream
- 1670. Design Front Middle Back Queue
- 1756. Design Most Recently Used Queue π
- 1797. Design Authentication Manager
- 1804. Implement Trie II (Prefix Tree) π
- 1825. Finding MK Average
- 1845. Seat Reservation Manager
- 1865. Finding Pairs With a Certain Sum
- 1912. Design Movie Rental System
- 1993. Operations on Tree
- 2013. Detect Squares
- 2034. Stock Price Fluctuation
- 2043. Simple Bank System
- 2069. Walking Robot Simulation II
- 2080. Range Frequency Queries
- 2102. Sequentially Ordinal Rank Tracker
- 2166. Design Bitset
- 2227. Encrypt and Decrypt Strings
- 2241. Design an ATM Machine
- 2254. Design Video Sharing Platform π
- 2276. Count Integers in Intervals
- 2286. Booking Concert Tickets in Groups
- 2296. Design a Text Editor
- 2336. Smallest Number in Infinite Set
- 2349. Design a Number Container System
- 2353. Design a Food Rating System
- 2408. Design SQL π
- 2424. Longest Uploaded Prefix
- 2502. Design Memory Allocator
- 2526. Find Consecutive Integers from a Data Stream
- 2590. Design a Todo List π
- 2642. Design Graph With Shortest Path Calculator
- 2671. Frequency Tracker
- 3242. Design Neighbor Sum Service
Divide and Conquer
- 4. Median of Two Sorted Arrays
- 23. Merge k Sorted Lists
- 53. Maximum Subarray
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 108. Convert Sorted Array to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- 148. Sort List
- 169. Majority Element
- 190. Reverse Bits
- 191. Number of 1 Bits
- 215. Kth Largest Element in an Array
- 218. The Skyline Problem
- 240. Search a 2D Matrix II
- 315. Count of Smaller Numbers After Self
- 324. Wiggle Sort II
- 327. Count of Range Sum
- 347. Top K Frequent Elements
- 372. Super Pow
- 395. Longest Substring with At Least K Repeating Characters
- 427. Construct Quad Tree
- 493. Reverse Pairs
- 558. Logical OR of Two Binary Grids Represented as Quad-Trees
- 654. Maximum Binary Tree
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 912. Sort an Array
- 918. Maximum Sum Circular Subarray
- 932. Beautiful Array
- 973. K Closest Points to Origin
- 1274. Number of Ships in a Rectangle π
- 1382. Balance a Binary Search Tree
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1649. Create Sorted Array through Instructions
- 1738. Find Kth Largest XOR Coordinate Value
- 1763. Longest Nice Substring
- 1982. Find Array Given Subset Sums
- 1985. Find the Kth Largest Integer in the Array
- 2031. Count Subarrays With More Ones Than Zeros π
- 2179. Count Good Triplets in an Array
- 2343. Query Kth Smallest Trimmed Number
- 2407. Longest Increasing Subsequence II
- 2426. Number of Pairs Satisfying Inequality
- 2519. Count the Number of K-Big Indices π
- 2613. Beautiful Pairs π
- 2792. Count Nodes That Are Great Enough π
- 3109. Find the Index of Permutation π
- 3165. Maximum Sum of Subsequence With Non-adjacent Elements
Doubly-Linked List
- 146. LRU Cache
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 430. Flatten a Multilevel Doubly Linked List
- 432. All O`one Data Structure
- 460. LFU Cache
- 716. Max Stack π
- 1472. Design Browser History
- 1797. Design Authentication Manager
- 2296. Design a Text Editor
- 3263. Convert Doubly Linked List to Array I π
- 3294. Convert Doubly Linked List to Array II π
Dynamic Programming
- 5. Longest Palindromic Substring
- 10. Regular Expression Matching
- 22. Generate Parentheses
- 32. Longest Valid Parentheses
- 42. Trapping Rain Water
- 44. Wildcard Matching
- 45. Jump Game II
- 53. Maximum Subarray
- 55. Jump Game
- 62. Unique Paths
- 63. Unique Paths II
- 64. Minimum Path Sum
- 70. Climbing Stairs
- 72. Edit Distance
- 85. Maximal Rectangle
- 87. Scramble String
- 91. Decode Ways
- 95. Unique Binary Search Trees II
- 96. Unique Binary Search Trees
- 97. Interleaving String
- 115. Distinct Subsequences
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 120. Triangle
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 123. Best Time to Buy and Sell Stock III
- 124. Binary Tree Maximum Path Sum
- 131. Palindrome Partitioning
- 132. Palindrome Partitioning II
- 139. Word Break
- 140. Word Break II
- 152. Maximum Product Subarray
- 174. Dungeon Game
- 188. Best Time to Buy and Sell Stock IV
- 198. House Robber
- 213. House Robber II
- 221. Maximal Square
- 233. Number of Digit One
- 241. Different Ways to Add Parentheses
- 256. Paint House π
- 264. Ugly Number II
- 265. Paint House II π
- 276. Paint Fence π
- 279. Perfect Squares
- 294. Flip Game II π
- 300. Longest Increasing Subsequence
- 309. Best Time to Buy and Sell Stock with Cooldown
- 312. Burst Balloons
- 313. Super Ugly Number
- 322. Coin Change
- 329. Longest Increasing Path in a Matrix
- 333. Largest BST Subtree π
- 337. House Robber III
- 338. Counting Bits
- 343. Integer Break
- 351. Android Unlock Patterns π
- 354. Russian Doll Envelopes
- 357. Count Numbers with Unique Digits
- 361. Bomb Enemy π
- 368. Largest Divisible Subset
- 375. Guess Number Higher or Lower II
- 376. Wiggle Subsequence
- 377. Combination Sum IV
- 392. Is Subsequence
- 396. Rotate Function
- 397. Integer Replacement
- 403. Frog Jump
- 410. Split Array Largest Sum
- 413. Arithmetic Slices
- 416. Partition Equal Subset Sum
- 418. Sentence Screen Fitting π
- 435. Non-overlapping Intervals
- 446. Arithmetic Slices II - Subsequence
- 458. Poor Pigs
- 464. Can I Win
- 465. Optimal Account Balancing π
- 466. Count The Repetitions
- 467. Unique Substrings in Wraparound String
- 471. Encode String with Shortest Length π
- 472. Concatenated Words
- 473. Matchsticks to Square
- 474. Ones and Zeroes
- 486. Predict the Winner
- 487. Max Consecutive Ones II π
- 488. Zuma Game
- 494. Target Sum
- 509. Fibonacci Number
- 514. Freedom Trail
- 516. Longest Palindromic Subsequence
- 518. Coin Change II
- 526. Beautiful Arrangement
- 542. 1 Matrix
- 546. Remove Boxes
- 552. Student Attendance Record II
- 553. Optimal Division
- 562. Longest Line of Consecutive One in Matrix π
- 568. Maximum Vacation Days π
- 576. Out of Boundary Paths
- 583. Delete Operation for Two Strings
- 600. Non-negative Integers without Consecutive Ones
- 629. K Inverse Pairs Array
- 634. Find the Derangement of An Array π
- 638. Shopping Offers
- 639. Decode Ways II
- 646. Maximum Length of Pair Chain
- 647. Palindromic Substrings
- 650. 2 Keys Keyboard
- 651. 4 Keys Keyboard π
- 656. Coin Path π
- 664. Strange Printer
- 673. Number of Longest Increasing Subsequence
- 678. Valid Parenthesis String
- 688. Knight Probability in Chessboard
- 689. Maximum Sum of 3 Non-Overlapping Subarrays
- 691. Stickers to Spell Word
- 698. Partition to K Equal Sum Subsets
- 712. Minimum ASCII Delete Sum for Two Strings
- 714. Best Time to Buy and Sell Stock with Transaction Fee
- 718. Maximum Length of Repeated Subarray
- 727. Minimum Window Subsequence π
- 730. Count Different Palindromic Subsequences
- 740. Delete and Earn
- 741. Cherry Pickup
- 746. Min Cost Climbing Stairs
- 750. Number Of Corner Rectangles π
- 764. Largest Plus Sign
- 773. Sliding Puzzle
- 787. Cheapest Flights Within K Stops
- 788. Rotated Digits
- 790. Domino and Tromino Tiling
- 792. Number of Matching Subsequences
- 799. Champagne Tower
- 801. Minimum Swaps To Make Sequences Increasing
- 805. Split Array With Same Average
- 808. Soup Servings
- 813. Largest Sum of Averages
- 818. Race Car
- 823. Binary Trees With Factors
- 828. Count Unique Characters of All Substrings of a Given String
- 834. Sum of Distances in Tree
- 837. New 21 Game
- 838. Push Dominoes
- 845. Longest Mountain in Array
- 847. Shortest Path Visiting All Nodes
- 871. Minimum Number of Refueling Stops
- 873. Length of Longest Fibonacci Subsequence
- 877. Stone Game
- 879. Profitable Schemes
- 887. Super Egg Drop
- 894. All Possible Full Binary Trees
- 898. Bitwise ORs of Subarrays
- 902. Numbers At Most N Given Digit Set
- 903. Valid Permutations for DI Sequence
- 907. Sum of Subarray Minimums
- 913. Cat and Mouse
- 918. Maximum Sum Circular Subarray
- 920. Number of Music Playlists
- 926. Flip String to Monotone Increasing
- 931. Minimum Falling Path Sum
- 935. Knight Dialer
- 940. Distinct Subsequences II
- 943. Find the Shortest Superstring
- 956. Tallest Billboard
- 960. Delete Columns to Make Sorted III
- 964. Least Operators to Express Number
- 968. Binary Tree Cameras
- 975. Odd Even Jump
- 978. Longest Turbulent Subarray
- 983. Minimum Cost For Tickets
- 996. Number of Squareful Arrays
- 1000. Minimum Cost to Merge Stones
- 1012. Numbers With Repeated Digits
- 1014. Best Sightseeing Pair
- 1024. Video Stitching
- 1025. Divisor Game
- 1027. Longest Arithmetic Subsequence
- 1031. Maximum Sum of Two Non-Overlapping Subarrays
- 1035. Uncrossed Lines
- 1039. Minimum Score Triangulation of Polygon
- 1043. Partition Array for Maximum Sum
- 1048. Longest String Chain
- 1049. Last Stone Weight II
- 1062. Longest Repeating Substring π
- 1066. Campus Bikes II π
- 1067. Digit Count in Range π
- 1092. Shortest Common Supersequence
- 1105. Filling Bookcase Shelves
- 1125. Smallest Sufficient Team
- 1130. Minimum Cost Tree From Leaf Values
- 1137. N-th Tribonacci Number
- 1139. Largest 1-Bordered Square
- 1140. Stone Game II
- 1143. Longest Common Subsequence
- 1147. Longest Chunked Palindrome Decomposition
- 1155. Number of Dice Rolls With Target Sum
- 1162. As Far from Land as Possible
- 1182. Shortest Distance to Target Color π
- 1186. Maximum Subarray Sum with One Deletion
- 1187. Make Array Strictly Increasing
- 1191. K-Concatenation Maximum Sum
- 1216. Valid Palindrome III π
- 1218. Longest Arithmetic Subsequence of Given Difference
- 1220. Count Vowels Permutation
- 1223. Dice Roll Simulation
- 1227. Airplane Seat Assignment Probability
- 1230. Toss Strange Coins π
- 1235. Maximum Profit in Job Scheduling
- 1246. Palindrome Removal π
- 1255. Maximum Score Words Formed by Letters
- 1259. Handshakes That Don't Cross π
- 1262. Greatest Sum Divisible by Three
- 1269. Number of Ways to Stay in the Same Place After Some Steps
- 1277. Count Square Submatrices with All Ones
- 1278. Palindrome Partitioning III
- 1289. Minimum Falling Path Sum II
- 1301. Number of Paths with Max Score
- 1312. Minimum Insertion Steps to Make a String Palindrome
- 1320. Minimum Distance to Type a Word Using Two Fingers
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1335. Minimum Difficulty of a Job Schedule
- 1340. Jump Game V
- 1349. Maximum Students Taking Exam
- 1359. Count All Valid Pickup and Delivery Options
- 1363. Largest Multiple of Three
- 1372. Longest ZigZag Path in a Binary Tree
- 1373. Maximum Sum BST in Binary Tree
- 1387. Sort Integers by The Power Value
- 1388. Pizza With 3n Slices
- 1395. Count Number of Teams
- 1397. Find All Good Strings
- 1402. Reducing Dishes
- 1406. Stone Game III
- 1411. Number of Ways to Paint N Γ 3 Grid
- 1416. Restore The Array
- 1420. Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1425. Constrained Subsequence Sum
- 1434. Number of Ways to Wear Different Hats to Each Other
- 1444. Number of Ways of Cutting a Pizza
- 1449. Form Largest Integer With Digits That Add up to Target
- 1458. Max Dot Product of Two Subsequences
- 1463. Cherry Pickup II
- 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1473. Paint House III
- 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1478. Allocate Mailboxes
- 1483. Kth Ancestor of a Tree Node
- 1493. Longest Subarray of 1's After Deleting One Element
- 1494. Parallel Courses II
- 1504. Count Submatrices With All Ones
- 1510. Stone Game IV
- 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
- 1531. String Compression II
- 1537. Get the Maximum Score
- 1547. Minimum Cost to Cut a Stick
- 1548. The Most Similar Path in a Graph π
- 1553. Minimum Number of Days to Eat N Oranges
- 1563. Stone Game V
- 1567. Maximum Length of Subarray With Positive Product
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1575. Count All Possible Routes
- 1578. Minimum Time to Make Rope Colorful
- 1594. Maximum Non Negative Product in a Matrix
- 1595. Minimum Cost to Connect Two Groups of Points
- 1611. Minimum One Bit Operations to Make Integers Zero
- 1617. Count Subtrees With Max Distance Between Cities
- 1621. Number of Sets of K Non-Overlapping Line Segments
- 1626. Best Team With No Conflicts
- 1638. Count Substrings That Differ by One Character
- 1639. Number of Ways to Form a Target String Given a Dictionary
- 1641. Count Sorted Vowel Strings
- 1643. Kth Smallest Instructions
- 1653. Minimum Deletions to Make String Balanced
- 1654. Minimum Jumps to Reach Home
- 1655. Distribute Repeating Integers
- 1659. Maximize Grid Happiness
- 1668. Maximum Repeating Substring
- 1671. Minimum Number of Removals to Make Mountain Array
- 1681. Minimum Incompatibility
- 1682. Longest Palindromic Subsequence II π
- 1687. Delivering Boxes from Storage to Ports
- 1690. Stone Game VII
- 1691. Maximum Height by Stacking Cuboids
- 1692. Count Ways to Distribute Candies π
- 1696. Jump Game VI
- 1714. Sum Of Special Evenly-Spaced Elements In Array π
- 1723. Find Minimum Time to Finish All Jobs
- 1728. Cat and Mouse II
- 1735. Count Ways to Make Array With Product
- 1745. Palindrome Partitioning IV
- 1746. Maximum Subarray Sum After One Operation π
- 1749. Maximum Absolute Sum of Any Subarray
- 1751. Maximum Number of Events That Can Be Attended II
- 1755. Closest Subsequence Sum
- 1770. Maximum Score from Performing Multiplication Operations
- 1771. Maximize Palindrome Length From Subsequences
- 1774. Closest Dessert Cost
- 1786. Number of Restricted Paths From First to Last Node
- 1787. Make the XOR of All Segments Equal to Zero
- 1799. Maximize Score After N Operations
- 1815. Maximum Number of Groups Getting Fresh Donuts
- 1824. Minimum Sideway Jumps
- 1857. Largest Color Value in a Directed Graph
- 1866. Number of Ways to Rearrange Sticks With K Sticks Visible
- 1871. Jump Game VII
- 1872. Stone Game VIII
- 1879. Minimum XOR Sum of Two Arrays
- 1883. Minimum Skips to Arrive at Meeting On Time
- 1884. Egg Drop With 2 Eggs and N Floors
- 1888. Minimum Number of Flips to Make the Binary String Alternating
- 1896. Minimum Cost to Change the Final Value of Expression
- 1900. The Earliest and Latest Rounds Where Players Compete
- 1908. Game of Nim π
- 1911. Maximum Alternating Subsequence Sum
- 1916. Count Ways to Build Rooms in an Ant Colony
- 1928. Minimum Cost to Reach Destination in Time
- 1931. Painting a Grid With Three Different Colors
- 1937. Maximum Number of Points with Cost
- 1947. Maximum Compatibility Score Sum
- 1955. Count Number of Special Subsequences
- 1959. Minimum Total Space Wasted With K Resizing Operations
- 1976. Number of Ways to Arrive at Destination
- 1977. Number of Ways to Separate Numbers
- 1981. Minimize the Difference Between Target and Chosen Elements
- 1986. Minimum Number of Work Sessions to Finish the Tasks
- 1987. Number of Unique Good Subsequences
- 1994. The Number of Good Subsets
- 1997. First Day Where You Have Been in All the Rooms
- 2002. Maximum Product of the Length of Two Palindromic Subsequences
- 2003. Smallest Missing Genetic Value in Each Subtree
- 2005. Subtree Removal Game with Fibonacci Tree π
- 2008. Maximum Earnings From Taxi
- 2019. The Score of Students Solving Math Expression
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2036. Maximum Alternating Subarray Sum π
- 2050. Parallel Courses III
- 2052. Minimum Cost to Separate Sentence Into Rows π
- 2054. Two Best Non-Overlapping Events
- 2060. Check if an Original String Exists Given Two Encoded Strings
- 2063. Vowels of All Substrings
- 2086. Minimum Number of Food Buckets to Feed the Hamsters
- 2088. Count Fertile Pyramids in a Land
- 2100. Find Good Days to Rob the Bank
- 2110. Number of Smooth Descent Periods of a Stock
- 2140. Solving Questions With Brainpower
- 2143. Choose Numbers From Two Arrays in Range π
- 2147. Number of Ways to Divide a Long Corridor
- 2152. Minimum Number of Lines to Cover Points π
- 2163. Minimum Difference in Sums After Removal of Elements
- 2167. Minimum Time to Remove All Cars Containing Illegal Goods
- 2172. Maximum AND Sum of Array
- 2184. Number of Ways to Build Sturdy Brick Wall π
- 2188. Minimum Time to Finish the Race
- 2189. Number of Ways to Build House of Cards π
- 2209. Minimum White Tiles After Covering With Carpets
- 2218. Maximum Value of K Coins From Piles
- 2222. Number of Ways to Select Buildings
- 2247. Maximum Cost of Trip With K Highways π
- 2262. Total Appeal of A String
- 2263. Make Array Non-decreasing or Non-increasing π
- 2266. Count Number of Texts
- 2267. Check if There Is a Valid Parentheses String Path
- 2272. Substring With Largest Variance
- 2291. Maximum Profit From Trading Stocks π
- 2297. Jump Game VIII π
- 2304. Minimum Path Cost in a Grid
- 2305. Fair Distribution of Cookies
- 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 π
- 2318. Number of Distinct Roll Sequences
- 2320. Count Number of Ways to Place Houses
- 2321. Maximum Score Of Spliced Array
- 2327. Number of People Aware of a Secret
- 2328. Number of Increasing Paths in a Grid
- 2338. Count the Number of Ideal Arrays
- 2355. Maximum Number of Books You Can Take π
- 2361. Minimum Costs Using the Train Line π
- 2369. Check if There is a Valid Partition For The Array
- 2370. Longest Ideal Subsequence
- 2376. Count Special Integers
- 2378. Choose Edges to Maximize Score in a Tree π
- 2380. Time Needed to Rearrange a Binary String
- 2393. Count Strictly Increasing Subarrays π
- 2400. Number of Ways to Reach a Position After Exactly k Steps
- 2403. Minimum Time to Kill All Monsters π
- 2407. Longest Increasing Subsequence II
- 2420. Find All Good Indices
- 2430. Maximum Deletions on a String
- 2431. Maximize Total Tastiness of Purchased Fruits π
- 2435. Paths in Matrix Whose Sum Is Divisible by K
- 2436. Minimum Split Into Subarrays With GCD Greater Than One π
- 2439. Minimize Maximum of Array
- 2463. Minimum Total Distance Traveled
- 2464. Minimum Subarrays in a Valid Split π
- 2466. Count Ways To Build Good Strings
- 2472. Maximum Number of Non-overlapping Palindrome Substrings
- 2478. Number of Beautiful Partitions
- 2484. Count Palindromic Subsequences
- 2495. Number of Subarrays Having Even Product π
- 2501. Longest Square Streak in an Array
- 2510. Check if There is a Path With Equal Number of 0's And 1's π
- 2518. Number of Great Partitions
- 2522. Partition String Into Substrings With Values at Most K
- 2533. Number of Good Binary Strings π
- 2538. Difference Between Maximum and Minimum Price Sum
- 2547. Minimum Cost to Split an Array
- 2552. Count Increasing Quadruplets
- 2556. Disconnect Path in a Binary Matrix by at Most One Flip
- 2571. Minimum Operations to Reduce an Integer to 0
- 2572. Count the Number of Square-Free Subsets
- 2573. Find the String with
- 2581. Count Number of Possible Root Nodes
- 2585. Number of Ways to Earn Points
- 2597. The Number of Beautiful Subsets
- 2606. Find the Substring With Maximum Cost
- 2617. Minimum Number of Visited Cells in a Grid
- 2638. Count the Number of K-Free Subsets π
- 2645. Minimum Additions to Make Valid String
- 2646. Minimize the Total Price of the Trips
- 2673. Make Costs of Paths Equal in a Binary Tree
- 2681. Power of Heroes
- 2684. Maximum Number of Moves in a Grid
- 2707. Extra Characters in a String
- 2708. Maximum Strength of a Group
- 2712. Minimum Cost to Make All Characters Equal
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2719. Count of Integers
- 2741. Special Permutations
- 2742. Painting the Walls
- 2745. Construct the Longest New String
- 2746. Decremental String Concatenation
- 2750. Ways to Split Array Into Good Subarrays
- 2767. Partition String Into Minimum Beautiful Substrings
- 2770. Maximum Number of Jumps to Reach the Last Index
- 2771. Longest Non-decreasing Subarray From Two Arrays
- 2786. Visit Array Positions to Maximize Score
- 2787. Ways to Express an Integer as Sum of Powers
- 2791. Count Paths That Can Form a Palindrome in a Tree
- 2801. Count Stepping Numbers in Range
- 2809. Minimum Time to Make Array Sum At Most x
- 2811. Check if it is Possible to Split Array
- 2826. Sorting Three Groups
- 2827. Number of Beautiful Integers in the Range
- 2830. Maximize the Profit as the Salesman
- 2836. Maximize Value of Function in a Ball Passing Game
- 2850. Minimum Moves to Spread Stones Over Grid
- 2851. String Transformation
- 2858. Minimum Edge Reversals So Every Node Is Reachable
- 2867. Count Valid Paths in a Tree
- 2876. Count Visited Nodes in a Directed Graph
- 2892. Minimizing Array After Replacing Pairs With Their Product π
- 2896. Apply Operations to Make Two Strings Equal
- 2900. Longest Unequal Adjacent Groups Subsequence I
- 2901. Longest Unequal Adjacent Groups Subsequence II
- 2902. Count of Sub-Multisets With Bounded Sum
- 2911. Minimum Changes to Make K Semi-palindromes
- 2912. Number of Ways to Reach Destination in the Grid π
- 2915. Length of the Longest Subsequence That Sums to Target
- 2916. Subarrays Distinct Element Sum of Squares II
- 2919. Minimum Increment Operations to Make Array Beautiful
- 2920. Maximum Points After Collecting Coins From All Nodes
- 2925. Maximum Score After Applying Operations on a Tree
- 2926. Maximum Balanced Subsequence Sum
- 2930. Number of Strings Which Can Be Rearranged to Contain Substring
- 2944. Minimum Number of Coins for Fruits
- 2945. Find Maximum Non-decreasing Array Length
- 2957. Remove Adjacent Almost-Equal Characters
- 2969. Minimum Number of Coins for Fruits II π
- 2973. Find Number of Coins to Place in Tree Nodes
- 2977. Minimum Cost to Convert String II
- 2979. Most Expensive Item That Can Not Be Bought π
- 2992. Number of Self-Divisible Permutations π
- 2998. Minimum Number of Operations to Make X and Y Equal
- 2999. Count the Number of Powerful Integers
- 3003. Maximize the Number of Partitions After Operations
- 3004. Maximum Subtree of the Same Color π
- 3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
- 3018. Maximum Number of Removal Queries That Can Be Processed I π
- 3032. Count Numbers With Unique Digits II π
- 3040. Maximum Number of Operations With the Same Score II
- 3041. Maximize Consecutive Elements in an Array After Modification
- 3068. Find the Maximum Sum of Node Values
- 3077. Maximum Strength of K Disjoint Subarrays
- 3082. Find the Sum of the Power of All Subsequences
- 3098. Find the Sum of Subsequence Powers
- 3117. Minimum Sum of Values by Dividing Array
- 3122. Minimum Number of Operations to Satisfy Conditions
- 3129. Find All Possible Stable Binary Arrays I
- 3130. Find All Possible Stable Binary Arrays II
- 3135. Equalize Strings by Adding or Removing Characters at Ends π
- 3144. Minimum Substring Partition of Equal Character Frequency
- 3148. Maximum Difference Score in a Grid
- 3149. Find the Minimum Cost Array Permutation
- 3154. Find Number of Ways to Reach the K-th Stair
- 3165. Maximum Sum of Subsequence With Non-adjacent Elements
- 3176. Find the Maximum Length of a Good Subsequence I
- 3177. Find the Maximum Length of a Good Subsequence II
- 3180. Maximum Total Reward Using Operations I
- 3181. Maximum Total Reward Using Operations II
- 3183. The Number of Ways to Make the Sum π
- 3186. Maximum Total Damage With Spell Casting
- 3192. Minimum Operations to Make Binary Array Elements Equal to One II
- 3193. Count the Number of Inversions
- 3196. Maximize Total Cost of Alternating Subarrays
- 3201. Find the Maximum Length of Valid Subsequence I
- 3202. Find the Maximum Length of Valid Subsequence II
- 3205. Maximum Array Hopping Score I π
- 3213. Construct String with Minimum Cost
- 3218. Minimum Cost for Cutting Cake I
- 3225. Maximum Score From Grid Operations
- 3229. Minimum Operations to Make Array Equal to Target
- 3241. Time Taken to Mark All Nodes
- 3247. Number of Subsequences with Odd Sum π
- 3250. Find the Count of Monotonic Pairs I
- 3251. Find the Count of Monotonic Pairs II
- 3256. Maximum Value Sum by Placing Three Rooks I
- 3257. Maximum Value Sum by Placing Three Rooks II
- 3259. Maximum Energy Boost From Two Drinks
- 3260. Find the Largest Palindrome Divisible by K
- 3269. Constructing Two Increasing Arrays π
- 3276. Select Cells in Grid With Maximum Score
- 3277. Maximum XOR Score Subarray Queries
- 3284. Sum of Consecutive Subarrays π
- 3287. Find the Maximum Sequence Value of Array
- 3290. Maximum Multiplication Score
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
- 3299. Sum of Consecutive Subsequences π
- 3302. Find the Lexicographically Smallest Valid Sequence
- 3316. Find Maximum Removals From Source String
- 3317. Find the Number of Possible Ways for an Event
- 3320. Count The Number of Winning Sequences
- 3332. Maximum Points Tourist Can Earn
- 3333. Find the Original Typed String II
- 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
- 3339. Find the Number of K-Even Arrays π
- 3343. Count Number of Balanced Permutations
- 3351. Sum of Good Subsequences
- 3352. Count K-Reducible Numbers Less Than N
- 3363. Find the Maximum Number of Fruits Collected
- 3366. Minimum Array Sum
- 3367. Maximize Sum of Weights after Edge Removals
- 3376. Minimum Time to Break Locks I
Enumeration
- 204. Count Primes
- 479. Largest Palindrome Product
- 681. Next Closest Time π
- 800. Similar RGB Color π
- 816. Ambiguous Coordinates
- 829. Consecutive Numbers Sum
- 845. Longest Mountain in Array
- 869. Reordered Power of 2
- 906. Super Palindromes
- 949. Largest Time for Given Digits
- 970. Powerful Integers
- 1291. Sequential Digits
- 1534. Count Good Triplets
- 1566. Detect Pattern of Length M Repeated K or More Times
- 1601. Maximum Number of Achievable Transfer Requests
- 1617. Count Subtrees With Max Distance Between Cities
- 1620. Coordinate With Maximum Network Quality
- 1625. Lexicographically Smallest String After Applying Operations
- 1638. Count Substrings That Differ by One Character
- 1863. Sum of All Subset XOR Totals
- 1925. Count Square Sum Triples
- 1952. Three Divisors
- 1956. Minimum Time For K Virus Variants to Spread π
- 1958. Check if Move is Legal
- 1995. Count Special Quadruplets
- 1999. Smallest Greater Multiple Made of Two Digits π
- 2014. Longest Subsequence Repeated k Times
- 2018. Check if Word Can Be Placed In Crossword
- 2025. Maximum Number of Ways to Partition an Array
- 2044. Count Number of Maximum Bitwise-OR Subsets
- 2048. Next Greater Numerically Balanced Number
- 2081. Sum of k-Mirror Numbers
- 2094. Finding 3-Digit Even Numbers
- 2122. Recover the Original Array
- 2151. Maximum Good People Based on Statements
- 2162. Minimum Cost to Set Cooking Time
- 2171. Removing Minimum Number of Magic Beans
- 2212. Maximum Points in an Archery Competition
- 2232. Minimize Result by Adding Parentheses to Expression
- 2240. Number of Ways to Buy Pens and Pencils
- 2242. Maximum Score of a Node Sequence
- 2249. Count Lattice Points Inside a Circle
- 2259. Remove Digit From Number to Maximize Result
- 2261. K Divisible Elements Subarrays
- 2306. Naming a Company
- 2309. Greatest English Letter in Upper and Lower Case
- 2310. Sum of Numbers With Units Digit K
- 2367. Number of Arithmetic Triplets
- 2397. Maximum Rows Covered by Columns
- 2417. Closest Fair Integer π
- 2427. Number of Common Factors
- 2437. Number of Valid Clock Times
- 2440. Create Components With Same Value
- 2443. Sum of Number and Its Reverse
- 2552. Count Increasing Quadruplets
- 2605. Form Smallest Number From Two Digit Arrays
- 2708. Maximum Strength of a Group
- 2735. Collecting Chocolates
- 2761. Prime Pairs With Target Sum
- 2765. Longest Alternating Subarray
- 2768. Number of Black Blocks
- 2778. Sum of Squares of Special Elements
- 2800. Shortest String That Contains Three Strings
- 2843. Count Symmetric Integers
- 2844. Minimum Operations to Make a Special Number
- 2860. Happy Students
- 2928. Distribute Candies Among Children I
- 2929. Distribute Candies Among Children II
- 2934. Minimum Operations to Maximize Last Elements in Arrays
- 2947. Count Beautiful Substrings I
- 2951. Find the Peaks
- 2959. Number of Possible Sets of Closing Branches
- 2970. Count the Number of Incremovable Subarrays I
- 2975. Maximum Square Area by Removing Fences From a Field
- 3001. Minimum Moves to Capture The Queen
- 3010. Divide an Array Into Subarrays With Minimum Cost I
- 3020. Find the Maximum Number of Elements in Subset
- 3025. Find the Number of Ways to Place People I
- 3027. Find the Number of Ways to Place People II
- 3044. Most Frequent Prime
- 3091. Apply Operations to Make Sum of Array Greater Than or Equal to k
- 3114. Latest Time You Can Obtain After Replacing Characters
- 3127. Make a Square with the Same Color
- 3132. Find the Integer Added to Array II
- 3139. Minimum Cost to Equalize Array
- 3197. Find the Minimum Area to Cover All Ones II
- 3200. Maximum Height of a Triangle
- 3234. Count the Number of Substrings With Dominant Ones
- 3256. Maximum Value Sum by Placing Three Rooks I
- 3257. Maximum Value Sum by Placing Three Rooks II
- 3265. Count Almost Equal Pairs I
- 3267. Count Almost Equal Pairs II
- 3272. Find the Count of Good Integers
- 3309. Maximum Possible Number by Binary Concatenation
- 3345. Smallest Divisible Digit Product I
- 3371. Identify the Largest Outlier in an Array
- 3380. Maximum Area Rectangle With Point Constraints I
Eulerian Circuit
Game Theory
- 292. Nim Game
- 294. Flip Game II π
- 375. Guess Number Higher or Lower II
- 464. Can I Win
- 486. Predict the Winner
- 810. Chalkboard XOR Game
- 843. Guess the Word
- 877. Stone Game
- 913. Cat and Mouse
- 1025. Divisor Game
- 1140. Stone Game II
- 1406. Stone Game III
- 1510. Stone Game IV
- 1561. Maximum Number of Coins You Can Get
- 1563. Stone Game V
- 1686. Stone Game VI
- 1690. Stone Game VII
- 1728. Cat and Mouse II
- 1872. Stone Game VIII
- 1908. Game of Nim π
- 1927. Sum Game
- 2005. Subtree Removal Game with Fibonacci Tree π
- 2029. Stone Game IX
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2868. The Wording Game π
- 3222. Find the Winning Player in Coin Game
- 3227. Vowels Game in a String
- 3283. Maximum Number of Moves to Kill All Pawns
Geometry
- 149. Max Points on a Line
- 223. Rectangle Area
- 335. Self Crossing
- 469. Convex Polygon π
- 478. Generate Random Point in a Circle
- 587. Erect the Fence
- 593. Valid Square
- 812. Largest Triangle Area
- 836. Rectangle Overlap
- 858. Mirror Reflection
- 883. Projection Area of 3D Shapes
- 892. Surface Area of 3D Shapes
- 939. Minimum Area Rectangle
- 963. Minimum Area Rectangle II
- 973. K Closest Points to Origin
- 1030. Matrix Cells in Distance Order
- 1037. Valid Boomerang
- 1232. Check If It Is a Straight Line
- 1266. Minimum Time Visiting All Points
- 1401. Circle and Rectangle Overlapping
- 1453. Maximum Number of Darts Inside of a Circular Dartboard
- 1515. Best Position for a Service Centre
- 1610. Maximum Number of Visible Points
- 1828. Queries on Number of Points Inside a Circle
- 1924. Erect the Fence II π
- 1956. Minimum Time For K Virus Variants to Spread π
- 2101. Detonate the Maximum Bombs
- 2152. Minimum Number of Lines to Cover Points π
- 2249. Count Lattice Points Inside a Circle
- 2280. Minimum Lines to Represent a Line Chart
- 2481. Minimum Cuts to Divide a Circle
- 2613. Beautiful Pairs π
- 3009. Maximum Number of Intersections on the Chart π
- 3025. Find the Number of Ways to Place People I
- 3027. Find the Number of Ways to Place People II
- 3047. Find the Largest Area of Square Inside Two Rectangles
- 3102. Minimize Manhattan Distances
- 3235. Check if the Rectangle Corner Is Reachable
- 3380. Maximum Area Rectangle With Point Constraints I
- 3382. Maximum Area Rectangle With Point Constraints II
Graph
- 133. Clone Graph
- 207. Course Schedule
- 210. Course Schedule II
- 261. Graph Valid Tree π
- 269. Alien Dictionary π
- 277. Find the Celebrity π
- 310. Minimum Height Trees
- 323. Number of Connected Components in an Undirected Graph π
- 329. Longest Increasing Path in a Matrix
- 332. Reconstruct Itinerary
- 399. Evaluate Division
- 444. Sequence Reconstruction π
- 499. The Maze III π
- 505. The Maze II π
- 547. Number of Provinces
- 631. Design Excel Sum Formula π
- 684. Redundant Connection
- 685. Redundant Connection II
- 743. Network Delay Time
- 753. Cracking the Safe
- 765. Couples Holding Hands
- 785. Is Graph Bipartite
- 787. Cheapest Flights Within K Stops
- 797. All Paths From Source to Target
- 802. Find Eventual Safe States
- 834. Sum of Distances in Tree
- 841. Keys and Rooms
- 847. Shortest Path Visiting All Nodes
- 851. Loud and Rich
- 882. Reachable Nodes In Subdivided Graph
- 886. Possible Bipartition
- 913. Cat and Mouse
- 924. Minimize Malware Spread
- 928. Minimize Malware Spread II
- 947. Most Stones Removed with Same Row or Column
- 990. Satisfiability of Equality Equations
- 997. Find the Town Judge
- 1042. Flower Planting With No Adjacent
- 1059. All Paths from Source Lead to Destination π
- 1129. Shortest Path with Alternating Colors
- 1135. Connecting Cities With Minimum Cost π
- 1136. Parallel Courses π
- 1168. Optimize Water Distribution in a Village π
- 1192. Critical Connections in a Network
- 1203. Sort Items by Groups Respecting Dependencies
- 1245. Tree Diameter π
- 1298. Maximum Candies You Can Get from Boxes
- 1311. Get Watched Videos by Your Friends
- 1319. Number of Operations to Make Network Connected
- 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1361. Validate Binary Tree Nodes
- 1368. Minimum Cost to Make at Least One Valid Path in a Grid
- 1377. Frog Position After T Seconds
- 1462. Course Schedule IV
- 1466. Reorder Routes to Make All Paths Lead to the City Zero
- 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1494. Parallel Courses II
- 1514. Path with Maximum Probability
- 1548. The Most Similar Path in a Graph π
- 1557. Minimum Number of Vertices to Reach All Nodes
- 1579. Remove Max Number of Edges to Keep Graph Fully Traversable
- 1584. Min Cost to Connect All Points
- 1591. Strange Printer II
- 1615. Maximal Network Rank
- 1632. Rank Transform of a Matrix
- 1697. Checking Existence of Edge Length Limited Paths
- 1719. Number Of Ways To Reconstruct A Tree
- 1724. Checking Existence of Edge Length Limited Paths II π
- 1728. Cat and Mouse II
- 1761. Minimum Degree of a Connected Trio in a Graph
- 1778. Shortest Path in a Hidden Grid π
- 1782. Count Pairs Of Nodes
- 1786. Number of Restricted Paths From First to Last Node
- 1791. Find Center of Star Graph
- 1810. Minimum Path Cost in a Hidden Grid π
- 1820. Maximum Number of Accepted Invitations π
- 1857. Largest Color Value in a Directed Graph
- 1916. Count Ways to Build Rooms in an Ant Colony
- 1928. Minimum Cost to Reach Destination in Time
- 1971. Find if Path Exists in Graph
- 1976. Number of Ways to Arrive at Destination
- 2039. The Time When the Network Becomes Idle
- 2045. Second Minimum Time to Reach Destination
- 2050. Parallel Courses III
- 2065. Maximum Path Quality of a Graph
- 2076. Process Restricted Friend Requests
- 2077. Paths in Maze That Lead to Same Room π
- 2092. Find All People With Secret
- 2093. Minimum Cost to Reach City With Discounts π
- 2097. Valid Arrangement of Pairs
- 2101. Detonate the Maximum Bombs
- 2115. Find All Possible Recipes from Given Supplies
- 2123. Minimum Operations to Remove Adjacent Ones in Matrix π
- 2127. Maximum Employees to Be Invited to a Meeting
- 2192. All Ancestors of a Node in a Directed Acyclic Graph
- 2203. Minimum Weighted Subgraph With the Required Paths
- 2204. Distance to a Cycle in Undirected Graph π
- 2242. Maximum Score of a Node Sequence
- 2246. Longest Path With Different Adjacent Characters
- 2247. Maximum Cost of Trip With K Highways π
- 2285. Maximum Total Importance of Roads
- 2290. Minimum Obstacle Removal to Reach Corner
- 2297. Jump Game VIII π
- 2307. Check for Contradictions in Equations π
- 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
- 2328. Number of Increasing Paths in a Grid
- 2359. Find Closest Node to Given Two Nodes
- 2360. Longest Cycle in a Graph
- 2368. Reachable Nodes With Restrictions
- 2371. Minimize Maximum Value in a Grid π
- 2374. Node With Highest Edge Score
- 2392. Build a Matrix With Conditions
- 2421. Number of Good Paths
- 2467. Most Profitable Path in a Tree
- 2473. Minimum Cost to Buy Apples π
- 2477. Minimum Fuel Cost to Report to the Capital
- 2479. Maximum XOR of Two Non-Overlapping Subtrees π
- 2492. Minimum Score of a Path Between Two Cities
- 2493. Divide Nodes Into the Maximum Number of Groups
- 2497. Maximum Star Sum of a Graph
- 2508. Add Edges to Make Degrees of All Nodes Even
- 2577. Minimum Time to Visit a Cell In a Grid
- 2603. Collect Coins in a Tree
- 2608. Shortest Cycle in a Graph
- 2642. Design Graph With Shortest Path Calculator
- 2646. Minimize the Total Price of the Trips
- 2662. Minimum Cost of a Path With Special Roads
- 2685. Count the Number of Complete Components
- 2699. Modify Graph Edge Weights
- 2714. Find Shortest Path with K Hops π
- 2737. Find the Closest Marked Node π
- 2846. Minimum Edge Weight Equilibrium Queries in a Tree
- 2858. Minimum Edge Reversals So Every Node Is Reachable
- 2876. Count Visited Nodes in a Directed Graph
- 2924. Find Champion II
- 2959. Number of Possible Sets of Closing Branches
- 2976. Minimum Cost to Convert String I
- 2977. Minimum Cost to Convert String II
- 3015. Count the Number of Houses at a Certain Distance I
- 3017. Count the Number of Houses at a Certain Distance II
- 3108. Minimum Cost Walk in Weighted Graph
- 3112. Minimum Time to Visit Disappearing Nodes
- 3123. Find Edges in Shortest Paths
- 3203. Find Minimum Diameter After Merging Two Trees
- 3241. Time Taken to Mark All Nodes
- 3243. Shortest Distance After Road Addition Queries I
- 3244. Shortest Distance After Road Addition Queries II
- 3286. Find a Safe Walk Through a Grid
- 3310. Remove Methods From Project
- 3311. Construct 2D Grid Matching Graph Layout
- 3341. Find Minimum Time to Reach Last Room I
- 3342. Find Minimum Time to Reach Last Room II
- 3377. Digit Operations to Make Two Integers Equal
- 3383. Minimum Runes to Add to Cast Spell π
Greedy
- 11. Container With Most Water
- 44. Wildcard Matching
- 45. Jump Game II
- 55. Jump Game
- 122. Best Time to Buy and Sell Stock II
- 134. Gas Station
- 135. Candy
- 179. Largest Number
- 253. Meeting Rooms II π
- 280. Wiggle Sort π
- 316. Remove Duplicate Letters
- 321. Create Maximum Number
- 324. Wiggle Sort II
- 330. Patching Array
- 334. Increasing Triplet Subsequence
- 358. Rearrange String k Distance Apart π
- 376. Wiggle Subsequence
- 397. Integer Replacement
- 402. Remove K Digits
- 409. Longest Palindrome
- 410. Split Array Largest Sum
- 420. Strong Password Checker
- 435. Non-overlapping Intervals
- 452. Minimum Number of Arrows to Burst Balloons
- 455. Assign Cookies
- 484. Find Permutation π
- 502. IPO
- 517. Super Washing Machines
- 527. Word Abbreviation π
- 555. Split Concatenated Strings π
- 561. Array Partition
- 581. Shortest Unsorted Continuous Subarray
- 605. Can Place Flowers
- 611. Valid Triangle Number
- 621. Task Scheduler
- 624. Maximum Distance in Arrays
- 625. Minimum Factorization π
- 630. Course Schedule III
- 632. Smallest Range Covering Elements from K Lists
- 646. Maximum Length of Pair Chain
- 649. Dota2 Senate
- 659. Split Array into Consecutive Subsequences
- 670. Maximum Swap
- 678. Valid Parenthesis String
- 680. Valid Palindrome II
- 714. Best Time to Buy and Sell Stock with Transaction Fee
- 738. Monotone Increasing Digits
- 757. Set Intersection Size At Least Two
- 763. Partition Labels
- 765. Couples Holding Hands
- 767. Reorganize String
- 768. Max Chunks To Make Sorted II
- 769. Max Chunks To Make Sorted
- 781. Rabbits in Forest
- 807. Max Increase to Keep City Skyline
- 826. Most Profit Assigning Work
- 846. Hand of Straights
- 857. Minimum Cost to Hire K Workers
- 860. Lemonade Change
- 861. Score After Flipping Matrix
- 870. Advantage Shuffle
- 871. Minimum Number of Refueling Stops
- 881. Boats to Save People
- 910. Smallest Range II
- 921. Minimum Add to Make Parentheses Valid
- 936. Stamping The Sequence
- 942. DI String Match
- 945. Minimum Increment to Make Array Unique
- 948. Bag of Tokens
- 954. Array of Doubled Pairs
- 955. Delete Columns to Make Sorted II
- 969. Pancake Sorting
- 976. Largest Perimeter Triangle
- 984. String Without AAA or BBB
- 991. Broken Calculator
- 1005. Maximize Sum Of Array After K Negations
- 1007. Minimum Domino Rotations For Equal Row
- 1013. Partition Array Into Three Parts With Equal Sum
- 1024. Video Stitching
- 1029. Two City Scheduling
- 1053. Previous Permutation With One Swap
- 1054. Distant Barcodes
- 1055. Shortest Way to Form String π
- 1057. Campus Bikes π
- 1058. Minimize Rounding Error to Meet Target π
- 1081. Smallest Subsequence of Distinct Characters
- 1090. Largest Values From Labels
- 1130. Minimum Cost Tree From Leaf Values
- 1144. Decrease Elements To Make Array Zigzag
- 1147. Longest Chunked Palindrome Decomposition
- 1167. Minimum Cost to Connect Sticks π
- 1183. Maximum Number of Ones π
- 1196. How Many Apples Can You Put into the Basket π
- 1199. Minimum Time to Build Blocks π
- 1217. Minimum Cost to Move Chips to The Same Position
- 1221. Split a String in Balanced Strings
- 1247. Minimum Swaps to Make Strings Equal
- 1253. Reconstruct a 2-Row Binary Matrix
- 1262. Greatest Sum Divisible by Three
- 1282. Group the People Given the Group Size They Belong To
- 1296. Divide Array in Sets of K Consecutive Numbers
- 1323. Maximum 69 Number
- 1326. Minimum Number of Taps to Open to Water a Garden
- 1328. Break a Palindrome
- 1330. Reverse Subarray To Maximize Array Value
- 1338. Reduce Array Size to The Half
- 1353. Maximum Number of Events That Can Be Attended
- 1363. Largest Multiple of Three
- 1382. Balance a Binary Search Tree
- 1383. Maximum Performance of a Team
- 1386. Cinema Seat Allocation
- 1388. Pizza With 3n Slices
- 1400. Construct K Palindrome Strings
- 1402. Reducing Dishes
- 1403. Minimum Subsequence in Non-Increasing Order
- 1405. Longest Happy String
- 1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- 1432. Max Difference You Can Get From Changing an Integer
- 1433. Check If a String Can Break Another String
- 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1481. Least Number of Unique Integers after K Removals
- 1488. Avoid Flood in The City
- 1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
- 1520. Maximum Number of Non-Overlapping Substrings
- 1526. Minimum Number of Increments on Subarrays to Form a Target Array
- 1529. Minimum Suffix Flips
- 1536. Minimum Swaps to Arrange a Binary Grid
- 1537. Get the Maximum Score
- 1541. Minimum Insertions to Balance a Parentheses String
- 1546. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
- 1558. Minimum Numbers of Function Calls to Make Target Array
- 1561. Maximum Number of Coins You Can Get
- 1564. Put Boxes Into the Warehouse I π
- 1567. Maximum Length of Subarray With Positive Product
- 1578. Minimum Time to Make Rope Colorful
- 1580. Put Boxes Into the Warehouse II π
- 1585. Check If String Is Transformable With Substring Sort Operations
- 1589. Maximum Sum Obtained of Any Permutation
- 1605. Find Valid Matrix Given Row and Column Sums
- 1606. Find Servers That Handled Most Number of Requests
- 1642. Furthest Building You Can Reach
- 1647. Minimum Deletions to Make Character Frequencies Unique
- 1648. Sell Diminishing-Valued Colored Balls
- 1663. Smallest String With A Given Numeric Value
- 1665. Minimum Initial Energy to Finish Tasks
- 1671. Minimum Number of Removals to Make Mountain Array
- 1673. Find the Most Competitive Subsequence
- 1675. Minimize Deviation in Array
- 1686. Stone Game VI
- 1689. Partitioning Into Minimum Number Of Deci-Binary Numbers
- 1702. Maximum Binary String After Change
- 1703. Minimum Adjacent Swaps for K Consecutive Ones
- 1705. Maximum Number of Eaten Apples
- 1708. Largest Subarray Length K π
- 1710. Maximum Units on a Truck
- 1713. Minimum Operations to Make a Subsequence
- 1717. Maximum Score From Removing Substrings
- 1727. Largest Submatrix With Rearrangements
- 1733. Minimum Number of People to Teach
- 1736. Latest Time by Replacing Hidden Digits
- 1739. Building Boxes
- 1753. Maximum Score From Removing Stones
- 1754. Largest Merge Of Two Strings
- 1764. Form Array by Concatenating Subarrays of Another Array
- 1775. Equal Sum Arrays With Minimum Number of Operations
- 1785. Minimum Elements to Add to Form a Given Sum
- 1788. Maximize the Beauty of the Garden π
- 1792. Maximum Average Pass Ratio
- 1794. Count Pairs of Equal Substrings With Minimum Difference π
- 1798. Maximum Number of Consecutive Values You Can Make
- 1802. Maximum Value at a Given Index in a Bounded Array
- 1824. Minimum Sideway Jumps
- 1827. Minimum Operations to Make the Array Increasing
- 1833. Maximum Ice Cream Bars
- 1838. Frequency of the Most Frequent Element
- 1846. Maximum Element After Decreasing and Rearranging
- 1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
- 1864. Minimum Number of Swaps to Make the Binary String Alternating
- 1874. Minimize Product Sum of Two Arrays π
- 1877. Minimize Maximum Pair Sum in Array
- 1881. Maximum Value after Insertion
- 1888. Minimum Number of Flips to Make the Binary String Alternating
- 1899. Merge Triplets to Form Target Triplet
- 1903. Largest Odd Number in String
- 1921. Eliminate Maximum Number of Monsters
- 1927. Sum Game
- 1936. Add Minimum Number of Rungs
- 1946. Largest Number After Mutating Substring
- 1953. Maximum Number of Weeks for Which You Can Work
- 1962. Remove Stones to Minimize the Total
- 1963. Minimum Number of Swaps to Make the String Balanced
- 1968. Array With Elements Not Equal to Average of Neighbors
- 1969. Minimum Non-Zero Product of the Array Elements
- 1974. Minimum Time to Type Word Using Special Typewriter
- 1975. Maximum Matrix Sum
- 1989. Maximum Number of People That Can Be Caught in Tag π
- 1996. The Number of Weak Characters in the Game
- 2007. Find Original Array From Doubled Array
- 2014. Longest Subsequence Repeated k Times
- 2015. Average Height of Buildings in Each Segment π
- 2027. Minimum Moves to Convert String
- 2029. Stone Game IX
- 2030. Smallest K-Length Subsequence With Occurrences of a Letter
- 2037. Minimum Number of Moves to Seat Everyone
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2064. Minimized Maximum of Products Distributed to Any Store
- 2071. Maximum Number of Tasks You Can Assign
- 2078. Two Furthest Houses With Different Colors
- 2086. Minimum Number of Food Buckets to Feed the Hamsters
- 2087. Minimum Cost Homecoming of a Robot in a Grid
- 2091. Removing Minimum and Maximum From Array
- 2098. Subsequence of Size K With the Largest Even Sum π
- 2116. Check if a Parentheses String Can Be Valid
- 2126. Destroying Asteroids
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 2132. Stamping the Grid
- 2136. Earliest Possible Day of Full Bloom
- 2139. Minimum Moves to Reach Target Score
- 2141. Maximum Running Time of N Computers
- 2144. Minimum Cost of Buying Candies With Discount
- 2160. Minimum Sum of Four Digit Number After Splitting Digits
- 2170. Minimum Operations to Make the Array Alternating
- 2171. Removing Minimum Number of Magic Beans
- 2178. Maximum Split of Positive Even Integers
- 2182. Construct String With Repeat Limit
- 2193. Minimum Number of Moves to Make Palindrome
- 2195. Append K Integers With Minimal Sum
- 2202. Maximize the Topmost Element After K Moves
- 2207. Maximize Number of Subsequences in a String
- 2208. Minimum Operations to Halve Array Sum
- 2214. Minimum Health to Beat Game π
- 2216. Minimum Deletions to Make Array Beautiful
- 2224. Minimum Number of Operations to Convert Time
- 2233. Maximum Product After K Increments
- 2234. Maximum Total Beauty of the Gardens
- 2241. Design an ATM Machine
- 2244. Minimum Rounds to Complete All Tasks
- 2259. Remove Digit From Number to Maximize Result
- 2263. Make Array Non-decreasing or Non-increasing π
- 2268. Minimum Number of Keypresses π
- 2271. Maximum White Tiles Covered by a Carpet
- 2279. Maximum Bags With Full Capacity of Rocks
- 2285. Maximum Total Importance of Roads
- 2294. Partition Array Such That Maximum Difference Is K
- 2310. Sum of Numbers With Units Digit K
- 2311. Longest Binary Subsequence Less Than or Equal to K
- 2323. Find Minimum Time to Finish All Jobs II π
- 2333. Minimum Sum of Squared Difference
- 2335. Minimum Amount of Time to Fill Cups
- 2340. Minimum Adjacent Swaps to Make a Valid Array π
- 2350. Shortest Impossible Sequence of Rolls
- 2357. Make Array Zero by Subtracting Equal Amounts
- 2358. Maximum Number of Groups Entering a Competition
- 2366. Minimum Replacements to Sort the Array
- 2375. Construct Smallest Number From DI String
- 2383. Minimum Hours of Training to Win a Competition
- 2384. Largest Palindromic Number
- 2389. Longest Subsequence With Limited Sum
- 2405. Optimal Partition of String
- 2406. Divide Intervals Into Minimum Number of Groups
- 2410. Maximum Matching of Players With Trainers
- 2412. Minimum Money Required Before Transactions
- 2422. Merge Operations to Turn Array Into a Palindrome π
- 2429. Minimize XOR
- 2434. Using a Robot to Print the Lexicographically Smallest String
- 2436. Minimum Split Into Subarrays With GCD Greater Than One π
- 2439. Minimize Maximum of Array
- 2448. Minimum Cost to Make Array Equal
- 2449. Minimum Number of Operations to Make Arrays Similar
- 2457. Minimum Addition to Make Integer Beautiful
- 2459. Sort Array by Moving Items to Empty Space π
- 2472. Maximum Number of Non-overlapping Palindrome Substrings
- 2486. Append Characters to String to Make Subsequence
- 2497. Maximum Star Sum of a Graph
- 2498. Frog Jump II
- 2499. Minimum Total Cost to Make Arrays Unequal
- 2517. Maximum Tastiness of Candy Basket
- 2522. Partition String Into Substrings With Values at Most K
- 2528. Maximize the Minimum Powered City
- 2530. Maximal Score After Applying K Operations
- 2541. Minimum Operations to Make Array Equal II
- 2542. Maximum Subsequence Score
- 2548. Maximum Price to Fill a Bag π
- 2551. Put Marbles in Bags
- 2554. Maximum Number of Integers to Choose From a Range I
- 2557. Maximum Number of Integers to Choose From a Range II π
- 2561. Rearranging Fruits
- 2566. Maximum Difference by Remapping a Digit
- 2567. Minimum Score by Changing Two Elements
- 2571. Minimum Operations to Reduce an Integer to 0
- 2573. Find the String with
- 2576. Find the Maximum Number of Marked Indices
- 2578. Split With Minimum Sum
- 2587. Rearrange Array to Maximize Prefix Score
- 2589. Minimum Time to Complete All Tasks
- 2591. Distribute Money to Maximum Children
- 2592. Maximize Greatness of an Array
- 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
- 2611. Mice and Cheese
- 2616. Minimize the Maximum Difference of Pairs
- 2645. Minimum Additions to Make Valid String
- 2656. Maximum Sum With Exactly K Elements
- 2659. Make Array Empty
- 2663. Lexicographically Smallest Beautiful String
- 2673. Make Costs of Paths Equal in a Binary Tree
- 2680. Maximum OR
- 2697. Lexicographically Smallest Palindrome
- 2706. Buy Two Chocolates
- 2708. Maximum Strength of a Group
- 2712. Minimum Cost to Make All Characters Equal
- 2734. Lexicographically Smallest String After Substring Operation
- 2745. Construct the Longest New String
- 2789. Largest Element in an Array after Merge Operations
- 2790. Maximum Number of Groups With Increasing Length
- 2800. Shortest String That Contains Three Strings
- 2811. Check if it is Possible to Split Array
- 2813. Maximum Elegance of a K-Length Subsequence
- 2818. Apply Operations to Maximize Score
- 2829. Determine the Minimum Sum of a k-avoiding Array
- 2834. Find the Minimum Possible Sum of a Beautiful Array
- 2835. Minimum Operations to Form Subsequence With Target Sum
- 2842. Count K-Subsequences of a String With Maximum Beauty
- 2844. Minimum Operations to Make a Special Number
- 2847. Smallest Number With Given Digit Product π
- 2856. Minimum Array Length After Pair Removals
- 2864. Maximum Odd Binary Number
- 2868. The Wording Game π
- 2870. Minimum Number of Operations to Make Array Empty
- 2871. Split Array Into Maximum Number of Subarrays
- 2892. Minimizing Array After Replacing Pairs With Their Product π
- 2895. Minimum Processing Time
- 2897. Apply Operations on Array to Maximize Sum of Squares
- 2900. Longest Unequal Adjacent Groups Subsequence I
- 2910. Minimum Number of Groups to Create a Valid Assignment
- 2918. Minimum Equal Sum of Two Arrays After Replacing Zeros
- 2931. Maximum Spending After Buying Items
- 2938. Separate Black and White Balls
- 2939. Maximum Xor Product
- 2952. Minimum Number of Coins to be Added
- 2957. Remove Adjacent Almost-Equal Characters
- 2966. Divide Array Into Arrays With Max Difference
- 2967. Minimum Cost to Make Array Equalindromic
- 2971. Find Polygon With the Largest Perimeter
- 3002. Maximum Size of a Set After Removals
- 3012. Minimize Length of Array Using Operations
- 3014. Minimum Number of Pushes to Type Word I
- 3016. Minimum Number of Pushes to Type Word II
- 3022. Minimize OR of Remaining Elements Using Operations
- 3035. Maximum Palindromes After Operations
- 3049. Earliest Second to Mark Indices II
- 3068. Find the Maximum Sum of Node Values
- 3074. Apple Redistribution into Boxes
- 3075. Maximize Happiness of Selected Children
- 3081. Replace Question Marks in String to Minimize Its Value
- 3085. Minimum Deletions to Make String K-Special
- 3086. Minimum Moves to Pick K Ones
- 3088. Make String Anti-palindrome π
- 3091. Apply Operations to Make Sum of Array Greater Than or Equal to k
- 3106. Lexicographically Smallest String After Operations With Constraint
- 3107. Minimum Operations to Make Median of Array Equal to K
- 3111. Minimum Rectangles to Cover Points
- 3119. Maximum Number of Potholes That Can Be Fixed π
- 3125. Maximum Number That Makes Result of Bitwise AND Zero π
- 3139. Minimum Cost to Equalize Array
- 3170. Lexicographically Minimum String After Removing Stars
- 3189. Minimum Moves to Get a Peaceful Board π
- 3192. Minimum Operations to Make Binary Array Elements Equal to One II
- 3205. Maximum Array Hopping Score I π
- 3207. Maximum Points After Enemy Battles
- 3216. Lexicographically Smallest String After a Swap
- 3218. Minimum Cost for Cutting Cake I
- 3219. Minimum Cost for Cutting Cake II
- 3221. Maximum Array Hopping Score II π
- 3228. Maximum Number of Operations to Move Ones to the End
- 3229. Minimum Operations to Make Array Equal to Target
- 3244. Shortest Distance After Road Addition Queries II
- 3260. Find the Largest Palindrome Divisible by K
- 3273. Minimum Amount of Damage Dealt to Bob
- 3281. Maximize Score of Numbers in Ranges
- 3282. Reach End of Array With Max Score
- 3296. Minimum Number of Seconds to Make Mountain Height Zero
- 3301. Maximize the Total Height of Unique Towers
- 3302. Find the Lexicographically Smallest Valid Sequence
- 3326. Minimum Division Operations to Make Array Non Decreasing
- 3348. Smallest Divisible Digit Product II
- 3357. Minimize the Maximum Adjacent Element Difference
- 3362. Zero Array Transformation III
Hash Function
- 187. Repeated DNA Sequences
- 214. Shortest Palindrome
- 535. Encode and Decode TinyURL
- 572. Subtree of Another Tree
- 694. Number of Distinct Islands π
- 705. Design HashSet
- 706. Design HashMap
- 711. Number of Distinct Islands II π
- 718. Maximum Length of Repeated Subarray
- 1044. Longest Duplicate Substring
- 1062. Longest Repeating Substring π
- 1147. Longest Chunked Palindrome Decomposition
- 1316. Distinct Echo Substrings
- 1392. Longest Happy Prefix
- 1461. Check If a String Contains All Binary Codes of Size K
- 1554. Strings Differ by One Character π
- 1698. Number of Distinct Substrings in a String π
- 1923. Longest Common Subpath
- 1948. Delete Duplicate Folders in System
- 1960. Maximum Product of the Length of Two Palindromic Substrings
- 2156. Find Substring With Given Hash Value
- 2168. Unique Substrings With Equal Digit Frequency π
- 2223. Sum of Scores of Built Strings
- 2261. K Divisible Elements Subarrays
- 2430. Maximum Deletions on a String
- 3006. Find Beautiful Indices in the Given Array I
- 3008. Find Beautiful Indices in the Given Array II
- 3023. Find Pattern in Infinite Stream I π
- 3029. Minimum Time to Revert Word to Initial State I
- 3031. Minimum Time to Revert Word to Initial State II
- 3034. Number of Subarrays That Match a Pattern I
- 3036. Number of Subarrays That Match a Pattern II
- 3037. Find Pattern in Infinite Stream II π
- 3042. Count Prefix and Suffix Pairs I
- 3045. Count Prefix and Suffix Pairs II
- 3135. Equalize Strings by Adding or Removing Characters at Ends π
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
- 3327. Check if DFS Strings Are Palindromes
Hash Table
- 1. Two Sum
- 3. Longest Substring Without Repeating Characters
- 12. Integer to Roman
- 13. Roman to Integer
- 17. Letter Combinations of a Phone Number
- 30. Substring with Concatenation of All Words
- 36. Valid Sudoku
- 37. Sudoku Solver
- 41. First Missing Positive
- 49. Group Anagrams
- 73. Set Matrix Zeroes
- 76. Minimum Window Substring
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 126. Word Ladder II
- 127. Word Ladder
- 128. Longest Consecutive Sequence
- 133. Clone Graph
- 138. Copy List with Random Pointer
- 139. Word Break
- 140. Word Break II
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 146. LRU Cache
- 149. Max Points on a Line
- 159. Longest Substring with At Most Two Distinct Characters π
- 160. Intersection of Two Linked Lists
- 166. Fraction to Recurring Decimal
- 169. Majority Element
- 170. Two Sum III - Data structure design π
- 187. Repeated DNA Sequences
- 202. Happy Number
- 205. Isomorphic Strings
- 208. Implement Trie (Prefix Tree)
- 217. Contains Duplicate
- 219. Contains Duplicate II
- 229. Majority Element II
- 242. Valid Anagram
- 244. Shortest Word Distance II π
- 246. Strobogrammatic Number π
- 249. Group Shifted Strings π
- 264. Ugly Number II
- 266. Palindrome Permutation π
- 267. Palindrome Permutation II π
- 268. Missing Number
- 288. Unique Word Abbreviation π
- 290. Word Pattern
- 291. Word Pattern II π
- 299. Bulls and Cows
- 305. Number of Islands II π
- 311. Sparse Matrix Multiplication π
- 314. Binary Tree Vertical Order Traversal π
- 325. Maximum Size Subarray Sum Equals k π
- 336. Palindrome Pairs
- 340. Longest Substring with At Most K Distinct Characters π
- 347. Top K Frequent Elements
- 348. Design Tic-Tac-Toe π
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 353. Design Snake Game π
- 355. Design Twitter
- 356. Line Reflection π
- 358. Rearrange String k Distance Apart π
- 359. Logger Rate Limiter π
- 379. Design Phone Directory π
- 380. Insert Delete GetRandom O(1)
- 381. Insert Delete GetRandom O(1) - Duplicates allowed
- 383. Ransom Note
- 387. First Unique Character in a String
- 389. Find the Difference
- 395. Longest Substring with At Least K Repeating Characters
- 398. Random Pick Index
- 409. Longest Palindrome
- 421. Maximum XOR of Two Numbers in an Array
- 423. Reconstruct Original Digits from English
- 424. Longest Repeating Character Replacement
- 432. All O`one Data Structure
- 433. Minimum Genetic Mutation
- 438. Find All Anagrams in a String
- 442. Find All Duplicates in an Array
- 447. Number of Boomerangs
- 448. Find All Numbers Disappeared in an Array
- 451. Sort Characters By Frequency
- 454. 4Sum II
- 457. Circular Array Loop
- 460. LFU Cache
- 480. Sliding Window Median
- 491. Non-decreasing Subsequences
- 496. Next Greater Element I
- 500. Keyboard Row
- 508. Most Frequent Subtree Sum
- 519. Random Flip Matrix
- 522. Longest Uncommon Subsequence II
- 523. Continuous Subarray Sum
- 525. Contiguous Array
- 531. Lonely Pixel I π
- 532. K-diff Pairs in an Array
- 533. Lonely Pixel II π
- 535. Encode and Decode TinyURL
- 548. Split Array with Equal Sum π
- 554. Brick Wall
- 560. Subarray Sum Equals K
- 567. Permutation in String
- 575. Distribute Candies
- 582. Kill Process π
- 588. Design In-Memory File System π
- 594. Longest Harmonious Subsequence
- 599. Minimum Index Sum of Two Lists
- 609. Find Duplicate File in System
- 616. Add Bold Tag in String π
- 621. Task Scheduler
- 632. Smallest Range Covering Elements from K Lists
- 635. Design Log Storage System π
- 645. Set Mismatch
- 648. Replace Words
- 652. Find Duplicate Subtrees
- 653. Two Sum IV - Input is a BST
- 659. Split Array into Consecutive Subsequences
- 666. Path Sum IV π
- 676. Implement Magic Dictionary
- 677. Map Sum Pairs
- 681. Next Closest Time π
- 690. Employee Importance
- 692. Top K Frequent Words
- 694. Number of Distinct Islands π
- 697. Degree of an Array
- 705. Design HashSet
- 706. Design HashMap
- 710. Random Pick with Blacklist
- 711. Number of Distinct Islands II π
- 720. Longest Word in Dictionary
- 721. Accounts Merge
- 726. Number of Atoms
- 734. Sentence Similarity π
- 736. Parse Lisp Expression
- 737. Sentence Similarity II π
- 740. Delete and Earn
- 745. Prefix and Suffix Search
- 748. Shortest Completing Word
- 752. Open the Lock
- 758. Bold Words in String π
- 760. Find Anagram Mappings π
- 763. Partition Labels
- 767. Reorganize String
- 770. Basic Calculator IV
- 771. Jewels and Stones
- 781. Rabbits in Forest
- 791. Custom Sort String
- 792. Number of Matching Subsequences
- 804. Unique Morse Code Words
- 811. Subdomain Visit Count
- 815. Bus Routes
- 817. Linked List Components
- 819. Most Common Word
- 820. Short Encoding of Words
- 822. Card Flipping Game
- 823. Binary Trees With Factors
- 828. Count Unique Characters of All Substrings of a Given String
- 833. Find And Replace in String
- 839. Similar String Groups
- 840. Magic Squares In Grid
- 846. Hand of Straights
- 859. Buddy Strings
- 863. All Nodes Distance K in Binary Tree
- 865. Smallest Subtree with all the Deepest Nodes
- 869. Reordered Power of 2
- 873. Length of Longest Fibonacci Subsequence
- 874. Walking Robot Simulation
- 884. Uncommon Words from Two Sentences
- 888. Fair Candy Swap
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 890. Find and Replace Pattern
- 893. Groups of Special-Equivalent Strings
- 895. Maximum Frequency Stack
- 904. Fruit Into Baskets
- 911. Online Election
- 914. X of a Kind in a Deck of Cards
- 916. Word Subsets
- 923. 3Sum With Multiplicity
- 924. Minimize Malware Spread
- 928. Minimize Malware Spread II
- 929. Unique Email Addresses
- 930. Binary Subarrays With Sum
- 939. Minimum Area Rectangle
- 947. Most Stones Removed with Same Row or Column
- 952. Largest Component Size by Common Factor
- 953. Verifying an Alien Dictionary
- 954. Array of Doubled Pairs
- 957. Prison Cells After N Days
- 959. Regions Cut By Slashes
- 961. N-Repeated Element in Size 2N Array
- 966. Vowel Spellchecker
- 970. Powerful Integers
- 974. Subarray Sums Divisible by K
- 981. Time Based Key-Value Store
- 982. Triples with Bitwise AND Equal To Zero
- 987. Vertical Order Traversal of a Binary Tree
- 992. Subarrays with K Different Integers
- 996. Number of Squareful Arrays
- 997. Find the Town Judge
- 1001. Grid Illumination
- 1002. Find Common Characters
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 1015. Smallest Integer Divisible by K
- 1027. Longest Arithmetic Subsequence
- 1036. Escape a Large Maze
- 1048. Longest String Chain
- 1054. Distant Barcodes
- 1072. Flip Columns For Maximum Number of Equal Rows
- 1074. Number of Submatrices That Sum to Target
- 1079. Letter Tile Possibilities
- 1086. High Five π
- 1090. Largest Values From Labels
- 1100. Find K-Length Substrings With No Repeated Characters π
- 1110. Delete Nodes And Return Forest
- 1122. Relative Sort Array
- 1123. Lowest Common Ancestor of Deepest Leaves
- 1124. Longest Well-Performing Interval
- 1128. Number of Equivalent Domino Pairs
- 1133. Largest Unique Number π
- 1138. Alphabet Board Path
- 1146. Snapshot Array
- 1152. Analyze User Website Visit Pattern π
- 1153. String Transforms Into Another String π
- 1156. Swap For Longest Repeated Character Substring
- 1160. Find Words That Can Be Formed by Characters
- 1165. Single-Row Keyboard π
- 1166. Design File System π
- 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
- 1177. Can Make Palindrome from Substring
- 1178. Number of Valid Words for Each Puzzle
- 1181. Before and After Puzzle π
- 1189. Maximum Number of Balloons
- 1198. Find Smallest Common Element in All Rows π
- 1202. Smallest String With Swaps
- 1207. Unique Number of Occurrences
- 1213. Intersection of Three Sorted Arrays π
- 1218. Longest Arithmetic Subsequence of Given Difference
- 1224. Maximum Equal Frequency
- 1244. Design A Leaderboard π
- 1248. Count Number of Nice Subarrays
- 1257. Smallest Common Region π
- 1258. Synonymous Sentences π
- 1261. Find Elements in a Contaminated Binary Tree
- 1275. Find Winner on a Tic Tac Toe Game
- 1282. Group the People Given the Group Size They Belong To
- 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1296. Divide Array in Sets of K Consecutive Numbers
- 1297. Maximum Number of Occurrences of a Substring
- 1311. Get Watched Videos by Your Friends
- 1331. Rank Transform of an Array
- 1338. Reduce Array Size to The Half
- 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
- 1357. Apply Discount Every n Orders
- 1358. Number of Substrings Containing All Three Characters
- 1365. How Many Numbers Are Smaller Than the Current Number
- 1366. Rank Teams by Votes
- 1370. Increasing Decreasing String
- 1371. Find the Longest Substring Containing Vowels in Even Counts
- 1386. Cinema Seat Allocation
- 1394. Find Lucky Integer in an Array
- 1396. Design Underground System
- 1399. Count Largest Group
- 1400. Construct K Palindrome Strings
- 1410. HTML Entity Parser
- 1418. Display Table of Food Orders in a Restaurant
- 1426. Counting Elements π
- 1429. First Unique Number π
- 1436. Destination City
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1443. Minimum Time to Collect All Apples in a Tree
- 1452. People Whose List of Favorite Companies Is Not a Subset of Another List
- 1460. Make Two Arrays Equal by Reversing Subarrays
- 1461. Check If a String Contains All Binary Codes of Size K
- 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1481. Least Number of Unique Integers after K Removals
- 1485. Clone Binary Tree With Random Pointer π
- 1487. Making File Names Unique
- 1488. Avoid Flood in The City
- 1490. Clone N-ary Tree π
- 1496. Path Crossing
- 1497. Check If Array Pairs Are Divisible by k
- 1500. Design a File Sharing System π
- 1506. Find Root of N-Ary Tree π
- 1512. Number of Good Pairs
- 1519. Number of Nodes in the Sub-Tree With the Same Label
- 1525. Number of Good Ways to Split a String
- 1540. Can Convert String in K Moves
- 1542. Find Longest Awesome Substring
- 1546. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
- 1554. Strings Differ by One Character π
- 1562. Find Latest Group of Size M
- 1570. Dot Product of Two Sparse Vectors π
- 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1590. Make Sum Divisible by P
- 1593. Split a String Into the Max Number of Unique Substrings
- 1600. Throne Inheritance
- 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1612. Check If Two Expression Trees are Equivalent π
- 1624. Largest Substring Between Two Equal Characters
- 1630. Arithmetic Subarrays
- 1636. Sort Array by Increasing Frequency
- 1638. Count Substrings That Differ by One Character
- 1640. Check Array Formation Through Concatenation
- 1647. Minimum Deletions to Make Character Frequencies Unique
- 1650. Lowest Common Ancestor of a Binary Tree III π
- 1656. Design an Ordered Stream
- 1657. Determine if Two Strings Are Close
- 1658. Minimum Operations to Reduce X to Zero
- 1660. Correct a Binary Tree π
- 1674. Minimum Moves to Make Array Complementary
- 1676. Lowest Common Ancestor of a Binary Tree IV π
- 1679. Max Number of K-Sum Pairs
- 1684. Count the Number of Consistent Strings
- 1695. Maximum Erasure Value
- 1711. Count Good Meals
- 1713. Minimum Operations to Make a Subsequence
- 1726. Tuple with Same Product
- 1733. Minimum Number of People to Teach
- 1737. Change Minimum Characters to Satisfy One of Three Conditions
- 1740. Find Distance in a Binary Tree π
- 1742. Maximum Number of Balls in a Box
- 1743. Restore the Array From Adjacent Pairs
- 1748. Sum of Unique Elements
- 1756. Design Most Recently Used Queue π
- 1763. Longest Nice Substring
- 1772. Sort Features by Popularity π
- 1775. Equal Sum Arrays With Minimum Number of Operations
- 1781. Sum of Beauty of All Substrings
- 1788. Maximize the Beauty of the Garden π
- 1790. Check if One String Swap Can Make Strings Equal
- 1794. Count Pairs of Equal Substrings With Minimum Difference π
- 1796. Second Largest Digit in a String
- 1797. Design Authentication Manager
- 1804. Implement Trie II (Prefix Tree) π
- 1805. Number of Different Integers in a String
- 1807. Evaluate the Bracket Pairs of a String
- 1814. Count Nice Pairs in an Array
- 1817. Finding the Users Active Minutes
- 1832. Check if the Sentence Is Pangram
- 1836. Remove Duplicates From an Unsorted Linked List π
- 1852. Distinct Numbers in Each Subarray π
- 1857. Largest Color Value in a Directed Graph
- 1865. Finding Pairs With a Certain Sum
- 1876. Substrings of Size Three with Distinct Characters
- 1893. Check if All the Integers in a Range Are Covered
- 1897. Redistribute Characters to Make All Strings Equal
- 1906. Minimum Absolute Difference Queries
- 1912. Design Movie Rental System
- 1915. Number of Wonderful Substrings
- 1930. Unique Length-3 Palindromic Subsequences
- 1932. Merge BSTs to Create Single BST
- 1935. Maximum Number of Words You Can Type
- 1938. Maximum Genetic Difference Query
- 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
- 1948. Delete Duplicate Folders in System
- 1980. Find Unique Binary String
- 1983. Widest Pair of Indices With Equal Range Sum π
- 1993. Operations on Tree
- 1995. Count Special Quadruplets
- 2001. Number of Pairs of Interchangeable Rectangles
- 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
- 2013. Detect Squares
- 2023. Number of Pairs of Strings With Concatenation Equal to Target
- 2025. Maximum Number of Ways to Partition an Array
- 2032. Two Out of Three
- 2034. Stock Price Fluctuation
- 2043. Simple Bank System
- 2053. Kth Distinct String in an Array
- 2062. Count Vowel Substrings of a String
- 2068. Check Whether Two Strings are Almost Equivalent
- 2080. Range Frequency Queries
- 2083. Substrings That Begin and End With the Same Letter π
- 2085. Count Common Words With One Occurrence
- 2094. Finding 3-Digit Even Numbers
- 2099. Find Subsequence of Length K With the Largest Sum
- 2103. Rings and Rods
- 2107. Number of Unique Flavors After Sharing K Candies π
- 2115. Find All Possible Recipes from Given Supplies
- 2121. Intervals Between Identical Elements
- 2122. Recover the Original Array
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 2133. Check if Every Row and Column Contains All Numbers
- 2135. Count Words Obtained After Adding a Letter
- 2150. Find All Lonely Numbers in the Array
- 2152. Minimum Number of Lines to Cover Points π
- 2154. Keep Multiplying Found Values by Two
- 2166. Design Bitset
- 2168. Unique Substrings With Equal Digit Frequency π
- 2170. Minimum Operations to Make the Array Alternating
- 2182. Construct String With Repeat Limit
- 2186. Minimum Number of Steps to Make Two Strings Anagram II
- 2190. Most Frequent Number Following Key In an Array
- 2196. Create Binary Tree From Descriptions
- 2201. Count Artifacts That Can Be Extracted
- 2206. Divide Array Into Equal Pairs
- 2215. Find the Difference of Two Arrays
- 2225. Find Players With Zero or One Losses
- 2227. Encrypt and Decrypt Strings
- 2229. Check if an Array Is Consecutive π
- 2244. Minimum Rounds to Complete All Tasks
- 2248. Intersection of Multiple Arrays
- 2249. Count Lattice Points Inside a Circle
- 2251. Number of Flowers in Full Bloom
- 2254. Design Video Sharing Platform π
- 2260. Minimum Consecutive Cards to Pick Up
- 2261. K Divisible Elements Subarrays
- 2262. Total Appeal of A String
- 2266. Count Number of Texts
- 2268. Minimum Number of Keypresses π
- 2273. Find Resultant Array After Removing Anagrams
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 2283. Check if Number Has Equal Digit Count and Digit Value
- 2284. Sender With Largest Word Count
- 2287. Rearrange Characters to Make Target String
- 2295. Replace Elements in an Array
- 2301. Match Substring After Replacement
- 2306. Naming a Company
- 2309. Greatest English Letter in Upper and Lower Case
- 2325. Decode the Message
- 2336. Smallest Number in Infinite Set
- 2341. Maximum Number of Pairs in Array
- 2342. Max Sum of a Pair With Equal Sum of Digits
- 2347. Best Poker Hand
- 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
- 2357. Make Array Zero by Subtracting Equal Amounts
- 2363. Merge Similar Items
- 2364. Count Number of Bad Pairs
- 2365. Task Scheduler II
- 2367. Number of Arithmetic Triplets
- 2368. Reachable Nodes With Restrictions
- 2370. Longest Ideal Subsequence
- 2374. Node With Highest Edge Score
- 2384. Largest Palindromic Number
- 2385. Amount of Time for Binary Tree to Be Infected
- 2395. Find Subarrays With Equal Sum
- 2399. Check Distances Between Same Letters
- 2402. Meeting Rooms III
- 2404. Most Frequent Even Element
- 2405. Optimal Partition of String
- 2408. Design SQL π
- 2418. Sort the People
- 2421. Number of Good Paths
- 2423. Remove Letter To Equalize Frequency
- 2434. Using a Robot to Print the Lexicographically Smallest String
- 2441. Largest Positive Integer That Exists With Its Negative
- 2442. Count Number of Distinct Integers After Reverse Operations
- 2451. Odd String Difference
- 2453. Destroy Sequential Targets
- 2456. Most Popular Video Creator
- 2461. Maximum Sum of Distinct Subarrays With Length K
- 2465. Number of Distinct Averages
- 2475. Number of Unequal Triplets in Array
- 2488. Count Subarrays With Median K
- 2489. Number of Substrings With Fixed Ratio π
- 2491. Divide Players Into Teams of Equal Skill
- 2499. Minimum Total Cost to Make Arrays Unequal
- 2501. Longest Square Streak in an Array
- 2502. Design Memory Allocator
- 2506. Count Pairs Of Similar Strings
- 2508. Add Edges to Make Degrees of All Nodes Even
- 2512. Reward Top K Students
- 2514. Count Anagrams
- 2516. Take K of Each Character From Left and Right
- 2521. Distinct Prime Factors of Product of Array
- 2524. Maximum Frequency Score of a Subarray π
- 2526. Find Consecutive Integers from a Data Stream
- 2531. Make Number of Distinct Characters Equal
- 2537. Count the Number of Good Subarrays
- 2539. Count the Number of Good Subsequences π
- 2540. Minimum Common Value
- 2547. Minimum Cost to Split an Array
- 2549. Count Distinct Numbers on Board
- 2554. Maximum Number of Integers to Choose From a Range I
- 2561. Rearranging Fruits
- 2564. Substring XOR Queries
- 2570. Merge Two 2D Arrays by Summing Values
- 2581. Count Number of Possible Root Nodes
- 2584. Split the Array to Make Coprime Products
- 2588. Count the Number of Beautiful Subarrays
- 2590. Design a Todo List π
- 2593. Find Score of an Array After Marking All Elements
- 2597. The Number of Beautiful Subsets
- 2598. Smallest Missing Non-negative Integer After Operations
- 2605. Form Smallest Number From Two Digit Arrays
- 2606. Find the Substring With Maximum Cost
- 2610. Convert an Array Into a 2D Array With Conditions
- 2615. Sum of Distances
- 2641. Cousins in Binary Tree II
- 2653. Sliding Subarray Beauty
- 2657. Find the Prefix Common Array of Two Arrays
- 2661. First Completely Painted Row or Column
- 2670. Find the Distinct Difference Array
- 2671. Frequency Tracker
- 2682. Find the Losers of the Circular Game
- 2707. Extra Characters in a String
- 2711. Difference of Number of Distinct Values on Diagonals
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2716. Minimize String Length
- 2718. Sum of Matrix After Queries
- 2729. Check if The Number is Fascinating
- 2732. Find a Good Subset of the Matrix
- 2743. Count Substrings Without Repeating Character π
- 2744. Find Maximum Number of String Pairs
- 2747. Count Zero Request Servers
- 2748. Number of Beautiful Pairs
- 2763. Sum of Imbalance Numbers of All Subarrays
- 2766. Relocate Marbles
- 2767. Partition String Into Minimum Beautiful Substrings
- 2768. Number of Black Blocks
- 2780. Minimum Index of a Valid Split
- 2781. Length of the Longest Valid Substring
- 2784. Check if Array is Good
- 2799. Count Complete Subarrays in an Array
- 2808. Minimum Seconds to Equalize a Circular Array
- 2813. Maximum Elegance of a K-Length Subsequence
- 2815. Max Pair Sum in an Array
- 2830. Maximize the Profit as the Salesman
- 2831. Find the Longest Equal Subarray
- 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
- 2845. Count of Interesting Subarrays
- 2848. Points That Intersect With Cars
- 2852. Sum of Remoteness of All Cells π
- 2856. Minimum Array Length After Pair Removals
- 2857. Count Pairs of Points With Distance k
- 2869. Minimum Operations to Collect Elements
- 2870. Minimum Number of Operations to Make Array Empty
- 2875. Minimum Size Subarray in Infinite Array
- 2897. Apply Operations on Array to Maximize Sum of Squares
- 2898. Maximum Linear Stock Score π
- 2902. Count of Sub-Multisets With Bounded Sum
- 2910. Minimum Number of Groups to Create a Valid Assignment
- 2913. Subarrays Distinct Element Sum of Squares I
- 2932. Maximum Strong Pair XOR I
- 2933. High-Access Employees
- 2935. Maximum Strong Pair XOR II
- 2947. Count Beautiful Substrings I
- 2949. Count Beautiful Substrings II
- 2950. Number of Divisible Substrings π
- 2953. Count Complete Substrings
- 2955. Number of Same-End Substrings π
- 2956. Find Common Elements Between Two Arrays
- 2958. Length of Longest Subarray With at Most K Frequency
- 2963. Count the Number of Good Partitions
- 2964. Number of Divisible Triplet Sums π
- 2965. Find Missing and Repeated Values
- 2975. Maximum Square Area by Removing Fences From a Field
- 2981. Find Longest Special Substring That Occurs Thrice I
- 2982. Find Longest Special Substring That Occurs Thrice II
- 2983. Palindrome Rearrangement Queries
- 2996. Smallest Missing Integer Greater Than Sequential Prefix Sum
- 3002. Maximum Size of a Set After Removals
- 3005. Count Elements With Maximum Frequency
- 3013. Divide an Array Into Subarrays With Minimum Cost II
- 3016. Minimum Number of Pushes to Type Word II
- 3020. Find the Maximum Number of Elements in Subset
- 3026. Maximum Good Subarray Sum
- 3032. Count Numbers With Unique Digits II π
- 3035. Maximum Palindromes After Operations
- 3039. Apply Operations to Make String Empty
- 3043. Find the Length of the Longest Common Prefix
- 3044. Most Frequent Prime
- 3046. Split the Array
- 3063. Linked List Frequency π
- 3071. Minimum Operations to Write the Letter Y on a Grid
- 3076. Shortest Uncommon Substring in an Array
- 3078. Match Alphanumerical Pattern in Matrix I π
- 3080. Mark Elements on Array by Performing Queries
- 3081. Replace Question Marks in String to Minimize Its Value
- 3083. Existence of a Substring in a String and Its Reverse
- 3085. Minimum Deletions to Make String K-Special
- 3090. Maximum Length Substring With Two Occurrences
- 3092. Most Frequent IDs
- 3104. Find Longest Self-Contained Substring π
- 3120. Count the Number of Special Characters I
- 3121. Count the Number of Special Characters II
- 3128. Right Triangles
- 3134. Find the Median of the Uniqueness Array
- 3137. Minimum Number of Operations to Make Word K-Periodic
- 3138. Minimum Length of Anagram Concatenation
- 3143. Maximum Points Inside the Square
- 3144. Minimum Substring Partition of Equal Character Frequency
- 3146. Permutation Difference between Two Strings
- 3153. Sum of Digit Differences of All Pairs
- 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
- 3162. Find the Number of Good Pairs I
- 3164. Find the Number of Good Pairs II
- 3167. Better Compression of String π
- 3170. Lexicographically Minimum String After Removing Stars
- 3176. Find the Maximum Length of a Good Subsequence I
- 3177. Find the Maximum Length of a Good Subsequence II
- 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
- 3217. Delete Nodes From Linked List Present in Array
- 3223. Minimum Length of String After Operations
- 3224. Minimum Array Changes to Make Differences Equal
- 3237. Alt and Tab Simulation π
- 3238. Find the Number of Winning Players
- 3242. Design Neighbor Sum Service
- 3265. Count Almost Equal Pairs I
- 3267. Count Almost Equal Pairs II
- 3272. Find the Count of Good Integers
- 3279. Maximum Total Area Occupied by Pistons π
- 3289. The Two Sneaky Numbers of Digitville
- 3295. Report Spam Message
- 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 π
- 3305. Count of Substrings Containing Every Vowel and K Consonants I
- 3306. Count of Substrings Containing Every Vowel and K Consonants II
- 3311. Construct 2D Grid Matching Graph Layout
- 3312. Sorted GCD Pair Queries
- 3316. Find Maximum Removals From Source String
- 3318. Find X-Sum of All K-Long Subarrays I
- 3321. Find X-Sum of All K-Long Subarrays II
- 3325. Count Substrings With K-Frequency Characters I
- 3327. Check if DFS Strings Are Palindromes
- 3329. Count Substrings With K-Frequency Characters II π
- 3331. Find Subtree Sizes After Changes
- 3335. Total Characters in String After Transformations I
- 3337. Total Characters in String After Transformations II
- 3351. Sum of Good Subsequences
- 3365. Rearrange K Substrings to Form Target String
- 3369. Design an Array Statistics Tracker π
- 3371. Identify the Largest Outlier in an Array
- 3375. Minimum Operations to Make Array Values Equal to K
- 3378. Count Connected Components in LCM Graph
- 3381. Maximum Subarray Sum With Length Divisible by K
Heap (Priority Queue)
- 23. Merge k Sorted Lists
- 215. Kth Largest Element in an Array
- 218. The Skyline Problem
- 239. Sliding Window Maximum
- 253. Meeting Rooms II π
- 264. Ugly Number II
- 272. Closest Binary Search Tree Value II π
- 295. Find Median from Data Stream
- 347. Top K Frequent Elements
- 355. Design Twitter
- 358. Rearrange String k Distance Apart π
- 373. Find K Pairs with Smallest Sums
- 378. Kth Smallest Element in a Sorted Matrix
- 407. Trapping Rain Water II
- 420. Strong Password Checker
- 451. Sort Characters By Frequency
- 480. Sliding Window Median
- 499. The Maze III π
- 502. IPO
- 505. The Maze II π
- 506. Relative Ranks
- 621. Task Scheduler
- 630. Course Schedule III
- 632. Smallest Range Covering Elements from K Lists
- 642. Design Search Autocomplete System π
- 658. Find K Closest Elements
- 659. Split Array into Consecutive Subsequences
- 675. Cut Off Trees for Golf Event
- 683. K Empty Slots π
- 692. Top K Frequent Words
- 703. Kth Largest Element in a Stream
- 743. Network Delay Time
- 759. Employee Free Time π
- 767. Reorganize String
- 778. Swim in Rising Water
- 786. K-th Smallest Prime Fraction
- 787. Cheapest Flights Within K Stops
- 855. Exam Room
- 857. Minimum Cost to Hire K Workers
- 862. Shortest Subarray with Sum at Least K
- 871. Minimum Number of Refueling Stops
- 882. Reachable Nodes In Subdivided Graph
- 912. Sort an Array
- 973. K Closest Points to Origin
- 1046. Last Stone Weight
- 1054. Distant Barcodes
- 1086. High Five π
- 1094. Car Pooling
- 1102. Path With Maximum Minimum Value π
- 1135. Connecting Cities With Minimum Cost π
- 1167. Minimum Cost to Connect Sticks π
- 1168. Optimize Water Distribution in a Village π
- 1172. Dinner Plate Stacks
- 1183. Maximum Number of Ones π
- 1199. Minimum Time to Build Blocks π
- 1263. Minimum Moves to Move a Box to Their Target Location
- 1268. Search Suggestions System
- 1337. The K Weakest Rows in a Matrix
- 1338. Reduce Array Size to The Half
- 1353. Maximum Number of Events That Can Be Attended
- 1354. Construct Target Array With Multiple Sums
- 1368. Minimum Cost to Make at Least One Valid Path in a Grid
- 1383. Maximum Performance of a Team
- 1388. Pizza With 3n Slices
- 1405. Longest Happy String
- 1424. Diagonal Traverse II
- 1425. Constrained Subsequence Sum
- 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
- 1464. Maximum Product of Two Elements in an Array
- 1488. Avoid Flood in The City
- 1499. Max Value of Equation
- 1500. Design a File Sharing System π
- 1514. Path with Maximum Probability
- 1606. Find Servers That Handled Most Number of Requests
- 1631. Path With Minimum Effort
- 1642. Furthest Building You Can Reach
- 1648. Sell Diminishing-Valued Colored Balls
- 1675. Minimize Deviation in Array
- 1686. Stone Game VI
- 1687. Delivering Boxes from Storage to Ports
- 1696. Jump Game VI
- 1705. Maximum Number of Eaten Apples
- 1738. Find Kth Largest XOR Coordinate Value
- 1753. Maximum Score From Removing Stones
- 1776. Car Fleet II
- 1786. Number of Restricted Paths From First to Last Node
- 1792. Maximum Average Pass Ratio
- 1801. Number of Orders in the Backlog
- 1810. Minimum Path Cost in a Hidden Grid π
- 1825. Finding MK Average
- 1834. Single-Threaded CPU
- 1845. Seat Reservation Manager
- 1851. Minimum Interval to Include Each Query
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1882. Process Tasks Using Servers
- 1912. Design Movie Rental System
- 1942. The Number of the Smallest Unoccupied Chair
- 1962. Remove Stones to Minimize the Total
- 1985. Find the Kth Largest Integer in the Array
- 2015. Average Height of Buildings in Each Segment π
- 2034. Stock Price Fluctuation
- 2054. Two Best Non-Overlapping Events
- 2093. Minimum Cost to Reach City With Discounts π
- 2099. Find Subsequence of Length K With the Largest Sum
- 2102. Sequentially Ordinal Rank Tracker
- 2146. K Highest Ranked Items Within a Price Range
- 2163. Minimum Difference in Sums After Removal of Elements
- 2182. Construct String With Repeat Limit
- 2208. Minimum Operations to Halve Array Sum
- 2231. Largest Number After Digit Swaps by Parity
- 2233. Maximum Product After K Increments
- 2285. Maximum Total Importance of Roads
- 2290. Minimum Obstacle Removal to Reach Corner
- 2333. Minimum Sum of Squared Difference
- 2335. Minimum Amount of Time to Fill Cups
- 2336. Smallest Number in Infinite Set
- 2342. Max Sum of a Pair With Equal Sum of Digits
- 2343. Query Kth Smallest Trimmed Number
- 2344. Minimum Deletions to Make Array Divisible
- 2349. Design a Number Container System
- 2353. Design a Food Rating System
- 2357. Make Array Zero by Subtracting Equal Amounts
- 2386. Find the K-Sum of an Array
- 2398. Maximum Number of Robots Within Budget
- 2402. Meeting Rooms III
- 2406. Divide Intervals Into Minimum Number of Groups
- 2424. Longest Uploaded Prefix
- 2454. Next Greater Element IV
- 2456. Most Popular Video Creator
- 2462. Total Cost to Hire K Workers
- 2473. Minimum Cost to Buy Apples π
- 2497. Maximum Star Sum of a Graph
- 2500. Delete Greatest Value in Each Row
- 2503. Maximum Number of Points From Grid Queries
- 2512. Reward Top K Students
- 2530. Maximal Score After Applying K Operations
- 2532. Time to Cross a Bridge
- 2542. Maximum Subsequence Score
- 2551. Put Marbles in Bags
- 2558. Take Gifts From the Richest Pile
- 2577. Minimum Time to Visit a Cell In a Grid
- 2593. Find Score of an Array After Marking All Elements
- 2599. Make the Prefix Sum Non-negative π
- 2611. Mice and Cheese
- 2617. Minimum Number of Visited Cells in a Grid
- 2642. Design Graph With Shortest Path Calculator
- 2662. Minimum Cost of a Path With Special Roads
- 2679. Sum in a Matrix
- 2699. Modify Graph Edge Weights
- 2714. Find Shortest Path with K Hops π
- 2737. Find the Closest Marked Node π
- 2762. Continuous Subarrays
- 2813. Maximum Elegance of a K-Length Subsequence
- 2931. Maximum Spending After Buying Items
- 2940. Find Building Where Alice and Bob Can Meet
- 2944. Minimum Number of Coins for Fruits
- 2959. Number of Possible Sets of Closing Branches
- 2969. Minimum Number of Coins for Fruits II π
- 2973. Find Number of Coins to Place in Tree Nodes
- 2974. Minimum Number Game
- 3013. Divide an Array Into Subarrays With Minimum Cost II
- 3049. Earliest Second to Mark Indices II
- 3066. Minimum Operations to Exceed Threshold Value II
- 3080. Mark Elements on Array by Performing Queries
- 3081. Replace Question Marks in String to Minimize Its Value
- 3092. Most Frequent IDs
- 3112. Minimum Time to Visit Disappearing Nodes
- 3123. Find Edges in Shortest Paths
- 3170. Lexicographically Minimum String After Removing Stars
- 3264. Final Array State After K Multiplication Operations I
- 3266. Final Array State After K Multiplication Operations II
- 3275. K-th Nearest Obstacle Queries
- 3286. Find a Safe Walk Through a Grid
- 3296. Minimum Number of Seconds to Make Mountain Height Zero
- 3318. Find X-Sum of All K-Long Subarrays I
- 3321. Find X-Sum of All K-Long Subarrays II
- 3341. Find Minimum Time to Reach Last Room I
- 3342. Find Minimum Time to Reach Last Room II
- 3362. Zero Array Transformation III
- 3377. Digit Operations to Make Two Integers Equal
Interactive
- 157. Read N Characters Given Read4 π
- 158. Read N Characters Given read4 II - Call Multiple Times π
- 277. Find the Celebrity π
- 278. First Bad Version
- 374. Guess Number Higher or Lower
- 489. Robot Room Cleaner π
- 702. Search in a Sorted Array of Unknown Size π
- 843. Guess the Word
- 1095. Find in Mountain Array
- 1236. Web Crawler π
- 1237. Find Positive Integer Solution for a Given Equation
- 1274. Number of Ships in a Rectangle π
- 1428. Leftmost Column with at Least a One π
- 1533. Find the Index of the Large Integer π
- 1538. Guess the Majority in a Hidden Array π
- 1618. Maximum Font to Fit a Sentence in a Screen π
- 1778. Shortest Path in a Hidden Grid π
- 1810. Minimum Path Cost in a Hidden Grid π
- 2728. Count Houses in a Circular Street π
- 2782. Number of Unique Categories π
- 2936. Number of Equal Numbers Blocks π
- 3064. Guess the Number Using Bitwise Questions I π
- 3094. Guess the Number Using Bitwise Questions II π
Iterator
- 173. Binary Search Tree Iterator
- 251. Flatten 2D Vector π
- 281. Zigzag Iterator π
- 284. Peeking Iterator
- 341. Flatten Nested List Iterator
- 604. Design Compressed String Iterator π
- 900. RLE Iterator
- 1286. Iterator for Combination
- 1586. Binary Search Tree Iterator II π
JavaScript
- 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
- 2648. Generate Fibonacci Sequence
- 2649. Nested Array Generator
- 2650. Design Cancellable Function
- 2665. Counter II
- 2666. Allow One Function Call
- 2667. Create Hello World Function
- 2675. Array of Objects to Matrix π
- 2676. Throttle π
- 2677. Chunk Array
- 2690. Infinite Method Object π
- 2691. Immutability Helper π
- 2692. Make Object Immutable π
- 2693. Call Function with Custom Context
- 2694. Event Emitter
- 2695. Array Wrapper
- 2700. Differences Between Two Objects π
- 2703. Return Length of Arguments Passed
- 2704. To Be Or Not To Be
- 2705. Compact Object
- 2715. Timeout Cancellation
- 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
- 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 π
- 2774. Array Upper Bound π
- 2775. Undefined to Null π
- 2776. Convert Callback Based Function to Promise Based Function π
- 2777. Date Range Generator π
- 2794. Create Object from Two Arrays π
- 2795. Parallel Execution of Promises for Individual Results Retrieval π
- 2796. Repeat String π
- 2797. Partial Function with Placeholders π
- 2803. Factorial Generator π
- 2804. Array Prototype ForEach π
- 2805. Custom Interval π
- 2821. Delay the Resolution of Each Promise π
- 2822. Inversion of Object π
- 2823. Deep Object Filter π
Line Sweep
- 218. The Skyline Problem
- 391. Perfect Rectangle
- 850. Rectangle Area II
- 1851. Minimum Interval to Include Each Query
Linked List
- 2. Add Two Numbers
- 19. Remove Nth Node From End of List
- 21. Merge Two Sorted Lists
- 23. Merge k Sorted Lists
- 24. Swap Nodes in Pairs
- 25. Reverse Nodes in k-Group
- 61. Rotate List
- 82. Remove Duplicates from Sorted List II
- 83. Remove Duplicates from Sorted List
- 86. Partition List
- 92. Reverse Linked List II
- 109. Convert Sorted List to Binary Search Tree
- 114. Flatten Binary Tree to Linked List
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 138. Copy List with Random Pointer
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 143. Reorder List
- 146. LRU Cache
- 147. Insertion Sort List
- 148. Sort List
- 160. Intersection of Two Linked Lists
- 203. Remove Linked List Elements
- 206. Reverse Linked List
- 234. Palindrome Linked List
- 237. Delete Node in a Linked List
- 328. Odd Even Linked List
- 355. Design Twitter
- 369. Plus One Linked List π
- 379. Design Phone Directory π
- 382. Linked List Random Node
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 430. Flatten a Multilevel Doubly Linked List
- 432. All O`one Data Structure
- 445. Add Two Numbers II
- 460. LFU Cache
- 622. Design Circular Queue
- 641. Design Circular Deque
- 705. Design HashSet
- 706. Design HashMap
- 707. Design Linked List
- 708. Insert into a Sorted Circular Linked List π
- 716. Max Stack π
- 725. Split Linked List in Parts
- 817. Linked List Components
- 876. Middle of the Linked List
- 1019. Next Greater Node In Linked List
- 1171. Remove Zero Sum Consecutive Nodes from Linked List
- 1206. Design Skiplist
- 1265. Print Immutable Linked List in Reverse π
- 1290. Convert Binary Number in a Linked List to Integer
- 1367. Linked List in Binary Tree
- 1472. Design Browser History
- 1474. Delete N Nodes After M Nodes of a Linked List π
- 1634. Add Two Polynomials Represented as Linked Lists π
- 1669. Merge In Between Linked Lists
- 1670. Design Front Middle Back Queue
- 1721. Swapping Nodes in a Linked List
- 1797. Design Authentication Manager
- 1836. Remove Duplicates From an Unsorted Linked List π
- 2046. Sort Linked List Already Sorted Using Absolute Values π
- 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
- 2074. Reverse Nodes in Even Length Groups
- 2095. Delete the Middle Node of a Linked List
- 2130. Maximum Twin Sum of a Linked List
- 2181. Merge Nodes in Between Zeros
- 2289. Steps to Make Array Non-decreasing
- 2296. Design a Text Editor
- 2326. Spiral Matrix IV
- 2487. Remove Nodes From Linked List
- 2674. Split a Circular Linked List π
- 2807. Insert Greatest Common Divisors in Linked List
- 2816. Double a Number Represented as a Linked List
- 3062. Winner of the Linked List Game π
- 3063. Linked List Frequency π
- 3217. Delete Nodes From Linked List Present in Array
- 3263. Convert Doubly Linked List to Array I π
- 3294. Convert Doubly Linked List to Array II π
Math
- 2. Add Two Numbers
- 7. Reverse Integer
- 9. Palindrome Number
- 12. Integer to Roman
- 13. Roman to Integer
- 29. Divide Two Integers
- 43. Multiply Strings
- 48. Rotate Image
- 50. Pow(x, n)
- 60. Permutation Sequence
- 62. Unique Paths
- 66. Plus One
- 67. Add Binary
- 69. Sqrt(x)
- 70. Climbing Stairs
- 89. Gray Code
- 96. Unique Binary Search Trees
- 149. Max Points on a Line
- 150. Evaluate Reverse Polish Notation
- 166. Fraction to Recurring Decimal
- 168. Excel Sheet Column Title
- 171. Excel Sheet Column Number
- 172. Factorial Trailing Zeroes
- 189. Rotate Array
- 202. Happy Number
- 204. Count Primes
- 223. Rectangle Area
- 224. Basic Calculator
- 227. Basic Calculator II
- 231. Power of Two
- 233. Number of Digit One
- 241. Different Ways to Add Parentheses
- 258. Add Digits
- 263. Ugly Number
- 264. Ugly Number II
- 268. Missing Number
- 273. Integer to English Words
- 279. Perfect Squares
- 282. Expression Add Operators
- 292. Nim Game
- 294. Flip Game II π
- 296. Best Meeting Point π
- 313. Super Ugly Number
- 319. Bulb Switcher
- 326. Power of Three
- 335. Self Crossing
- 342. Power of Four
- 343. Integer Break
- 356. Line Reflection π
- 357. Count Numbers with Unique Digits
- 360. Sort Transformed Array π
- 365. Water and Jug Problem
- 367. Valid Perfect Square
- 368. Largest Divisible Subset
- 369. Plus One Linked List π
- 371. Sum of Two Integers
- 372. Super Pow
- 375. Guess Number Higher or Lower II
- 380. Insert Delete GetRandom O(1)
- 381. Insert Delete GetRandom O(1) - Duplicates allowed
- 382. Linked List Random Node
- 384. Shuffle an Array
- 390. Elimination Game
- 396. Rotate Function
- 398. Random Pick Index
- 400. Nth Digit
- 405. Convert a Number to Hexadecimal
- 412. Fizz Buzz
- 415. Add Strings
- 423. Reconstruct Original Digits from English
- 441. Arranging Coins
- 445. Add Two Numbers II
- 447. Number of Boomerangs
- 453. Minimum Moves to Equal Array Elements
- 458. Poor Pigs
- 462. Minimum Moves to Equal Array Elements II
- 464. Can I Win
- 469. Convex Polygon π
- 470. Implement Rand10() Using Rand7()
- 477. Total Hamming Distance
- 478. Generate Random Point in a Circle
- 479. Largest Palindrome Product
- 483. Smallest Good Base
- 486. Predict the Winner
- 492. Construct the Rectangle
- 497. Random Point in Non-overlapping Rectangles
- 504. Base 7
- 507. Perfect Number
- 509. Fibonacci Number
- 519. Random Flip Matrix
- 523. Continuous Subarray Sum
- 528. Random Pick with Weight
- 537. Complex Number Multiplication
- 539. Minimum Time Difference
- 553. Optimal Division
- 556. Next Greater Element III
- 564. Find the Closest Palindrome
- 573. Squirrel Simulation π
- 587. Erect the Fence
- 592. Fraction Addition and Subtraction
- 593. Valid Square
- 598. Range Addition II
- 625. Minimum Factorization π
- 628. Maximum Product of Three Numbers
- 633. Sum of Square Numbers
- 634. Find the Derangement of An Array π
- 640. Solve the Equation
- 650. 2 Keys Keyboard
- 651. 4 Keys Keyboard π
- 660. Remove 9 π
- 667. Beautiful Arrangement II
- 668. Kth Smallest Number in Multiplication Table
- 670. Maximum Swap
- 672. Bulb Switcher II
- 679. 24 Game
- 710. Random Pick with Blacklist
- 728. Self Dividing Numbers
- 738. Monotone Increasing Digits
- 750. Number Of Corner Rectangles π
- 754. Reach a Number
- 762. Prime Number of Set Bits in Binary Representation
- 770. Basic Calculator IV
- 772. Basic Calculator III π
- 775. Global and Local Inversions
- 779. K-th Symbol in Grammar
- 780. Reaching Points
- 781. Rabbits in Forest
- 782. Transform to Chessboard
- 788. Rotated Digits
- 789. Escape The Ghosts
- 793. Preimage Size of Factorial Zeroes Function
- 800. Similar RGB Color π
- 805. Split Array With Same Average
- 808. Soup Servings
- 810. Chalkboard XOR Game
- 812. Largest Triangle Area
- 829. Consecutive Numbers Sum
- 836. Rectangle Overlap
- 837. New 21 Game
- 840. Magic Squares In Grid
- 843. Guess the Word
- 858. Mirror Reflection
- 866. Prime Palindrome
- 869. Reordered Power of 2
- 877. Stone Game
- 878. Nth Magical Number
- 883. Projection Area of 3D Shapes
- 887. Super Egg Drop
- 891. Sum of Subsequence Widths
- 892. Surface Area of 3D Shapes
- 899. Orderly Queue
- 902. Numbers At Most N Given Digit Set
- 906. Super Palindromes
- 908. Smallest Range I
- 910. Smallest Range II
- 913. Cat and Mouse
- 914. X of a Kind in a Deck of Cards
- 920. Number of Music Playlists
- 927. Three Equal Parts
- 932. Beautiful Array
- 939. Minimum Area Rectangle
- 952. Largest Component Size by Common Factor
- 957. Prison Cells After N Days
- 963. Minimum Area Rectangle II
- 964. Least Operators to Express Number
- 970. Powerful Integers
- 972. Equal Rational Numbers
- 973. K Closest Points to Origin
- 976. Largest Perimeter Triangle
- 989. Add to Array-Form of Integer
- 991. Broken Calculator
- 996. Number of Squareful Arrays
- 1006. Clumsy Factorial
- 1012. Numbers With Repeated Digits
- 1015. Smallest Integer Divisible by K
- 1017. Convert to Base -2
- 1025. Divisor Game
- 1030. Matrix Cells in Distance Order
- 1033. Moving Stones Until Consecutive
- 1037. Valid Boomerang
- 1040. Moving Stones Until Consecutive II
- 1041. Robot Bounded In Circle
- 1056. Confusing Number π
- 1058. Minimize Rounding Error to Meet Target π
- 1067. Digit Count in Range π
- 1071. Greatest Common Divisor of Strings
- 1073. Adding Two Negabinary Numbers
- 1085. Sum of Digits in the Minimum Number π
- 1088. Confusing Number II π
- 1093. Statistics from a Large Sample
- 1103. Distribute Candies to People
- 1104. Path In Zigzag Labelled Binary Tree
- 1118. Number of Days in a Month π
- 1131. Maximum of Absolute Value Expression
- 1134. Armstrong Number π
- 1137. N-th Tribonacci Number
- 1140. Stone Game II
- 1154. Day of the Year
- 1175. Prime Arrangements
- 1180. Count Substrings with Only One Distinct Letter π
- 1185. Day of the Week
- 1199. Minimum Time to Build Blocks π
- 1201. Ugly Number III
- 1215. Stepping Numbers π
- 1217. Minimum Cost to Move Chips to The Same Position
- 1227. Airplane Seat Assignment Probability
- 1228. Missing Number In Arithmetic Progression π
- 1230. Toss Strange Coins π
- 1232. Check If It Is a Straight Line
- 1237. Find Positive Integer Solution for a Given Equation
- 1238. Circular Permutation in Binary Representation
- 1247. Minimum Swaps to Make Strings Equal
- 1248. Count Number of Nice Subarrays
- 1250. Check If It Is a Good Array
- 1252. Cells with Odd Values in a Matrix
- 1256. Encode Number π
- 1259. Handshakes That Don't Cross π
- 1266. Minimum Time Visiting All Points
- 1271. Hexspeak π
- 1276. Number of Burgers with No Waste of Ingredients
- 1281. Subtract the Product and Sum of Digits of an Integer
- 1290. Convert Binary Number in a Linked List to Integer
- 1295. Find Numbers with Even Number of Digits
- 1304. Find N Unique Integers Sum up to Zero
- 1307. Verbal Arithmetic Puzzle
- 1317. Convert Integer to the Sum of Two No-Zero Integers
- 1323. Maximum 69 Number
- 1330. Reverse Subarray To Maximize Array Value
- 1342. Number of Steps to Reduce a Number to Zero
- 1344. Angle Between Hands of a Clock
- 1352. Product of the Last K Numbers
- 1359. Count All Valid Pickup and Delivery Options
- 1360. Number of Days Between Two Dates
- 1362. Closest Divisors
- 1390. Four Divisors
- 1399. Count Largest Group
- 1401. Circle and Rectangle Overlapping
- 1406. Stone Game III
- 1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- 1427. Perform String Shifts π
- 1432. Max Difference You Can Get From Changing an Integer
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1447. Simplified Fractions
- 1453. Maximum Number of Darts Inside of a Circular Dartboard
- 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
- 1478. Allocate Mailboxes
- 1486. XOR Operation in an Array
- 1492. The kth Factor of n
- 1510. Stone Game IV
- 1512. Number of Good Pairs
- 1513. Number of Substrings With Only 1s
- 1515. Best Position for a Service Centre
- 1518. Water Bottles
- 1523. Count Odd Numbers in an Interval Range
- 1524. Number of Sub-arrays With Odd Sum
- 1538. Guess the Majority in a Hidden Array π
- 1551. Minimum Operations to Make Array Equal
- 1561. Maximum Number of Coins You Can Get
- 1563. Stone Game V
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1573. Number of Ways to Split a String
- 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1588. Sum of All Odd Length Subarrays
- 1610. Maximum Number of Visible Points
- 1621. Number of Sets of K Non-Overlapping Line Segments
- 1622. Fancy Sequence
- 1627. Graph Connectivity With Threshold
- 1628. Design an Expression Tree With Evaluate Function π
- 1634. Add Two Polynomials Represented as Linked Lists π
- 1641. Count Sorted Vowel Strings
- 1643. Kth Smallest Instructions
- 1648. Sell Diminishing-Valued Colored Balls
- 1680. Concatenation of Consecutive Binary Numbers
- 1685. Sum of Absolute Differences in a Sorted Array
- 1686. Stone Game VI
- 1688. Count of Matches in Tournament
- 1690. Stone Game VII
- 1716. Calculate Money in Leetcode Bank
- 1728. Cat and Mouse II
- 1735. Count Ways to Make Array With Product
- 1739. Building Boxes
- 1742. Maximum Number of Balls in a Box
- 1753. Maximum Score From Removing Stones
- 1759. Count Number of Homogenous Substrings
- 1766. Tree of Coprimes
- 1776. Car Fleet II
- 1780. Check if Number is a Sum of Powers of Three
- 1799. Maximize Score After N Operations
- 1806. Minimum Number of Operations to Reinitialize a Permutation
- 1808. Maximize Number of Nice Divisors
- 1812. Determine Color of a Chessboard Square
- 1814. Count Nice Pairs in an Array
- 1819. Number of Different Subsequences GCDs
- 1822. Sign of the Product of an Array
- 1823. Find the Winner of the Circular Game
- 1828. Queries on Number of Points Inside a Circle
- 1830. Minimum Number of Operations to Make String Sorted
- 1835. Find XOR Sum of All Pairs Bitwise AND
- 1837. Sum of Digits in Base K
- 1840. Maximum Building Height
- 1860. Incremental Memory Leak
- 1862. Sum of Floored Pairs
- 1863. Sum of All Subset XOR Totals
- 1866. Number of Ways to Rearrange Sticks With K Sticks Visible
- 1872. Stone Game VIII
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1884. Egg Drop With 2 Eggs and N Floors
- 1896. Minimum Cost to Change the Final Value of Expression
- 1903. Largest Odd Number in String
- 1904. The Number of Full Rounds You Have Played
- 1908. Game of Nim π
- 1916. Count Ways to Build Rooms in an Ant Colony
- 1922. Count Good Numbers
- 1924. Erect the Fence II π
- 1925. Count Square Sum Triples
- 1927. Sum Game
- 1952. Three Divisors
- 1954. Minimum Garden Perimeter to Collect Enough Apples
- 1956. Minimum Time For K Virus Variants to Spread π
- 1969. Minimum Non-Zero Product of the Array Elements
- 1979. Find Greatest Common Divisor of Array
- 1994. The Number of Good Subsets
- 1998. GCD Sort of an Array
- 1999. Smallest Greater Multiple Made of Two Digits π
- 2001. Number of Pairs of Interchangeable Rectangles
- 2005. Subtree Removal Game with Fibonacci Tree π
- 2019. The Score of Students Solving Math Expression
- 2028. Find Missing Observations
- 2029. Stone Game IX
- 2033. Minimum Operations to Make a Uni-Value Grid
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2048. Next Greater Numerically Balanced Number
- 2063. Vowels of All Substrings
- 2081. Sum of k-Mirror Numbers
- 2083. Substrings That Begin and End With the Same Letter π
- 2101. Detonate the Maximum Bombs
- 2110. Number of Smooth Descent Periods of a Stock
- 2117. Abbreviating the Product of a Range
- 2119. A Number After a Double Reversal
- 2125. Number of Laser Beams in a Bank
- 2128. Remove All Ones With Row and Column Flips π
- 2139. Minimum Moves to Reach Target Score
- 2147. Number of Ways to Divide a Long Corridor
- 2152. Minimum Number of Lines to Cover Points π
- 2160. Minimum Sum of Four Digit Number After Splitting Digits
- 2162. Minimum Cost to Set Cooking Time
- 2165. Smallest Value of the Rearranged Number
- 2169. Count Operations to Obtain Zero
- 2177. Find Three Consecutive Integers That Sum to a Given Number
- 2178. Maximum Split of Positive Even Integers
- 2180. Count Integers With Even Digit Sum
- 2183. Count Array Pairs Divisible by K
- 2189. Number of Ways to Build House of Cards π
- 2195. Append K Integers With Minimal Sum
- 2197. Replace Non-Coprime Numbers in Array
- 2198. Number of Single Divisor Triplets π
- 2217. Find Palindrome With Fixed Length
- 2221. Find Triangular Sum of an Array
- 2235. Add Two Integers
- 2240. Number of Ways to Buy Pens and Pencils
- 2249. Count Lattice Points Inside a Circle
- 2266. Count Number of Texts
- 2269. Find the K-Beauty of a Number
- 2280. Minimum Lines to Represent a Line Chart
- 2310. Sum of Numbers With Units Digit K
- 2317. Maximum XOR After Operations
- 2338. Count the Number of Ideal Arrays
- 2344. Minimum Deletions to Make Array Divisible
- 2348. Number of Zero-Filled Subarrays
- 2358. Maximum Number of Groups Entering a Competition
- 2364. Count Number of Bad Pairs
- 2366. Minimum Replacements to Sort the Array
- 2376. Count Special Integers
- 2393. Count Strictly Increasing Subarrays π
- 2396. Strictly Palindromic Number
- 2400. Number of Ways to Reach a Position After Exactly k Steps
- 2409. Count Days Spent Together
- 2413. Smallest Even Multiple
- 2417. Closest Fair Integer π
- 2427. Number of Common Factors
- 2436. Minimum Split Into Subarrays With GCD Greater Than One π
- 2440. Create Components With Same Value
- 2442. Count Number of Distinct Integers After Reverse Operations
- 2443. Sum of Number and Its Reverse
- 2447. Number of Subarrays With GCD Equal to K
- 2450. Number of Distinct Binary Strings After Applying Operations π
- 2455. Average Value of Even Numbers That Are Divisible by Three
- 2457. Minimum Addition to Make Integer Beautiful
- 2464. Minimum Subarrays in a Valid Split π
- 2469. Convert the Temperature
- 2470. Number of Subarrays With LCM Equal to K
- 2481. Minimum Cuts to Divide a Circle
- 2485. Find the Pivot Integer
- 2489. Number of Substrings With Fixed Ratio π
- 2495. Number of Subarrays Having Even Product π
- 2505. Bitwise OR of All Subsequence Sums π
- 2507. Smallest Value After Replacing With Sum of Prime Factors
- 2513. Minimize the Maximum of Two Arrays
- 2514. Count Anagrams
- 2520. Count the Digits That Divide a Number
- 2521. Distinct Prime Factors of Product of Array
- 2523. Closest Prime Numbers in Range
- 2524. Maximum Frequency Score of a Subarray π
- 2525. Categorize Box According to Criteria
- 2527. Find Xor-Beauty of Array
- 2535. Difference Between Element Sum and Digit Sum of an Array
- 2539. Count the Number of Good Subsequences π
- 2541. Minimum Operations to Make Array Equal II
- 2543. Check if Point Is Reachable
- 2544. Alternating Digit Sum
- 2549. Count Distinct Numbers on Board
- 2550. Count Collisions of Monkeys on a Polygon
- 2566. Maximum Difference by Remapping a Digit
- 2572. Count the Number of Square-Free Subsets
- 2575. Find the Divisibility Array of a String
- 2578. Split With Minimum Sum
- 2579. Count Total Number of Colored Cells
- 2582. Pass the Pillow
- 2584. Split the Array to Make Coprime Products
- 2591. Distribute Money to Maximum Children
- 2597. The Number of Beautiful Subsets
- 2598. Smallest Missing Non-negative Integer After Operations
- 2600. K Items With the Maximum Sum
- 2601. Prime Subtraction Operation
- 2607. Make K-Subarray Sums Equal
- 2613. Beautiful Pairs π
- 2614. Prime In Diagonal
- 2638. Count the Number of K-Free Subsets π
- 2647. Color the Triangle Red π
- 2651. Calculate Delayed Arrival Time
- 2652. Sum Multiples
- 2654. Minimum Number of Operations to Make All Array Elements Equal to 1
- 2681. Power of Heroes
- 2698. Find the Punishment Number of an Integer
- 2709. Greatest Common Divisor Traversal
- 2719. Count of Integers
- 2729. Check if The Number is Fascinating
- 2739. Total Distance Traveled
- 2745. Construct the Longest New String
- 2748. Number of Beautiful Pairs
- 2750. Ways to Split Array Into Good Subarrays
- 2761. Prime Pairs With Target Sum
- 2769. Find the Maximum Achievable Number
- 2790. Maximum Number of Groups With Increasing Length
- 2802. Find The K-th Lucky Number π
- 2806. Account Balance After Rounded Purchase
- 2807. Insert Greatest Common Divisors in Linked List
- 2816. Double a Number Represented as a Linked List
- 2818. Apply Operations to Maximize Score
- 2827. Number of Beautiful Integers in the Range
- 2829. Determine the Minimum Sum of a k-avoiding Array
- 2834. Find the Minimum Possible Sum of a Beautiful Array
- 2842. Count K-Subsequences of a String With Maximum Beauty
- 2843. Count Symmetric Integers
- 2844. Minimum Operations to Make a Special Number
- 2847. Smallest Number With Given Digit Product π
- 2849. Determine if a Cell Is Reachable at a Given Time
- 2851. String Transformation
- 2862. Maximum Element-Sum of a Complete Subset of Indices
- 2864. Maximum Odd Binary Number
- 2867. Count Valid Paths in a Tree
- 2868. The Wording Game π
- 2894. Divisible and Non-divisible Sums Difference
- 2912. Number of Ways to Reach Destination in the Grid π
- 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
- 2939. Maximum Xor Product
- 2941. Maximum GCD-Sum of a Subarray π
- 2946. Matrix Similarity After Cyclic Shifts
- 2947. Count Beautiful Substrings I
- 2949. Count Beautiful Substrings II
- 2954. Count the Number of Infection Sequences
- 2961. Double Modular Exponentiation
- 2963. Count the Number of Good Partitions
- 2965. Find Missing and Repeated Values
- 2967. Minimum Cost to Make Array Equalindromic
- 2979. Most Expensive Item That Can Not Be Bought π
- 2999. Count the Number of Powerful Integers
- 3001. Minimum Moves to Capture The Queen
- 3009. Maximum Number of Intersections on the Chart π
- 3012. Minimize Length of Array Using Operations
- 3014. Minimum Number of Pushes to Type Word I
- 3021. Alice and Bob Playing Flower Game
- 3024. Type of Triangle
- 3025. Find the Number of Ways to Place People I
- 3027. Find the Number of Ways to Place People II
- 3032. Count Numbers With Unique Digits II π
- 3044. Most Frequent Prime
- 3047. Find the Largest Area of Square Inside Two Rectangles
- 3079. Find the Sum of Encrypted Integers
- 3084. Count Substrings Starting and Ending with Given Character
- 3091. Apply Operations to Make Sum of Array Greater Than or Equal to k
- 3099. Harshad Number
- 3100. Water Bottles II
- 3101. Count Alternating Subarrays
- 3102. Minimize Manhattan Distances
- 3115. Maximum Prime Difference
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3128. Right Triangles
- 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 π
- 3178. Find the Child Who Has the Ball After K Seconds
- 3179. Find the N-th Value After K Seconds
- 3190. Find Minimum Operations to Make All Elements Divisible by Three
- 3222. Find the Winning Player in Coin Game
- 3227. Vowels Game in a String
- 3232. Find if Digit Game Can Be Won
- 3233. Find the Count of Numbers Which Are Not Special
- 3235. Check if the Rectangle Corner Is Reachable
- 3247. Number of Subsequences with Odd Sum π
- 3250. Find the Count of Monotonic Pairs I
- 3251. Find the Count of Monotonic Pairs II
- 3260. Find the Largest Palindrome Divisible by K
- 3264. Final Array State After K Multiplication Operations I
- 3270. Find the Key of the Numbers
- 3272. Find the Count of Good Integers
- 3274. Check if Two Chessboard Squares Have the Same Color
- 3280. Convert Date to Binary
- 3283. Maximum Number of Moves to Kill All Pawns
- 3289. The Two Sneaky Numbers of Digitville
- 3296. Minimum Number of Seconds to Make Mountain Height Zero
- 3300. Minimum Element After Replacement With Digit Sum
- 3304. Find the K-th Character in String Game I
- 3307. Find the K-th Character in String Game II
- 3312. Sorted GCD Pair Queries
- 3317. Find the Number of Possible Ways for an Event
- 3326. Minimum Division Operations to Make Array Non Decreasing
- 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
- 3343. Count Number of Balanced Permutations
- 3345. Smallest Divisible Digit Product I
- 3348. Smallest Divisible Digit Product II
- 3352. Count K-Reducible Numbers Less Than N
- 3360. Stone Removal Game
- 3370. Smallest Number With All Set Bits
- 3377. Digit Operations to Make Two Integers Equal
- 3378. Count Connected Components in LCM Graph
- 3380. Maximum Area Rectangle With Point Constraints I
- 3382. Maximum Area Rectangle With Point Constraints II
Matrix
- 36. Valid Sudoku
- 37. Sudoku Solver
- 48. Rotate Image
- 54. Spiral Matrix
- 59. Spiral Matrix II
- 63. Unique Paths II
- 64. Minimum Path Sum
- 73. Set Matrix Zeroes
- 74. Search a 2D Matrix
- 79. Word Search
- 85. Maximal Rectangle
- 130. Surrounded Regions
- 174. Dungeon Game
- 200. Number of Islands
- 212. Word Search II
- 221. Maximal Square
- 240. Search a 2D Matrix II
- 286. Walls and Gates π
- 289. Game of Life
- 296. Best Meeting Point π
- 302. Smallest Rectangle Enclosing Black Pixels π
- 304. Range Sum Query 2D - Immutable
- 308. Range Sum Query 2D - Mutable π
- 311. Sparse Matrix Multiplication π
- 317. Shortest Distance from All Buildings π
- 329. Longest Increasing Path in a Matrix
- 348. Design Tic-Tac-Toe π
- 361. Bomb Enemy π
- 363. Max Sum of Rectangle No Larger Than K
- 378. Kth Smallest Element in a Sorted Matrix
- 407. Trapping Rain Water II
- 417. Pacific Atlantic Water Flow
- 419. Battleships in a Board
- 422. Valid Word Square π
- 427. Construct Quad Tree
- 463. Island Perimeter
- 490. The Maze π
- 498. Diagonal Traverse
- 499. The Maze III π
- 505. The Maze II π
- 529. Minesweeper
- 531. Lonely Pixel I π
- 533. Lonely Pixel II π
- 542. 1 Matrix
- 562. Longest Line of Consecutive One in Matrix π
- 566. Reshape the Matrix
- 568. Maximum Vacation Days π
- 631. Design Excel Sum Formula π
- 661. Image Smoother
- 675. Cut Off Trees for Golf Event
- 695. Max Area of Island
- 723. Candy Crush π
- 733. Flood Fill
- 741. Cherry Pickup
- 749. Contain Virus
- 750. Number Of Corner Rectangles π
- 766. Toeplitz Matrix
- 773. Sliding Puzzle
- 778. Swim in Rising Water
- 782. Transform to Chessboard
- 794. Valid Tic-Tac-Toe State
- 803. Bricks Falling When Hit
- 807. Max Increase to Keep City Skyline
- 827. Making A Large Island
- 832. Flipping an Image
- 835. Image Overlap
- 840. Magic Squares In Grid
- 861. Score After Flipping Matrix
- 864. Shortest Path to Get All Keys
- 867. Transpose Matrix
- 883. Projection Area of 3D Shapes
- 885. Spiral Matrix III
- 892. Surface Area of 3D Shapes
- 909. Snakes and Ladders
- 931. Minimum Falling Path Sum
- 934. Shortest Bridge
- 959. Regions Cut By Slashes
- 980. Unique Paths III
- 994. Rotting Oranges
- 999. Available Captures for Rook
- 1020. Number of Enclaves
- 1030. Matrix Cells in Distance Order
- 1034. Coloring A Border
- 1072. Flip Columns For Maximum Number of Equal Rows
- 1074. Number of Submatrices That Sum to Target
- 1091. Shortest Path in Binary Matrix
- 1102. Path With Maximum Minimum Value π
- 1139. Largest 1-Bordered Square
- 1162. As Far from Land as Possible
- 1198. Find Smallest Common Element in All Rows π
- 1210. Minimum Moves to Reach Target with Rotations
- 1219. Path with Maximum Gold
- 1222. Queens That Can Attack the King
- 1253. Reconstruct a 2-Row Binary Matrix
- 1254. Number of Closed Islands
- 1260. Shift 2D Grid
- 1263. Minimum Moves to Move a Box to Their Target Location
- 1267. Count Servers that Communicate
- 1275. Find Winner on a Tic Tac Toe Game
- 1277. Count Square Submatrices with All Ones
- 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
- 1289. Minimum Falling Path Sum II
- 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1293. Shortest Path in a Grid with Obstacles Elimination
- 1301. Number of Paths with Max Score
- 1314. Matrix Block Sum
- 1329. Sort the Matrix Diagonally
- 1337. The K Weakest Rows in a Matrix
- 1349. Maximum Students Taking Exam
- 1351. Count Negative Numbers in a Sorted Matrix
- 1368. Minimum Cost to Make at Least One Valid Path in a Grid
- 1380. Lucky Numbers in a Matrix
- 1391. Check if There is a Valid Path in a Grid
- 1428. Leftmost Column with at Least a One π
- 1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows
- 1444. Number of Ways of Cutting a Pizza
- 1463. Cherry Pickup II
- 1476. Subrectangle Queries
- 1504. Count Submatrices With All Ones
- 1536. Minimum Swaps to Arrange a Binary Grid
- 1559. Detect Cycles in 2D Grid
- 1568. Minimum Number of Days to Disconnect Island
- 1572. Matrix Diagonal Sum
- 1582. Special Positions in a Binary Matrix
- 1591. Strange Printer II
- 1594. Maximum Non Negative Product in a Matrix
- 1595. Minimum Cost to Connect Two Groups of Points
- 1605. Find Valid Matrix Given Row and Column Sums
- 1631. Path With Minimum Effort
- 1632. Rank Transform of a Matrix
- 1672. Richest Customer Wealth
- 1706. Where Will the Ball Fall
- 1727. Largest Submatrix With Rearrangements
- 1728. Cat and Mouse II
- 1730. Shortest Path to Get Food π
- 1738. Find Kth Largest XOR Coordinate Value
- 1765. Map of Highest Peak
- 1820. Maximum Number of Accepted Invitations π
- 1861. Rotating the Box
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1886. Determine Whether Matrix Can Be Obtained By Rotation
- 1895. Largest Magic Square
- 1901. Find a Peak Element II
- 1905. Count Sub Islands
- 1914. Cyclically Rotating a Grid
- 1926. Nearest Exit from Entrance in Maze
- 1937. Maximum Number of Points with Cost
- 1958. Check if Move is Legal
- 1970. Last Day Where You Can Still Cross
- 1975. Maximum Matrix Sum
- 1981. Minimize the Difference Between Target and Chosen Elements
- 1992. Find All Groups of Farmland
- 2017. Grid Game
- 2018. Check if Word Can Be Placed In Crossword
- 2022. Convert 1D Array Into 2D Array
- 2033. Minimum Operations to Make a Uni-Value Grid
- 2061. Number of Spaces Cleaning Robot Cleaned π
- 2088. Count Fertile Pyramids in a Land
- 2123. Minimum Operations to Remove Adjacent Ones in Matrix π
- 2125. Number of Laser Beams in a Bank
- 2128. Remove All Ones With Row and Column Flips π
- 2132. Stamping the Grid
- 2133. Check if Every Row and Column Contains All Numbers
- 2146. K Highest Ranked Items Within a Price Range
- 2174. Remove All Ones With Row and Column Flips II π
- 2245. Maximum Trailing Zeros in a Cornered Path
- 2257. Count Unguarded Cells in the Grid
- 2258. Escape the Spreading Fire
- 2267. Check if There Is a Valid Parentheses String Path
- 2282. Number of People That Can Be Seen in a Grid π
- 2290. Minimum Obstacle Removal to Reach Corner
- 2304. Minimum Path Cost in a Grid
- 2319. Check if Matrix Is X-Matrix
- 2326. Spiral Matrix IV
- 2328. Number of Increasing Paths in a Grid
- 2352. Equal Row and Column Pairs
- 2371. Minimize Maximum Value in a Grid π
- 2373. Largest Local Values in a Matrix
- 2387. Median of a Row Wise Sorted Matrix π
- 2392. Build a Matrix With Conditions
- 2397. Maximum Rows Covered by Columns
- 2428. Maximum Sum of an Hourglass
- 2435. Paths in Matrix Whose Sum Is Divisible by K
- 2482. Difference Between Ones and Zeros in Row and Column
- 2500. Delete Greatest Value in Each Row
- 2503. Maximum Number of Points From Grid Queries
- 2510. Check if There is a Path With Equal Number of 0's And 1's π
- 2536. Increment Submatrices by One
- 2545. Sort the Students by Their Kth Score
- 2556. Disconnect Path in a Binary Matrix by at Most One Flip
- 2573. Find the String with
- 2577. Minimum Time to Visit a Cell In a Grid
- 2596. Check Knight Tour Configuration
- 2614. Prime In Diagonal
- 2617. Minimum Number of Visited Cells in a Grid
- 2639. Find the Width of Columns of a Grid
- 2643. Row With Maximum Ones
- 2658. Maximum Number of Fish in a Grid
- 2661. First Completely Painted Row or Column
- 2664. The Knightβs Tour π
- 2679. Sum in a Matrix
- 2684. Maximum Number of Moves in a Grid
- 2711. Difference of Number of Distinct Values on Diagonals
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2732. Find a Good Subset of the Matrix
- 2812. Find the Safest Path in a Grid
- 2814. Minimum Time Takes to Reach Destination Without Drowning π
- 2850. Minimum Moves to Spread Stones Over Grid
- 2852. Sum of Remoteness of All Cells π
- 2906. Construct Product Matrix
- 2923. Find Champion I
- 2931. Maximum Spending After Buying Items
- 2946. Matrix Similarity After Cyclic Shifts
- 2965. Find Missing and Repeated Values
- 3030. Find the Grid of Region Average
- 3033. Modify the Matrix
- 3044. Most Frequent Prime
- 3070. Count Submatrices with Top-Left Element and Sum Less Than k
- 3071. Minimum Operations to Write the Letter Y on a Grid
- 3078. Match Alphanumerical Pattern in Matrix I π
- 3122. Minimum Number of Operations to Satisfy Conditions
- 3127. Make a Square with the Same Color
- 3142. Check if Grid Satisfies Conditions
- 3148. Maximum Difference Score in a Grid
- 3195. Find the Minimum Area to Cover All Ones I
- 3197. Find the Minimum Area to Cover All Ones II
- 3212. Count Submatrices With Equal Frequency of X and Y
- 3225. Maximum Score From Grid Operations
- 3239. Minimum Number of Flips to Make Binary Grid Palindromic I
- 3240. Minimum Number of Flips to Make Binary Grid Palindromic II
- 3242. Design Neighbor Sum Service
- 3256. Maximum Value Sum by Placing Three Rooks I
- 3257. Maximum Value Sum by Placing Three Rooks II
- 3276. Select Cells in Grid With Maximum Score
- 3286. Find a Safe Walk Through a Grid
- 3311. Construct 2D Grid Matching Graph Layout
- 3332. Maximum Points Tourist Can Earn
- 3341. Find Minimum Time to Reach Last Room I
- 3342. Find Minimum Time to Reach Last Room II
- 3359. Find Sorted Submatrices With Maximum Element at Most K π
- 3363. Find the Maximum Number of Fruits Collected
Memoization
- 70. Climbing Stairs
- 139. Word Break
- 140. Word Break II
- 241. Different Ways to Add Parentheses
- 294. Flip Game II π
- 329. Longest Increasing Path in a Matrix
- 397. Integer Replacement
- 464. Can I Win
- 488. Zuma Game
- 509. Fibonacci Number
- 546. Remove Boxes
- 638. Shopping Offers
- 698. Partition to K Equal Sum Subsets
- 773. Sliding Puzzle
- 894. All Possible Full Binary Trees
- 913. Cat and Mouse
- 964. Least Operators to Express Number
- 1137. N-th Tribonacci Number
- 1387. Sort Integers by The Power Value
- 1444. Number of Ways of Cutting a Pizza
- 1553. Minimum Number of Days to Eat N Oranges
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1575. Count All Possible Routes
- 1611. Minimum One Bit Operations to Make Integers Zero
- 1659. Maximize Grid Happiness
- 1728. Cat and Mouse II
- 1815. Maximum Number of Groups Getting Fresh Donuts
- 1857. Largest Color Value in a Directed Graph
- 1900. The Earliest and Latest Rounds Where Players Compete
- 2019. The Score of Students Solving Math Expression
- 2311. Longest Binary Subsequence Less Than or Equal to K
- 2312. Selling Pieces of Wood
- 2318. Number of Distinct Roll Sequences
- 2328. Number of Increasing Paths in a Grid
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2876. Count Visited Nodes in a Directed Graph
- 2998. Minimum Number of Operations to Make X and Y Equal
- 3040. Maximum Number of Operations With the Same Score II
- 3154. Find Number of Ways to Reach the K-th Stair
Merge Sort
- 23. Merge k Sorted Lists
- 148. Sort List
- 315. Count of Smaller Numbers After Self
- 327. Count of Range Sum
- 493. Reverse Pairs
- 912. Sort an Array
- 1649. Create Sorted Array through Instructions
- 2031. Count Subarrays With More Ones Than Zeros π
- 2179. Count Good Triplets in an Array
- 2426. Number of Pairs Satisfying Inequality
- 2519. Count the Number of K-Big Indices π
- 3109. Find the Index of Permutation π
Minimum Spanning Tree
- 1135. Connecting Cities With Minimum Cost π
- 1168. Optimize Water Distribution in a Village π
- 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1584. Min Cost to Connect All Points
- 1724. Checking Existence of Edge Length Limited Paths II π
Monotonic Queue
- 239. Sliding Window Maximum
- 683. K Empty Slots π
- 862. Shortest Subarray with Sum at Least K
- 918. Maximum Sum Circular Subarray
- 1425. Constrained Subsequence Sum
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1499. Max Value of Equation
- 1687. Delivering Boxes from Storage to Ports
- 1696. Jump Game VI
- 2071. Maximum Number of Tasks You Can Assign
- 2398. Maximum Number of Robots Within Budget
- 2407. Longest Increasing Subsequence II
- 2444. Count Subarrays With Fixed Bounds
- 2762. Continuous Subarrays
- 2944. Minimum Number of Coins for Fruits
- 2945. Find Maximum Non-decreasing Array Length
- 2969. Minimum Number of Coins for Fruits II π
Monotonic Stack
- 42. Trapping Rain Water
- 84. Largest Rectangle in Histogram
- 85. Maximal Rectangle
- 255. Verify Preorder Sequence in Binary Search Tree π
- 316. Remove Duplicate Letters
- 321. Create Maximum Number
- 402. Remove K Digits
- 456. 132 Pattern
- 496. Next Greater Element I
- 503. Next Greater Element II
- 581. Shortest Unsorted Continuous Subarray
- 654. Maximum Binary Tree
- 739. Daily Temperatures
- 768. Max Chunks To Make Sorted II
- 769. Max Chunks To Make Sorted
- 853. Car Fleet
- 901. Online Stock Span
- 907. Sum of Subarray Minimums
- 962. Maximum Width Ramp
- 975. Odd Even Jump
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1019. Next Greater Node In Linked List
- 1063. Number of Valid Subarrays π
- 1081. Smallest Subsequence of Distinct Characters
- 1124. Longest Well-Performing Interval
- 1130. Minimum Cost Tree From Leaf Values
- 1475. Final Prices With a Special Discount in a Shop
- 1504. Count Submatrices With All Ones
- 1526. Minimum Number of Increments on Subarrays to Form a Target Array
- 1574. Shortest Subarray to be Removed to Make Array Sorted
- 1673. Find the Most Competitive Subsequence
- 1762. Buildings With an Ocean View π
- 1776. Car Fleet II
- 1793. Maximum Score of a Good Subarray
- 1856. Maximum Subarray Min-Product
- 1944. Number of Visible People in a Queue
- 1950. Maximum of Minimum Values in All Subarrays π
- 1996. The Number of Weak Characters in the Game
- 2030. Smallest K-Length Subsequence With Occurrences of a Letter
- 2104. Sum of Subarray Ranges
- 2281. Sum of Total Strength of Wizards
- 2282. Number of People That Can Be Seen in a Grid π
- 2289. Steps to Make Array Non-decreasing
- 2297. Jump Game VIII π
- 2334. Subarray With Elements Greater Than Varying Threshold
- 2345. Finding the Number of Visible Mountains π
- 2355. Maximum Number of Books You Can Take π
- 2454. Next Greater Element IV
- 2487. Remove Nodes From Linked List
- 2617. Minimum Number of Visited Cells in a Grid
- 2736. Maximum Sum Queries
- 2818. Apply Operations to Maximize Score
- 2832. Maximal Range That Each Element Is Maximum in It π
- 2863. Maximum Length of Semi-Decreasing Subarrays π
- 2865. Beautiful Towers I
- 2866. Beautiful Towers II
- 2940. Find Building Where Alice and Bob Can Meet
- 2945. Find Maximum Non-decreasing Array Length
- 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum
- 3205. Maximum Array Hopping Score I π
- 3221. Maximum Array Hopping Score II π
- 3229. Minimum Operations to Make Array Equal to Target
- 3359. Find Sorted Submatrices With Maximum Element at Most K π
Number Theory
- 204. Count Primes
- 258. Add Digits
- 858. Mirror Reflection
- 866. Prime Palindrome
- 914. X of a Kind in a Deck of Cards
- 952. Largest Component Size by Common Factor
- 1201. Ugly Number III
- 1250. Check If It Is a Good Array
- 1447. Simplified Fractions
- 1492. The kth Factor of n
- 1627. Graph Connectivity With Threshold
- 1735. Count Ways to Make Array With Product
- 1766. Tree of Coprimes
- 1799. Maximize Score After N Operations
- 1808. Maximize Number of Nice Divisors
- 1819. Number of Different Subsequences GCDs
- 1952. Three Divisors
- 1979. Find Greatest Common Divisor of Array
- 1998. GCD Sort of an Array
- 2001. Number of Pairs of Interchangeable Rectangles
- 2183. Count Array Pairs Divisible by K
- 2197. Replace Non-Coprime Numbers in Array
- 2280. Minimum Lines to Represent a Line Chart
- 2338. Count the Number of Ideal Arrays
- 2344. Minimum Deletions to Make Array Divisible
- 2413. Smallest Even Multiple
- 2427. Number of Common Factors
- 2436. Minimum Split Into Subarrays With GCD Greater Than One π
- 2447. Number of Subarrays With GCD Equal to K
- 2464. Minimum Subarrays in a Valid Split π
- 2470. Number of Subarrays With LCM Equal to K
- 2507. Smallest Value After Replacing With Sum of Prime Factors
- 2513. Minimize the Maximum of Two Arrays
- 2521. Distinct Prime Factors of Product of Array
- 2523. Closest Prime Numbers in Range
- 2543. Check if Point Is Reachable
- 2584. Split the Array to Make Coprime Products
- 2601. Prime Subtraction Operation
- 2607. Make K-Subarray Sums Equal
- 2614. Prime In Diagonal
- 2654. Minimum Number of Operations to Make All Array Elements Equal to 1
- 2709. Greatest Common Divisor Traversal
- 2748. Number of Beautiful Pairs
- 2761. Prime Pairs With Target Sum
- 2807. Insert Greatest Common Divisors in Linked List
- 2818. Apply Operations to Maximize Score
- 2862. Maximum Element-Sum of a Complete Subset of Indices
- 2867. Count Valid Paths in a Tree
- 2941. Maximum GCD-Sum of a Subarray π
- 2947. Count Beautiful Substrings I
- 2949. Count Beautiful Substrings II
- 2979. Most Expensive Item That Can Not Be Bought π
- 3012. Minimize Length of Array Using Operations
- 3044. Most Frequent Prime
- 3115. Maximum Prime Difference
- 3116. Kth Smallest Amount With Single Denomination Combination
- 3233. Find the Count of Numbers Which Are Not Special
- 3260. Find the Largest Palindrome Divisible by K
- 3312. Sorted GCD Pair Queries
- 3326. Minimum Division Operations to Make Array Non Decreasing
- 3334. Find the Maximum Factor Score of Array
- 3336. Find the Number of Subsequences With Equal GCD
- 3348. Smallest Divisible Digit Product II
- 3377. Digit Operations to Make Two Integers Equal
- 3378. Count Connected Components in LCM Graph
Ordered Set
- 218. The Skyline Problem
- 220. Contains Duplicate III
- 315. Count of Smaller Numbers After Self
- 327. Count of Range Sum
- 352. Data Stream as Disjoint Intervals
- 363. Max Sum of Rectangle No Larger Than K
- 456. 132 Pattern
- 493. Reverse Pairs
- 497. Random Point in Non-overlapping Rectangles
- 635. Design Log Storage System π
- 683. K Empty Slots π
- 699. Falling Squares
- 715. Range Module
- 716. Max Stack π
- 729. My Calendar I
- 731. My Calendar II
- 732. My Calendar III
- 850. Rectangle Area II
- 855. Exam Room
- 895. Maximum Frequency Stack
- 975. Odd Even Jump
- 1348. Tweet Counts Per Frequency
- 1418. Display Table of Food Orders in a Restaurant
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1606. Find Servers That Handled Most Number of Requests
- 1649. Create Sorted Array through Instructions
- 1675. Minimize Deviation in Array
- 1756. Design Most Recently Used Queue π
- 1818. Minimum Absolute Sum Difference
- 1825. Finding MK Average
- 1847. Closest Room
- 1902. Depth of BST Given Insertion Order π
- 1912. Design Movie Rental System
- 2021. Brightest Position on Street π
- 2031. Count Subarrays With More Ones Than Zeros π
- 2034. Stock Price Fluctuation
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2102. Sequentially Ordinal Rank Tracker
- 2158. Amount of New Area Painted Each Day π
- 2179. Count Good Triplets in an Array
- 2213. Longest Substring of One Repeating Character
- 2251. Number of Flowers in Full Bloom
- 2254. Design Video Sharing Platform π
- 2276. Count Integers in Intervals
- 2336. Smallest Number in Infinite Set
- 2349. Design a Number Container System
- 2353. Design a Food Rating System
- 2363. Merge Similar Items
- 2382. Maximum Segment Sum After Removals
- 2424. Longest Uploaded Prefix
- 2426. Number of Pairs Satisfying Inequality
- 2519. Count the Number of K-Big Indices π
- 2612. Minimum Reverse Operations
- 2613. Beautiful Pairs π
- 2659. Make Array Empty
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2762. Continuous Subarrays
- 2763. Sum of Imbalance Numbers of All Subarrays
- 2817. Minimum Absolute Difference Between Elements With Constraint
- 3073. Maximum Increasing Triplet Value π
- 3092. Most Frequent IDs
- 3102. Minimize Manhattan Distances
- 3109. Find the Index of Permutation π
- 3244. Shortest Distance After Road Addition Queries II
Pandas
- 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
Prefix Sum
- 209. Minimum Size Subarray Sum
- 238. Product of Array Except Self
- 253. Meeting Rooms II π
- 303. Range Sum Query - Immutable
- 304. Range Sum Query 2D - Immutable
- 325. Maximum Size Subarray Sum Equals k π
- 363. Max Sum of Rectangle No Larger Than K
- 370. Range Addition π
- 410. Split Array Largest Sum
- 497. Random Point in Non-overlapping Rectangles
- 523. Continuous Subarray Sum
- 525. Contiguous Array
- 528. Random Pick with Weight
- 548. Split Array with Equal Sum π
- 560. Subarray Sum Equals K
- 644. Maximum Average Subarray II π
- 713. Subarray Product Less Than K
- 724. Find Pivot Index
- 731. My Calendar II
- 732. My Calendar III
- 798. Smallest Rotation with Highest Score
- 813. Largest Sum of Averages
- 848. Shifting Letters
- 862. Shortest Subarray with Sum at Least K
- 903. Valid Permutations for DI Sequence
- 930. Binary Subarrays With Sum
- 974. Subarray Sums Divisible by K
- 995. Minimum Number of K Consecutive Bit Flips
- 1000. Minimum Cost to Merge Stones
- 1004. Max Consecutive Ones III
- 1074. Number of Submatrices That Sum to Target
- 1094. Car Pooling
- 1109. Corporate Flight Bookings
- 1124. Longest Well-Performing Interval
- 1140. Stone Game II
- 1177. Can Make Palindrome from Substring
- 1208. Get Equal Substrings Within Budget
- 1248. Count Number of Nice Subarrays
- 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1310. XOR Queries of a Subarray
- 1314. Matrix Block Sum
- 1371. Find the Longest Substring Containing Vowels in Even Counts
- 1413. Minimum Value to Get Positive Step by Step Sum
- 1420. Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1422. Maximum Score After Splitting a String
- 1423. Maximum Points You Can Obtain from Cards
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1480. Running Sum of 1d Array
- 1524. Number of Sub-arrays With Odd Sum
- 1546. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
- 1588. Sum of All Odd Length Subarrays
- 1589. Maximum Sum Obtained of Any Permutation
- 1590. Make Sum Divisible by P
- 1658. Minimum Operations to Reduce X to Zero
- 1664. Ways to Make a Fair Array
- 1674. Minimum Moves to Make Array Complementary
- 1685. Sum of Absolute Differences in a Sorted Array
- 1687. Delivering Boxes from Storage to Ports
- 1703. Minimum Adjacent Swaps for K Consecutive Ones
- 1712. Ways to Split Array Into Three Subarrays
- 1732. Find the Highest Altitude
- 1737. Change Minimum Characters to Satisfy One of Three Conditions
- 1738. Find Kth Largest XOR Coordinate Value
- 1744. Can You Eat Your Favorite Candy on Your Favorite Day
- 1769. Minimum Number of Operations to Move All Balls to Each Box
- 1788. Maximize the Beauty of the Garden π
- 1829. Maximum XOR for Each Query
- 1838. Frequency of the Most Frequent Element
- 1854. Maximum Population Year
- 1856. Maximum Subarray Min-Product
- 1862. Sum of Floored Pairs
- 1871. Jump Game VII
- 1872. Stone Game VIII
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1889. Minimum Space Wasted From Packaging
- 1893. Check if All the Integers in a Range Are Covered
- 1894. Find the Student that Will Replace the Chalk
- 1895. Largest Magic Square
- 1915. Number of Wonderful Substrings
- 1930. Unique Length-3 Palindromic Subsequences
- 1943. Describe the Painting
- 1983. Widest Pair of Indices With Equal Range Sum π
- 1991. Find the Middle Index in Array
- 2017. Grid Game
- 2021. Brightest Position on Street π
- 2024. Maximize the Confusion of an Exam
- 2025. Maximum Number of Ways to Partition an Array
- 2055. Plates Between Candles
- 2067. Number of Equal Count Substrings π
- 2083. Substrings That Begin and End With the Same Letter π
- 2100. Find Good Days to Rob the Bank
- 2106. Maximum Fruits Harvested After at Most K Steps
- 2121. Intervals Between Identical Elements
- 2132. Stamping the Grid
- 2145. Count the Hidden Sequences
- 2171. Removing Minimum Number of Magic Beans
- 2207. Maximize Number of Subsequences in a String
- 2209. Minimum White Tiles After Covering With Carpets
- 2218. Maximum Value of K Coins From Piles
- 2219. Maximum Sum Score of Array π
- 2222. Number of Ways to Select Buildings
- 2237. Count Positions on Street With Required Brightness π
- 2245. Maximum Trailing Zeros in a Cornered Path
- 2251. Number of Flowers in Full Bloom
- 2256. Minimum Average Difference
- 2270. Number of Ways to Split Array
- 2271. Maximum White Tiles Covered by a Carpet
- 2281. Sum of Total Strength of Wizards
- 2302. Count Subarrays With Score Less Than K
- 2381. Shifting Letters II
- 2382. Maximum Segment Sum After Removals
- 2389. Longest Subsequence With Limited Sum
- 2391. Minimum Amount of Time to Collect Garbage
- 2398. Maximum Number of Robots Within Budget
- 2406. Divide Intervals Into Minimum Number of Groups
- 2420. Find All Good Indices
- 2428. Maximum Sum of an Hourglass
- 2438. Range Product Queries of Powers
- 2439. Minimize Maximum of Array
- 2448. Minimum Cost to Make Array Equal
- 2483. Minimum Penalty for a Shop
- 2485. Find the Pivot Integer
- 2488. Count Subarrays With Median K
- 2489. Number of Substrings With Fixed Ratio π
- 2528. Maximize the Minimum Powered City
- 2536. Increment Submatrices by One
- 2552. Count Increasing Quadruplets
- 2559. Count Vowel Strings in Ranges
- 2574. Left and Right Sum Differences
- 2587. Rearrange Array to Maximize Prefix Score
- 2588. Count the Number of Beautiful Subarrays
- 2602. Minimum Operations to Make All Array Elements Equal
- 2615. Sum of Distances
- 2640. Find the Score of All Prefixes of an Array
- 2680. Maximum OR
- 2681. Power of Heroes
- 2731. Movement of Robots
- 2772. Apply Operations to Make All Array Elements Equal to Zero
- 2819. Minimum Relative Loss After Buying Chocolates π
- 2838. Maximum Coins Heroes Can Collect π
- 2845. Count of Interesting Subarrays
- 2848. Points That Intersect With Cars
- 2875. Minimum Size Subarray in Infinite Array
- 2906. Construct Product Matrix
- 2947. Count Beautiful Substrings I
- 2949. Count Beautiful Substrings II
- 2950. Number of Divisible Substrings π
- 2955. Number of Same-End Substrings π
- 2968. Apply Operations to Maximize Frequency Score
- 2971. Find Polygon With the Largest Perimeter
- 2983. Palindrome Rearrangement Queries
- 3015. Count the Number of Houses at a Certain Distance I
- 3017. Count the Number of Houses at a Certain Distance II
- 3026. Maximum Good Subarray Sum
- 3028. Ant on the Boundary
- 3070. Count Submatrices with Top-Left Element and Sum Less Than k
- 3077. Maximum Strength of K Disjoint Subarrays
- 3086. Minimum Moves to Pick K Ones
- 3096. Minimum Levels to Gain More Points
- 3104. Find Longest Self-Contained Substring π
- 3129. Find All Possible Stable Binary Arrays I
- 3130. Find All Possible Stable Binary Arrays II
- 3147. Taking Maximum Energy From the Mystic Dungeon
- 3152. Special Array II
- 3179. Find the N-th Value After K Seconds
- 3191. Minimum Operations to Make Binary Array Elements Equal to One I
- 3212. Count Submatrices With Equal Frequency of X and Y
- 3224. Minimum Array Changes to Make Differences Equal
- 3225. Maximum Score From Grid Operations
- 3250. Find the Count of Monotonic Pairs I
- 3251. Find the Count of Monotonic Pairs II
- 3261. Count Substrings That Satisfy K-Constraint II
- 3279. Maximum Total Area Occupied by Pistons π
- 3312. Sorted GCD Pair Queries
- 3333. Find the Original Typed String II
- 3346. Maximum Frequency of an Element After Performing Operations I
- 3347. Maximum Frequency of an Element After Performing Operations II
- 3354. Make Array Elements Equal to Zero
- 3355. Zero Array Transformation I
- 3356. Zero Array Transformation II
- 3361. Shift Distance Between Two Strings
- 3362. Zero Array Transformation III
- 3364. Minimum Positive Sum Subarray
- 3381. Maximum Subarray Sum With Length Divisible by K
Probability and Statistics
- 470. Implement Rand10() Using Rand7()
- 808. Soup Servings
- 837. New 21 Game
- 1093. Statistics from a Large Sample
- 1227. Airplane Seat Assignment Probability
- 1230. Toss Strange Coins π
- 1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
Queue
- 225. Implement Stack using Queues
- 232. Implement Queue using Stacks
- 239. Sliding Window Maximum
- 281. Zigzag Iterator π
- 341. Flatten Nested List Iterator
- 346. Moving Average from Data Stream π
- 353. Design Snake Game π
- 362. Design Hit Counter π
- 379. Design Phone Directory π
- 387. First Unique Character in a String
- 622. Design Circular Queue
- 641. Design Circular Deque
- 649. Dota2 Senate
- 683. K Empty Slots π
- 862. Shortest Subarray with Sum at Least K
- 918. Maximum Sum Circular Subarray
- 933. Number of Recent Calls
- 936. Stamping The Sequence
- 950. Reveal Cards In Increasing Order
- 995. Minimum Number of K Consecutive Bit Flips
- 1352. Product of the Last K Numbers
- 1425. Constrained Subsequence Sum
- 1429. First Unique Number π
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1499. Max Value of Equation
- 1670. Design Front Middle Back Queue
- 1687. Delivering Boxes from Storage to Ports
- 1696. Jump Game VI
- 1700. Number of Students Unable to Eat Lunch
- 1823. Find the Winner of the Circular Game
- 1825. Finding MK Average
- 2071. Maximum Number of Tasks You Can Assign
- 2073. Time Needed to Buy Tickets
- 2327. Number of People Aware of a Secret
- 2398. Maximum Number of Robots Within Budget
- 2407. Longest Increasing Subsequence II
- 2444. Count Subarrays With Fixed Bounds
- 2526. Find Consecutive Integers from a Data Stream
- 2528. Maximize the Minimum Powered City
- 2534. Time Taken to Cross the Door π
- 2762. Continuous Subarrays
- 2944. Minimum Number of Coins for Fruits
- 2945. Find Maximum Non-decreasing Array Length
- 2969. Minimum Number of Coins for Fruits II π
- 3117. Minimum Sum of Values by Dividing Array
- 3191. Minimum Operations to Make Binary Array Elements Equal to One I
- 3369. Design an Array Statistics Tracker π
Quickselect
- 215. Kth Largest Element in an Array
- 324. Wiggle Sort II
- 347. Top K Frequent Elements
- 973. K Closest Points to Origin
- 1738. Find Kth Largest XOR Coordinate Value
- 1985. Find the Kth Largest Integer in the Array
- 2343. Query Kth Smallest Trimmed Number
Radix Sort
Randomized
- 380. Insert Delete GetRandom O(1)
- 381. Insert Delete GetRandom O(1) - Duplicates allowed
- 382. Linked List Random Node
- 384. Shuffle an Array
- 398. Random Pick Index
- 470. Implement Rand10() Using Rand7()
- 478. Generate Random Point in a Circle
- 497. Random Point in Non-overlapping Rectangles
- 519. Random Flip Matrix
- 528. Random Pick with Weight
- 710. Random Pick with Blacklist
- 1515. Best Position for a Service Centre
Recursion
- 2. Add Two Numbers
- 10. Regular Expression Matching
- 21. Merge Two Sorted Lists
- 24. Swap Nodes in Pairs
- 25. Reverse Nodes in k-Group
- 44. Wildcard Matching
- 50. Pow(x, n)
- 60. Permutation Sequence
- 143. Reorder List
- 203. Remove Linked List Elements
- 206. Reverse Linked List
- 224. Basic Calculator
- 231. Power of Two
- 233. Number of Digit One
- 234. Palindrome Linked List
- 241. Different Ways to Add Parentheses
- 247. Strobogrammatic Number II π
- 248. Strobogrammatic Number III π
- 255. Verify Preorder Sequence in Binary Search Tree π
- 273. Integer to English Words
- 326. Power of Three
- 342. Power of Four
- 390. Elimination Game
- 394. Decode String
- 439. Ternary Expression Parser π
- 486. Predict the Winner
- 509. Fibonacci Number
- 544. Output Contest Matches π
- 736. Parse Lisp Expression
- 761. Special Binary String
- 770. Basic Calculator IV
- 772. Basic Calculator III π
- 776. Split BST π
- 779. K-th Symbol in Grammar
- 894. All Possible Full Binary Trees
- 1106. Parsing A Boolean Expression
- 1265. Print Immutable Linked List in Reverse π
- 1545. Find Kth Bit in Nth Binary String
- 1808. Maximize Number of Nice Divisors
- 1823. Find the Winner of the Circular Game
- 1922. Count Good Numbers
- 1969. Minimum Non-Zero Product of the Array Elements
- 2487. Remove Nodes From Linked List
- 2550. Count Collisions of Monkeys on a Polygon
- 3304. Find the K-th Character in String Game I
- 3307. Find the K-th Character in String Game II
Rejection Sampling
Reservoir Sampling
- 382. Linked List Random Node
- 398. Random Pick Index
- 497. Random Point in Non-overlapping Rectangles
- 519. Random Flip Matrix
Rolling Hash
- 187. Repeated DNA Sequences
- 214. Shortest Palindrome
- 718. Maximum Length of Repeated Subarray
- 1044. Longest Duplicate Substring
- 1062. Longest Repeating Substring π
- 1147. Longest Chunked Palindrome Decomposition
- 1316. Distinct Echo Substrings
- 1392. Longest Happy Prefix
- 1461. Check If a String Contains All Binary Codes of Size K
- 1554. Strings Differ by One Character π
- 1698. Number of Distinct Substrings in a String π
- 1923. Longest Common Subpath
- 1960. Maximum Product of the Length of Two Palindromic Substrings
- 2156. Find Substring With Given Hash Value
- 2168. Unique Substrings With Equal Digit Frequency π
- 2223. Sum of Scores of Built Strings
- 2261. K Divisible Elements Subarrays
- 2430. Maximum Deletions on a String
- 3006. Find Beautiful Indices in the Given Array I
- 3008. Find Beautiful Indices in the Given Array II
- 3023. Find Pattern in Infinite Stream I π
- 3029. Minimum Time to Revert Word to Initial State I
- 3031. Minimum Time to Revert Word to Initial State II
- 3034. Number of Subarrays That Match a Pattern I
- 3036. Number of Subarrays That Match a Pattern II
- 3037. Find Pattern in Infinite Stream II π
- 3042. Count Prefix and Suffix Pairs I
- 3045. Count Prefix and Suffix Pairs II
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
Segment Tree
- 218. The Skyline Problem
- 307. Range Sum Query - Mutable
- 308. Range Sum Query 2D - Mutable π
- 315. Count of Smaller Numbers After Self
- 327. Count of Range Sum
- 406. Queue Reconstruction by Height
- 493. Reverse Pairs
- 673. Number of Longest Increasing Subsequence
- 683. K Empty Slots π
- 699. Falling Squares
- 715. Range Module
- 729. My Calendar I
- 731. My Calendar II
- 732. My Calendar III
- 850. Rectangle Area II
- 1157. Online Majority Element In Subarray
- 1395. Count Number of Teams
- 1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1521. Find a Value of a Mysterious Function Closest to Target
- 1622. Fancy Sequence
- 1649. Create Sorted Array through Instructions
- 1687. Delivering Boxes from Storage to Ports
- 2031. Count Subarrays With More Ones Than Zeros π
- 2080. Range Frequency Queries
- 2158. Amount of New Area Painted Each Day π
- 2179. Count Good Triplets in an Array
- 2213. Longest Substring of One Repeating Character
- 2276. Count Integers in Intervals
- 2286. Booking Concert Tickets in Groups
- 2407. Longest Increasing Subsequence II
- 2424. Longest Uploaded Prefix
- 2426. Number of Pairs Satisfying Inequality
- 2519. Count the Number of K-Big Indices π
- 2569. Handling Sum Queries After Update
- 2659. Make Array Empty
- 2736. Maximum Sum Queries
- 2907. Maximum Profitable Triplets With Increasing Prices I π
- 2916. Subarrays Distinct Element Sum of Squares II
- 2921. Maximum Profitable Triplets With Increasing Prices II π
- 2926. Maximum Balanced Subsequence Sum
- 2940. Find Building Where Alice and Bob Can Meet
- 3072. Distribute Elements Into Two Arrays II
- 3109. Find the Index of Permutation π
- 3117. Minimum Sum of Values by Dividing Array
- 3161. Block Placement Queries
- 3165. Maximum Sum of Subsequence With Non-adjacent Elements
- 3171. Find Subarray With Bitwise OR Closest to K
- 3187. Peaks in Array
- 3209. Number of Subarrays With AND Value of K
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
- 3380. Maximum Area Rectangle With Point Constraints I
- 3382. Maximum Area Rectangle With Point Constraints II
Shell
Shortest Path
- 399. Evaluate Division
- 499. The Maze III π
- 505. The Maze II π
- 743. Network Delay Time
- 787. Cheapest Flights Within K Stops
- 882. Reachable Nodes In Subdivided Graph
- 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1368. Minimum Cost to Make at Least One Valid Path in a Grid
- 1514. Path with Maximum Probability
- 1786. Number of Restricted Paths From First to Last Node
- 1976. Number of Ways to Arrive at Destination
- 2045. Second Minimum Time to Reach Destination
- 2093. Minimum Cost to Reach City With Discounts π
- 2203. Minimum Weighted Subgraph With the Required Paths
- 2290. Minimum Obstacle Removal to Reach Corner
- 2297. Jump Game VIII π
- 2473. Minimum Cost to Buy Apples π
- 2577. Minimum Time to Visit a Cell In a Grid
- 2642. Design Graph With Shortest Path Calculator
- 2662. Minimum Cost of a Path With Special Roads
- 2699. Modify Graph Edge Weights
- 2714. Find Shortest Path with K Hops π
- 2737. Find the Closest Marked Node π
- 2959. Number of Possible Sets of Closing Branches
- 2976. Minimum Cost to Convert String I
- 2977. Minimum Cost to Convert String II
- 3112. Minimum Time to Visit Disappearing Nodes
- 3123. Find Edges in Shortest Paths
- 3286. Find a Safe Walk Through a Grid
- 3341. Find Minimum Time to Reach Last Room I
- 3342. Find Minimum Time to Reach Last Room II
- 3377. Digit Operations to Make Two Integers Equal
Simulation
- 43. Multiply Strings
- 54. Spiral Matrix
- 59. Spiral Matrix II
- 67. Add Binary
- 68. Text Justification
- 157. Read N Characters Given Read4 π
- 158. Read N Characters Given read4 II - Call Multiple Times π
- 258. Add Digits
- 289. Game of Life
- 348. Design Tic-Tac-Toe π
- 353. Design Snake Game π
- 412. Fizz Buzz
- 415. Add Strings
- 495. Teemo Attacking
- 498. Diagonal Traverse
- 537. Complex Number Multiplication
- 544. Output Contest Matches π
- 566. Reshape the Matrix
- 592. Fraction Addition and Subtraction
- 640. Solve the Equation
- 657. Robot Return to Origin
- 682. Baseball Game
- 723. Candy Crush π
- 735. Asteroid Collision
- 749. Contain Virus
- 755. Pour Water π
- 832. Flipping an Image
- 844. Backspace String Compare
- 867. Transpose Matrix
- 874. Walking Robot Simulation
- 885. Spiral Matrix III
- 946. Validate Stack Sequences
- 950. Reveal Cards In Increasing Order
- 985. Sum of Even Numbers After Queries
- 999. Available Captures for Rook
- 1006. Clumsy Factorial
- 1041. Robot Bounded In Circle
- 1094. Car Pooling
- 1103. Distribute Candies to People
- 1222. Queens That Can Attack the King
- 1243. Array Transformation π
- 1252. Cells with Odd Values in a Matrix
- 1260. Shift 2D Grid
- 1275. Find Winner on a Tic Tac Toe Game
- 1324. Print Words Vertically
- 1389. Create Target Array in the Given Order
- 1409. Queries on a Permutation With Key
- 1441. Build an Array With Stack Operations
- 1503. Last Moment Before All Ants Fall Out of a Plank
- 1518. Water Bottles
- 1535. Find the Winner of an Array Game
- 1545. Find Kth Bit in Nth Binary String
- 1560. Most Visited Sector in a Circular Track
- 1562. Find Latest Group of Size M
- 1583. Count Unhappy Friends
- 1599. Maximum Profit of Operating a Centennial Wheel
- 1603. Design Parking System
- 1646. Get Maximum in Generated Array
- 1680. Concatenation of Consecutive Binary Numbers
- 1688. Count of Matches in Tournament
- 1700. Number of Students Unable to Eat Lunch
- 1701. Average Waiting Time
- 1706. Where Will the Ball Fall
- 1801. Number of Orders in the Backlog
- 1806. Minimum Number of Operations to Reinitialize a Permutation
- 1823. Find the Winner of the Circular Game
- 1860. Incremental Memory Leak
- 1894. Find the Student that Will Replace the Chalk
- 1910. Remove All Occurrences of a Substring
- 1914. Cyclically Rotating a Grid
- 1920. Build Array from Permutation
- 1929. Concatenation of Array
- 1945. Sum of Digits of String After Convert
- 2011. Final Value of Variable After Performing Operations
- 2022. Convert 1D Array Into 2D Array
- 2028. Find Missing Observations
- 2043. Simple Bank System
- 2056. Number of Valid Move Combinations On Chessboard
- 2061. Number of Spaces Cleaning Robot Cleaned π
- 2069. Walking Robot Simulation II
- 2073. Time Needed to Buy Tickets
- 2075. Decode the Slanted Ciphertext
- 2079. Watering Plants
- 2105. Watering Plants II
- 2109. Adding Spaces to a String
- 2120. Execution of All Suffix Instructions Staying in a Grid
- 2138. Divide a String Into Groups of Size k
- 2149. Rearrange Array Elements by Sign
- 2154. Keep Multiplying Found Values by Two
- 2161. Partition Array According to Given Pivot
- 2169. Count Operations to Obtain Zero
- 2177. Find Three Consecutive Integers That Sum to a Given Number
- 2180. Count Integers With Even Digit Sum
- 2181. Merge Nodes in Between Zeros
- 2201. Count Artifacts That Can Be Extracted
- 2211. Count Collisions on a Road
- 2221. Find Triangular Sum of an Array
- 2243. Calculate Digit Sum of a String
- 2257. Count Unguarded Cells in the Grid
- 2293. Min Max Game
- 2295. Replace Elements in an Array
- 2296. Design a Text Editor
- 2303. Calculate Amount Paid in Taxes
- 2326. Spiral Matrix IV
- 2327. Number of People Aware of a Secret
- 2352. Equal Row and Column Pairs
- 2357. Make Array Zero by Subtracting Equal Amounts
- 2365. Task Scheduler II
- 2380. Time Needed to Rearrange a Binary String
- 2390. Removing Stars From a String
- 2402. Meeting Rooms III
- 2460. Apply Operations to an Array
- 2462. Total Cost to Hire K Workers
- 2482. Difference Between Ones and Zeros in Row and Column
- 2500. Delete Greatest Value in Each Row
- 2502. Design Memory Allocator
- 2507. Smallest Value After Replacing With Sum of Prime Factors
- 2532. Time to Cross a Bridge
- 2534. Time Taken to Cross the Door π
- 2549. Count Distinct Numbers on Board
- 2553. Separate the Digits in an Array
- 2558. Take Gifts From the Richest Pile
- 2562. Find the Array Concatenation Value
- 2582. Pass the Pillow
- 2593. Find Score of an Array After Marking All Elements
- 2596. Check Knight Tour Configuration
- 2660. Determine the Winner of a Bowling Game
- 2679. Sum in a Matrix
- 2682. Find the Losers of the Circular Game
- 2696. Minimum String Length After Removing Substrings
- 2717. Semi-Ordered Permutation
- 2739. Total Distance Traveled
- 2744. Find Maximum Number of String Pairs
- 2751. Robot Collisions
- 2766. Relocate Marbles
- 2810. Faulty Keyboard
- 2899. Last Visited Integers
- 2946. Matrix Similarity After Cyclic Shifts
- 2960. Count Tested Devices After Test Operations
- 2961. Double Modular Exponentiation
- 2974. Minimum Number Game
- 3028. Ant on the Boundary
- 3038. Maximum Number of Operations With the Same Score I
- 3066. Minimum Operations to Exceed Threshold Value II
- 3069. Distribute Elements Into Two Arrays I
- 3072. Distribute Elements Into Two Arrays II
- 3080. Mark Elements on Array by Performing Queries
- 3100. Water Bottles II
- 3160. Find the Number of Distinct Colors Among the Balls
- 3168. Minimum Number of Chairs in a Waiting Room
- 3174. Clear Digits
- 3175. Find The First Player to win K Games in a Row
- 3178. Find the Child Who Has the Ball After K Seconds
- 3179. Find the N-th Value After K Seconds
- 3222. Find the Winning Player in Coin Game
- 3237. Alt and Tab Simulation π
- 3242. Design Neighbor Sum Service
- 3248. Snake in Matrix
- 3264. Final Array State After K Multiplication Operations I
- 3266. Final Array State After K Multiplication Operations II
- 3271. Hash Divided String
- 3279. Maximum Total Area Occupied by Pistons π
- 3304. Find the K-th Character in String Game I
- 3324. Find the Sequence of Strings Appeared on the Screen
- 3354. Make Array Elements Equal to Zero
- 3360. Stone Removal Game
- 3379. Transformed Array
Sliding Window
- 3. Longest Substring Without Repeating Characters
- 30. Substring with Concatenation of All Words
- 76. Minimum Window Substring
- 159. Longest Substring with At Most Two Distinct Characters π
- 187. Repeated DNA Sequences
- 209. Minimum Size Subarray Sum
- 219. Contains Duplicate II
- 220. Contains Duplicate III
- 239. Sliding Window Maximum
- 340. Longest Substring with At Most K Distinct Characters π
- 395. Longest Substring with At Least K Repeating Characters
- 413. Arithmetic Slices
- 424. Longest Repeating Character Replacement
- 438. Find All Anagrams in a String
- 480. Sliding Window Median
- 487. Max Consecutive Ones II π
- 567. Permutation in String
- 594. Longest Harmonious Subsequence
- 632. Smallest Range Covering Elements from K Lists
- 643. Maximum Average Subarray I
- 658. Find K Closest Elements
- 683. K Empty Slots π
- 713. Subarray Product Less Than K
- 718. Maximum Length of Repeated Subarray
- 727. Minimum Window Subsequence π
- 837. New 21 Game
- 862. Shortest Subarray with Sum at Least K
- 904. Fruit Into Baskets
- 930. Binary Subarrays With Sum
- 978. Longest Turbulent Subarray
- 992. Subarrays with K Different Integers
- 995. Minimum Number of K Consecutive Bit Flips
- 1004. Max Consecutive Ones III
- 1031. Maximum Sum of Two Non-Overlapping Subarrays
- 1044. Longest Duplicate Substring
- 1052. Grumpy Bookstore Owner
- 1100. Find K-Length Substrings With No Repeated Characters π
- 1151. Minimum Swaps to Group All 1's Together π
- 1156. Swap For Longest Repeated Character Substring
- 1176. Diet Plan Performance π
- 1208. Get Equal Substrings Within Budget
- 1234. Replace the Substring for Balanced String
- 1248. Count Number of Nice Subarrays
- 1297. Maximum Number of Occurrences of a Substring
- 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- 1358. Number of Substrings Containing All Three Characters
- 1423. Maximum Points You Can Obtain from Cards
- 1425. Constrained Subsequence Sum
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1456. Maximum Number of Vowels in a Substring of Given Length
- 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1493. Longest Subarray of 1's After Deleting One Element
- 1499. Max Value of Equation
- 1610. Maximum Number of Visible Points
- 1652. Defuse the Bomb
- 1658. Minimum Operations to Reduce X to Zero
- 1695. Maximum Erasure Value
- 1703. Minimum Adjacent Swaps for K Consecutive Ones
- 1763. Longest Nice Substring
- 1838. Frequency of the Most Frequent Element
- 1839. Longest Substring Of All Vowels in Order
- 1852. Distinct Numbers in Each Subarray π
- 1871. Jump Game VII
- 1876. Substrings of Size Three with Distinct Characters
- 1888. Minimum Number of Flips to Make the Binary String Alternating
- 1918. Kth Smallest Subarray Sum π
- 1984. Minimum Difference Between Highest and Lowest of K Scores
- 2009. Minimum Number of Operations to Make Array Continuous
- 2024. Maximize the Confusion of an Exam
- 2090. K Radius Subarray Averages
- 2106. Maximum Fruits Harvested After at Most K Steps
- 2107. Number of Unique Flavors After Sharing K Candies π
- 2134. Minimum Swaps to Group All 1's Together II
- 2156. Find Substring With Given Hash Value
- 2260. Minimum Consecutive Cards to Pick Up
- 2269. Find the K-Beauty of a Number
- 2302. Count Subarrays With Score Less Than K
- 2379. Minimum Recolors to Get K Consecutive Black Blocks
- 2398. Maximum Number of Robots Within Budget
- 2401. Longest Nice Subarray
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2444. Count Subarrays With Fixed Bounds
- 2461. Maximum Sum of Distinct Subarrays With Length K
- 2516. Take K of Each Character From Left and Right
- 2524. Maximum Frequency Score of a Subarray π
- 2528. Maximize the Minimum Powered City
- 2537. Count the Number of Good Subarrays
- 2555. Maximize Win From Two Segments
- 2653. Sliding Subarray Beauty
- 2730. Find the Longest Semi-Repetitive Substring
- 2743. Count Substrings Without Repeating Character π
- 2747. Count Zero Request Servers
- 2760. Longest Even Odd Subarray With Threshold
- 2762. Continuous Subarrays
- 2779. Maximum Beauty of an Array After Applying Operation
- 2781. Length of the Longest Valid Substring
- 2799. Count Complete Subarrays in an Array
- 2831. Find the Longest Equal Subarray
- 2841. Maximum Sum of Almost Unique Subarray
- 2875. Minimum Size Subarray in Infinite Array
- 2902. Count of Sub-Multisets With Bounded Sum
- 2904. Shortest and Lexicographically Smallest Beautiful String
- 2932. Maximum Strong Pair XOR I
- 2935. Maximum Strong Pair XOR II
- 2953. Count Complete Substrings
- 2958. Length of Longest Subarray With at Most K Frequency
- 2962. Count Subarrays Where Max Element Appears at Least K Times
- 2968. Apply Operations to Maximize Frequency Score
- 2981. Find Longest Special Substring That Occurs Thrice I
- 2982. Find Longest Special Substring That Occurs Thrice II
- 3013. Divide an Array Into Subarrays With Minimum Cost II
- 3023. Find Pattern in Infinite Stream I π
- 3037. Find Pattern in Infinite Stream II π
- 3086. Minimum Moves to Pick K Ones
- 3090. Maximum Length Substring With Two Occurrences
- 3095. Shortest Subarray With OR at Least K I
- 3097. Shortest Subarray With OR at Least K II
- 3134. Find the Median of the Uniqueness Array
- 3135. Equalize Strings by Adding or Removing Characters at Ends π
- 3191. Minimum Operations to Make Binary Array Elements Equal to One I
- 3206. Alternating Groups I
- 3208. Alternating Groups II
- 3234. Count the Number of Substrings With Dominant Ones
- 3254. Find the Power of K-Size Subarrays I
- 3255. Find the Power of K-Size Subarrays II
- 3258. Count Substrings That Satisfy K-Constraint I
- 3261. Count Substrings That Satisfy K-Constraint II
- 3297. Count Substrings That Can Be Rearranged to Contain a String I
- 3298. Count Substrings That Can Be Rearranged to Contain a String II
- 3305. Count of Substrings Containing Every Vowel and K Consonants I
- 3306. Count of Substrings Containing Every Vowel and K Consonants II
- 3318. Find X-Sum of All K-Long Subarrays I
- 3321. Find X-Sum of All K-Long Subarrays II
- 3323. Minimize Connected Groups by Inserting Interval π
- 3325. Count Substrings With K-Frequency Characters I
- 3329. Count Substrings With K-Frequency Characters II π
- 3346. Maximum Frequency of an Element After Performing Operations I
- 3347. Maximum Frequency of an Element After Performing Operations II
- 3364. Minimum Positive Sum Subarray
Sorting
- 15. 3Sum
- 16. 3Sum Closest
- 18. 4Sum
- 49. Group Anagrams
- 56. Merge Intervals
- 75. Sort Colors
- 88. Merge Sorted Array
- 147. Insertion Sort List
- 148. Sort List
- 164. Maximum Gap
- 169. Majority Element
- 179. Largest Number
- 215. Kth Largest Element in an Array
- 217. Contains Duplicate
- 220. Contains Duplicate III
- 229. Majority Element II
- 242. Valid Anagram
- 252. Meeting Rooms π
- 253. Meeting Rooms II π
- 259. 3Sum Smaller π
- 268. Missing Number
- 274. H-Index
- 280. Wiggle Sort π
- 295. Find Median from Data Stream
- 296. Best Meeting Point π
- 314. Binary Tree Vertical Order Traversal π
- 324. Wiggle Sort II
- 347. Top K Frequent Elements
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 354. Russian Doll Envelopes
- 358. Rearrange String k Distance Apart π
- 360. Sort Transformed Array π
- 368. Largest Divisible Subset
- 378. Kth Smallest Element in a Sorted Matrix
- 389. Find the Difference
- 406. Queue Reconstruction by Height
- 414. Third Maximum Number
- 435. Non-overlapping Intervals
- 436. Find Right Interval
- 451. Sort Characters By Frequency
- 452. Minimum Number of Arrows to Burst Balloons
- 455. Assign Cookies
- 462. Minimum Moves to Equal Array Elements II
- 475. Heaters
- 502. IPO
- 506. Relative Ranks
- 522. Longest Uncommon Subsequence II
- 524. Longest Word in Dictionary through Deleting
- 527. Word Abbreviation π
- 532. K-diff Pairs in an Array
- 539. Minimum Time Difference
- 561. Array Partition
- 581. Shortest Unsorted Continuous Subarray
- 588. Design In-Memory File System π
- 594. Longest Harmonious Subsequence
- 611. Valid Triangle Number
- 621. Task Scheduler
- 628. Maximum Product of Three Numbers
- 630. Course Schedule III
- 632. Smallest Range Covering Elements from K Lists
- 642. Design Search Autocomplete System π
- 645. Set Mismatch
- 646. Maximum Length of Pair Chain
- 658. Find K Closest Elements
- 692. Top K Frequent Words
- 710. Random Pick with Blacklist
- 719. Find K-th Smallest Pair Distance
- 720. Longest Word in Dictionary
- 721. Accounts Merge
- 726. Number of Atoms
- 747. Largest Number At Least Twice of Others
- 757. Set Intersection Size At Least Two
- 759. Employee Free Time π
- 767. Reorganize String
- 768. Max Chunks To Make Sorted II
- 769. Max Chunks To Make Sorted
- 786. K-th Smallest Prime Fraction
- 791. Custom Sort String
- 792. Number of Matching Subsequences
- 823. Binary Trees With Factors
- 825. Friends Of Appropriate Ages
- 826. Most Profit Assigning Work
- 833. Find And Replace in String
- 846. Hand of Straights
- 853. Car Fleet
- 857. Minimum Cost to Hire K Workers
- 869. Reordered Power of 2
- 870. Advantage Shuffle
- 881. Boats to Save People
- 888. Fair Candy Swap
- 891. Sum of Subsequence Widths
- 893. Groups of Special-Equivalent Strings
- 899. Orderly Queue
- 905. Sort Array By Parity
- 910. Smallest Range II
- 912. Sort an Array
- 922. Sort Array By Parity II
- 923. 3Sum With Multiplicity
- 937. Reorder Data in Log Files
- 939. Minimum Area Rectangle
- 945. Minimum Increment to Make Array Unique
- 948. Bag of Tokens
- 950. Reveal Cards In Increasing Order
- 954. Array of Doubled Pairs
- 969. Pancake Sorting
- 973. K Closest Points to Origin
- 976. Largest Perimeter Triangle
- 977. Squares of a Sorted Array
- 987. Vertical Order Traversal of a Binary Tree
- 1005. Maximize Sum Of Array After K Negations
- 1029. Two City Scheduling
- 1030. Matrix Cells in Distance Order
- 1040. Moving Stones Until Consecutive II
- 1048. Longest String Chain
- 1051. Height Checker
- 1054. Distant Barcodes
- 1057. Campus Bikes π
- 1058. Minimize Rounding Error to Meet Target π
- 1065. Index Pairs of a String π
- 1086. High Five π
- 1090. Largest Values From Labels
- 1094. Car Pooling
- 1099. Two Sum Less Than K π
- 1101. The Earliest Moment When Everyone Become Friends π
- 1122. Relative Sort Array
- 1133. Largest Unique Number π
- 1152. Analyze User Website Visit Pattern π
- 1169. Invalid Transactions
- 1170. Compare Strings by Frequency of the Smallest Character
- 1181. Before and After Puzzle π
- 1187. Make Array Strictly Increasing
- 1196. How Many Apples Can You Put into the Basket π
- 1200. Minimum Absolute Difference
- 1202. Smallest String With Swaps
- 1229. Meeting Scheduler π
- 1235. Maximum Profit in Job Scheduling
- 1244. Design A Leaderboard π
- 1262. Greatest Sum Divisible by Three
- 1268. Search Suggestions System
- 1288. Remove Covered Intervals
- 1296. Divide Array in Sets of K Consecutive Numbers
- 1300. Sum of Mutated Array Closest to Target
- 1305. All Elements in Two Binary Search Trees
- 1311. Get Watched Videos by Your Friends
- 1329. Sort the Matrix Diagonally
- 1331. Rank Transform of an Array
- 1333. Filter Restaurants by Vegan-Friendly, Price and Distance
- 1337. The K Weakest Rows in a Matrix
- 1338. Reduce Array Size to The Half
- 1340. Jump Game V
- 1346. Check If N and Its Double Exist
- 1348. Tweet Counts Per Frequency
- 1353. Maximum Number of Events That Can Be Attended
- 1356. Sort Integers by The Number of 1 Bits
- 1365. How Many Numbers Are Smaller Than the Current Number
- 1366. Rank Teams by Votes
- 1383. Maximum Performance of a Team
- 1385. Find the Distance Value Between Two Arrays
- 1387. Sort Integers by The Power Value
- 1402. Reducing Dishes
- 1403. Minimum Subsequence in Non-Increasing Order
- 1418. Display Table of Food Orders in a Restaurant
- 1424. Diagonal Traverse II
- 1433. Check If a String Can Break Another String
- 1451. Rearrange Words in a Sentence
- 1460. Make Two Arrays Equal by Reversing Subarrays
- 1464. Maximum Product of Two Elements in an Array
- 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1471. The k Strongest Values in an Array
- 1478. Allocate Mailboxes
- 1481. Least Number of Unique Integers after K Removals
- 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1491. Average Salary Excluding the Minimum and Maximum Salary
- 1498. Number of Subsequences That Satisfy the Given Sum Condition
- 1500. Design a File Sharing System π
- 1502. Can Make Arithmetic Progression From Sequence
- 1508. Range Sum of Sorted Subarray Sums
- 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
- 1547. Minimum Cost to Cut a Stick
- 1552. Magnetic Force Between Two Balls
- 1561. Maximum Number of Coins You Can Get
- 1564. Put Boxes Into the Warehouse I π
- 1580. Put Boxes Into the Warehouse II π
- 1585. Check If String Is Transformable With Substring Sort Operations
- 1589. Maximum Sum Obtained of Any Permutation
- 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1608. Special Array With X Elements Greater Than or Equal X
- 1610. Maximum Number of Visible Points
- 1619. Mean of Array After Removing Some Elements
- 1626. Best Team With No Conflicts
- 1630. Arithmetic Subarrays
- 1632. Rank Transform of a Matrix
- 1636. Sort Array by Increasing Frequency
- 1637. Widest Vertical Area Between Two Points Containing No Points
- 1647. Minimum Deletions to Make Character Frequencies Unique
- 1648. Sell Diminishing-Valued Colored Balls
- 1657. Determine if Two Strings Are Close
- 1665. Minimum Initial Energy to Finish Tasks
- 1679. Max Number of K-Sum Pairs
- 1686. Stone Game VI
- 1691. Maximum Height by Stacking Cuboids
- 1697. Checking Existence of Edge Length Limited Paths
- 1710. Maximum Units on a Truck
- 1727. Largest Submatrix With Rearrangements
- 1738. Find Kth Largest XOR Coordinate Value
- 1751. Maximum Number of Events That Can Be Attended II
- 1772. Sort Features by Popularity π
- 1782. Count Pairs Of Nodes
- 1798. Maximum Number of Consecutive Values You Can Make
- 1818. Minimum Absolute Sum Difference
- 1833. Maximum Ice Cream Bars
- 1834. Single-Threaded CPU
- 1838. Frequency of the Most Frequent Element
- 1840. Maximum Building Height
- 1846. Maximum Element After Decreasing and Rearranging
- 1847. Closest Room
- 1851. Minimum Interval to Include Each Query
- 1859. Sorting the Sentence
- 1874. Minimize Product Sum of Two Arrays π
- 1877. Minimize Maximum Pair Sum in Array
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1885. Count Pairs in Two Arrays π
- 1887. Reduction Operations to Make the Array Elements Equal
- 1889. Minimum Space Wasted From Packaging
- 1913. Maximum Product Difference Between Two Pairs
- 1921. Eliminate Maximum Number of Monsters
- 1943. Describe the Painting
- 1968. Array With Elements Not Equal to Average of Neighbors
- 1984. Minimum Difference Between Highest and Lowest of K Scores
- 1985. Find the Kth Largest Integer in the Array
- 1996. The Number of Weak Characters in the Game
- 1998. GCD Sort of an Array
- 2007. Find Original Array From Doubled Array
- 2008. Maximum Earnings From Taxi
- 2015. Average Height of Buildings in Each Segment π
- 2033. Minimum Operations to Make a Uni-Value Grid
- 2037. Minimum Number of Moves to Seat Everyone
- 2046. Sort Linked List Already Sorted Using Absolute Values π
- 2054. Two Best Non-Overlapping Events
- 2070. Most Beautiful Item for Each Query
- 2071. Maximum Number of Tasks You Can Assign
- 2089. Find Target Indices After Sorting Array
- 2092. Find All People With Secret
- 2094. Finding 3-Digit Even Numbers
- 2098. Subsequence of Size K With the Largest Even Sum π
- 2099. Find Subsequence of Length K With the Largest Sum
- 2122. Recover the Original Array
- 2126. Destroying Asteroids
- 2135. Count Words Obtained After Adding a Letter
- 2136. Earliest Possible Day of Full Bloom
- 2141. Maximum Running Time of N Computers
- 2144. Minimum Cost of Buying Candies With Discount
- 2146. K Highest Ranked Items Within a Price Range
- 2148. Count Elements With Strictly Smaller and Greater Elements
- 2154. Keep Multiplying Found Values by Two
- 2160. Minimum Sum of Four Digit Number After Splitting Digits
- 2164. Sort Even and Odd Indices Independently
- 2165. Smallest Value of the Rearranged Number
- 2171. Removing Minimum Number of Magic Beans
- 2191. Sort the Jumbled Numbers
- 2195. Append K Integers With Minimal Sum
- 2225. Find Players With Zero or One Losses
- 2229. Check if an Array Is Consecutive π
- 2231. Largest Number After Digit Swaps by Parity
- 2234. Maximum Total Beauty of the Gardens
- 2242. Maximum Score of a Node Sequence
- 2248. Intersection of Multiple Arrays
- 2250. Count Number of Rectangles Containing Each Point
- 2251. Number of Flowers in Full Bloom
- 2268. Minimum Number of Keypresses π
- 2271. Maximum White Tiles Covered by a Carpet
- 2273. Find Resultant Array After Removing Anagrams
- 2274. Maximum Consecutive Floors Without Special Floors
- 2279. Maximum Bags With Full Capacity of Rocks
- 2280. Minimum Lines to Represent a Line Chart
- 2285. Maximum Total Importance of Roads
- 2294. Partition Array Such That Maximum Difference Is K
- 2300. Successful Pairs of Spells and Potions
- 2323. Find Minimum Time to Finish All Jobs II π
- 2332. The Latest Time to Catch a Bus
- 2333. Minimum Sum of Squared Difference
- 2335. Minimum Amount of Time to Fill Cups
- 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 π
- 2357. Make Array Zero by Subtracting Equal Amounts
- 2363. Merge Similar Items
- 2371. Minimize Maximum Value in a Grid π
- 2386. Find the K-Sum of an Array
- 2389. Longest Subsequence With Limited Sum
- 2402. Meeting Rooms III
- 2406. Divide Intervals Into Minimum Number of Groups
- 2410. Maximum Matching of Players With Trainers
- 2412. Minimum Money Required Before Transactions
- 2418. Sort the People
- 2421. Number of Good Paths
- 2441. Largest Positive Integer That Exists With Its Negative
- 2448. Minimum Cost to Make Array Equal
- 2449. Minimum Number of Operations to Make Arrays Similar
- 2454. Next Greater Element IV
- 2456. Most Popular Video Creator
- 2459. Sort Array by Moving Items to Empty Space π
- 2463. Minimum Total Distance Traveled
- 2465. Number of Distinct Averages
- 2475. Number of Unequal Triplets in Array
- 2491. Divide Players Into Teams of Equal Skill
- 2497. Maximum Star Sum of a Graph
- 2500. Delete Greatest Value in Each Row
- 2501. Longest Square Streak in an Array
- 2503. Maximum Number of Points From Grid Queries
- 2512. Reward Top K Students
- 2517. Maximum Tastiness of Candy Basket
- 2542. Maximum Subsequence Score
- 2545. Sort the Students by Their Kth Score
- 2548. Maximum Price to Fill a Bag π
- 2551. Put Marbles in Bags
- 2554. Maximum Number of Integers to Choose From a Range I
- 2557. Maximum Number of Integers to Choose From a Range II π
- 2563. Count the Number of Fair Pairs
- 2567. Minimum Score by Changing Two Elements
- 2576. Find the Maximum Number of Marked Indices
- 2578. Split With Minimum Sum
- 2580. Count Ways to Group Overlapping Ranges
- 2583. Kth Largest Sum in a Binary Tree
- 2587. Rearrange Array to Maximize Prefix Score
- 2589. Minimum Time to Complete All Tasks
- 2590. Design a Todo List π
- 2592. Maximize Greatness of an Array
- 2593. Find Score of an Array After Marking All Elements
- 2597. The Number of Beautiful Subsets
- 2602. Minimum Operations to Make All Array Elements Equal
- 2604. Minimum Time to Eat All Grains π
- 2607. Make K-Subarray Sums Equal
- 2611. Mice and Cheese
- 2613. Beautiful Pairs π
- 2638. Count the Number of K-Free Subsets π
- 2655. Find Maximal Uncovered Ranges π
- 2659. Make Array Empty
- 2679. Sum in a Matrix
- 2681. Power of Heroes
- 2706. Buy Two Chocolates
- 2708. Maximum Strength of a Group
- 2713. Maximum Strictly Increasing Cells in a Matrix
- 2731. Movement of Robots
- 2733. Neither Minimum nor Maximum
- 2736. Maximum Sum Queries
- 2740. Find the Value of the Partition
- 2747. Count Zero Request Servers
- 2751. Robot Collisions
- 2766. Relocate Marbles
- 2779. Maximum Beauty of an Array After Applying Operation
- 2780. Minimum Index of a Valid Split
- 2784. Check if Array is Good
- 2785. Sort Vowels in a String
- 2790. Maximum Number of Groups With Increasing Length
- 2809. Minimum Time to Make Array Sum At Most x
- 2813. Maximum Elegance of a K-Length Subsequence
- 2819. Minimum Relative Loss After Buying Chocolates π
- 2824. Count Pairs Whose Sum is Less than Target
- 2830. Maximize the Profit as the Salesman
- 2838. Maximum Coins Heroes Can Collect π
- 2840. Check if Strings Can be Made Equal With Operations II
- 2860. Happy Students
- 2863. Maximum Length of Semi-Decreasing Subarrays π
- 2895. Minimum Processing Time
- 2931. Maximum Spending After Buying Items
- 2933. High-Access Employees
- 2943. Maximize Area of Square Hole in Grid
- 2948. Make Lexicographically Smallest Array by Swapping Elements
- 2952. Minimum Number of Coins to be Added
- 2966. Divide Array Into Arrays With Max Difference
- 2967. Minimum Cost to Make Array Equalindromic
- 2968. Apply Operations to Maximize Frequency Score
- 2971. Find Polygon With the Largest Perimeter
- 2973. Find Number of Coins to Place in Tree Nodes
- 2974. Minimum Number Game
- 2996. Smallest Missing Integer Greater Than Sequential Prefix Sum
- 3010. Divide an Array Into Subarrays With Minimum Cost I
- 3011. Find if Array Can Be Sorted
- 3016. Minimum Number of Pushes to Type Word II
- 3024. Type of Triangle
- 3025. Find the Number of Ways to Place People I
- 3027. Find the Number of Ways to Place People II
- 3035. Maximum Palindromes After Operations
- 3039. Apply Operations to Make String Empty
- 3041. Maximize Consecutive Elements in an Array After Modification
- 3068. Find the Maximum Sum of Node Values
- 3074. Apple Redistribution into Boxes
- 3075. Maximize Happiness of Selected Children
- 3080. Mark Elements on Array by Performing Queries
- 3081. Replace Question Marks in String to Minimize Its Value
- 3085. Minimum Deletions to Make String K-Special
- 3088. Make String Anti-palindrome π
- 3098. Find the Sum of Subsequence Powers
- 3102. Minimize Manhattan Distances
- 3107. Minimum Operations to Make Median of Array Equal to K
- 3111. Minimum Rectangles to Cover Points
- 3119. Maximum Number of Potholes That Can Be Fixed π
- 3125. Maximum Number That Makes Result of Bitwise AND Zero π
- 3132. Find the Integer Added to Array II
- 3143. Maximum Points Inside the Square
- 3167. Better Compression of String π
- 3169. Count Days Without Meetings
- 3186. Maximum Total Damage With Spell Casting
- 3189. Minimum Moves to Get a Peaceful Board π
- 3194. Minimum Average of Smallest and Largest Elements
- 3218. Minimum Cost for Cutting Cake I
- 3219. Minimum Cost for Cutting Cake II
- 3265. Count Almost Equal Pairs I
- 3267. Count Almost Equal Pairs II
- 3273. Minimum Amount of Damage Dealt to Bob
- 3281. Maximize Score of Numbers in Ranges
- 3288. Length of the Longest Increasing Path
- 3301. Maximize the Total Height of Unique Towers
- 3319. K-th Largest Perfect Subtree Size in Binary Tree
- 3323. Minimize Connected Groups by Inserting Interval π
- 3346. Maximum Frequency of an Element After Performing Operations I
- 3347. Maximum Frequency of an Element After Performing Operations II
- 3362. Zero Array Transformation III
- 3365. Rearrange K Substrings to Form Target String
- 3380. Maximum Area Rectangle With Point Constraints I
- 3382. Maximum Area Rectangle With Point Constraints II
Stack
- 20. Valid Parentheses
- 32. Longest Valid Parentheses
- 42. Trapping Rain Water
- 71. Simplify Path
- 84. Largest Rectangle in Histogram
- 85. Maximal Rectangle
- 94. Binary Tree Inorder Traversal
- 114. Flatten Binary Tree to Linked List
- 143. Reorder List
- 144. Binary Tree Preorder Traversal
- 145. Binary Tree Postorder Traversal
- 150. Evaluate Reverse Polish Notation
- 155. Min Stack
- 173. Binary Search Tree Iterator
- 224. Basic Calculator
- 225. Implement Stack using Queues
- 227. Basic Calculator II
- 232. Implement Queue using Stacks
- 234. Palindrome Linked List
- 255. Verify Preorder Sequence in Binary Search Tree π
- 272. Closest Binary Search Tree Value II π
- 316. Remove Duplicate Letters
- 321. Create Maximum Number
- 331. Verify Preorder Serialization of a Binary Tree
- 341. Flatten Nested List Iterator
- 364. Nested List Weight Sum II π
- 385. Mini Parser
- 388. Longest Absolute File Path
- 394. Decode String
- 402. Remove K Digits
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 439. Ternary Expression Parser π
- 445. Add Two Numbers II
- 456. 132 Pattern
- 484. Find Permutation π
- 488. Zuma Game
- 496. Next Greater Element I
- 503. Next Greater Element II
- 536. Construct Binary Tree from String π
- 581. Shortest Unsorted Continuous Subarray
- 589. N-ary Tree Preorder Traversal
- 590. N-ary Tree Postorder Traversal
- 591. Tag Validator
- 636. Exclusive Time of Functions
- 654. Maximum Binary Tree
- 678. Valid Parenthesis String
- 682. Baseball Game
- 716. Max Stack π
- 726. Number of Atoms
- 735. Asteroid Collision
- 736. Parse Lisp Expression
- 739. Daily Temperatures
- 768. Max Chunks To Make Sorted II
- 769. Max Chunks To Make Sorted
- 770. Basic Calculator IV
- 772. Basic Calculator III π
- 844. Backspace String Compare
- 853. Car Fleet
- 856. Score of Parentheses
- 880. Decoded String at Index
- 895. Maximum Frequency Stack
- 897. Increasing Order Search Tree
- 901. Online Stock Span
- 907. Sum of Subarray Minimums
- 921. Minimum Add to Make Parentheses Valid
- 936. Stamping The Sequence
- 946. Validate Stack Sequences
- 962. Maximum Width Ramp
- 975. Odd Even Jump
- 1003. Check If Word Is Valid After Substitutions
- 1006. Clumsy Factorial
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1019. Next Greater Node In Linked List
- 1021. Remove Outermost Parentheses
- 1047. Remove All Adjacent Duplicates In String
- 1063. Number of Valid Subarrays π
- 1081. Smallest Subsequence of Distinct Characters
- 1096. Brace Expansion II
- 1106. Parsing A Boolean Expression
- 1111. Maximum Nesting Depth of Two Valid Parentheses Strings
- 1124. Longest Well-Performing Interval
- 1130. Minimum Cost Tree From Leaf Values
- 1172. Dinner Plate Stacks
- 1190. Reverse Substrings Between Each Pair of Parentheses
- 1209. Remove All Adjacent Duplicates in String II
- 1214. Two Sum BSTs π
- 1249. Minimum Remove to Make Valid Parentheses
- 1265. Print Immutable Linked List in Reverse π
- 1381. Design a Stack With Increment Operation
- 1441. Build an Array With Stack Operations
- 1472. Design Browser History
- 1475. Final Prices With a Special Discount in a Shop
- 1504. Count Submatrices With All Ones
- 1526. Minimum Number of Increments on Subarrays to Form a Target Array
- 1541. Minimum Insertions to Balance a Parentheses String
- 1544. Make The String Great
- 1574. Shortest Subarray to be Removed to Make Array Sorted
- 1586. Binary Search Tree Iterator II π
- 1597. Build Binary Expression Tree From Infix Expression π
- 1598. Crawler Log Folder
- 1614. Maximum Nesting Depth of the Parentheses
- 1628. Design an Expression Tree With Evaluate Function π
- 1653. Minimum Deletions to Make String Balanced
- 1673. Find the Most Competitive Subsequence
- 1700. Number of Students Unable to Eat Lunch
- 1717. Maximum Score From Removing Substrings
- 1756. Design Most Recently Used Queue π
- 1762. Buildings With an Ocean View π
- 1776. Car Fleet II
- 1793. Maximum Score of a Good Subarray
- 1856. Maximum Subarray Min-Product
- 1896. Minimum Cost to Change the Final Value of Expression
- 1910. Remove All Occurrences of a Substring
- 1944. Number of Visible People in a Queue
- 1950. Maximum of Minimum Values in All Subarrays π
- 1963. Minimum Number of Swaps to Make the String Balanced
- 1996. The Number of Weak Characters in the Game
- 2000. Reverse Prefix of Word
- 2019. The Score of Students Solving Math Expression
- 2030. Smallest K-Length Subsequence With Occurrences of a Letter
- 2104. Sum of Subarray Ranges
- 2116. Check if a Parentheses String Can Be Valid
- 2130. Maximum Twin Sum of a Linked List
- 2197. Replace Non-Coprime Numbers in Array
- 2211. Count Collisions on a Road
- 2216. Minimum Deletions to Make Array Beautiful
- 2254. Design Video Sharing Platform π
- 2281. Sum of Total Strength of Wizards
- 2282. Number of People That Can Be Seen in a Grid π
- 2289. Steps to Make Array Non-decreasing
- 2296. Design a Text Editor
- 2297. Jump Game VIII π
- 2334. Subarray With Elements Greater Than Varying Threshold
- 2345. Finding the Number of Visible Mountains π
- 2355. Maximum Number of Books You Can Take π
- 2375. Construct Smallest Number From DI String
- 2390. Removing Stars From a String
- 2434. Using a Robot to Print the Lexicographically Smallest String
- 2454. Next Greater Element IV
- 2487. Remove Nodes From Linked List
- 2524. Maximum Frequency Score of a Subarray π
- 2589. Minimum Time to Complete All Tasks
- 2617. Minimum Number of Visited Cells in a Grid
- 2645. Minimum Additions to Make Valid String
- 2696. Minimum String Length After Removing Substrings
- 2736. Maximum Sum Queries
- 2751. Robot Collisions
- 2764. Is Array a Preorder of Some βBinary Tree π
- 2813. Maximum Elegance of a K-Length Subsequence
- 2816. Double a Number Represented as a Linked List
- 2818. Apply Operations to Maximize Score
- 2832. Maximal Range That Each Element Is Maximum in It π
- 2863. Maximum Length of Semi-Decreasing Subarrays π
- 2865. Beautiful Towers I
- 2866. Beautiful Towers II
- 2940. Find Building Where Alice and Bob Can Meet
- 2945. Find Maximum Non-decreasing Array Length
- 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum
- 3170. Lexicographically Minimum String After Removing Stars
- 3174. Clear Digits
- 3205. Maximum Array Hopping Score I π
- 3221. Maximum Array Hopping Score II π
- 3229. Minimum Operations to Make Array Equal to Target
- 3359. Find Sorted Submatrices With Maximum Element at Most K π
String
- 3. Longest Substring Without Repeating Characters
- 5. Longest Palindromic Substring
- 6. Zigzag Conversion
- 8. String to Integer (atoi)
- 10. Regular Expression Matching
- 12. Integer to Roman
- 13. Roman to Integer
- 14. Longest Common Prefix
- 17. Letter Combinations of a Phone Number
- 20. Valid Parentheses
- 22. Generate Parentheses
- 28. Find the Index of the First Occurrence in a String
- 30. Substring with Concatenation of All Words
- 32. Longest Valid Parentheses
- 38. Count and Say
- 43. Multiply Strings
- 44. Wildcard Matching
- 49. Group Anagrams
- 58. Length of Last Word
- 65. Valid Number
- 67. Add Binary
- 68. Text Justification
- 71. Simplify Path
- 72. Edit Distance
- 76. Minimum Window Substring
- 79. Word Search
- 87. Scramble String
- 91. Decode Ways
- 93. Restore IP Addresses
- 97. Interleaving String
- 115. Distinct Subsequences
- 125. Valid Palindrome
- 126. Word Ladder II
- 127. Word Ladder
- 131. Palindrome Partitioning
- 132. Palindrome Partitioning II
- 139. Word Break
- 140. Word Break II
- 151. Reverse Words in a String
- 159. Longest Substring with At Most Two Distinct Characters π
- 161. One Edit Distance π
- 165. Compare Version Numbers
- 166. Fraction to Recurring Decimal
- 168. Excel Sheet Column Title
- 171. Excel Sheet Column Number
- 179. Largest Number
- 186. Reverse Words in a String II π
- 187. Repeated DNA Sequences
- 205. Isomorphic Strings
- 208. Implement Trie (Prefix Tree)
- 211. Design Add and Search Words Data Structure
- 212. Word Search II
- 214. Shortest Palindrome
- 224. Basic Calculator
- 227. Basic Calculator II
- 241. Different Ways to Add Parentheses
- 242. Valid Anagram
- 243. Shortest Word Distance π
- 244. Shortest Word Distance II π
- 245. Shortest Word Distance III π
- 246. Strobogrammatic Number π
- 247. Strobogrammatic Number II π
- 248. Strobogrammatic Number III π
- 249. Group Shifted Strings π
- 257. Binary Tree Paths
- 266. Palindrome Permutation π
- 267. Palindrome Permutation II π
- 269. Alien Dictionary π
- 271. Encode and Decode Strings π
- 273. Integer to English Words
- 282. Expression Add Operators
- 288. Unique Word Abbreviation π
- 290. Word Pattern
- 291. Word Pattern II π
- 293. Flip Game π
- 297. Serialize and Deserialize Binary Tree
- 299. Bulls and Cows
- 301. Remove Invalid Parentheses
- 306. Additive Number
- 316. Remove Duplicate Letters
- 318. Maximum Product of Word Lengths
- 320. Generalized Abbreviation π
- 331. Verify Preorder Serialization of a Binary Tree
- 336. Palindrome Pairs
- 340. Longest Substring with At Most K Distinct Characters π
- 344. Reverse String
- 345. Reverse Vowels of a String
- 358. Rearrange String k Distance Apart π
- 383. Ransom Note
- 385. Mini Parser
- 387. First Unique Character in a String
- 388. Longest Absolute File Path
- 389. Find the Difference
- 392. Is Subsequence
- 394. Decode String
- 395. Longest Substring with At Least K Repeating Characters
- 399. Evaluate Division
- 402. Remove K Digits
- 408. Valid Word Abbreviation π
- 409. Longest Palindrome
- 411. Minimum Unique Word Abbreviation π
- 412. Fizz Buzz
- 415. Add Strings
- 418. Sentence Screen Fitting π
- 420. Strong Password Checker
- 423. Reconstruct Original Digits from English
- 424. Longest Repeating Character Replacement
- 425. Word Squares π
- 428. Serialize and Deserialize N-ary Tree π
- 433. Minimum Genetic Mutation
- 434. Number of Segments in a String
- 438. Find All Anagrams in a String
- 439. Ternary Expression Parser π
- 443. String Compression
- 449. Serialize and Deserialize BST
- 451. Sort Characters By Frequency
- 459. Repeated Substring Pattern
- 466. Count The Repetitions
- 467. Unique Substrings in Wraparound String
- 468. Validate IP Address
- 471. Encode String with Shortest Length π
- 472. Concatenated Words
- 474. Ones and Zeroes
- 481. Magical String
- 482. License Key Formatting
- 484. Find Permutation π
- 488. Zuma Game
- 499. The Maze III π
- 500. Keyboard Row
- 514. Freedom Trail
- 516. Longest Palindromic Subsequence
- 520. Detect Capital
- 521. Longest Uncommon Subsequence I
- 522. Longest Uncommon Subsequence II
- 524. Longest Word in Dictionary through Deleting
- 527. Word Abbreviation π
- 535. Encode and Decode TinyURL
- 536. Construct Binary Tree from String π
- 537. Complex Number Multiplication
- 539. Minimum Time Difference
- 541. Reverse String II
- 544. Output Contest Matches π
- 551. Student Attendance Record I
- 555. Split Concatenated Strings π
- 556. Next Greater Element III
- 557. Reverse Words in a String III
- 564. Find the Closest Palindrome
- 567. Permutation in String
- 583. Delete Operation for Two Strings
- 588. Design In-Memory File System π
- 591. Tag Validator
- 592. Fraction Addition and Subtraction
- 599. Minimum Index Sum of Two Lists
- 604. Design Compressed String Iterator π
- 606. Construct String from Binary Tree
- 609. Find Duplicate File in System
- 616. Add Bold Tag in String π
- 635. Design Log Storage System π
- 639. Decode Ways II
- 640. Solve the Equation
- 642. Design Search Autocomplete System π
- 647. Palindromic Substrings
- 648. Replace Words
- 649. Dota2 Senate
- 657. Robot Return to Origin
- 664. Strange Printer
- 676. Implement Magic Dictionary
- 677. Map Sum Pairs
- 678. Valid Parenthesis String
- 680. Valid Palindrome II
- 681. Next Closest Time π
- 686. Repeated String Match
- 691. Stickers to Spell Word
- 692. Top K Frequent Words
- 696. Count Binary Substrings
- 709. To Lower Case
- 712. Minimum ASCII Delete Sum for Two Strings
- 720. Longest Word in Dictionary
- 721. Accounts Merge
- 722. Remove Comments
- 726. Number of Atoms
- 727. Minimum Window Subsequence π
- 730. Count Different Palindromic Subsequences
- 734. Sentence Similarity π
- 736. Parse Lisp Expression
- 737. Sentence Similarity II π
- 745. Prefix and Suffix Search
- 748. Shortest Completing Word
- 751. IP to CIDR π
- 752. Open the Lock
- 758. Bold Words in String π
- 761. Special Binary String
- 763. Partition Labels
- 767. Reorganize String
- 770. Basic Calculator IV
- 771. Jewels and Stones
- 772. Basic Calculator III π
- 777. Swap Adjacent in LR String
- 784. Letter Case Permutation
- 791. Custom Sort String
- 792. Number of Matching Subsequences
- 796. Rotate String
- 800. Similar RGB Color π
- 804. Unique Morse Code Words
- 806. Number of Lines To Write String
- 809. Expressive Words
- 811. Subdomain Visit Count
- 816. Ambiguous Coordinates
- 819. Most Common Word
- 820. Short Encoding of Words
- 821. Shortest Distance to a Character
- 824. Goat Latin
- 828. Count Unique Characters of All Substrings of a Given String
- 830. Positions of Large Groups
- 831. Masking Personal Information
- 833. Find And Replace in String
- 838. Push Dominoes
- 839. Similar String Groups
- 842. Split Array into Fibonacci Sequence
- 843. Guess the Word
- 844. Backspace String Compare
- 848. Shifting Letters
- 854. K-Similar Strings
- 856. Score of Parentheses
- 859. Buddy Strings
- 880. Decoded String at Index
- 884. Uncommon Words from Two Sentences
- 890. Find and Replace Pattern
- 893. Groups of Special-Equivalent Strings
- 899. Orderly Queue
- 902. Numbers At Most N Given Digit Set
- 903. Valid Permutations for DI Sequence
- 916. Word Subsets
- 917. Reverse Only Letters
- 921. Minimum Add to Make Parentheses Valid
- 925. Long Pressed Name
- 926. Flip String to Monotone Increasing
- 929. Unique Email Addresses
- 936. Stamping The Sequence
- 937. Reorder Data in Log Files
- 940. Distinct Subsequences II
- 942. DI String Match
- 943. Find the Shortest Superstring
- 944. Delete Columns to Make Sorted
- 949. Largest Time for Given Digits
- 953. Verifying an Alien Dictionary
- 955. Delete Columns to Make Sorted II
- 960. Delete Columns to Make Sorted III
- 966. Vowel Spellchecker
- 972. Equal Rational Numbers
- 981. Time Based Key-Value Store
- 984. String Without AAA or BBB
- 988. Smallest String Starting From Leaf
- 990. Satisfiability of Equality Equations
- 1002. Find Common Characters
- 1003. Check If Word Is Valid After Substitutions
- 1016. Binary String With Substrings Representing 1 To N
- 1021. Remove Outermost Parentheses
- 1023. Camelcase Matching
- 1028. Recover a Tree From Preorder Traversal
- 1032. Stream of Characters
- 1041. Robot Bounded In Circle
- 1044. Longest Duplicate Substring
- 1047. Remove All Adjacent Duplicates In String
- 1048. Longest String Chain
- 1055. Shortest Way to Form String π
- 1058. Minimize Rounding Error to Meet Target π
- 1061. Lexicographically Smallest Equivalent String
- 1062. Longest Repeating Substring π
- 1065. Index Pairs of a String π
- 1071. Greatest Common Divisor of Strings
- 1078. Occurrences After Bigram
- 1079. Letter Tile Possibilities
- 1081. Smallest Subsequence of Distinct Characters
- 1087. Brace Expansion π
- 1092. Shortest Common Supersequence
- 1096. Brace Expansion II
- 1100. Find K-Length Substrings With No Repeated Characters π
- 1106. Parsing A Boolean Expression
- 1108. Defanging an IP Address
- 1111. Maximum Nesting Depth of Two Valid Parentheses Strings
- 1119. Remove Vowels from a String π
- 1138. Alphabet Board Path
- 1143. Longest Common Subsequence
- 1147. Longest Chunked Palindrome Decomposition
- 1153. String Transforms Into Another String π
- 1154. Day of the Year
- 1156. Swap For Longest Repeated Character Substring
- 1160. Find Words That Can Be Formed by Characters
- 1163. Last Substring in Lexicographical Order
- 1165. Single-Row Keyboard π
- 1166. Design File System π
- 1169. Invalid Transactions
- 1170. Compare Strings by Frequency of the Smallest Character
- 1177. Can Make Palindrome from Substring
- 1178. Number of Valid Words for Each Puzzle
- 1180. Count Substrings with Only One Distinct Letter π
- 1181. Before and After Puzzle π
- 1189. Maximum Number of Balloons
- 1190. Reverse Substrings Between Each Pair of Parentheses
- 1202. Smallest String With Swaps
- 1208. Get Equal Substrings Within Budget
- 1209. Remove All Adjacent Duplicates in String II
- 1216. Valid Palindrome III π
- 1221. Split a String in Balanced Strings
- 1233. Remove Sub-Folders from the Filesystem
- 1234. Replace the Substring for Balanced String
- 1236. Web Crawler π
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1247. Minimum Swaps to Make Strings Equal
- 1249. Minimum Remove to Make Valid Parentheses
- 1255. Maximum Score Words Formed by Letters
- 1256. Encode Number π
- 1257. Smallest Common Region π
- 1258. Synonymous Sentences π
- 1268. Search Suggestions System
- 1271. Hexspeak π
- 1278. Palindrome Partitioning III
- 1286. Iterator for Combination
- 1297. Maximum Number of Occurrences of a Substring
- 1307. Verbal Arithmetic Puzzle
- 1309. Decrypt String from Alphabet to Integer Mapping
- 1312. Minimum Insertion Steps to Make a String Palindrome
- 1316. Distinct Echo Substrings
- 1320. Minimum Distance to Type a Word Using Two Fingers
- 1324. Print Words Vertically
- 1328. Break a Palindrome
- 1332. Remove Palindromic Subsequences
- 1347. Minimum Number of Steps to Make Two Strings Anagram
- 1358. Number of Substrings Containing All Three Characters
- 1360. Number of Days Between Two Dates
- 1366. Rank Teams by Votes
- 1370. Increasing Decreasing String
- 1371. Find the Longest Substring Containing Vowels in Even Counts
- 1374. Generate a String With Characters That Have Odd Counts
- 1392. Longest Happy Prefix
- 1396. Design Underground System
- 1397. Find All Good Strings
- 1400. Construct K Palindrome Strings
- 1404. Number of Steps to Reduce a Number in Binary Representation to One
- 1405. Longest Happy String
- 1408. String Matching in an Array
- 1410. HTML Entity Parser
- 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
- 1422. Maximum Score After Splitting a String
- 1427. Perform String Shifts π
- 1433. Check If a String Can Break Another String
- 1436. Destination City
- 1446. Consecutive Characters
- 1447. Simplified Fractions
- 1451. Rearrange Words in a Sentence
- 1452. People Whose List of Favorite Companies Is Not a Subset of Another List
- 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
- 1461. Check If a String Contains All Binary Codes of Size K
- 1487. Making File Names Unique
- 1496. Path Crossing
- 1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
- 1507. Reformat Date
- 1513. Number of Substrings With Only 1s
- 1520. Maximum Number of Non-Overlapping Substrings
- 1525. Number of Good Ways to Split a String
- 1528. Shuffle String
- 1529. Minimum Suffix Flips
- 1531. String Compression II
- 1540. Can Convert String in K Moves
- 1541. Minimum Insertions to Balance a Parentheses String
- 1542. Find Longest Awesome Substring
- 1544. Make The String Great
- 1545. Find Kth Bit in Nth Binary String
- 1554. Strings Differ by One Character π
- 1556. Thousand Separator
- 1573. Number of Ways to Split a String
- 1576. Replace All 's to Avoid Consecutive Repeating Characters
- 1578. Minimum Time to Make Rope Colorful
- 1585. Check If String Is Transformable With Substring Sort Operations
- 1592. Rearrange Spaces Between Words
- 1593. Split a String Into the Max Number of Unique Substrings
- 1597. Build Binary Expression Tree From Infix Expression π
- 1598. Crawler Log Folder
- 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1614. Maximum Nesting Depth of the Parentheses
- 1616. Split Two Strings to Make Palindrome
- 1618. Maximum Font to Fit a Sentence in a Screen π
- 1624. Largest Substring Between Two Equal Characters
- 1625. Lexicographically Smallest String After Applying Operations
- 1629. Slowest Key
- 1638. Count Substrings That Differ by One Character
- 1639. Number of Ways to Form a Target String Given a Dictionary
- 1647. Minimum Deletions to Make Character Frequencies Unique
- 1653. Minimum Deletions to Make String Balanced
- 1657. Determine if Two Strings Are Close
- 1662. Check If Two String Arrays are Equivalent
- 1663. Smallest String With A Given Numeric Value
- 1668. Maximum Repeating Substring
- 1678. Goal Parser Interpretation
- 1682. Longest Palindromic Subsequence II π
- 1684. Count the Number of Consistent Strings
- 1689. Partitioning Into Minimum Number Of Deci-Binary Numbers
- 1694. Reformat Phone Number
- 1698. Number of Distinct Substrings in a String π
- 1702. Maximum Binary String After Change
- 1704. Determine if String Halves Are Alike
- 1717. Maximum Score From Removing Substrings
- 1736. Latest Time by Replacing Hidden Digits
- 1737. Change Minimum Characters to Satisfy One of Three Conditions
- 1745. Palindrome Partitioning IV
- 1750. Minimum Length of String After Deleting Similar Ends
- 1754. Largest Merge Of Two Strings
- 1758. Minimum Changes To Make Alternating Binary String
- 1759. Count Number of Homogenous Substrings
- 1763. Longest Nice Substring
- 1768. Merge Strings Alternately
- 1769. Minimum Number of Operations to Move All Balls to Each Box
- 1771. Maximize Palindrome Length From Subsequences
- 1772. Sort Features by Popularity π
- 1773. Count Items Matching a Rule
- 1781. Sum of Beauty of All Substrings
- 1784. Check if Binary String Has at Most One Segment of Ones
- 1790. Check if One String Swap Can Make Strings Equal
- 1794. Count Pairs of Equal Substrings With Minimum Difference π
- 1796. Second Largest Digit in a String
- 1804. Implement Trie II (Prefix Tree) π
- 1805. Number of Different Integers in a String
- 1807. Evaluate the Bracket Pairs of a String
- 1812. Determine Color of a Chessboard Square
- 1813. Sentence Similarity III
- 1816. Truncate Sentence
- 1830. Minimum Number of Operations to Make String Sorted
- 1832. Check if the Sentence Is Pangram
- 1839. Longest Substring Of All Vowels in Order
- 1842. Next Palindrome Using Same Digits π
- 1844. Replace All Digits with Characters
- 1849. Splitting a String Into Descending Consecutive Values
- 1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
- 1859. Sorting the Sentence
- 1864. Minimum Number of Swaps to Make the Binary String Alternating
- 1869. Longer Contiguous Segments of Ones than Zeros
- 1871. Jump Game VII
- 1876. Substrings of Size Three with Distinct Characters
- 1880. Check if Word Equals Summation of Two Words
- 1881. Maximum Value after Insertion
- 1888. Minimum Number of Flips to Make the Binary String Alternating
- 1896. Minimum Cost to Change the Final Value of Expression
- 1897. Redistribute Characters to Make All Strings Equal
- 1898. Maximum Number of Removable Characters
- 1903. Largest Odd Number in String
- 1904. The Number of Full Rounds You Have Played
- 1910. Remove All Occurrences of a Substring
- 1915. Number of Wonderful Substrings
- 1927. Sum Game
- 1930. Unique Length-3 Palindromic Subsequences
- 1933. Check if String Is Decomposable Into Value-Equal Substrings π
- 1935. Maximum Number of Words You Can Type
- 1941. Check if All Characters Have Equal Number of Occurrences
- 1945. Sum of Digits of String After Convert
- 1946. Largest Number After Mutating Substring
- 1948. Delete Duplicate Folders in System
- 1957. Delete Characters to Make Fancy String
- 1960. Maximum Product of the Length of Two Palindromic Substrings
- 1961. Check If String Is a Prefix of Array
- 1963. Minimum Number of Swaps to Make the String Balanced
- 1967. Number of Strings That Appear as Substrings in Word
- 1974. Minimum Time to Type Word Using Special Typewriter
- 1977. Number of Ways to Separate Numbers
- 1980. Find Unique Binary String
- 1985. Find the Kth Largest Integer in the Array
- 1987. Number of Unique Good Subsequences
- 2000. Reverse Prefix of Word
- 2002. Maximum Product of the Length of Two Palindromic Subsequences
- 2011. Final Value of Variable After Performing Operations
- 2014. Longest Subsequence Repeated k Times
- 2019. The Score of Students Solving Math Expression
- 2023. Number of Pairs of Strings With Concatenation Equal to Target
- 2024. Maximize the Confusion of an Exam
- 2027. Minimum Moves to Convert String
- 2030. Smallest K-Length Subsequence With Occurrences of a Letter
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2042. Check if Numbers Are Ascending in a Sentence
- 2047. Number of Valid Words in a Sentence
- 2053. Kth Distinct String in an Array
- 2055. Plates Between Candles
- 2056. Number of Valid Move Combinations On Chessboard
- 2060. Check if an Original String Exists Given Two Encoded Strings
- 2062. Count Vowel Substrings of a String
- 2063. Vowels of All Substrings
- 2067. Number of Equal Count Substrings π
- 2068. Check Whether Two Strings are Almost Equivalent
- 2075. Decode the Slanted Ciphertext
- 2083. Substrings That Begin and End With the Same Letter π
- 2085. Count Common Words With One Occurrence
- 2086. Minimum Number of Food Buckets to Feed the Hamsters
- 2096. Step-By-Step Directions From a Binary Tree Node to Another
- 2103. Rings and Rods
- 2108. Find First Palindromic String in the Array
- 2109. Adding Spaces to a String
- 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
- 2120. Execution of All Suffix Instructions Staying in a Grid
- 2124. Check if All A's Appears Before All B's
- 2125. Number of Laser Beams in a Bank
- 2129. Capitalize the Title
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 2135. Count Words Obtained After Adding a Letter
- 2138. Divide a String Into Groups of Size k
- 2147. Number of Ways to Divide a Long Corridor
- 2156. Find Substring With Given Hash Value
- 2157. Groups of Strings
- 2166. Design Bitset
- 2167. Minimum Time to Remove All Cars Containing Illegal Goods
- 2168. Unique Substrings With Equal Digit Frequency π
- 2182. Construct String With Repeat Limit
- 2185. Counting Words With a Given Prefix
- 2186. Minimum Number of Steps to Make Two Strings Anagram II
- 2193. Minimum Number of Moves to Make Palindrome
- 2194. Cells in a Range on an Excel Sheet
- 2207. Maximize Number of Subsequences in a String
- 2209. Minimum White Tiles After Covering With Carpets
- 2211. Count Collisions on a Road
- 2213. Longest Substring of One Repeating Character
- 2222. Number of Ways to Select Buildings
- 2223. Sum of Scores of Built Strings
- 2224. Minimum Number of Operations to Convert Time
- 2227. Encrypt and Decrypt Strings
- 2232. Minimize Result by Adding Parentheses to Expression
- 2243. Calculate Digit Sum of a String
- 2246. Longest Path With Different Adjacent Characters
- 2255. Count Prefixes of a Given String
- 2259. Remove Digit From Number to Maximize Result
- 2262. Total Appeal of A String
- 2264. Largest 3-Same-Digit Number in String
- 2266. Count Number of Texts
- 2268. Minimum Number of Keypresses π
- 2269. Find the K-Beauty of a Number
- 2273. Find Resultant Array After Removing Anagrams
- 2278. Percentage of Letter in String
- 2283. Check if Number Has Equal Digit Count and Digit Value
- 2284. Sender With Largest Word Count
- 2287. Rearrange Characters to Make Target String
- 2288. Apply Discount to Prices
- 2296. Design a Text Editor
- 2299. Strong Password Checker II
- 2301. Match Substring After Replacement
- 2306. Naming a Company
- 2309. Greatest English Letter in Upper and Lower Case
- 2311. Longest Binary Subsequence Less Than or Equal to K
- 2315. Count Asterisks
- 2325. Decode the Message
- 2330. Valid Palindrome IV π
- 2337. Move Pieces to Obtain a String
- 2343. Query Kth Smallest Trimmed Number
- 2351. First Letter to Appear Twice
- 2370. Longest Ideal Subsequence
- 2375. Construct Smallest Number From DI String
- 2379. Minimum Recolors to Get K Consecutive Black Blocks
- 2380. Time Needed to Rearrange a Binary String
- 2381. Shifting Letters II
- 2384. Largest Palindromic Number
- 2390. Removing Stars From a String
- 2391. Minimum Amount of Time to Collect Garbage
- 2399. Check Distances Between Same Letters
- 2405. Optimal Partition of String
- 2408. Design SQL π
- 2409. Count Days Spent Together
- 2414. Length of the Longest Alphabetical Continuous Substring
- 2416. Sum of Prefix Scores of Strings
- 2418. Sort the People
- 2423. Remove Letter To Equalize Frequency
- 2430. Maximum Deletions on a String
- 2434. Using a Robot to Print the Lexicographically Smallest String
- 2437. Number of Valid Clock Times
- 2446. Determine if Two Events Have Conflict
- 2450. Number of Distinct Binary Strings After Applying Operations π
- 2451. Odd String Difference
- 2452. Words Within Two Edits of Dictionary
- 2456. Most Popular Video Creator
- 2468. Split Message Based on Limit
- 2472. Maximum Number of Non-overlapping Palindrome Substrings
- 2478. Number of Beautiful Partitions
- 2483. Minimum Penalty for a Shop
- 2484. Count Palindromic Subsequences
- 2486. Append Characters to String to Make Subsequence
- 2489. Number of Substrings With Fixed Ratio π
- 2490. Circular Sentence
- 2496. Maximum Value of a String in an Array
- 2506. Count Pairs Of Similar Strings
- 2512. Reward Top K Students
- 2514. Count Anagrams
- 2515. Shortest Distance to Target String in a Circular Array
- 2516. Take K of Each Character From Left and Right
- 2522. Partition String Into Substrings With Values at Most K
- 2531. Make Number of Distinct Characters Equal
- 2539. Count the Number of Good Subsequences π
- 2546. Apply Bitwise Operations to Make Strings Equal
- 2559. Count Vowel Strings in Ranges
- 2564. Substring XOR Queries
- 2565. Subsequence With the Minimum Score
- 2573. Find the String with
- 2575. Find the Divisibility Array of a String
- 2586. Count the Number of Vowel Strings in Range
- 2590. Design a Todo List π
- 2606. Find the Substring With Maximum Cost
- 2609. Find the Longest Balanced Substring of a Binary String
- 2645. Minimum Additions to Make Valid String
- 2663. Lexicographically Smallest Beautiful String
- 2678. Number of Senior Citizens
- 2696. Minimum String Length After Removing Substrings
- 2697. Lexicographically Smallest Palindrome
- 2707. Extra Characters in a String
- 2710. Remove Trailing Zeros From a String
- 2712. Minimum Cost to Make All Characters Equal
- 2716. Minimize String Length
- 2719. Count of Integers
- 2730. Find the Longest Semi-Repetitive Substring
- 2734. Lexicographically Smallest String After Substring Operation
- 2743. Count Substrings Without Repeating Character π
- 2744. Find Maximum Number of String Pairs
- 2746. Decremental String Concatenation
- 2767. Partition String Into Minimum Beautiful Substrings
- 2781. Length of the Longest Valid Substring
- 2785. Sort Vowels in a String
- 2788. Split Strings by Separator
- 2800. Shortest String That Contains Three Strings
- 2801. Count Stepping Numbers in Range
- 2802. Find The K-th Lucky Number π
- 2810. Faulty Keyboard
- 2825. Make String a Subsequence Using Cyclic Increments
- 2828. Check if a String Is an Acronym of Words
- 2833. Furthest Point From Origin
- 2839. Check if Strings Can be Made Equal With Operations I
- 2840. Check if Strings Can be Made Equal With Operations II
- 2842. Count K-Subsequences of a String With Maximum Beauty
- 2844. Minimum Operations to Make a Special Number
- 2851. String Transformation
- 2864. Maximum Odd Binary Number
- 2868. The Wording Game π
- 2896. Apply Operations to Make Two Strings Equal
- 2900. Longest Unequal Adjacent Groups Subsequence I
- 2901. Longest Unequal Adjacent Groups Subsequence II
- 2904. Shortest and Lexicographically Smallest Beautiful String
- 2911. Minimum Changes to Make K Semi-palindromes
- 2914. Minimum Number of Changes to Make Binary String Beautiful
- 2933. High-Access Employees
- 2937. Make Three Strings Equal
- 2938. Separate Black and White Balls
- 2942. Find Words Containing Character
- 2947. Count Beautiful Substrings I
- 2949. Count Beautiful Substrings II
- 2950. Number of Divisible Substrings π
- 2953. Count Complete Substrings
- 2955. Number of Same-End Substrings π
- 2957. Remove Adjacent Almost-Equal Characters
- 2976. Minimum Cost to Convert String I
- 2977. Minimum Cost to Convert String II
- 2981. Find Longest Special Substring That Occurs Thrice I
- 2982. Find Longest Special Substring That Occurs Thrice II
- 2983. Palindrome Rearrangement Queries
- 2999. Count the Number of Powerful Integers
- 3003. Maximize the Number of Partitions After Operations
- 3006. Find Beautiful Indices in the Given Array I
- 3008. Find Beautiful Indices in the Given Array II
- 3014. Minimum Number of Pushes to Type Word I
- 3016. Minimum Number of Pushes to Type Word II
- 3019. Number of Changing Keys
- 3029. Minimum Time to Revert Word to Initial State I
- 3031. Minimum Time to Revert Word to Initial State II
- 3035. Maximum Palindromes After Operations
- 3042. Count Prefix and Suffix Pairs I
- 3043. Find the Length of the Longest Common Prefix
- 3045. Count Prefix and Suffix Pairs II
- 3076. Shortest Uncommon Substring in an Array
- 3078. Match Alphanumerical Pattern in Matrix I π
- 3081. Replace Question Marks in String to Minimize Its Value
- 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
- 3088. Make String Anti-palindrome π
- 3090. Maximum Length Substring With Two Occurrences
- 3093. Longest Common Suffix Queries
- 3104. Find Longest Self-Contained Substring π
- 3106. Lexicographically Smallest String After Operations With Constraint
- 3110. Score of a String
- 3114. Latest Time You Can Obtain After Replacing Characters
- 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
- 3125. Maximum Number That Makes Result of Bitwise AND Zero π
- 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
- 3143. Maximum Points Inside the Square
- 3144. Minimum Substring Partition of Equal Character Frequency
- 3146. Permutation Difference between Two Strings
- 3163. String Compression III
- 3167. Better Compression of String π
- 3168. Minimum Number of Chairs in a Waiting Room
- 3170. Lexicographically Minimum String After Removing Stars
- 3174. Clear Digits
- 3210. Find the Encrypted String
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3213. Construct String with Minimum Cost
- 3216. Lexicographically Smallest String After a Swap
- 3223. Minimum Length of String After Operations
- 3227. Vowels Game in a String
- 3228. Maximum Number of Operations to Move Ones to the End
- 3234. Count the Number of Substrings With Dominant Ones
- 3248. Snake in Matrix
- 3258. Count Substrings That Satisfy K-Constraint I
- 3260. Find the Largest Palindrome Divisible by K
- 3261. Count Substrings That Satisfy K-Constraint II
- 3271. Hash Divided String
- 3274. Check if Two Chessboard Squares Have the Same Color
- 3279. Maximum Total Area Occupied by Pistons π
- 3280. Convert Date to Binary
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
- 3295. Report Spam Message
- 3297. Count Substrings That Can Be Rearranged to Contain a String I
- 3298. Count Substrings That Can Be Rearranged to Contain a String II
- 3302. Find the Lexicographically Smallest Valid Sequence
- 3303. Find the Occurrence of First Almost Equal Substring
- 3305. Count of Substrings Containing Every Vowel and K Consonants I
- 3306. Count of Substrings Containing Every Vowel and K Consonants II
- 3316. Find Maximum Removals From Source String
- 3320. Count The Number of Winning Sequences
- 3324. Find the Sequence of Strings Appeared on the Screen
- 3325. Count Substrings With K-Frequency Characters I
- 3327. Check if DFS Strings Are Palindromes
- 3329. Count Substrings With K-Frequency Characters II π
- 3330. Find the Original Typed String I
- 3331. Find Subtree Sizes After Changes
- 3333. Find the Original Typed String II
- 3335. Total Characters in String After Transformations I
- 3337. Total Characters in String After Transformations II
- 3340. Check Balanced String
- 3343. Count Number of Balanced Permutations
- 3348. Smallest Divisible Digit Product II
- 3352. Count K-Reducible Numbers Less Than N
- 3361. Shift Distance Between Two Strings
- 3365. Rearrange K Substrings to Form Target String
String Matching
- 28. Find the Index of the First Occurrence in a String
- 214. Shortest Palindrome
- 459. Repeated Substring Pattern
- 572. Subtree of Another Tree
- 616. Add Bold Tag in String π
- 686. Repeated String Match
- 758. Bold Words in String π
- 796. Rotate String
- 1023. Camelcase Matching
- 1392. Longest Happy Prefix
- 1397. Find All Good Strings
- 1408. String Matching in an Array
- 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
- 1668. Maximum Repeating Substring
- 1764. Form Array by Concatenating Subarrays of Another Array
- 2185. Counting Words With a Given Prefix
- 2223. Sum of Scores of Built Strings
- 2301. Match Substring After Replacement
- 2430. Maximum Deletions on a String
- 2851. String Transformation
- 3006. Find Beautiful Indices in the Given Array I
- 3008. Find Beautiful Indices in the Given Array II
- 3023. Find Pattern in Infinite Stream I π
- 3029. Minimum Time to Revert Word to Initial State I
- 3031. Minimum Time to Revert Word to Initial State II
- 3034. Number of Subarrays That Match a Pattern I
- 3036. Number of Subarrays That Match a Pattern II
- 3037. Find Pattern in Infinite Stream II π
- 3042. Count Prefix and Suffix Pairs I
- 3045. Count Prefix and Suffix Pairs II
- 3291. Minimum Number of Valid Strings to Form Target I
- 3292. Minimum Number of Valid Strings to Form Target II
- 3303. Find the Occurrence of First Almost Equal Substring
Strongly Connected Component
- 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1568. Minimum Number of Days to Disconnect Island
- 2846. Minimum Edge Weight Equilibrium Queries in a Tree
Suffix Array
- 1044. Longest Duplicate Substring
- 1062. Longest Repeating Substring π
- 1698. Number of Distinct Substrings in a String π
- 1923. Longest Common Subpath
- 1977. Number of Ways to Separate Numbers
- 2223. Sum of Scores of Built Strings
- 3213. Construct String with Minimum Cost
Topological Sort
- 207. Course Schedule
- 210. Course Schedule II
- 269. Alien Dictionary π
- 310. Minimum Height Trees
- 329. Longest Increasing Path in a Matrix
- 444. Sequence Reconstruction π
- 631. Design Excel Sum Formula π
- 802. Find Eventual Safe States
- 851. Loud and Rich
- 913. Cat and Mouse
- 1059. All Paths from Source Lead to Destination π
- 1136. Parallel Courses π
- 1203. Sort Items by Groups Respecting Dependencies
- 1245. Tree Diameter π
- 1462. Course Schedule IV
- 1591. Strange Printer II
- 1632. Rank Transform of a Matrix
- 1728. Cat and Mouse II
- 1786. Number of Restricted Paths From First to Last Node
- 1857. Largest Color Value in a Directed Graph
- 1916. Count Ways to Build Rooms in an Ant Colony
- 1976. Number of Ways to Arrive at Destination
- 2050. Parallel Courses III
- 2115. Find All Possible Recipes from Given Supplies
- 2127. Maximum Employees to Be Invited to a Meeting
- 2192. All Ancestors of a Node in a Directed Acyclic Graph
- 2246. Longest Path With Different Adjacent Characters
- 2328. Number of Increasing Paths in a Grid
- 2360. Longest Cycle in a Graph
- 2371. Minimize Maximum Value in a Grid π
- 2392. Build a Matrix With Conditions
- 2603. Collect Coins in a Tree
- 3383. Minimum Runes to Add to Cast Spell π
Tree
- 94. Binary Tree Inorder Traversal
- 95. Unique Binary Search Trees II
- 96. Unique Binary Search Trees
- 98. Validate Binary Search Tree
- 99. Recover Binary Search Tree
- 100. Same Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 107. Binary Tree Level Order Traversal II
- 108. Convert Sorted Array to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 113. Path Sum II
- 114. Flatten Binary Tree to Linked List
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 124. Binary Tree Maximum Path Sum
- 129. Sum Root to Leaf Numbers
- 144. Binary Tree Preorder Traversal
- 145. Binary Tree Postorder Traversal
- 156. Binary Tree Upside Down π
- 173. Binary Search Tree Iterator
- 199. Binary Tree Right Side View
- 222. Count Complete Tree Nodes
- 226. Invert Binary Tree
- 230. Kth Smallest Element in a BST
- 235. Lowest Common Ancestor of a Binary Search Tree
- 236. Lowest Common Ancestor of a Binary Tree
- 250. Count Univalue Subtrees π
- 255. Verify Preorder Sequence in Binary Search Tree π
- 257. Binary Tree Paths
- 270. Closest Binary Search Tree Value π
- 272. Closest Binary Search Tree Value II π
- 285. Inorder Successor in BST π
- 297. Serialize and Deserialize Binary Tree
- 298. Binary Tree Longest Consecutive Sequence π
- 314. Binary Tree Vertical Order Traversal π
- 331. Verify Preorder Serialization of a Binary Tree
- 333. Largest BST Subtree π
- 337. House Robber III
- 341. Flatten Nested List Iterator
- 366. Find Leaves of Binary Tree π
- 404. Sum of Left Leaves
- 426. Convert Binary Search Tree to Sorted Doubly Linked List π
- 427. Construct Quad Tree
- 428. Serialize and Deserialize N-ary Tree π
- 429. N-ary Tree Level Order Traversal
- 431. Encode N-ary Tree to Binary Tree π
- 437. Path Sum III
- 449. Serialize and Deserialize BST
- 450. Delete Node in a BST
- 501. Find Mode in Binary Search Tree
- 508. Most Frequent Subtree Sum
- 510. Inorder Successor in BST II π
- 513. Find Bottom Left Tree Value
- 515. Find Largest Value in Each Tree Row
- 530. Minimum Absolute Difference in BST
- 536. Construct Binary Tree from String π
- 538. Convert BST to Greater Tree
- 543. Diameter of Binary Tree
- 545. Boundary of Binary Tree π
- 549. Binary Tree Longest Consecutive Sequence II π
- 558. Logical OR of Two Binary Grids Represented as Quad-Trees
- 559. Maximum Depth of N-ary Tree
- 563. Binary Tree Tilt
- 572. Subtree of Another Tree
- 582. Kill Process π
- 589. N-ary Tree Preorder Traversal
- 590. N-ary Tree Postorder Traversal
- 606. Construct String from Binary Tree
- 617. Merge Two Binary Trees
- 623. Add One Row to Tree
- 637. Average of Levels in Binary Tree
- 652. Find Duplicate Subtrees
- 653. Two Sum IV - Input is a BST
- 654. Maximum Binary Tree
- 655. Print Binary Tree
- 662. Maximum Width of Binary Tree
- 663. Equal Tree Partition π
- 666. Path Sum IV π
- 669. Trim a Binary Search Tree
- 671. Second Minimum Node In a Binary Tree
- 687. Longest Univalue Path
- 690. Employee Importance
- 700. Search in a Binary Search Tree
- 701. Insert into a Binary Search Tree
- 703. Kth Largest Element in a Stream
- 742. Closest Leaf in a Binary Tree π
- 776. Split BST π
- 783. Minimum Distance Between BST Nodes
- 814. Binary Tree Pruning
- 834. Sum of Distances in Tree
- 863. All Nodes Distance K in Binary Tree
- 865. Smallest Subtree with all the Deepest Nodes
- 872. Leaf-Similar Trees
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 894. All Possible Full Binary Trees
- 897. Increasing Order Search Tree
- 919. Complete Binary Tree Inserter
- 938. Range Sum of BST
- 951. Flip Equivalent Binary Trees
- 958. Check Completeness of a Binary Tree
- 965. Univalued Binary Tree
- 968. Binary Tree Cameras
- 971. Flip Binary Tree To Match Preorder Traversal
- 979. Distribute Coins in Binary Tree
- 987. Vertical Order Traversal of a Binary Tree
- 988. Smallest String Starting From Leaf
- 993. Cousins in Binary Tree
- 998. Maximum Binary Tree II
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1022. Sum of Root To Leaf Binary Numbers
- 1026. Maximum Difference Between Node and Ancestor
- 1028. Recover a Tree From Preorder Traversal
- 1038. Binary Search Tree to Greater Sum Tree
- 1080. Insufficient Nodes in Root to Leaf Paths
- 1104. Path In Zigzag Labelled Binary Tree
- 1110. Delete Nodes And Return Forest
- 1120. Maximum Average Subtree π
- 1123. Lowest Common Ancestor of Deepest Leaves
- 1145. Binary Tree Coloring Game
- 1161. Maximum Level Sum of a Binary Tree
- 1214. Two Sum BSTs π
- 1245. Tree Diameter π
- 1257. Smallest Common Region π
- 1261. Find Elements in a Contaminated Binary Tree
- 1273. Delete Tree Nodes π
- 1302. Deepest Leaves Sum
- 1305. All Elements in Two Binary Search Trees
- 1315. Sum of Nodes with Even-Valued Grandparent
- 1325. Delete Leaves With a Given Value
- 1339. Maximum Product of Splitted Binary Tree
- 1361. Validate Binary Tree Nodes
- 1367. Linked List in Binary Tree
- 1372. Longest ZigZag Path in a Binary Tree
- 1373. Maximum Sum BST in Binary Tree
- 1376. Time Needed to Inform All Employees
- 1377. Frog Position After T Seconds
- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1382. Balance a Binary Search Tree
- 1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree π
- 1443. Minimum Time to Collect All Apples in a Tree
- 1448. Count Good Nodes in Binary Tree
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1469. Find All The Lonely Nodes π
- 1483. Kth Ancestor of a Tree Node
- 1485. Clone Binary Tree With Random Pointer π
- 1490. Clone N-ary Tree π
- 1506. Find Root of N-Ary Tree π
- 1516. Move Sub-Tree of N-Ary Tree π
- 1519. Number of Nodes in the Sub-Tree With the Same Label
- 1522. Diameter of N-Ary Tree π
- 1530. Number of Good Leaf Nodes Pairs
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1586. Binary Search Tree Iterator II π
- 1597. Build Binary Expression Tree From Infix Expression π
- 1600. Throne Inheritance
- 1602. Find Nearest Right Node in Binary Tree π
- 1609. Even Odd Tree
- 1612. Check If Two Expression Trees are Equivalent π
- 1617. Count Subtrees With Max Distance Between Cities
- 1628. Design an Expression Tree With Evaluate Function π
- 1644. Lowest Common Ancestor of a Binary Tree II π
- 1650. Lowest Common Ancestor of a Binary Tree III π
- 1660. Correct a Binary Tree π
- 1666. Change the Root of a Binary Tree π
- 1676. Lowest Common Ancestor of a Binary Tree IV π
- 1719. Number Of Ways To Reconstruct A Tree
- 1740. Find Distance in a Binary Tree π
- 1766. Tree of Coprimes
- 1902. Depth of BST Given Insertion Order π
- 1916. Count Ways to Build Rooms in an Ant Colony
- 1932. Merge BSTs to Create Single BST
- 1973. Count Nodes Equal to Sum of Descendants π
- 1993. Operations on Tree
- 2003. Smallest Missing Genetic Value in Each Subtree
- 2005. Subtree Removal Game with Fibonacci Tree π
- 2049. Count Nodes With the Highest Score
- 2096. Step-By-Step Directions From a Binary Tree Node to Another
- 2196. Create Binary Tree From Descriptions
- 2236. Root Equals Sum of Children
- 2246. Longest Path With Different Adjacent Characters
- 2265. Count Nodes Equal to Average of Subtree
- 2277. Closest Node to Path in Tree π
- 2313. Minimum Flips in Binary Tree to Get Result π
- 2322. Minimum Score After Removals on a Tree
- 2331. Evaluate Boolean Binary Tree
- 2368. Reachable Nodes With Restrictions
- 2378. Choose Edges to Maximize Score in a Tree π
- 2385. Amount of Time for Binary Tree to Be Infected
- 2415. Reverse Odd Levels of Binary Tree
- 2421. Number of Good Paths
- 2440. Create Components With Same Value
- 2445. Number of Nodes With Value One π
- 2458. Height of Binary Tree After Subtree Removal Queries
- 2467. Most Profitable Path in a Tree
- 2471. Minimum Number of Operations to Sort a Binary Tree by Level
- 2476. Closest Nodes Queries in a Binary Search Tree
- 2477. Minimum Fuel Cost to Report to the Capital
- 2479. Maximum XOR of Two Non-Overlapping Subtrees π
- 2509. Cycle Length Queries in a Tree
- 2538. Difference Between Maximum and Minimum Price Sum
- 2581. Count Number of Possible Root Nodes
- 2583. Kth Largest Sum in a Binary Tree
- 2603. Collect Coins in a Tree
- 2641. Cousins in Binary Tree II
- 2646. Minimize the Total Price of the Trips
- 2673. Make Costs of Paths Equal in a Binary Tree
- 2689. Extract Kth Character From The Rope Tree π
- 2764. Is Array a Preorder of Some βBinary Tree π
- 2773. Height of Special Binary Tree π
- 2791. Count Paths That Can Form a Palindrome in a Tree
- 2792. Count Nodes That Are Great Enough π
- 2846. Minimum Edge Weight Equilibrium Queries in a Tree
- 2867. Count Valid Paths in a Tree
- 2872. Maximum Number of K-Divisible Components
- 2920. Maximum Points After Collecting Coins From All Nodes
- 2925. Maximum Score After Applying Operations on a Tree
- 2973. Find Number of Coins to Place in Tree Nodes
- 3004. Maximum Subtree of the Same Color π
- 3067. Count Pairs of Connectable Servers in a Weighted Tree Network
- 3068. Find the Maximum Sum of Node Values
- 3157. Find the Level of Tree with Minimum Sum π
- 3203. Find Minimum Diameter After Merging Two Trees
- 3241. Time Taken to Mark All Nodes
- 3249. Count the Number of Good Nodes
- 3313. Find the Last Marked Nodes in Tree π
- 3319. K-th Largest Perfect Subtree Size in Binary Tree
- 3327. Check if DFS Strings Are Palindromes
- 3331. Find Subtree Sizes After Changes
- 3367. Maximize Sum of Weights after Edge Removals
- 3372. Maximize the Number of Target Nodes After Connecting Trees I
- 3373. Maximize the Number of Target Nodes After Connecting Trees II
Trie
- 14. Longest Common Prefix
- 139. Word Break
- 140. Word Break II
- 208. Implement Trie (Prefix Tree)
- 211. Design Add and Search Words Data Structure
- 212. Word Search II
- 336. Palindrome Pairs
- 386. Lexicographical Numbers
- 421. Maximum XOR of Two Numbers in an Array
- 425. Word Squares π
- 440. K-th Smallest in Lexicographical Order
- 472. Concatenated Words
- 527. Word Abbreviation π
- 588. Design In-Memory File System π
- 616. Add Bold Tag in String π
- 642. Design Search Autocomplete System π
- 648. Replace Words
- 676. Implement Magic Dictionary
- 677. Map Sum Pairs
- 692. Top K Frequent Words
- 720. Longest Word in Dictionary
- 745. Prefix and Suffix Search
- 758. Bold Words in String π
- 792. Number of Matching Subsequences
- 820. Short Encoding of Words
- 1023. Camelcase Matching
- 1032. Stream of Characters
- 1065. Index Pairs of a String π
- 1166. Design File System π
- 1178. Number of Valid Words for Each Puzzle
- 1233. Remove Sub-Folders from the Filesystem
- 1268. Search Suggestions System
- 1316. Distinct Echo Substrings
- 1698. Number of Distinct Substrings in a String π
- 1707. Maximum XOR With an Element From Array
- 1803. Count Pairs With XOR in a Range
- 1804. Implement Trie II (Prefix Tree) π
- 1858. Longest Word With All Prefixes π
- 1938. Maximum Genetic Difference Query
- 1948. Delete Duplicate Folders in System
- 2227. Encrypt and Decrypt Strings
- 2261. K Divisible Elements Subarrays
- 2416. Sum of Prefix Scores of Strings
- 2479. Maximum XOR of Two Non-Overlapping Subtrees π
- 2707. Extra Characters in a String
- 2932. Maximum Strong Pair XOR I
- 2935. Maximum Strong Pair XOR II
- 2977. Minimum Cost to Convert String II
- 3042. Count Prefix and Suffix Pairs I
- 3043. Find the Length of the Longest Common Prefix
- 3045. Count Prefix and Suffix Pairs II
- 3076. Shortest Uncommon Substring in an Array
- 3093. Longest Common Suffix Queries
- 3291. Minimum Number of Valid Strings to Form Target I
Two Pointers
- 5. Longest Palindromic Substring
- 11. Container With Most Water
- 15. 3Sum
- 16. 3Sum Closest
- 18. 4Sum
- 19. Remove Nth Node From End of List
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 28. Find the Index of the First Occurrence in a String
- 31. Next Permutation
- 42. Trapping Rain Water
- 61. Rotate List
- 75. Sort Colors
- 80. Remove Duplicates from Sorted Array II
- 82. Remove Duplicates from Sorted List II
- 86. Partition List
- 88. Merge Sorted Array
- 125. Valid Palindrome
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 143. Reorder List
- 148. Sort List
- 151. Reverse Words in a String
- 160. Intersection of Two Linked Lists
- 161. One Edit Distance π
- 165. Compare Version Numbers
- 167. Two Sum II - Input Array Is Sorted
- 170. Two Sum III - Data structure design π
- 186. Reverse Words in a String II π
- 189. Rotate Array
- 202. Happy Number
- 234. Palindrome Linked List
- 244. Shortest Word Distance II π
- 246. Strobogrammatic Number π
- 251. Flatten 2D Vector π
- 253. Meeting Rooms II π
- 259. 3Sum Smaller π
- 272. Closest Binary Search Tree Value II π
- 277. Find the Celebrity π
- 283. Move Zeroes
- 287. Find the Duplicate Number
- 295. Find Median from Data Stream
- 321. Create Maximum Number
- 344. Reverse String
- 345. Reverse Vowels of a String
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 360. Sort Transformed Array π
- 392. Is Subsequence
- 408. Valid Word Abbreviation π
- 443. String Compression
- 455. Assign Cookies
- 457. Circular Array Loop
- 475. Heaters
- 481. Magical String
- 522. Longest Uncommon Subsequence II
- 524. Longest Word in Dictionary through Deleting
- 532. K-diff Pairs in an Array
- 541. Reverse String II
- 556. Next Greater Element III
- 557. Reverse Words in a String III
- 567. Permutation in String
- 581. Shortest Unsorted Continuous Subarray
- 611. Valid Triangle Number
- 633. Sum of Square Numbers
- 647. Palindromic Substrings
- 653. Two Sum IV - Input is a BST
- 658. Find K Closest Elements
- 680. Valid Palindrome II
- 696. Count Binary Substrings
- 719. Find K-th Smallest Pair Distance
- 723. Candy Crush π
- 763. Partition Labels
- 777. Swap Adjacent in LR String
- 786. K-th Smallest Prime Fraction
- 795. Number of Subarrays with Bounded Maximum
- 809. Expressive Words
- 821. Shortest Distance to a Character
- 825. Friends Of Appropriate Ages
- 826. Most Profit Assigning Work
- 832. Flipping an Image
- 838. Push Dominoes
- 844. Backspace String Compare
- 845. Longest Mountain in Array
- 870. Advantage Shuffle
- 876. Middle of the Linked List
- 881. Boats to Save People
- 905. Sort Array By Parity
- 917. Reverse Only Letters
- 922. Sort Array By Parity II
- 923. 3Sum With Multiplicity
- 925. Long Pressed Name
- 942. DI String Match
- 948. Bag of Tokens
- 969. Pancake Sorting
- 977. Squares of a Sorted Array
- 986. Interval List Intersections
- 1023. Camelcase Matching
- 1040. Moving Stones Until Consecutive II
- 1048. Longest String Chain
- 1055. Shortest Way to Form String π
- 1089. Duplicate Zeros
- 1099. Two Sum Less Than K π
- 1147. Longest Chunked Palindrome Decomposition
- 1163. Last Substring in Lexicographical Order
- 1214. Two Sum BSTs π
- 1229. Meeting Scheduler π
- 1237. Find Positive Integer Solution for a Given Equation
- 1265. Print Immutable Linked List in Reverse π
- 1332. Remove Palindromic Subsequences
- 1346. Check If N and Its Double Exist
- 1385. Find the Distance Value Between Two Arrays
- 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
- 1471. The k Strongest Values in an Array
- 1498. Number of Subsequences That Satisfy the Given Sum Condition
- 1508. Range Sum of Sorted Subarray Sums
- 1537. Get the Maximum Score
- 1570. Dot Product of Two Sparse Vectors π
- 1574. Shortest Subarray to be Removed to Make Array Sorted
- 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1616. Split Two Strings to Make Palindrome
- 1634. Add Two Polynomials Represented as Linked Lists π
- 1650. Lowest Common Ancestor of a Binary Tree III π
- 1679. Max Number of K-Sum Pairs
- 1697. Checking Existence of Edge Length Limited Paths
- 1712. Ways to Split Array Into Three Subarrays
- 1721. Swapping Nodes in a Linked List
- 1750. Minimum Length of String After Deleting Similar Ends
- 1754. Largest Merge Of Two Strings
- 1755. Closest Subsequence Sum
- 1764. Form Array by Concatenating Subarrays of Another Array
- 1768. Merge Strings Alternately
- 1782. Count Pairs Of Nodes
- 1793. Maximum Score of a Good Subarray
- 1813. Sentence Similarity III
- 1826. Faulty Sensor π
- 1842. Next Palindrome Using Same Digits π
- 1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number
- 1855. Maximum Distance Between a Pair of Values
- 1861. Rotating the Box
- 1868. Product of Two Run-Length Encoded Arrays π
- 1877. Minimize Maximum Pair Sum in Array
- 1885. Count Pairs in Two Arrays π
- 1898. Maximum Number of Removable Characters
- 1961. Check If String Is a Prefix of Array
- 1963. Minimum Number of Swaps to Make the String Balanced
- 2000. Reverse Prefix of Word
- 2035. Partition Array Into Two Arrays to Minimize Sum Difference
- 2046. Sort Linked List Already Sorted Using Absolute Values π
- 2095. Delete the Middle Node of a Linked List
- 2105. Watering Plants II
- 2108. Find First Palindromic String in the Array
- 2109. Adding Spaces to a String
- 2122. Recover the Original Array
- 2130. Maximum Twin Sum of a Linked List
- 2149. Rearrange Array Elements by Sign
- 2161. Partition Array According to Given Pivot
- 2193. Minimum Number of Moves to Make Palindrome
- 2200. Find All K-Distant Indices in an Array
- 2234. Maximum Total Beauty of the Gardens
- 2300. Successful Pairs of Spells and Potions
- 2330. Valid Palindrome IV π
- 2332. The Latest Time to Catch a Bus
- 2337. Move Pieces to Obtain a String
- 2367. Number of Arithmetic Triplets
- 2396. Strictly Palindromic Number
- 2406. Divide Intervals Into Minimum Number of Groups
- 2410. Maximum Matching of Players With Trainers
- 2422. Merge Operations to Turn Array Into a Palindrome π
- 2441. Largest Positive Integer That Exists With Its Negative
- 2460. Apply Operations to an Array
- 2462. Total Cost to Hire K Workers
- 2465. Number of Distinct Averages
- 2472. Maximum Number of Non-overlapping Palindrome Substrings
- 2486. Append Characters to String to Make Subsequence
- 2491. Divide Players Into Teams of Equal Skill
- 2503. Maximum Number of Points From Grid Queries
- 2511. Maximum Enemy Forts That Can Be Captured
- 2540. Minimum Common Value
- 2562. Find the Array Concatenation Value
- 2563. Count the Number of Fair Pairs
- 2565. Subsequence With the Minimum Score
- 2570. Merge Two 2D Arrays by Summing Values
- 2576. Find the Maximum Number of Marked Indices
- 2592. Maximize Greatness of an Array
- 2604. Minimum Time to Eat All Grains π
- 2674. Split a Circular Linked List π
- 2697. Lexicographically Smallest Palindrome
- 2824. Count Pairs Whose Sum is Less than Target
- 2825. Make String a Subsequence Using Cyclic Increments
- 2838. Maximum Coins Heroes Can Collect π
- 2856. Minimum Array Length After Pair Removals
- 2868. The Wording Game π
- 2903. Find Indices With Index and Value Difference I
- 2905. Find Indices With Index and Value Difference II
- 2911. Minimum Changes to Make K Semi-palindromes
- 2938. Separate Black and White Balls
- 2970. Count the Number of Incremovable Subarrays I
- 2972. Count the Number of Incremovable Subarrays II
- 3006. Find Beautiful Indices in the Given Array I
- 3008. Find Beautiful Indices in the Given Array II
- 3132. Find the Integer Added to Array II
- 3186. Maximum Total Damage With Spell Casting
- 3194. Minimum Average of Smallest and Largest Elements
- 3239. Minimum Number of Flips to Make Binary Grid Palindromic I
- 3240. Minimum Number of Flips to Make Binary Grid Palindromic II
- 3284. Sum of Consecutive Subarrays π
- 3302. Find the Lexicographically Smallest Valid Sequence
- 3316. Find Maximum Removals From Source String
Union Find
- 128. Longest Consecutive Sequence
- 130. Surrounded Regions
- 200. Number of Islands
- 261. Graph Valid Tree π
- 305. Number of Islands II π
- 323. Number of Connected Components in an Undirected Graph π
- 399. Evaluate Division
- 547. Number of Provinces
- 684. Redundant Connection
- 685. Redundant Connection II
- 694. Number of Distinct Islands π
- 695. Max Area of Island
- 711. Number of Distinct Islands II π
- 721. Accounts Merge
- 737. Sentence Similarity II π
- 765. Couples Holding Hands
- 778. Swim in Rising Water
- 785. Is Graph Bipartite
- 803. Bricks Falling When Hit
- 827. Making A Large Island
- 839. Similar String Groups
- 886. Possible Bipartition
- 924. Minimize Malware Spread
- 928. Minimize Malware Spread II
- 947. Most Stones Removed with Same Row or Column
- 952. Largest Component Size by Common Factor
- 959. Regions Cut By Slashes
- 990. Satisfiability of Equality Equations
- 1020. Number of Enclaves
- 1061. Lexicographically Smallest Equivalent String
- 1101. The Earliest Moment When Everyone Become Friends π
- 1102. Path With Maximum Minimum Value π
- 1135. Connecting Cities With Minimum Cost π
- 1168. Optimize Water Distribution in a Village π
- 1202. Smallest String With Swaps
- 1254. Number of Closed Islands
- 1258. Synonymous Sentences π
- 1267. Count Servers that Communicate
- 1319. Number of Operations to Make Network Connected
- 1361. Validate Binary Tree Nodes
- 1391. Check if There is a Valid Path in a Grid
- 1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- 1559. Detect Cycles in 2D Grid
- 1569. Number of Ways to Reorder Array to Get Same BST
- 1579. Remove Max Number of Edges to Keep Graph Fully Traversable
- 1584. Min Cost to Connect All Points
- 1627. Graph Connectivity With Threshold
- 1631. Path With Minimum Effort
- 1632. Rank Transform of a Matrix
- 1697. Checking Existence of Edge Length Limited Paths
- 1722. Minimize Hamming Distance After Swap Operations
- 1724. Checking Existence of Edge Length Limited Paths II π
- 1905. Count Sub Islands
- 1970. Last Day Where You Can Still Cross
- 1971. Find if Path Exists in Graph
- 1998. GCD Sort of an Array
- 2003. Smallest Missing Genetic Value in Each Subtree
- 2076. Process Restricted Friend Requests
- 2092. Find All People With Secret
- 2157. Groups of Strings
- 2204. Distance to a Cycle in Undirected Graph π
- 2307. Check for Contradictions in Equations π
- 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
- 2334. Subarray With Elements Greater Than Varying Threshold
- 2368. Reachable Nodes With Restrictions
- 2371. Minimize Maximum Value in a Grid π
- 2382. Maximum Segment Sum After Removals
- 2421. Number of Good Paths
- 2424. Longest Uploaded Prefix
- 2492. Minimum Score of a Path Between Two Cities
- 2493. Divide Nodes Into the Maximum Number of Groups
- 2503. Maximum Number of Points From Grid Queries
- 2573. Find the String with
- 2617. Minimum Number of Visited Cells in a Grid
- 2658. Maximum Number of Fish in a Grid
- 2685. Count the Number of Complete Components
- 2709. Greatest Common Divisor Traversal
- 2782. Number of Unique Categories π
- 2812. Find the Safest Path in a Grid
- 2852. Sum of Remoteness of All Cells π
- 2948. Make Lexicographically Smallest Array by Swapping Elements
- 3108. Minimum Cost Walk in Weighted Graph
- 3235. Check if the Rectangle Corner Is Reachable
- 3378. Count Connected Components in LCM Graph