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