My solutions for tasks from LeetCode:
- 1. Two Sum
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 4. Median of Two Sorted Arrays
- 5. Longest Palindromic Substring
- 6. ZigZag Conversion
- 7. Reverse Integer
- 8. String to Integer (atoi)
- 9. Palindrome Number
- 10. Regular Expression Matching
- 11. Container With Most Water
- 12. Integer to Roman
- 13. Roman to Integer
- 14. Longest Common Prefix
- 15. 3Sum
- 16. 3Sum Closest
- 17. Letter Combinations of a Phone Number
- 18. 4Sum
- 19. Remove Nth Node From End of List
- 20. Valid Parentheses
- 21. Merge Two Sorted Lists
- 22. Generate Parentheses
- 23. Merge k Sorted Lists
- 24. Swap Nodes in Pairs
- 25. Reverse Nodes in k-Group
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 28. Implement strStr()
- 29. Divide Two Integers
- 31. Next Permutation
- 32. Longest Valid Parentheses
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 36. Valid Sudoku
- 38. Count and Say
- 39. Combination Sum
- 40. Combination Sum II
- 41. First Missing Positive
- 42. Trapping Rain Water
- 43. Multiply Strings
- 45. Jump Game II
- 46. Permutations
- 47. Permutations II
- 48. Rotate Image
- 49. Group Anagrams
- 50. Pow(x, n)
- 51. N-Queens
- 52. N-Queens II
- 53. Maximum Subarray
- 54. Spiral Matrix
- 55. Jump Game
- 56. Merge Intervals
- 57. Insert Interval
- 58. Length of Last Word
- 59. Spiral Matrix II
- 60. Permutation Sequence
- 61. Rotate List
- 62. Unique Paths
- 63. Unique Paths II
- 64. Minimum Path Sum
- 65. Valid Number
- 66. Plus One
- 67. Add Binary
- 68. Text Justification
- 69. Sqrt(x)
- 70. Climbing Stairs
- 71. Simplify Path
- 72. Edit Distance
- 73. Set Matrix Zeroes
- 74. Search a 2D Matrix
- 75. Sort Colors
- 76. Minimum Window Substring
- 77. Combinations
- 78. Subsets
- 79. Word Search
- 80. Remove Duplicates from Sorted Array II
- 81. Search in Rotated Sorted Array II
- 82. Remove Duplicates from Sorted List II
- 83. Remove Duplicates from Sorted List
- 84. Largest Rectangle in Histogram
- 85. Maximal Rectangle
- 86. Partition List
- 87. Scramble String
- 88. Merge Sorted Array
- 89. Gray Code
- 90. Subsets II
- 91. Decode Ways
- 92. Reverse Linked List II
- 93. Restore IP Addresses
- 94. Binary Tree Inorder Traversal
- 95. Unique Binary Search Trees II
- 96. Unique Binary Search Trees
- 97. Interleaving String
- 98. Validate Binary Search Tree
- 99. Recover Binary Search Tree
- 100. Same Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 107. Binary Tree Level Order Traversal II
- 108. Convert Sorted Array to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 113. Path Sum II
- 114. Flatten Binary Tree to Linked List
- 115. Distinct Subsequences
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 120. Triangle
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 124. Binary Tree Maximum Path Sum
- 125. Valid Palindrome
- 126. Word Ladder II
- 127. Word Ladder
- 128. Longest Consecutive Sequence
- 129. Sum Root to Leaf Numbers
- 130. Surrounded Regions
- 131. Palindrome Partitioning
- 133. Clone Graph
- 134. Gas Station
- 135. Candy
- 136. Single Number
- 137. Single Number II
- 138. Copy List with Random Pointer
- 139. Word Break
- 140. Word Break II
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 143. Reorder List
- 144. Binary Tree Preorder Traversal
- 145. Binary Tree Postorder Traversal
- 146. LRU Cache
- 147. Insertion Sort List
- 148. Sort List
- 149. Max Points on a Line
- 150. Evaluate Reverse Polish Notation
- 151. Reverse Words in a String
- 152. Maximum Product Subarray
- 153. Find Minimum in Rotated Sorted Array
- 155. Min Stack
- 160. Intersection of Two Linked Lists
- 162. Find Peak Element
- 164. Maximum Gap
- 165. Compare Version Numbers
- 166. Fraction to Recurring Decimal
- 167. Two Sum II - Input array is sorted
- 168. Excel Sheet Column Title
- 169. Majority Element
- 171. Excel Sheet Column Number
- 172. Factorial Trailing Zeroes
- 173. Binary Search Tree Iterator
- 179. Largest Number
- 187. Repeated DNA Sequences
- 189. Rotate Array
- 190. Reverse Bits
- 191. Number of 1 Bits
- 198. House Robber
- 199. Binary Tree Right Side View
- 200. Number of Islands
- 201. Bitwise AND of Numbers Range
- 202. Happy Number
- 203. Remove Linked List Elements
- 204. Count Primes
- 205. Isomorphic Strings
- 206. Reverse Linked List
- 207. Course Schedule
- 208. Implement Trie (Prefix Tree)
- 209. Minimum Size Subarray Sum
- 210. Course Schedule II
- 211. Design Add and Search Words Data Structure
- 213. House Robber II
- 214. Shortest Palindrome
- 215. Kth Largest Element in an Array
- 216. Combination Sum III
- 217. Contains Duplicate
- 219. Contains Duplicate II
- 221. Maximal Square
- 222. Count Complete Tree Nodes
- 223. Rectangle Area
- 224. Basic Calculator
- 225. Implement Stack using Queues
- 226. Invert Binary Tree
- 227. Basic Calculator II
- 228. Summary Ranges
- 229. Majority Element II
- 230. Kth Smallest Element in a BST
- 231. Power of Two
- 232. Implement Queue using Stacks
- 233. Number of Digit One
- 234. Palindrome Linked List
- 235. Lowest Common Ancestor of a Binary Search Tree
- 236. Lowest Common Ancestor of a Binary Tree
- 237. Delete Node in a Linked List
- 238. Product of Array Except Self
- 239. Sliding Window Maximum
- 240. Search a 2D Matrix II
- 241. Different Ways to Add Parentheses
- 242. Valid Anagram
- 257. Binary Tree Paths
- 258. Add Digits
- 260. Single Number III
- 263. Ugly Number
- 264. Ugly Number II
- 268. Missing Number
- 273. Integer to English Words
- 274. H-Index
- 275. H-Index II
- 278. First Bad Version
- 279. Perfect Squares
- 282. Expression Add Operators
- 283. Move Zeroes
- 284. Peeking Iterator
- 287. Find the Duplicate Number
- 289. Game of Life
- 290. Word Pattern
- 292. Nim Game
- 295. Find Median from Data Stream
- 297. Serialize and Deserialize Binary Tree
- 299. Bulls and Cows
- 300. Longest Increasing Subsequence
- 303. Range Sum Query - Immutable
- 304. Range Sum Query 2D - Immutable
- 306. Additive Number
- 307. Range Sum Query - Mutable
- 309. Best Time to Buy and Sell Stock with Cooldown
- 310. Minimum Height Trees
- 313. Super Ugly Number
- 316. Remove Duplicate Letters
- 318. Maximum Product of Word Lengths
- 319. Bulb Switcher
- 322. Coin Change
- 326. Power of Three
- 328. Odd Even Linked List
- 329. Longest Increasing Path in a Matrix
- 330. Patching Array
- 331. Verify Preorder Serialization of a Binary Tree
- 332. Reconstruct Itinerary
- 334. Increasing Triplet Subsequence
- 337. House Robber III
- 338. Counting Bits
- 341. Flatten Nested List Iterator
- 342. Power of Four
- 343. Integer Break
- 344. Reverse String
- 345. Reverse Vowels of a String
- 347. Top K Frequent Elements
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 352. Data Stream as Disjoint Intervals
- 354. Russian Doll Envelopes
- 355. Design Twitter
- 357. Count Numbers with Unique Digits
- 363. Max Sum of Rectangle No Larger Than K
- 367. Valid Perfect Square
- 368. Largest Divisible Subset
- 371. Sum of Two Integers
- 372. Super Pow
- 373. Find K Pairs with Smallest Sums
- 374. Guess Number Higher or Lower
- 376. Wiggle Subsequence
- 377. Combination Sum IV
- 378. Kth Smallest Element in a Sorted Matrix
- 380. Insert Delete GetRandom O(1)
- 381. Insert Delete GetRandom O(1) - Duplicates allowed
- 382. Linked List Random Node
- 383. Ransom Note
- 384. Shuffle an Array
- 385. Mini Parser
- 386. Lexicographical Numbers
- 387. First Unique Character in a String
- 388. Longest Absolute File Path
- 389. Find the Difference
- 390. Elimination Game
- 392. Is Subsequence
- 393. UTF-8 Validation
- 394. Decode String
- 396. Rotate Function
- 397. Integer Replacement
- 398. Random Pick Index
- 399. Evaluate Division
- 400. Nth Digit
- 401. Binary Watch
- 402. Remove K Digits
- 403. Frog Jump
- 404. Sum of Left Leaves
- 405. Convert a Number to Hexadecimal
- 406. Queue Reconstruction by Height
- 409. Longest Palindrome
- 410. Split Array Largest Sum
- 412. Fizz Buzz
- 413. Arithmetic Slices
- 414. Third Maximum Number
- 415. Add Strings
- 416. Partition Equal Subset Sum
- 417. Pacific Atlantic Water Flow
- 419. Battleships in a Board
- 421. Maximum XOR of Two Numbers in an Array
- 423. Reconstruct Original Digits from English
- 424. Longest Repeating Character Replacement
- 427. Construct Quad Tree
- 429. N-ary Tree Level Order Traversal
- 430. Flatten a Multilevel Doubly Linked List
- 432. All O`one Data Structure
- 433. Minimum Genetic Mutation
- 434. Number of Segments in a String
- 435. Non-overlapping Intervals
- 436. Find Right Interval
- 437. Path Sum III
- 438. Find All Anagrams in a String
- 441. Arranging Coins
- 442. Find All Duplicates in an Array
- 443. String Compression
- 445. Add Two Numbers II
- 446. Arithmetic Slices II - Subsequence
- 447. Number of Boomerangs
- 448. Find All Numbers Disappeared in an Array
- 449. Serialize and Deserialize BST
- 450. Delete Node in a BST
- 451. Sort Characters By Frequency
- 452. Minimum Number of Arrows to Burst Balloons
- 454. 4Sum II
- 455. Assign Cookies
- 456. 132 Pattern
- 457. Circular Array Loop
- 459. Repeated Substring Pattern
- 460. LFU Cache
- 461. Hamming Distance
- 462. Minimum Moves to Equal Array Elements II
- 463. Island Perimeter
- 467. Unique Substrings in Wraparound String
- 468. Validate IP Address
- 470. Implement Rand10() Using Rand7()
- 473. Matchsticks to Square
- 474. Ones and Zeroes
- 475. Heaters
- 476. Number Complement
- 477. Total Hamming Distance
- 478. Generate Random Point in a Circle
- 480. Sliding Window Median
- 482. License Key Formatting
- 485. Max Consecutive Ones
- 486. Predict the Winner
- 491. Increasing Subsequences
- 492. Construct the Rectangle
- 494. Target Sum
- 495. Teemo Attacking
- 496. Next Greater Element I
- 498. Diagonal Traverse
- 500. Keyboard Row
- 501. Find Mode in Binary Search Tree
- 502. IPO
- 503. Next Greater Element II
- 504. Base 7
- 506. Relative Ranks
- 507. Perfect Number
- 508. Most Frequent Subtree Sum
- 509. Fibonacci Number
- 513. Find Bottom Left Tree Value
- 514. Freedom Trail
- 515. Find Largest Value in Each Tree Row
- 516. Longest Palindromic Subsequence
- 518. Coin Change 2
- 519. Random Flip Matrix
- 520. Detect Capital
- 521. Longest Uncommon Subsequence I
- 522. Longest Uncommon Subsequence II
- 523. Continuous Subarray Sum
- 524. Longest Word in Dictionary through Deleting
- 525. Contiguous Array
- 526. Beautiful Arrangement
- 528. Random Pick with Weight
- 529. Minesweeper
- 530. Minimum Absolute Difference in BST
- 532. K-diff Pairs in an Array
- 535. Encode and Decode TinyURL
- 537. Complex Number Multiplication
- 538. Convert BST to Greater Tree
- 539. Minimum Time Difference
- 540. Single Element in a Sorted Array
- 541. Reverse String II
- 542. 01 Matrix
- 543. Diameter of Binary Tree
- 547. Friend Circles
- 551. Student Attendance Record I
- 552. Student Attendance Record II
- 553. Optimal Division
- 554. Brick Wall
- 556. Next Greater Element III
- 557. Reverse Words in a String III
- 560. Subarray Sum Equals K
- 561. Array Partition I
- 563. Binary Tree Tilt
- 564. Find the Closest Palindrome
- 565. Array Nesting
- 566. Reshape the Matrix
- 567. Permutation in String
- 572. Subtree of Another Tree
- 576. Out of Boundary Paths
- 581. Shortest Unsorted Continuous Subarray
- 583. Delete Operation for Two Strings
- 590. N-ary Tree Postorder Traversal
- 591. Tag Validator
- 592. Fraction Addition and Subtraction
- 593. Valid Square
- 594. Longest Harmonious Subsequence
- 598. Range Addition II
- 599. Minimum Index Sum of Two Lists
- 605. Can Place Flowers
- 606. Construct String from Binary Tree
- 609. Find Duplicate File in System
- 611. Valid Triangle Number
- 621. Task Scheduler
- 622. Design Circular Queue
- 623. Add One Row to Tree
- 624. Maximum Distance in Arrays
- 628. Maximum Product of Three Numbers
- 629. K Inverse Pairs Array
- 630. Course Schedule III
- 632. Smallest Range Covering Elements from K Lists
- 633. Sum of Square Numbers
- 636. Exclusive Time of Functions
- 637. Average of Levels in Binary Tree
- 639. Decode Ways II
- 640. Solve the Equation
- 641. Design Circular Deque
- 643. Maximum Average Subarray I
- 645. Set Mismatch
- 646. Maximum Length of Pair Chain
- 647. Palindromic Substrings
- 648. Replace Words
- 649. Dota2 Senate
- 650. 2 Keys Keyboard
- 652. Find Duplicate Subtrees
- 653. Two Sum IV - Input is a BST
- 654. Maximum Binary Tree
- 655. Print Binary Tree
- 657. Robot Return to Origin
- 658. Find K Closest Elements
- 659. Split Array into Consecutive Subsequences
- 661. Image Smoother
- 662. Maximum Width of Binary Tree
- 664. Strange Printer
- 665. Non-decreasing Array
- 667. Beautiful Arrangement II
- 669. Trim a Binary Search Tree
- 670. Maximum Swap
- 672. Bulb Switcher II
- 673. Number of Longest Increasing Subsequence
- 674. Longest Continuous Increasing Subsequence
- 676. Implement Magic Dictionary
- 677. Map Sum Pairs
- 678. Valid Parenthesis String
- 679. 24 Game
- 680. Valid Palindrome II
- 682. Baseball Game
- 684. Redundant Connection
- 686. Repeated String Match
- 687. Longest Univalue Path
- 688. Knight Probability in Chessboard
- 690. Employee Importance
- 692. Top K Frequent Words
- 695. Max Area of Island
- 696. Count Binary Substrings
- 698. Partition to K Equal Sum Subsets
- 700. Search in a Binary Search Tree
- 701. Insert into a Binary Search Tree
- 703. Kth Largest Element in a Stream
- 704. Binary Search
- 705. Design HashSet
- 706. Design HashMap
- 707. Design Linked List
- 709. To Lower Case
- 710. Random Pick with Blacklist
- 712. Minimum ASCII Delete Sum for Two Strings
- 713. Subarray Product Less Than K
- 715. Range Module
- 717. 1-bit and 2-bit Characters
- 718. Maximum Length of Repeated Subarray
- 719. Find K-th Smallest Pair Distance
- 720. Longest Word in Dictionary
- 721. Accounts Merge
- 722. Remove Comments
- 725. Split Linked List in Parts
- 726. Number of Atoms
- 728. Self Dividing Numbers
- 729. My Calendar I
- 731. My Calendar II
- 732. My Calendar III
- 735. Asteroid Collision
- 736. Parse Lisp Expression
- 738. Monotone Increasing Digits
- 739. Daily Temperatures
- 740. Delete and Earn
- 743. Network Delay Time
- 744. Find Smallest Letter Greater Than Target
- 745. Prefix and Suffix Search
- 746. Min Cost Climbing Stairs
- 747. Largest Number At Least Twice of Others
- 748. Shortest Completing Word
- 752. Open the Lock
- 754. Reach a Number
- 762. Prime Number of Set Bits in Binary Representation
- 763. Partition Labels
- 764. Largest Plus Sign
- 766. Toeplitz Matrix
- 767. Reorganize String
- 768. Max Chunks To Make Sorted II
- 769. Max Chunks To Make Sorted
- 771. Jewels and Stones
- 773. Sliding Puzzle
- 775. Global and Local Inversions
- 779. K-th Symbol in Grammar
- 783. Minimum Distance Between BST Nodes
- 784. Letter Case Permutation
- 785. Is Graph Bipartite?
- 786. K-th Smallest Prime Fraction
- 787. Cheapest Flights Within K Stops
- 788. Rotated Digits
- 789. Escape The Ghosts
- 790. Domino and Tromino Tiling
- 791. Custom Sort String
- 792. Number of Matching Subsequences
- 793. Preimage Size of Factorial Zeroes Function
- 794. Valid Tic-Tac-Toe State
- 795. Number of Subarrays with Bounded Maximum
- 796. Rotate String
- 797. All Paths From Source to Target
- 799. Champagne Tower
- 802. Find Eventual Safe States
- 804. Unique Morse Code Words
- 806. Number of Lines To Write String
- 807. Max Increase to Keep City Skyline
- 808. Soup Servings
- 809. Expressive Words
- 811. Subdomain Visit Count
- 812. Largest Triangle Area
- 813. Largest Sum of Averages
- 814. Binary Tree Pruning
- 815. Bus Routes
- 816. Ambiguous Coordinates
- 817. Linked List Components
- 819. Most Common Word
- 820. Short Encoding of Words
- 821. Shortest Distance to a Character
- 822. Card Flipping Game
- 823. Binary Trees With Factors
- 824. Goat Latin
- 825. Friends Of Appropriate Ages
- 826. Most Profit Assigning Work
- 827. Making A Large Island
- 829. Consecutive Numbers Sum
- 830. Positions of Large Groups
- 831. Masking Personal Information
- 832. Flipping an Image
- 833. Find And Replace in String
- 834. Sum of Distances in Tree
- 835. Image Overlap
- 837. New 21 Game
- 838. Push Dominoes
- 839. Similar String Groups
- 840. Magic Squares In Grid
- 841. Keys and Rooms
- 842. Split Array into Fibonacci Sequence
- 843. Guess the Word
- 844. Backspace String Compare
- 845. Longest Mountain in Array
- 846. Hand of Straights
- 847. Shortest Path Visiting All Nodes
- 848. Shifting Letters
- 849. Maximize Distance to Closest Person
- 852. Peak Index in a Mountain Array
- 853. Car Fleet
- 856. Score of Parentheses
- 859. Buddy Strings
- 860. Lemonade Change
- 861. Score After Flipping Matrix
- 863. All Nodes Distance K in Binary Tree
- 865. Smallest Subtree with all the Deepest Nodes
- 866. Prime Palindrome
- 867. Transpose Matrix
- 868. Binary Gap
- 869. Reordered Power of 2
- 870. Advantage Shuffle
- 872. Leaf-Similar Trees
- 873. Length of Longest Fibonacci Subsequence
- 874. Walking Robot Simulation
- 875. Koko Eating Bananas
- 876. Middle of the Linked List
- 877. Stone Game
- 878. Nth Magical Number
- 879. Profitable Schemes
- 880. Decoded String at Index
- 881. Boats to Save People
- 883. Projection Area of 3D Shapes
- 884. Uncommon Words from Two Sentences
- 885. Spiral Matrix III
- 886. Possible Bipartition
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 890. Find and Replace Pattern
- 892. Surface Area of 3D Shapes
- 893. Groups of Special-Equivalent Strings
- 894. All Possible Full Binary Trees
- 895. Maximum Frequency Stack
- 896. Monotonic Array
- 897. Increasing Order Search Tree
- 898. Bitwise ORs of Subarrays
- 900. RLE Iterator
- 901. Online Stock Span
- 902. Numbers At Most N Given Digit Set
- 904. Fruit Into Baskets
- 905. Sort Array By Parity
- 907. Sum of Subarray Minimums
- 909. Snakes and Ladders
- 911. Online Election
- 912. Sort an Array
- 915. Partition Array into Disjoint Intervals
- 916. Word Subsets
- 917. Reverse Only Letters
- 918. Maximum Sum Circular Subarray
- 919. Complete Binary Tree Inserter
- 921. Minimum Add to Make Parentheses Valid
- 922. Sort Array By Parity II
- 923. 3Sum With Multiplicity
- 924. Minimize Malware Spread
- 925. Long Pressed Name
- 926. Flip String to Monotone Increasing
- 927. Three Equal Parts
- 928. Minimize Malware Spread II
- 929. Unique Email Addresses
- 930. Binary Subarrays With Sum
- 931. Minimum Falling Path Sum
- 934. Shortest Bridge
- 935. Knight Dialer
- 937. Reorder Data in Log Files
- 938. Range Sum of BST
- 939. Minimum Area Rectangle
- 941. Valid Mountain Array
- 942. DI String Match
- 944. Delete Columns to Make Sorted
- 945. Minimum Increment to Make Array Unique
- 946. Validate Stack Sequences
- 947. Most Stones Removed with Same Row or Column
- 948. Bag of Tokens
- 949. Largest Time for Given Digits
- 950. Reveal Cards In Increasing Order
- 951. Flip Equivalent Binary Trees
- 953. Verifying an Alien Dictionary
- 954. Array of Doubled Pairs
- 955. Delete Columns to Make Sorted II
- 957. Prison Cells After N Days
- 958. Check Completeness of a Binary Tree
- 959. Regions Cut By Slashes
- 962. Maximum Width Ramp
- 963. Minimum Area Rectangle II
- 965. Univalued Binary Tree
- 966. Vowel Spellchecker
- 967. Numbers With Same Consecutive Differences
- 968. Binary Tree Cameras
- 969. Pancake Sorting
- 970. Powerful Integers
- 971. Flip Binary Tree To Match Preorder Traversal
- 972. Equal Rational Numbers
- 973. K Closest Points to Origin
- 974. Subarray Sums Divisible by K
- 976. Largest Perimeter Triangle
- 977. Squares of a Sorted Array
- 978. Longest Turbulent Subarray
- 979. Distribute Coins in Binary Tree
- 980. Unique Paths III
- 981. Time Based Key-Value Store
- 982. Triples with Bitwise AND Equal To Zero
- 983. Minimum Cost For Tickets
- 984. String Without AAA or BBB
- 985. Sum of Even Numbers After Queries
- 986. Interval List Intersections
- 987. Vertical Order Traversal of a Binary Tree
- 988. Smallest String Starting From Leaf
- 989. Add to Array-Form of Integer
- 990. Satisfiability of Equality Equations
- 991. Broken Calculator
- 992. Subarrays with K Different Integers
- 993. Cousins in Binary Tree
- 994. Rotting Oranges
- 995. Minimum Number of K Consecutive Bit Flips
- 997. Find the Town Judge
- 998. Maximum Binary Tree II
- 999. Available Captures for Rook
- 1001. Grid Illumination
- 1002. Find Common Characters
- 1003. Check If Word Is Valid After Substitutions
- 1004. Max Consecutive Ones III
- 1006. Clumsy Factorial
- 1007. Minimum Domino Rotations For Equal Row
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1009. Complement of Base 10 Integer
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 1011. Capacity To Ship Packages Within D Days
- 1014. Best Sightseeing Pair
- 1015. Smallest Integer Divisible by K
- 1016. Binary String With Substrings Representing 1 To N
- 1017. Convert to Base -2
- 1018. Binary Prefix Divisible By 5
- 1019. Next Greater Node In Linked List
- 1020. Number of Enclaves
- 1021. Remove Outermost Parentheses
- 1022. Sum of Root To Leaf Binary Numbers
- 1023. Camelcase Matching
- 1024. Video Stitching
- 1026. Maximum Difference Between Node and Ancestor
- 1027. Longest Arithmetic Subsequence
- 1028. Recover a Tree From Preorder Traversal
- 1029. Two City Scheduling
- 1030. Matrix Cells in Distance Order
- 1031. Maximum Sum of Two Non-Overlapping Subarrays
- 1032. Stream of Characters
- 1033. Moving Stones Until Consecutive
- 1034. Coloring A Border
- 1035. Uncrossed Lines
- 1038. Binary Search Tree to Greater Sum Tree
- 1041. Robot Bounded In Circle
- 1042. Flower Planting With No Adjacent
- 1043. Partition Array for Maximum Sum
- 1046. Last Stone Weight
- 1047. Remove All Adjacent Duplicates In String
- 1048. Longest String Chain
- 1051. Height Checker
- 1052. Grumpy Bookstore Owner
- 1053. Previous Permutation With One Swap
- 1054. Distant Barcodes
- 1061. Lexicographically Smallest Equivalent String
- 1071. Greatest Common Divisor of Strings
- 1073. Adding Two Negabinary Numbers
- 1074. Number of Submatrices That Sum to Target
- 1078. Occurrences After Bigram
- 1079. Letter Tile Possibilities
- 1080. Insufficient Nodes in Root to Leaf Paths
- 1081. Smallest Subsequence of Distinct Characters
- 1089. Duplicate Zeros
- 1090. Largest Values From Labels
- 1091. Shortest Path in Binary Matrix
- 1093. Statistics from a Large Sample
- 1094. Car Pooling
- 1095. Find in Mountain Array
- 1104. Path In Zigzag Labelled Binary Tree
- 1105. Filling Bookcase Shelves
- 1106. Parsing A Boolean Expression
- 1108. Defanging an IP Address
- 1109. Corporate Flight Bookings
- 1110. Delete Nodes And Return Forest
- 1122. Relative Sort Array
- 1123. Lowest Common Ancestor of Deepest Leaves
- 1124. Longest Well-Performing Interval
- 1125. Smallest Sufficient Team
- 1128. Number of Equivalent Domino Pairs
- 1129. Shortest Path with Alternating Colors
- 1137. N-th Tribonacci Number
- 1138. Alphabet Board Path
- 1140. Stone Game II
- 1143. Longest Common Subsequence
- 1144. Decrease Elements To Make Array Zigzag
- 1145. Binary Tree Coloring Game
- 1146. Snapshot Array
- 1154. Day of the Year
- 1155. Number of Dice Rolls With Target Sum
- 1156. Swap For Longest Repeated Character Substring
- 1160. Find Words That Can Be Formed by Characters
- 1161. Maximum Level Sum of a Binary Tree
- 1162. As Far from Land as Possible
- 1169. Invalid Transactions
- 1170. Compare Strings by Frequency of the Smallest Character
- 1171. Remove Zero Sum Consecutive Nodes from Linked List
- 1172. Dinner Plate Stacks
- 1175. Prime Arrangements
- 1177. Can Make Palindrome from Substring
- 1185. Day of the Week
- 1189. Maximum Number of Balloons
- 1190. Reverse Substrings Between Each Pair of Parentheses
- 1192. Critical Connections in a Network
- 1200. Minimum Absolute Difference
- 1201. Ugly Number III
- 1202. Smallest String With Swaps
- 1207. Unique Number of Occurrences
- 1208. Get Equal Substrings Within Budget
- 1209. Remove All Adjacent Duplicates in String II
- 1217. Minimum Cost to Move Chips to The Same Position
- 1218. Longest Arithmetic Subsequence of Given Difference
- 1219. Path with Maximum Gold
- 1220. Count Vowels Permutation
- 1222. Queens That Can Attack the King
- 1232. Check If It Is a Straight Line
- 1233. Remove Sub-Folders from the Filesystem
- 1235. Maximum Profit in Job Scheduling
- 1237. Find Positive Integer Solution for a Given Equation
- 1238. Circular Permutation in Binary Representation
- 1239. Maximum Length of a Concatenated String with Unique Characters
- 1247. Minimum Swaps to Make Strings Equal
- 1248. Count Number of Nice Subarrays
- 1249. Minimum Remove to Make Valid Parentheses
- 1253. Reconstruct a 2-Row Binary Matrix
- 1254. Number of Closed Islands
- 1255. Maximum Score Words Formed by Letters
- 1260. Shift 2D Grid
- 1261. Find Elements in a Contaminated Binary Tree
- 1266. Minimum Time Visiting All Points
- 1267. Count Servers that Communicate
- 1268. Search Suggestions System
- 1269. Number of Ways to Stay in the Same Place After Some Steps
- 1275. Find Winner on a Tic Tac Toe Game
- 1276. Number of Burgers with No Waste of Ingredients
- 1277. Count Square Submatrices with All Ones
- 1281. Subtract the Product and Sum of Digits of an Integer
- 1282. Group the People Given the Group Size They Belong To
- 1283. Find the Smallest Divisor Given a Threshold
- 1286. Iterator for Combination
- 1287. Element Appearing More Than 25% In Sorted Array
- 1288. Remove Covered Intervals
- 1289. Minimum Falling Path Sum II
- 1290. Convert Binary Number in a Linked List to Integer
- 1291. Sequential Digits
- 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
- 1293. Shortest Path in a Grid with Obstacles Elimination
- 1296. Divide Array in Sets of K Consecutive Numbers
- 1297. Maximum Number of Occurrences of a Substring
- 1300. Sum of Mutated Array Closest to Target
- 1302. Deepest Leaves Sum
- 1304. Find N Unique Integers Sum up to Zero
- 1305. All Elements in Two Binary Search Trees
- 1306. Jump Game III
- 1307. Verbal Arithmetic Puzzle
- 1309. Decrypt String from Alphabet to Integer Mapping
- 1310. XOR Queries of a Subarray
- 1311. Get Watched Videos by Your Friends
- 1312. Minimum Insertion Steps to Make a String Palindrome
- 1314. Matrix Block Sum
- 1315. Sum of Nodes with Even-Valued Grandparent
- 1318. Minimum Flips to Make a OR b Equal to c
- 1319. Number of Operations to Make Network Connected
- 1320. Minimum Distance to Type a Word Using Two Fingers
- 1323. Maximum 69 Number
- 1324. Print Words Vertically
- 1325. Delete Leaves With a Given Value
- 1328. Break a Palindrome
- 1329. Sort the Matrix Diagonally
- 1331. Rank Transform of an Array
- 1332. Remove Palindromic Subsequences
- 1333. Filter Restaurants by Vegan-Friendly, Price and Distance
- 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
- 1335. Minimum Difficulty of a Job Schedule
- 1337. The K Weakest Rows in a Matrix
- 1338. Reduce Array Size to The Half
- 1339. Maximum Product of Splitted Binary Tree
- 1342. Number of Steps to Reduce a Number to Zero
- 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
- 1344. Angle Between Hands of a Clock
- 1345. Jump Game IV
- 1347. Minimum Number of Steps to Make Two Strings Anagram
- 1348. Tweet Counts Per Frequency
- 1351. Count Negative Numbers in a Sorted Matrix
- 1352. Product of the Last K Numbers
- 1356. Sort Integers by The Number of 1 Bits
- 1357. Apply Discount Every n Orders
- 1358. Number of Substrings Containing All Three Characters
- 1359. Count All Valid Pickup and Delivery Options
- 1360. Number of Days Between Two Dates
- 1361. Validate Binary Tree Nodes
- 1362. Closest Divisors
- 1363. Largest Multiple of Three
- 1366. Rank Teams by Votes
- 1367. Linked List in Binary Tree
- 1371. Find the Longest Substring Containing Vowels in Even Counts
- 1372. Longest ZigZag Path in a Binary Tree
- 1374. Generate a String With Characters That Have Odd Counts
- 1375. Bulb Switcher III
- 1376. Time Needed to Inform All Employees
- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1380. Lucky Numbers in a Matrix
- 1381. Design a Stack With Increment Operation
- 1382. Balance a Binary Search Tree
- 1383. Maximum Performance of a Team
- 1386. Cinema Seat Allocation
- 1387. Sort Integers by The Power Value
- 1390. Four Divisors
- 1391. Check if There is a Valid Path in a Grid
- 1392. Longest Happy Prefix
- 1395. Count Number of Teams
- 1396. Design Underground System
- 1400. Construct K Palindrome Strings
- 1401. Circle and Rectangle Overlapping
- 1402. Reducing Dishes
- 1404. Number of Steps to Reduce a Number in Binary Representation to One
- 1405. Longest Happy String
- 1410. HTML Entity Parser
- 1413. Minimum Value to Get Positive Step by Step Sum
- 1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- 1415. The k-th Lexicographical String of All Happy Strings of Length n
- 1416. Restore The Array
- 1417. Reformat The String
- 1418. Display Table of Food Orders in a Restaurant
- 1419. Minimum Number of Frogs Croaking
- 1420. Build Array Where You Can Find The Maximum Exactly K Comparisons
- 1422. Maximum Score After Splitting a String
- 1423. Maximum Points You Can Obtain from Cards
- 1424. Diagonal Traverse II
- 1431. Kids With the Greatest Number of Candies
- 1432. Max Difference You Can Get From Changing an Integer
- 1433. Check If a String Can Break Another String
- 1436. Destination City
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- 1441. Build an Array With Stack Operations
- 1442. Count Triplets That Can Form Two Arrays of Equal XOR
- 1443. Minimum Time to Collect All Apples in a Tree
- 1446. Consecutive Characters
- 1447. Simplified Fractions
- 1448. Count Good Nodes in Binary Tree
- 1451. Rearrange Words in a Sentence
- 1452. People Whose List of Favorite Companies Is Not a Subset of Another List
- 1456. Maximum Number of Vowels in a Substring of Given Length
- 1457. Pseudo-Palindromic Paths in a Binary Tree
- 1458. Max Dot Product of Two Subsequences
- 1460. Make Two Arrays Equal by Reversing Subarrays
- 1461. Check If a String Contains All Binary Codes of Size K
- 1463. Cherry Pickup II
- 1464. Maximum Product of Two Elements in an Array
- 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- 1466. Reorder Routes to Make All Paths Lead to the City Zero
- 1470. Shuffle the Array
- 1471. The k Strongest Values in an Array
- 1472. Design Browser History
- 1476. Subrectangle Queries
- 1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1480. Running Sum of 1d Array
- 1481. Least Number of Unique Integers after K Removals
- 1482. Minimum Number of Days to Make m Bouquets
- 1487. Making File Names Unique
- 1488. Avoid Flood in The City
- 1491. Average Salary Excluding the Minimum and Maximum Salary
- 1492. The kth Factor of n
- 1493. Longest Subarray of 1's After Deleting One Element
- 1496. Path Crossing
- 1497. Check If Array Pairs Are Divisible by k
- 1498. Number of Subsequences That Satisfy the Given Sum Condition
- 1502. Can Make Arithmetic Progression From Sequence
- 1503. Last Moment Before All Ants Fall Out of a Plank
- 1504. Count Submatrices With All Ones
- 1507. Reformat Date
- 1508. Range Sum of Sorted Subarray Sums
- 1509. Minimum Difference Between Largest and Smallest Value in Three Moves
- 1510. Stone Game IV
- 1512. Number of Good Pairs
- 1513. Number of Substrings With Only 1s
- 1514. Path with Maximum Probability
- 1518. Water Bottles
- 1519. Number of Nodes in the Sub-Tree With the Same Label
- 1523. Count Odd Numbers in an Interval Range
- 1524. Number of Sub-arrays With Odd Sum
- 1525. Number of Good Ways to Split a String
- 1528. Shuffle String
- 1529. Bulb Switcher IV
- 1530. Number of Good Leaf Nodes Pairs
- 1531. String Compression II
- 1534. Count Good Triplets
- 1535. Find the Winner of an Array Game
- 1536. Minimum Swaps to Arrange a Binary Grid
- 1539. Kth Missing Positive Number
- 1540. Can Convert String in K Moves
- 1541. Minimum Insertions to Balance a Parentheses String
- 1544. Make The String Great
- 1545. Find Kth Bit in Nth Binary String
- 1550. Three Consecutive Odds
- 1552. Magnetic Force Between Two Balls
- 1557. Minimum Number of Vertices to Reach All Nodes
- 1559. Detect Cycles in 2D Grid
- 1561. Maximum Number of Coins You Can Get
- 1562. Find Latest Group of Size M
- 1568. Minimum Number of Days to Disconnect Island
- 1572. Matrix Diagonal Sum
- 1573. Number of Ways to Split a String
- 1574. Shortest Subarray to be Removed to Make Array Sorted
- 1575. Count All Possible Routes
- 1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1578. Minimum Time to Make Rope Colorful
- 1579. Remove Max Number of Edges to Keep Graph Fully Traversable
- 1582. Special Positions in a Binary Matrix
- 1584. Min Cost to Connect All Points
- 1590. Make Sum Divisible by P
- 1593. Split a String Into the Max Number of Unique Substrings
- 1594. Maximum Non Negative Product in a Matrix
- 1598. Crawler Log Folder
- 1600. Throne Inheritance
- 1601. Maximum Number of Achievable Transfer Requests
- 1603. Design Parking System
- 1604. Alert Using Same Key-Card Three or More Times in a One Hour Period
- 1605. Find Valid Matrix Given Row and Column Sums
- 1608. Special Array With X Elements Greater Than or Equal X
- 1609. Even Odd Tree
- 1611. Minimum One Bit Operations to Make Integers Zero
- 1614. Maximum Nesting Depth of the Parentheses
- 1615. Maximal Network Rank
- 1616. Split Two Strings to Make Palindrome
- 1624. Largest Substring Between Two Equal Characters
- 1626. Best Team With No Conflicts
- 1629. Slowest Key
- 1630. Arithmetic Subarrays
- 1631. Path With Minimum Effort
- 1636. Sort Array by Increasing Frequency
- 1637. Widest Vertical Area Between Two Points Containing No Points
- 1639. Number of Ways to Form a Target String Given a Dictionary
- 1641. Count Sorted Vowel Strings
- 1642. Furthest Building You Can Reach
- 1643. Kth Smallest Instructions
- 1646. Get Maximum in Generated Array
- 1647. Minimum Deletions to Make Character Frequencies Unique
- 1648. Sell Diminishing-Valued Colored Balls
- 1652. Defuse the Bomb
- 1653. Minimum Deletions to Make String Balanced
- 1657. Determine if Two Strings Are Close
- 1658. Minimum Operations to Reduce X to Zero
- 1662. Check If Two String Arrays are Equivalent
- 1663. Smallest String With A Given Numeric Value
- 1664. Ways to Make a Fair Array
- 1669. Merge In Between Linked Lists
- 1670. Design Front Middle Back Queue
- 1672. Richest Customer Wealth
- 1675. Minimize Deviation in Array
- 1678. Goal Parser Interpretation
- 1679. Max Number of K-Sum Pairs
- 1680. Concatenation of Consecutive Binary Numbers
- 1684. Count the Number of Consistent Strings
- 1685. Sum of Absolute Differences in a Sorted Array
- 1688. Count of Matches in Tournament
- 1689. Partitioning Into Minimum Number Of Deci-Binary Numbers
- 1694. Reformat Phone Number
- 1695. Maximum Erasure Value
- 1696. Jump Game VI
- 1697. Checking Existence of Edge Length Limited Paths
- 1700. Number of Students Unable to Eat Lunch
- 1701. Average Waiting Time
- 1704. Determine if String Halves Are Alike
- 1706. Where Will the Ball Fall
- 1710. Maximum Units on a Truck
- 1711. Count Good Meals
- 1716. Calculate Money in Leetcode Bank
- 1717. Maximum Score From Removing Substrings
- 1720. Decode XORed Array
- 1721. Swapping Nodes in a Linked List
- 1726. Tuple with Same Product
- 1727. Largest Submatrix With Rearrangements
- 1732. Find the Highest Altitude
- 1738. Find Kth Largest XOR Coordinate Value
- 1743. Restore the Array From Adjacent Pairs
- 1750. Minimum Length of String After Deleting Similar Ends
- 1751. Maximum Number of Events That Can Be Attended II
- 1758. Minimum Changes To Make Alternating Binary String
- 1759. Count Number of Homogenous Substrings
- 1764. Form Array by Concatenating Subarrays of Another Array
- 1765. Map of Highest Peak
- 1768. Merge Strings Alternately
- 1769. Minimum Number of Operations to Move All Balls to Each Box
- 1770. Maximum Score from Performing Multiplication Operations
- 1773. Count Items Matching a Rule
- 1779. Find Nearest Point That Has the Same X or Y Coordinate
- 1780. Check if Number is a Sum of Powers of Three
- 1781. Sum of Beauty of All Substrings
- 1784. Check if Binary String Has at Most One Segment of Ones
- 1785. Minimum Elements to Add to Form a Given Sum
- 1790. Check if One String Swap Can Make Strings Equal
- 1791. Find Center of Star Graph
- 1796. Second Largest Digit in a String
- 1797. Design Authentication Manager
- 1798. Maximum Number of Consecutive Values You Can Make
- 1799. Maximize Score After N Operations
- 1800. Maximum Ascending Subarray Sum
- 1801. Number of Orders in the Backlog
- 1806. Minimum Number of Operations to Reinitialize a Permutation
- 1807. Evaluate the Bracket Pairs of a String
- 1813. Sentence Similarity III
- 1814. Count Nice Pairs in an Array
- 1817. Finding the Users Active Minutes
- 1822. Sign of the Product of an Array
- 1823. Find the Winner of the Circular Game
- 1825. Finding MK Average
- 1828. Queries on Number of Points Inside a Circle
- 1829. Maximum XOR for Each Query
- 1832. Check if the Sentence Is Pangram
- 1833. Maximum Ice Cream Bars
- 1834. Single-Threaded CPU
- 1838. Frequency of the Most Frequent Element
- 1839. Longest Substring Of All Vowels in Order
- 1845. Seat Reservation Manager
- 1846. Maximum Element After Decreasing and Rearranging
- 1857. Largest Color Value in a Directed Graph
- 1860. Incremental Memory Leak
- 1861. Rotating the Box
- 1863. Sum of All Subset XOR Totals
- 1865. Finding Pairs With a Certain Sum
- 1870. Minimum Speed to Arrive on Time
- 1871. Jump Game VII
- 1876. Substrings of Size Three with Distinct Characters
- 1877. Minimize Maximum Pair Sum in Array
- 1878. Get Biggest Three Rhombus Sums in a Grid
- 1881. Maximum Value after Insertion
- 1887. Reduction Operations to Make the Array Elements Equal
- 1894. Find the Student that Will Replace the Chalk
- 1895. Largest Magic Square
- 1897. Redistribute Characters to Make All Strings Equal
- 1903. Largest Odd Number in String
- 1904. The Number of Full Rounds You Have Played\
- 1905. Count Sub Islands
- 1910. Remove All Occurrences of a Substring
- 1913. Maximum Product Difference Between Two Pairs
- 1914. Cyclically Rotating a Grid
- 1915. Number of Wonderful Substrings
- 1921. Eliminate Maximum Number of Monsters
- 1922. Count Good Numbers
- 1925. Count Square Sum Triples
- 1926. Nearest Exit from Entrance in Maze
- 1930. Unique Length-3 Palindromic Subsequences
- 1935. Maximum Number of Words You Can Type
- 1937. Maximum Number of Points with Cost
- 1942. The Number of the Smallest Unoccupied Chair
- 1945. Sum of Digits of String After Convert
- 1946. Largest Number After Mutating Substring
- 1952. Three Divisors
- 1954. Minimum Garden Perimeter to Collect Enough Apples
- 1957. Delete Characters to Make Fancy String
- 1958. Check if Move is Legal
- 1962. Remove Stones to Minimize the Total
- 1963. Minimum Number of Swaps to Make the String Balanced
- 1964. Find the Longest Valid Obstacle Course at Each Position
- 1968. Array With Elements Not Equal to Average of Neighbors
- 1971. Find if Path Exists in Graph
- 1975. Maximum Matrix Sum
- 1980. Find Unique Binary String
- 1985. Find the Kth Largest Integer in the Array
- 1992. Find All Groups of Farmland
- 1993. Operations on Tree
- 1996. The Number of Weak Characters in the Game
- 2000. Reverse Prefix of Word
- 2001. Number of Pairs of Interchangeable Rectangles
- 2007. Find Original Array From Doubled Array
- 2009. Minimum Number of Operations to Make Array Continuous
- 2011. Final Value of Variable After Performing Operations
- 2013. Detect Squares
- 2017. Grid Game
- 2018. Check if Word Can Be Placed In Crossword
- 2022. Convert 1D Array Into 2D Array
- 2023. Number of Pairs of Strings With Concatenation Equal to Target
- 2024. Maximize the Confusion of an Exam
- 2028. Find Missing Observations
- 2033. Minimum Operations to Make a Uni-Value Grid
- 2034. Stock Price Fluctuation
- 2037. Minimum Number of Moves to Seat Everyone
- 2038. Remove Colored Pieces if Both Neighbors are the Same Color
- 2043. Simple Bank System
- 2044. Count Number of Maximum Bitwise-OR Subsets
- 2045. Second Minimum Time to Reach Destination
- 2048. Next Greater Numerically Balanced Number
- 2049. Count Nodes With the Highest Score
- 2050. Parallel Courses III
- 2053. Kth Distinct String in an Array
- 2056. Number of Valid Move Combinations On Chessboard
- 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
- 2063. Vowels of All Substrings
- 2064. Minimized Maximum of Products Distributed to Any Store
- 2069. Walking Robot Simulation II
- 2070. Most Beautiful Item for Each Query
- 2073. Time Needed to Buy Tickets
- 2074. Reverse Nodes in Even Length Groups
- 2075. Decode the Slanted Ciphertext
- 2079. Watering Plants
- 2080. Range Frequency Queries
- 2081. Sum of k-Mirror Numbers
- 2087. Minimum Cost Homecoming of a Robot in a Grid
- 2090. K Radius Subarray Averages
- 2092. Find All People With Secret
- 2095. Delete the Middle Node of a Linked List
- 2096. Step-By-Step Directions From a Binary Tree Node to Another
- 2101. Detonate the Maximum Bombs
- 2102. Sequentially Ordinal Rank Tracker
- 2105. Watering Plants II
- 2108. Find First Palindromic String in the Array
- 2109. Adding Spaces to a String
- 2110. Number of Smooth Descent Periods of a Stock
- 2117. Abbreviating the Product of a Range
- 2119. A Number After a Double Reversal
- 2120. Execution of All Suffix Instructions Staying in a Grid
- 2121. Intervals Between Identical Elements
- 2125. Number of Laser Beams in a Bank
- 2126. Destroying Asteroids
- 2130. Maximum Twin Sum of a Linked List
- 2131. Longest Palindrome by Concatenating Two Letter Words
- 2134. Minimum Swaps to Group All 1's Together II
- 2135. Count Words Obtained After Adding a Letter
- 2136. Earliest Possible Day of Full Bloom
- 2139. Minimum Moves to Reach Target Score
- 2140. Solving Questions With Brainpower
- 2141. Maximum Running Time of N Computers
- 2147. Number of Ways to Divide a Long Corridor
- 2149. Rearrange Array Elements by Sign
- 2150. Find All Lonely Numbers in the Array
- 2160. Minimum Sum of Four Digit Number After Splitting Digits
- 2161. Partition Array According to Given Pivot
- 2162. Minimum Cost to Set Cooking Time
- 2165. Smallest Value of the Rearranged Number
- 2166. Design Bitset
- 2169. Count Operations to Obtain Zero
- 2171. Removing Minimum Number of Magic Beans
- 2177. Find Three Consecutive Integers That Sum to a Given Number
- 2178. Maximum Split of Positive Even Integers
- 2180. Count Integers With Even Digit Sum
- 2181. Merge Nodes in Between Zeros
- 2182. Construct String With Repeat Limit
- 2186. Minimum Number of Steps to Make Two Strings Anagram II
- 2187. Minimum Time to Complete Trips
- 2191. Sort the Jumbled Numbers
- 2192. All Ancestors of a Node in a Directed Acyclic Graph
- 2195. Append K Integers With Minimal Sum
- 2196. Create Binary Tree From Descriptions
- 2197. Replace Non-Coprime Numbers in Array
- 2201. Count Artifacts That Can Be Extracted
- 2211. Count Collisions on a Road
- 2212. Maximum Points in an Archery Competition
- 2215. Find the Difference of Two Arrays
- 2217. Find Palindrome With Fixed Length
- 2218. Maximum Value of K Coins From Piles
- 2220. Minimum Bit Flips to Convert Number
- 2221. Find Triangular Sum of an Array
- 2222. Number of Ways to Select Buildings
- 2225. Find Players With Zero or One Losses
- 2227. Encrypt and Decrypt Strings
- 2232. Minimize Result by Adding Parentheses to Expression
- 2233. Maximum Product After K Increments
- 2236. Root Equals Sum of Children
- 2240. Number of Ways to Buy Pens and Pencils
- 2241. Design an ATM Machine
- 2244. Minimum Rounds to Complete All Tasks
- 2246. Longest Path With Different Adjacent Characters
- 2249. Count Lattice Points Inside a Circle
- 2251. Number of Flowers in Full Bloom
- 2256. Minimum Average Difference
- 2257. Count Unguarded Cells in the Grid
- 2260. Minimum Consecutive Cards to Pick Up
- 2261. K Divisible Elements Subarrays
- 2264. Largest 3-Same-Digit Number in String
- 2265. Count Nodes Equal to Average of Subtree
- 2266. Count Number of Texts
- 2267. Check if There Is a Valid Parentheses String Path
- 2269. Find the K-Beauty of a Number
- 2272. Substring With Largest Variance
- 2273. Find Resultant Array After Removing Anagrams
- 2274. Maximum Consecutive Floors Without Special Floors
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 2276. Count Integers in Intervals
- 2278. Percentage of Letter in String
- 2279. Maximum Bags With Full Capacity of Rocks
- 2280. Minimum Lines to Represent a Line Chart
- 2284. Sender With Largest Word Count
- 2285. Maximum Total Importance of Roads
- 2294. Partition Array Such That Maximum Difference Is K
- 2295. Replace Elements in an Array
- 2296. Design a Text Editor
- 2300. Successful Pairs of Spells and Potions
- 2304. Minimum Path Cost in a Grid
- 2305. Fair Distribution of Cookies
- 2306. Naming a Company
- 2309. Greatest English Letter in Upper and Lower Case
- 2310. Sum of Numbers With Units Digit K
- 2316. Count Unreachable Pairs of Nodes in an Undirected Graph
- 2326. Spiral Matrix IV
- 2331. Evaluate Boolean Binary Tree
- 2336. Smallest Number in Infinite Set
- 2342. Max Sum of a Pair With Equal Sum of Digits
- 2348. Number of Zero-Filled Subarrays
- 2349. Design a Number Container System
- 2352. Equal Row and Column Pairs
- 2353. Design a Food Rating System
- 2359. Find Closest Node to Given Two Nodes
- 2360. Longest Cycle in a Graph
- 2364. Count Number of Bad Pairs
- 2365. Task Scheduler II
- 2366. Minimum Replacements to Sort the Array
- 2368. Reachable Nodes With Restrictions
- 2369. Check if There is a Valid Partition For The Array
- 2370. Longest Ideal Subsequence
- 2373. Largest Local Values in a Matrix
- 2374. Node With Highest Edge Score
- 2375. Construct Smallest Number From DI String
- 2376. Count Special Integers
- 2381. Shifting Letters II
- 2384. Largest Palindromic Number
- 2385. Amount of Time for Binary Tree to Be Infected
- 2389. Longest Subsequence With Limited Sum
- 2390. Removing Stars From a String
- 2391. Minimum Amount of Time to Collect Garbage
- 2392. Build a Matrix With Conditions
- 2396. Strictly Palindromic Number
- 2397. Maximum Rows Covered by Columns
- 2400. Number of Ways to Reach a Position After Exactly k Steps
- 2401. Longest Nice Subarray
- 2402. Meeting Rooms III
- 2405. Optimal Partition of String
- 2406. Divide Intervals Into Minimum Number of Groups
- 2409. Count Days Spent Together
- 2410. Maximum Matching of Players With Trainers
- 2411. Smallest Subarrays With Maximum Bitwise OR
- 2413. Smallest Even Multiple
- 2414. Length of the Longest Alphabetical Continuous Substring
- 2415. Reverse Odd Levels of Binary Tree
- 2416. Sum of Prefix Scores of Strings
- 2418. Sort the People
- 2419. Longest Subarray With Maximum Bitwise AND
- 2424. Longest Uploaded Prefix
- 2425. Bitwise XOR of All Pairings
- 2428. Maximum Sum of an Hourglass
- 2433. Find The Original Array of Prefix Xor
- 2434. Using a Robot to Print the Lexicographically Smallest String
- 2435. Paths in Matrix Whose Sum Is Divisible by K
- 2438. Range Product Queries of Powers
- 2439. Minimize Maximum of Array
- 2441. Largest Positive Integer That Exists With Its Negative
- 2442. Count Number of Distinct Integers After Reverse Operations
- 2443. Sum of Number and Its Reverse
- 2444. Count Subarrays With Fixed Bounds
- 2447. Number of Subarrays With GCD Equal to K
- 2453. Destroy Sequential Targets
- 2456. Most Popular Video Creator
- 2457. Minimum Addition to Make Integer Beautiful
- 2458. Height of Binary Tree After Subtree Removal Queries
- 2461. Maximum Sum of Distinct Subarrays With Length K
- 2462. Total Cost to Hire K Workers
- 2466. Count Ways To Build Good Strings
- 2467. Most Profitable Path in a Tree
- 2468. Split Message Based on Limit
- 2471. Minimum Number of Operations to Sort a Binary Tree by Level
- 2476. Closest Nodes Queries in a Binary Search Tree
- 2477. Minimum Fuel Cost to Report to the Capital
- 2482. Difference Between Ones and Zeros in Row and Column
- 2483. Minimum Penalty for a Shop
- 2485. Find the Pivot Integer
- 2486. Append Characters to String to Make Subsequence
- 2487. Remove Nodes From Linked List
- 2490. Circular Sentence
- 2491. Divide Players Into Teams of Equal Skill
- 2492. Minimum Score of a Path Between Two Cities
- 2496. Maximum Value of a String in an Array
- 2497. Maximum Star Sum of a Graph
- 2498. Frog Jump II
- 2501. Longest Square Streak in an Array
- 2502. Design Memory Allocator
- 2507. Smallest Value After Replacing With Sum of Prime Factors
- 2508. Add Edges to Make Degrees of All Nodes Even
- 2509. Cycle Length Queries in a Tree
- 2512. Reward Top K Students
- 2514. Count Anagrams
- 2521. Distinct Prime Factors of Product of Array
- 2522. Partition String Into Substrings With Values at Most K
- 2523. Closest Prime Numbers in Range
- 2526. Find Consecutive Integers from a Data Stream
- 2530. Maximal Score After Applying K Operations
- 2531. Make Number of Distinct Characters Equal
- 2535. Difference Between Element Sum and Digit Sum of an Array
- 2536. Increment Submatrices by One
- 2540. Minimum Common Value
- 2542. Maximum Subsequence Score
- 2545. Sort the Students by Their Kth Score
- 2546. Apply Bitwise Operations to Make Strings Equal
- 2549. Count Distinct Numbers on Board
- 2550. Count Collisions of Monkeys on a Polygon
- 2551. Put Marbles in Bags
- 2554. Maximum Number of Integers to Choose From a Range I
- 2559. Count Vowel Strings in Ranges
- 2563. Count the Number of Fair Pairs
- 2564. Substring XOR Queries
- 2566. Maximum Difference by Remapping a Digit
- 2567. Minimum Score by Changing Two Elements
- 2568. Minimum Impossible OR
- 2571. Minimum Operations to Reduce an Integer to 0
- 2575. Find the Divisibility Array of a String
- 2576. Find the Maximum Number of Marked Indices
- 2579. Count Total Number of Colored Cells
- 2580. Count Ways to Group Overlapping Ranges
- 2582. Pass the Pillow
- 2583. Kth Largest Sum in a Binary Tree
- 2587. Rearrange Array to Maximize Prefix Score
- 2593. Find Score of an Array After Marking All Elements
- 2596. Check Knight Tour Configuration
- 2597. The Number of Beautiful Subsets
- 2598. Smallest Missing Non-negative Integer After Operations
- 2601. Prime Subtraction Operation
- 2602. Minimum Operations to Make All Array Elements Equal
- 2606. Find the Substring With Maximum Cost
- 2608. Shortest Cycle in a Graph
- 2610. Convert an Array Into a 2D Array With Conditions
- 2611. Mice and Cheese
- 2615. Sum of Distances
- 2616. Minimize the Maximum Difference of Pairs
- 2640. Find the Score of All Prefixes of an Array
- 2641. Cousins in Binary Tree II
- 2642. Design Graph With Shortest Path Calculator
- 2645. Minimum Additions to Make Valid String
- 2653. Sliding Subarray Beauty
- 2657. Find the Prefix Common Array of Two Arrays
- 2658. Maximum Number of Fish in a Grid
- 2661. First Completely Painted Row or Column
- 2671. Frequency Tracker
- 2672. Number of Adjacent Elements With the Same Color
- 2673. Make Costs of Paths Equal in a Binary Tree
- 2678. Number of Senior Citizens
- 2679. Sum in a Matrix
- 2683. Neighboring Bitwise XOR
- 2684. Maximum Number of Moves in a Grid
- 2685. Count the Number of Complete Components
- 2696. Minimum String Length After Removing Substrings
- 2698. Find the Punishment Number of an Integer
- 2699. Modify Graph Edge Weights
- 2706. Buy Two Chocolates
- 2707. Extra Characters in a String
- 2708. Maximum Strength of a Group
- 2709. Greatest Common Divisor Traversal
- 2711. Difference of Number of Distinct Values on Diagonals
- 2718. Sum of Matrix After Queries
- 2730. Find the Longest Semi-Repetitive Substring
- 2734. Lexicographically Smallest String After Substring Operation
- 2740. Find the Value of the Partition
- 2745. Construct the Longest New String
- 2746. Decremental String Concatenation
- 2747. Count Zero Request Servers
- 2750. Ways to Split Array Into Good Subarrays
- 2751. Robot Collisions
- 2761. Prime Pairs With Target Sum
- 2762. Continuous Subarrays
- 2766. Relocate Marbles
- 2767. Partition String Into Minimum Beautiful Substrings
- 2768. Number of Black Blocks
- 2770. Maximum Number of Jumps to Reach the Last Index
- 2780. Minimum Index of a Valid Split
- 2781. Length of the Longest Valid Substring
- 2785. Sort Vowels in a String
- 2800. Shortest String That Contains Three Strings
- 2807. Insert Greatest Common Divisors in Linked List
- 2811. Check if it is Possible to Split Array
- 2812. Find the Safest Path in a Grid
- 2816. Double a Number Represented as a Linked List
- 2817. Minimum Absolute Difference Between Elements With Constraint
- 2825. Make String a Subsequence Using Cyclic Increments
- 2828. Check if a String Is an Acronym of Words
- 2829. Determine the Minimum Sum of a k-avoiding Array
- 2831. Find the Longest Equal Subarray
- 2834. Find the Minimum Possible Sum of a Beautiful Array
- 2840. Check if Strings Can be Made Equal With Operations II
- 2841. Maximum Sum of Almost Unique Subarray
- 2844. Minimum Operations to Make a Special Number
- 2849. Determine if a Cell Is Reachable at a Given Time
- 2857. Count Pairs of Points With Distance k
- 2860. Happy Students
- 2864. Maximum Odd Binary Number
- 2865. Beautiful Towers I
- 2866. Beautiful Towers II
- 2870. Minimum Number of Operations to Make Array Empty
- 2875. Minimum Size Subarray in Infinite Array
- 2876. Count Visited Nodes in a Directed Graph
- 2895. Minimum Processing Time
- 2901. Longest Unequal Adjacent Groups Subsequence II
- 2904. Shortest and Lexicographically Smallest Beautiful String
- 2905. Find Indices With Index and Value Difference II
- 2906. Construct Product Matrix
- 2909. Minimum Sum of Mountain Triplets II
- 2914. Minimum Number of Changes to Make Binary String Beautiful
- 2915. Length of the Longest Subsequence That Sums to Target
- 2918. Minimum Equal Sum of Two Arrays After Replacing Zeros
- 2924. Find Champion II
- 2929. Distribute Candies Among Children II
- 2933. High-Access Employees
- 2937. Make Three Strings Equal
- 2938. Separate Black and White Balls
- 2947. Count Beautiful Substrings I
- 2958. Length of Longest Subarray With at Most K Frequency
- 2961. Double Modular Exponentiation
- 2962. Count Subarrays Where Max Element Appears at Least K Times
- 2966. Divide Array Into Arrays With Max Difference
- 2967. Minimum Cost to Make Array Equalindromic
- 2971. Find Polygon With the Largest Perimeter
- 2973. Find Number of Coins to Place in Tree Nodes
- 2975. Maximum Square Area by Removing Fences From a Field
- 2976. Minimum Cost to Convert String I
- 2981. Find Longest Special Substring That Occurs Thrice I
- 2982. Find Longest Special Substring That Occurs Thrice II
- 2997. Minimum Number of Operations to Make Array XOR Equal to K
- 3001. Minimum Moves to Capture The Queen
- 3002. Maximum Size of a Set After Removals
- 3005. Count Elements With Maximum Frequency
- 3006. Find Beautiful Indices in the Given Array I
- 3011. Find if Array Can Be Sorted
- 3015. Count the Number of Houses at a Certain Distance I
- 3016. Minimum Number of Pushes to Type Word II
- 3020. Find the Maximum Number of Elements in Subset
- 3025. Find the Number of Ways to Place People I
- 3026. Maximum Good Subarray Sum
- 3030. Find the Grid of Region Average
- 3035. Maximum Palindromes After Operations
- 3039. Apply Operations to Make String Empty
- 3043. Find the Length of the Longest Common Prefix
- 3044. Most Frequent Prime
- 3047. Find the Largest Area of Square Inside Two Rectangles
- 3066. Minimum Operations to Exceed Threshold Value II
- 3070. Count Submatrices with Top-Left Element and Sum Less Than k
- 3071. Minimum Operations to Write the Letter Y on a Grid
- 3075. Maximize Happiness of Selected Children
- 3076. Shortest Uncommon Substring in an Array
- 3081. Replace Question Marks in String to Minimize Its Value
- 3084. Count Substrings Starting and Ending with Given Character
- 3092. Most Frequent IDs
- 3097. Shortest Subarray With OR at Least K II
- 3100. Water Bottles II
- 3101. Count Alternating Subarrays
- 3106. Lexicographically Smallest String After Operations With Constraint
- 3107. Minimum Operations to Make Median of Array Equal to K
- 3110. Score of a String
- 3111. Minimum Rectangles to Cover Points
- 3115. Maximum Prime Difference
- 3121. Count the Number of Special Characters II
- 3132. Find the Integer Added to Array II
- 3133. Minimum Array End
- 3138. Minimum Length of Anagram Concatenation
- 3143. Maximum Points Inside the Square
- 3152. Special Array II
- 3153. Sum of Digit Differences of All Pairs
- 3159. Find Occurrences of an Element in an Array
- 3160. Find the Number of Distinct Colors Among the Balls
- 3163. String Compression III
- 3164. Find the Number of Good Pairs II
- 3169. Count Days Without Meetings
- 3170. Lexicographically Minimum String After Removing Stars
- 3175. Find The First Player to win K Games in a Row
- 3179. Find the N-th Value After K Seconds
- 3185. Count Pairs That Form a Complete Day II
- 3191. Minimum Operations to Make Binary Array Elements Equal to One I
- 3192. Minimum Operations to Make Binary Array Elements Equal to One II
- 3195. Find the Minimum Area to Cover All Ones I
- 3201. Find the Maximum Length of Valid Subsequence I
- 3207. Maximum Points After Enemy Battles
- 3208. Alternating Groups II
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3212. Count Submatrices With Equal Frequency of X and Y
- 3217. Delete Nodes From Linked List Present in Array
- 3223. Minimum Length of String After Operations
- 3227. Vowels Game in a String
- 3228. Maximum Number of Operations to Move Ones to the End
- 3233. Find the Count of Numbers Which Are Not Special
- 3239. Minimum Number of Flips to Make Binary Grid Palindromic I
- 3240. Minimum Number of Flips to Make Binary Grid Palindromic II
- 3243. Shortest Distance After Road Addition Queries I
- 3249. Count the Number of Good Nodes
- 3254. Find the Power of K-Size Subarrays I
- 3255. Find the Power of K-Size Subarrays II
- 3259. Maximum Energy Boost From Two Drinks
- 3265. Count Almost Equal Pairs I
- 3271. Hash Divided String