Leetcode Solutions in Java Python C++ Php Go Typescript Swift C# Scala Ruby Rust SQL
发布时间:2026-08-31 | 浏览:1
Pinned Summary - My Time Machine
Posted on September 1, 2006
3992 - Rearrange String to Avoid Character Pair
Posted on August 29, 2026
3991 - Sort Array Using Prefix Reversals
Posted on August 29, 2026
3990 - Create Grid With Exactly K Paths II
Posted on August 28, 2026
3989 - Maximum Consistent Columns in a Grid
Posted on August 26, 2026
3988 - Create Grid With Exactly K Paths I
Posted on August 25, 2026
3987 - Minimum Total Cost to Process All Elements
Posted on August 24, 2026
3986 - Number of Elapsed Seconds Between Two Times
Posted on August 23, 2026
3985 - Palindromic Subarray Sum
Posted on August 22, 2026
3984 - Divisible Game
Posted on August 21, 2026
3983 - Subsequence After One Replacement
Posted on August 20, 2026
3982 - Sum of Integers with Maximum Digit Range
Posted on August 19, 2026
3981 - Count Distinct Ways to Form Target from Two Strings
Posted on August 18, 2026
3980 - Minimum Operations to Transform Binary String
Posted on August 17, 2026
3979 - Maximum Valid Pair Sum
Posted on August 16, 2026
3978 - Unique Middle Element
Posted on August 15, 2026
3977 - Minimum Time to Reach Target With Limited Power
Posted on August 14, 2026
3976 - Maximum Subarray Sum After Multiplier
Posted on August 13, 2026
3975 - Filter Occupied Intervals
Posted on August 12, 2026
3974 - Maximum Total Sum of K Selected Elements
Posted on August 11, 2026
3973 - Distinct Gate Paths to LCA
Posted on August 10, 2026
3972 - Valid Subarrays With Matching Sum Digits II
Posted on August 9, 2026
3971 - Maximum Total Value
Posted on August 8, 2026
3970 - Shortest Path With At Most K Consecutive Identical Characters
Posted on August 7, 2026
3969 - Valid Subarrays With Matching Sum Digits I
Posted on August 5, 2026
3968 - Maximum Manhattan Distance After All Moves
Posted on August 4, 2026
3967 - Finish Time of Tasks II
Posted on August 3, 2026
3966 - Count Good Integers in a Range
Posted on August 2, 2026
3965 - Finish Time of Tasks I
Posted on August 1, 2026
3964 - Minimum Lights to Illuminate a Road
Posted on July 31, 2026
3963 - Create Grid With Exactly One Path
Posted on July 30, 2026
3962 - Maximum Subarray Sum After at Most K Swaps
Posted on July 29, 2026
3961 - Maximize Sum of Device Ratings
Posted on July 28, 2026
3960 - Frequency Balance Subarray
Posted on July 27, 2026
3959 - Check Good Integer
Posted on July 26, 2026
3958 - Minimum Cost to Split into Ones II
Posted on July 25, 2026
3957 - Maximum Sum of M Non-Overlapping Subarrays II
Posted on July 24, 2026
3956 - Maximum Sum of M Non-Overlapping Subarrays I
Posted on July 23, 2026
3955 - Valid Binary Strings With Cost Limit
Posted on July 22, 2026
3954 - Sum of Compatible Numbers in Range I
Posted on July 21, 2026
3953 - Maximum Score with Co-Prime Element
Posted on July 20, 2026
3952 - Maximum Total Value of Covered Indices
Posted on July 19, 2026
3951 - Minimum Energy to Maintain Brightness
Posted on July 18, 2026
3950 - Exactly One Consecutive Set Bits Pair
Posted on July 17, 2026
3949 - Subtree Inversion Sum II
Posted on July 16, 2026
3948 - Lexicographically Maximum MEX Array
Posted on July 15, 2026
3947 - Maximum Number of Items From Sale II
Posted on July 14, 2026
3946 - Maximum Number of Items From Sale I
Posted on July 13, 2026
3945 - Digit Frequency Score
Posted on July 12, 2026
3944 - Minimum Operations to Make Array Modulo Alternating II
Posted on July 11, 2026
3943 - Number of Pairs After Increment
Posted on July 10, 2026
3942 - Minimum Operations to Sort a Permutation
Posted on July 9, 2026
3941 - Password Strength
Posted on July 8, 2026
3940 - Limit Occurrences in Sorted Array
Posted on July 7, 2026
3939 - Count Non Adjacent Subsets in a Rooted Tree
Posted on July 6, 2026
3938 - Maximum Path Intersection Sum in a Grid
Posted on July 5, 2026
3937 - Minimum Operations to Make Array Modulo Alternating I
Posted on July 4, 2026
3936 - Minimum Swaps to Move Zeros to End
Posted on July 3, 2026
3935 - Power Update After K-th Largest Insertion I
Posted on July 2, 2026
3934 - Smallest Unique Subarray
Posted on July 1, 2026
3933 - Largest Local Values in a Matrix II
Posted on June 30, 2026
3932 - Count K-th Roots in a Range
Posted on June 29, 2026
3931 - Check Adjacent Digit Differences
Posted on June 28, 2026
3930 - Power Update After K-th Largest Insertion II
Posted on June 27, 2026
3929 - Minimum Partition Score II
Posted on June 26, 2026
3928 - Minimum Cost to Buy Apples II
Posted on June 25, 2026
3927 - Minimize Array Sum Using Divisible Replacements
Posted on June 24, 2026
3926 - Count Valid Word Occurrences
Posted on June 23, 2026
3925 - Concatenate Array With Reverse
Posted on June 22, 2026
3924 - Minimum Threshold Path With Limited Heavy Edges
Posted on June 21, 2026
3923 - Minimum Generations to Target Point
Posted on June 20, 2026
3922 - Minimum Flips to Make Binary String Coherent
Posted on June 19, 2026
3921 - Score Validator
Posted on June 18, 2026
3920 - Maximize Fixed Points After Deletions
Posted on June 17, 2026
3919 - Minimum Cost to Move Between Indices
Posted on June 16, 2026
3918 - Sum of Primes Between Number and Its Reverse
Posted on June 15, 2026
3917 - Count Indices With Opposite Parity
Posted on June 14, 2026
3916 - Number of ZigZag Arrays III
Posted on June 13, 2026
3915 - Maximum Sum of Alternating Subsequence With Distance at Least K
Posted on June 12, 2026
3914 - Minimum Operations to Make Array Non Decreasing
Posted on June 11, 2026
3913 - Sort Vowels by Frequency
Posted on June 10, 2026
3912 - Valid Elements in an Array
Posted on June 9, 2026
3911 - K-th Smallest Remaining Even Integer in Subarray Queries
Posted on June 8, 2026
3910 - Count Connected Subgraphs with Even Node Sum
Posted on June 7, 2026
3909 - Compare Sums of Bitonic Parts
Posted on June 6, 2026
3908 - Valid Digit Number
Posted on June 5, 2026
3907 - Count Smaller Elements With Opposite Parity
Posted on June 4, 2026
3906 - Count Good Integers on a Grid Path
Posted on June 3, 2026
3905 - Multi Source Flood Fill
Posted on June 2, 2026
3904 - Smallest Stable Index II
Posted on June 1, 2026
3903 - Smallest Stable Index I
Posted on May 31, 2026
3902 - Zigzag Level Sum of Binary Tree
Posted on May 30, 2026
3901 - Good Subsequence Queries
Posted on May 29, 2026
3900 - Longest Balanced Substring After One Swap
Posted on May 28, 2026
3899 - Angles of a Triangle
Posted on May 27, 2026
3898 - Find the Degree of Each Vertex
Posted on May 26, 2026
3897 - Maximum Value of Concatenated Binary Segments
Posted on May 25, 2026
3896 - Minimum Operations to Transform Array into Alternating Prime
Posted on May 24, 2026
3895 - Count Digit Appearances
Posted on May 23, 2026
3894 - Traffic Signal Color
Posted on May 22, 2026
3893 - Maximum Team Size with Overlapping Intervals
Posted on May 21, 2026
3892 - Minimum Operations to Achieve At Least K Peaks
Posted on May 20, 2026
3891 - Minimum Increase to Maximize Special Indices
Posted on May 19, 2026
3890 - Integers With Multiple Sum of Two Cubes
Posted on May 18, 2026
3889 - Mirror Frequency Distance
Posted on May 17, 2026
3888 - Minimum Operations to Make All Grid Elements Equal
Posted on May 16, 2026
3887 - Incremental Even-Weighted Cycle Queries
Posted on May 15, 2026
3886 - Sum of Sortable Integers
Posted on May 14, 2026
3885 - Design Event Manager
Posted on May 13, 2026
3884 - First Matching Character From Both Ends
Posted on May 12, 2026
3883 - Count Non Decreasing Arrays With Given Digit Sums
Posted on May 11, 2026
3882 - Minimum XOR Path in a Grid
Posted on May 10, 2026
3881 - Direction Assignments with Exactly K Visible People
Posted on May 9, 2026
3880 - Minimum Absolute Difference Between Two Values
Posted on May 8, 2026
3879 - Maximum Distinct Path Sum in a Binary Tree
Posted on May 7, 2026
3878 - Count Good Subarrays
Posted on May 6, 2026
3877 - Minimum Removals to Achieve Target XOR
Posted on May 5, 2026
3876 - Construct Uniform Parity Array II
Posted on May 4, 2026
3875 - Construct Uniform Parity Array I
Posted on May 3, 2026
3874 - Valid Subarrays With Exactly One Peak
Posted on May 2, 2026
3873 - Maximum Points Activated with One Addition
Posted on May 1, 2026
3872 - Longest Arithmetic Sequence After Changing At Most One Element
Posted on April 30, 2026
3871 - Count Commas in Range II
Posted on April 29, 2026
3870 - Count Commas in Range
Posted on April 28, 2026
3869 - Count Fancy Numbers in a Range
Posted on April 27, 2026
3868 - Minimum Cost to Equalize Arrays Using Swaps
Posted on April 26, 2026
3867 - Sum of GCD of Formed Pairs
Posted on April 25, 2026
3866 - First Unique Even Element
Posted on April 24, 2026
3865 - Reverse K Subarrays
Posted on April 23, 2026
3864 - Minimum Cost to Partition a Binary String
Posted on April 22, 2026
3863 - Minimum Operations to Sort a String
Posted on April 21, 2026
3862 - Find the Smallest Balanced Index
Posted on April 20, 2026
3861 - Minimum Capacity Box
Posted on April 19, 2026
3860 - Unique Email Groups
Posted on April 18, 2026
3859 - Count Subarrays With K Distinct Integers
Posted on April 17, 2026
3858 - Minimum Bitwise OR From Grid
Posted on April 16, 2026
3857 - Minimum Cost to Split into Ones
Posted on April 15, 2026
3856 - Trim Trailing Vowels
Posted on April 14, 2026
3855 - Sum of K-Digit Numbers in a Range
Posted on April 13, 2026
3854 - Minimum Operations to Make Array Parity Alternating
Posted on April 12, 2026
3853 - Merge Close Characters
Posted on April 11, 2026
3852 - Smallest Pair With Different Frequencies
Posted on April 10, 2026
3851 - Maximum Requests Without Violating the Limit
Posted on April 9, 2026
3850 - Count Sequences to K
Posted on April 8, 2026
3849 - Maximum Bitwise XOR After Rearrangement
Posted on April 7, 2026
3848 - Check Digitorial Permutation
Posted on April 6, 2026
3847 - Find the Score Difference in a Game
Posted on April 5, 2026
3846 - Total Distance to Type a String Using One Finger
Posted on April 4, 2026
3845 - Maximum Subarray XOR with Bounded Range
Posted on April 3, 2026
3844 - Longest Almost-Palindromic Substring
Posted on April 2, 2026
3843 - First Element with Unique Frequency
Posted on April 1, 2026
3842 - Toggle Light Bulbs
Posted on March 31, 2026
3841 - Palindromic Path Queries in a Tree
Posted on March 30, 2026
3840 - House Robber V
Posted on March 29, 2026
3839 - Number of Prefix Connected Groups
Posted on March 28, 2026
3838 - Weighted Word Mapping
Posted on March 27, 2026
3837 - Delayed Count of Equal Elements
Posted on March 26, 2026
3836 - Maximum Score Using Exactly K Pairs
Posted on March 25, 2026
3835 - Count Subarrays With Cost Less Than or Equal to K
Posted on March 24, 2026
3834 - Merge Adjacent Equal Elements
Posted on March 23, 2026
3833 - Count Dominant Indices
Posted on March 22, 2026
3832 - Find Users with Persistent Behavior Patterns
Posted on March 21, 2026
3831 - Median of a Binary Search Tree Level
Posted on March 20, 2026
3830 - Longest Alternating Subarray After Removing At Most One Element
Posted on March 19, 2026
3829 - Design Ride Sharing System
Posted on March 18, 2026
3828 - Final Element After Subarray Deletions
Posted on March 17, 2026
3827 - Count Monobit Integers
Posted on March 16, 2026
3826 - Minimum Partition Score
Posted on March 15, 2026
3825 - Longest Strictly Increasing Subsequence With Non-Zero Bitwise AND
Posted on March 14, 2026
3824 - Minimum K to Reduce Array Within Limit
Posted on March 13, 2026
3823 - Reverse Letters Then Special Characters in a String
Posted on March 12, 2026
3822 - Design Order Management System
Posted on March 11, 2026
3821 - Find Nth Smallest Integer With K One Bits
Posted on March 10, 2026
3820 - Pythagorean Distance Nodes in a Tree
Posted on March 9, 2026
3819 - Rotate Non Negative Elements
Posted on March 8, 2026
3818 - Minimum Prefix Removal to Make Array Strictly Increasing
Posted on March 7, 2026
3817 - Good Indices in a Digit String
Posted on March 6, 2026
3816 - Lexicographically Smallest String After Deleting Duplicate Characters
Posted on March 5, 2026
3815 - Design Auction System
Posted on March 4, 2026
3814 - Maximum Capacity Within Budget
Posted on March 3, 2026
3813 - Vowel-Consonant Score
Posted on March 2, 2026
3812 - Minimum Edge Toggles on a Tree
Posted on March 1, 2026
3811 - Number of Alternating XOR Partitions
Posted on February 28, 2026
3810 - Minimum Operations to Reach Target Array
Posted on February 27, 2026
3809 - Best Reachable Tower
Posted on February 26, 2026
3808 - Find Emotionally Consistent Users
Posted on February 25, 2026
3807 - Minimum Cost to Repair Edges to Traverse a Graph
Posted on February 24, 2026
3806 - Maximum Bitwise AND After Increment Operations
Posted on February 23, 2026
3805 - Count Caesar Cipher Pairs
Posted on February 22, 2026
3804 - Number of Centered Subarrays
Posted on February 21, 2026
3803 - Count Residue Prefixes
Posted on February 20, 2026
3802 - Number of Ways to Paint Sheets
Posted on February 19, 2026
3801 - Minimum Cost to Merge Sorted Lists
Posted on February 18, 2026
3800 - Minimum Cost to Make Two Binary Strings Equal
Posted on February 17, 2026
3799 - Word Squares II
Posted on February 16, 2026
3798 - Largest Even Number
Posted on February 15, 2026
3797 - Count Routes to Climb a Rectangular Grid
Posted on February 14, 2026
3796 - Find Maximum Value in a Constrained Sequence
Posted on February 13, 2026
3795 - Minimum Subarray Length With Distinct Sum At Least K
Posted on February 12, 2026
3794 - Reverse String Prefix
Posted on February 11, 2026
3793 - Find Users with High Token Usage
Posted on February 10, 2026