Leetcode
  • Posts
  • Tag Index
  • Search
Navigation bar avatar

Leetcode Solutions in Java Python C++ Php Go Typescript Swift C# Scala Ruby RenderScript SQL


Leetcode Solutions

3845 - Maximum Subarray XOR with Bounded Range

Posted on April 3, 2026

Welcome to Subscribe On Youtube [Read More]

3844 - Longest Almost-Palindromic Substring

Posted on April 2, 2026

Welcome to Subscribe On Youtube [Read More]

3843 - First Element with Unique Frequency

Posted on April 1, 2026

Welcome to Subscribe On Youtube [Read More]

3842 - Toggle Light Bulbs

Posted on March 31, 2026

Welcome to Subscribe On Youtube [Read More]

3841 - Palindromic Path Queries in a Tree

Posted on March 30, 2026

Welcome to Subscribe On Youtube [Read More]

3840 - House Robber V

Posted on March 29, 2026

Welcome to Subscribe On Youtube [Read More]

3839 - Number of Prefix Connected Groups

Posted on March 28, 2026

Welcome to Subscribe On Youtube [Read More]

3838 - Weighted Word Mapping

Posted on March 27, 2026

Welcome to Subscribe On Youtube [Read More]

3837 - Delayed Count of Equal Elements

Posted on March 26, 2026

Welcome to Subscribe On Youtube [Read More]

3836 - Maximum Score Using Exactly K Pairs

Posted on March 25, 2026

Welcome to Subscribe On Youtube [Read More]

3835 - Count Subarrays With Cost Less Than or Equal to K

Posted on March 24, 2026

Welcome to Subscribe On Youtube [Read More]

3834 - Merge Adjacent Equal Elements

Posted on March 23, 2026

Welcome to Subscribe On Youtube [Read More]

3833 - Count Dominant Indices

Posted on March 22, 2026

Welcome to Subscribe On Youtube [Read More]

3832 - Find Users with Persistent Behavior Patterns

Posted on March 21, 2026

Welcome to Subscribe On Youtube [Read More]

3831 - Median of a Binary Search Tree Level

Posted on March 20, 2026

Welcome to Subscribe On Youtube [Read More]

3830 - Longest Alternating Subarray After Removing At Most One Element

Posted on March 19, 2026

Welcome to Subscribe On Youtube [Read More]

3829 - Design Ride Sharing System

Posted on March 18, 2026

Welcome to Subscribe On Youtube [Read More]

3828 - Final Element After Subarray Deletions

Posted on March 17, 2026

Welcome to Subscribe On Youtube [Read More]

3827 - Count Monobit Integers

Posted on March 16, 2026

Welcome to Subscribe On Youtube [Read More]

3826 - Minimum Partition Score

Posted on March 15, 2026

Welcome to Subscribe On Youtube [Read More]

3825 - Longest Strictly Increasing Subsequence With Non-Zero Bitwise AND

Posted on March 14, 2026

Welcome to Subscribe On Youtube [Read More]

3824 - Minimum K to Reduce Array Within Limit

Posted on March 13, 2026

Welcome to Subscribe On Youtube [Read More]

3823 - Reverse Letters Then Special Characters in a String

Posted on March 12, 2026

Welcome to Subscribe On Youtube [Read More]

3822 - Design Order Management System

Posted on March 11, 2026

Welcome to Subscribe On Youtube [Read More]

3821 - Find Nth Smallest Integer With K One Bits

Posted on March 10, 2026

Welcome to Subscribe On Youtube [Read More]

3820 - Pythagorean Distance Nodes in a Tree

Posted on March 9, 2026

Welcome to Subscribe On Youtube [Read More]

3819 - Rotate Non Negative Elements

Posted on March 8, 2026

Welcome to Subscribe On Youtube [Read More]

3818 - Minimum Prefix Removal to Make Array Strictly Increasing

Posted on March 7, 2026

Welcome to Subscribe On Youtube [Read More]

3817 - Good Indices in a Digit String

Posted on March 6, 2026

Welcome to Subscribe On Youtube [Read More]

3816 - Lexicographically Smallest String After Deleting Duplicate Characters

Posted on March 5, 2026

Welcome to Subscribe On Youtube [Read More]

3815 - Design Auction System

Posted on March 4, 2026

Welcome to Subscribe On Youtube [Read More]

3814 - Maximum Capacity Within Budget

Posted on March 3, 2026

Welcome to Subscribe On Youtube [Read More]

3813 - Vowel-Consonant Score

Posted on March 2, 2026

Welcome to Subscribe On Youtube [Read More]

3812 - Minimum Edge Toggles on a Tree

Posted on March 1, 2026

Welcome to Subscribe On Youtube [Read More]

3811 - Number of Alternating XOR Partitions

Posted on February 28, 2026

Welcome to Subscribe On Youtube [Read More]

3810 - Minimum Operations to Reach Target Array

Posted on February 27, 2026

Welcome to Subscribe On Youtube [Read More]

3809 - Best Reachable Tower

Posted on February 26, 2026

Welcome to Subscribe On Youtube [Read More]

3808 - Find Emotionally Consistent Users

Posted on February 25, 2026

Welcome to Subscribe On Youtube [Read More]

3807 - Minimum Cost to Repair Edges to Traverse a Graph

Posted on February 24, 2026

Welcome to Subscribe On Youtube [Read More]

3806 - Maximum Bitwise AND After Increment Operations

Posted on February 23, 2026

Welcome to Subscribe On Youtube [Read More]

3805 - Count Caesar Cipher Pairs

Posted on February 22, 2026

Welcome to Subscribe On Youtube [Read More]

3804 - Number of Centered Subarrays

Posted on February 21, 2026

Welcome to Subscribe On Youtube [Read More]

3803 - Count Residue Prefixes

Posted on February 20, 2026

Welcome to Subscribe On Youtube [Read More]

3802 - Number of Ways to Paint Sheets

Posted on February 19, 2026

Welcome to Subscribe On Youtube [Read More]

3801 - Minimum Cost to Merge Sorted Lists

Posted on February 18, 2026

Welcome to Subscribe On Youtube [Read More]

3800 - Minimum Cost to Make Two Binary Strings Equal

Posted on February 17, 2026

Welcome to Subscribe On Youtube [Read More]

3799 - Word Squares II

Posted on February 16, 2026

Welcome to Subscribe On Youtube [Read More]

3798 - Largest Even Number

Posted on February 15, 2026

Welcome to Subscribe On Youtube [Read More]

3797 - Count Routes to Climb a Rectangular Grid

Posted on February 14, 2026

Welcome to Subscribe On Youtube [Read More]

3796 - Find Maximum Value in a Constrained Sequence

Posted on February 13, 2026

Welcome to Subscribe On Youtube [Read More]

3795 - Minimum Subarray Length With Distinct Sum At Least K

Posted on February 12, 2026

Welcome to Subscribe On Youtube [Read More]

3794 - Reverse String Prefix

Posted on February 11, 2026

Welcome to Subscribe On Youtube [Read More]

3793 - Find Users with High Token Usage

Posted on February 10, 2026

Welcome to Subscribe On Youtube [Read More]

3792 - Sum of Increasing Product Blocks

Posted on February 9, 2026

Welcome to Subscribe On Youtube [Read More]

3791 - Number of Balanced Integers in a Range

Posted on February 8, 2026

Welcome to Subscribe On Youtube [Read More]

3790 - Smallest All-Ones Multiple

Posted on February 7, 2026

Welcome to Subscribe On Youtube [Read More]

3789 - Minimum Cost to Acquire Required Items

Posted on February 6, 2026

Welcome to Subscribe On Youtube [Read More]

3788 - Maximum Score of a Split

Posted on February 5, 2026

Welcome to Subscribe On Youtube [Read More]

3787 - Find Diameter Endpoints of a Tree

Posted on February 4, 2026

Welcome to Subscribe On Youtube [Read More]

3786 - Total Sum of Interaction Cost in Tree Groups

Posted on February 3, 2026

Welcome to Subscribe On Youtube [Read More]

3785 - Minimum Swaps to Avoid Forbidden Values

Posted on February 2, 2026

Welcome to Subscribe On Youtube [Read More]

3784 - Minimum Deletion Cost to Make All Characters Equal

Posted on February 1, 2026

Welcome to Subscribe On Youtube [Read More]

3783 - Mirror Distance of an Integer

Posted on January 31, 2026

Welcome to Subscribe On Youtube [Read More]

3782 - Last Remaining Integer After Alternating Deletion Operations

Posted on January 30, 2026

Welcome to Subscribe On Youtube [Read More]

3781 - Maximum Score After Binary Swaps

Posted on January 29, 2026

Welcome to Subscribe On Youtube [Read More]

3780 - Maximum Sum of Three Numbers Divisible by Three

Posted on January 28, 2026

Welcome to Subscribe On Youtube [Read More]

3779 - Minimum Number of Operations to Have Distinct Elements

Posted on January 27, 2026

Welcome to Subscribe On Youtube [Read More]

3778 - Minimum Distance Excluding One Maximum Weighted Edge

Posted on January 26, 2026

Welcome to Subscribe On Youtube [Read More]

3777 - Minimum Deletions to Make Alternating Substring

Posted on January 25, 2026

Welcome to Subscribe On Youtube [Read More]

3776 - Minimum Moves to Balance Circular Array

Posted on January 24, 2026

Welcome to Subscribe On Youtube [Read More]

3775 - Reverse Words With Same Vowel Count

Posted on January 23, 2026

Welcome to Subscribe On Youtube [Read More]

3774 - Absolute Difference Between Maximum and Minimum K Elements

Posted on January 22, 2026

Welcome to Subscribe On Youtube [Read More]

3773 - Maximum Number of Equal Length Runs

Posted on January 21, 2026

Welcome to Subscribe On Youtube [Read More]

3772 - Maximum Subgraph Score in a Tree

Posted on January 20, 2026

Welcome to Subscribe On Youtube [Read More]

3771 - Total Score of Dungeon Runs

Posted on January 19, 2026

Welcome to Subscribe On Youtube [Read More]

3770 - Largest Prime from Consecutive Prime Sum

Posted on January 18, 2026

Welcome to Subscribe On Youtube [Read More]

3769 - Sort Integers by Binary Reflection

Posted on January 17, 2026

Welcome to Subscribe On Youtube [Read More]

3768 - Minimum Inversion Count in Subarrays of Fixed Length

Posted on January 16, 2026

Welcome to Subscribe On Youtube [Read More]

3767 - Maximize Points After Choosing K Tasks

Posted on January 15, 2026

Welcome to Subscribe On Youtube [Read More]

3766 - Minimum Operations to Make Binary Palindrome

Posted on January 14, 2026

Welcome to Subscribe On Youtube [Read More]

3765 - Complete Prime Number

Posted on January 13, 2026

Welcome to Subscribe On Youtube [Read More]

3764 - Most Common Course Pairs

Posted on January 12, 2026

Welcome to Subscribe On Youtube [Read More]

3763 - Maximum Total Sum with Threshold Constraints

Posted on January 11, 2026

Welcome to Subscribe On Youtube [Read More]

3762 - Minimum Operations to Equalize Subarrays

Posted on January 10, 2026

Welcome to Subscribe On Youtube [Read More]

3761 - Minimum Absolute Distance Between Mirror Pairs

Posted on January 9, 2026

Welcome to Subscribe On Youtube [Read More]

3760 - Maximum Substrings With Distinct Start

Posted on January 8, 2026

Welcome to Subscribe On Youtube [Read More]

3759 - Count Elements With at Least K Greater Values

Posted on January 7, 2026

Welcome to Subscribe On Youtube [Read More]

3758 - Convert Number Words to Digits

Posted on January 6, 2026

Welcome to Subscribe On Youtube [Read More]

3757 - Number of Effective Subsequences

Posted on January 5, 2026

Welcome to Subscribe On Youtube [Read More]

3756 - Concatenate Non-Zero Digits and Multiply by Sum II

Posted on January 4, 2026

Welcome to Subscribe On Youtube [Read More]

3755 - Find Maximum Balanced XOR Subarray Length

Posted on January 3, 2026

Welcome to Subscribe On Youtube [Read More]

3754 - Concatenate Non-Zero Digits and Multiply by Sum I

Posted on January 2, 2026

Welcome to Subscribe On Youtube [Read More]

3753 - Total Waviness of Numbers in Range II

Posted on January 1, 2026

Welcome to Subscribe On Youtube [Read More]

3752 - Lexicographically Smallest Negated Permutation that Sums to Target

Posted on December 31, 2025

Welcome to Subscribe On Youtube [Read More]

3751 - Total Waviness of Numbers in Range I

Posted on December 30, 2025

Welcome to Subscribe On Youtube [Read More]

3750 - Minimum Number of Flips to Reverse Binary String

Posted on December 29, 2025

Welcome to Subscribe On Youtube [Read More]

3749 - Evaluate Valid Expressions

Posted on December 28, 2025

Welcome to Subscribe On Youtube [Read More]

3748 - Count Stable Subarrays

Posted on December 27, 2025

Welcome to Subscribe On Youtube [Read More]

3747 - Count Distinct Integers After Removing Zeros

Posted on December 26, 2025

Welcome to Subscribe On Youtube [Read More]

3746 - Minimum String Length After Balanced Removals

Posted on December 25, 2025

Welcome to Subscribe On Youtube [Read More]

3745 - Maximize Expression of Three Elements

Posted on December 24, 2025

Welcome to Subscribe On Youtube [Read More]

3744 - Find Kth Character in Expanded String

Posted on December 23, 2025

Welcome to Subscribe On Youtube [Read More]

3743 - Maximize Cyclic Partition Score

Posted on December 22, 2025

Welcome to Subscribe On Youtube [Read More]

3742 - Maximum Path Score in a Grid

Posted on December 21, 2025

Welcome to Subscribe On Youtube [Read More]

3741 - Minimum Distance Between Three Equal Elements II

Posted on December 20, 2025

Welcome to Subscribe On Youtube [Read More]

3740 - Minimum Distance Between Three Equal Elements I

Posted on December 19, 2025

Welcome to Subscribe On Youtube [Read More]

3739 - Count Subarrays With Majority Element II

Posted on December 18, 2025

Welcome to Subscribe On Youtube [Read More]

3738 - Longest Non-Decreasing Subarray After Replacing at Most One Element

Posted on December 17, 2025

Welcome to Subscribe On Youtube [Read More]

3737 - Count Subarrays With Majority Element I

Posted on December 16, 2025

Welcome to Subscribe On Youtube [Read More]

3736 - Minimum Moves to Equal Array Elements III

Posted on December 15, 2025

Welcome to Subscribe On Youtube [Read More]

3735 - Lexicographically Smallest String After Reverse II

Posted on December 14, 2025

Welcome to Subscribe On Youtube [Read More]

3734 - Lexicographically Smallest Palindromic Permutation Greater Than Target

Posted on December 13, 2025

Welcome to Subscribe On Youtube [Read More]

3733 - Minimum Time to Complete All Deliveries

Posted on December 12, 2025

Welcome to Subscribe On Youtube [Read More]

3732 - Maximum Product of Three Elements After One Replacement

Posted on December 11, 2025

Welcome to Subscribe On Youtube [Read More]

3731 - Find Missing Elements

Posted on December 10, 2025

Welcome to Subscribe On Youtube [Read More]

3730 - Maximum Calories Burnt from Jumps

Posted on December 9, 2025

Welcome to Subscribe On Youtube [Read More]

3729 - Count Distinct Subarrays Divisible by K in Sorted Array

Posted on December 8, 2025

Welcome to Subscribe On Youtube [Read More]

3728 - Stable Subarrays With Equal Boundary and Interior Sum

Posted on December 7, 2025

Welcome to Subscribe On Youtube [Read More]

3727 - Maximum Alternating Sum of Squares

Posted on December 6, 2025

Welcome to Subscribe On Youtube [Read More]

3726 - Remove Zeros in Decimal Representation

Posted on December 5, 2025

Welcome to Subscribe On Youtube [Read More]

3725 - Count Ways to Choose Coprime Integers from Rows

Posted on December 4, 2025

Welcome to Subscribe On Youtube [Read More]

3724 - Minimum Operations to Transform Array

Posted on December 3, 2025

Welcome to Subscribe On Youtube [Read More]

3723 - Maximize Sum of Squares of Digits

Posted on December 2, 2025

Welcome to Subscribe On Youtube [Read More]

3722 - Lexicographically Smallest String After Reverse

Posted on December 1, 2025

Welcome to Subscribe On Youtube [Read More]

3721 - Longest Balanced Subarray II

Posted on November 30, 2025

Welcome to Subscribe On Youtube [Read More]

3720 - Lexicographically Smallest Permutation Greater Than Target

Posted on November 29, 2025

Welcome to Subscribe On Youtube [Read More]

3719 - Longest Balanced Subarray I

Posted on November 28, 2025

Welcome to Subscribe On Youtube [Read More]

3718 - Smallest Missing Multiple of K

Posted on November 27, 2025

Welcome to Subscribe On Youtube [Read More]

3717 - Minimum Operations to Make the Array Beautiful

Posted on November 26, 2025

Welcome to Subscribe On Youtube [Read More]

3716 - Find Churn Risk Customers

Posted on November 25, 2025

Welcome to Subscribe On Youtube [Read More]

3715 - Sum of Perfect Square Ancestors

Posted on November 24, 2025

Welcome to Subscribe On Youtube [Read More]

3714 - Longest Balanced Substring II

Posted on November 23, 2025

Welcome to Subscribe On Youtube [Read More]

3713 - Longest Balanced Substring I

Posted on November 22, 2025

Welcome to Subscribe On Youtube [Read More]

3712 - Sum of Elements With Frequency Divisible by K

Posted on November 21, 2025

Welcome to Subscribe On Youtube [Read More]

3711 - Maximum Transactions Without Negative Balance

Posted on November 20, 2025

Welcome to Subscribe On Youtube [Read More]

3710 - Maximum Partition Factor

Posted on November 19, 2025

Welcome to Subscribe On Youtube [Read More]

3709 - Design Exam Scores Tracker

Posted on November 18, 2025

Welcome to Subscribe On Youtube [Read More]

3708 - Longest Fibonacci Subarray

Posted on November 17, 2025

Welcome to Subscribe On Youtube [Read More]

3707 - Equal Score Substrings

Posted on November 16, 2025

Welcome to Subscribe On Youtube [Read More]

3706 - Maximum Distance Between Unequal Words in Array II

Posted on November 15, 2025

Welcome to Subscribe On Youtube [Read More]

3705 - Find Golden Hour Customers

Posted on November 14, 2025

Welcome to Subscribe On Youtube [Read More]

3704 - Count No-Zero Pairs That Sum to N

Posted on November 13, 2025

Welcome to Subscribe On Youtube [Read More]

3703 - Remove K-Balanced Substrings

Posted on November 12, 2025

Welcome to Subscribe On Youtube [Read More]

3702 - Longest Subsequence With Non-Zero Bitwise XOR

Posted on November 11, 2025

Welcome to Subscribe On Youtube [Read More]

3701 - Compute Alternating Sum

Posted on November 10, 2025

Welcome to Subscribe On Youtube [Read More]

3700 - Number of ZigZag Arrays II

Posted on November 9, 2025

Welcome to Subscribe On Youtube [Read More]

3699 - Number of ZigZag Arrays I

Posted on November 8, 2025

Welcome to Subscribe On Youtube [Read More]

3698 - Split Array With Minimum Difference

Posted on November 7, 2025

Welcome to Subscribe On Youtube [Read More]

3697 - Compute Decimal Representation

Posted on November 6, 2025

Welcome to Subscribe On Youtube [Read More]

3696 - Maximum Distance Between Unequal Words in Array I

Posted on November 5, 2025

Welcome to Subscribe On Youtube [Read More]

3695 - Maximize Alternating Sum Using Swaps

Posted on November 4, 2025

Welcome to Subscribe On Youtube [Read More]

3694 - Distinct Points Reachable After Substring Removal

Posted on November 3, 2025

Welcome to Subscribe On Youtube [Read More]

3693 - Climbing Stairs II

Posted on November 2, 2025

Welcome to Subscribe On Youtube [Read More]

3692 - Majority Frequency Characters

Posted on November 1, 2025

Welcome to Subscribe On Youtube [Read More]

3691 - Maximum Total Subarray Value II

Posted on October 31, 2025

Welcome to Subscribe On Youtube [Read More]

3690 - Split and Merge Array Transformation

Posted on October 30, 2025

Welcome to Subscribe On Youtube [Read More]

3689 - Maximum Total Subarray Value I

Posted on October 29, 2025

Welcome to Subscribe On Youtube [Read More]

3688 - Bitwise OR of Even Numbers in an Array

Posted on October 28, 2025

Welcome to Subscribe On Youtube [Read More]

3687 - Library Late Fee Calculator

Posted on October 27, 2025

Welcome to Subscribe On Youtube [Read More]

3686 - Number of Stable Subsequences

Posted on October 26, 2025

Welcome to Subscribe On Youtube [Read More]

3685 - Subsequence Sum After Capping Elements

Posted on October 25, 2025

Welcome to Subscribe On Youtube [Read More]

3684 - Maximize Sum of At Most K Distinct Elements

Posted on October 24, 2025

Welcome to Subscribe On Youtube [Read More]

3683 - Earliest Time to Finish One Task

Posted on October 23, 2025

Welcome to Subscribe On Youtube [Read More]

3682 - Minimum Index Sum of Common Elements

Posted on October 22, 2025

Welcome to Subscribe On Youtube [Read More]

3681 - Maximum XOR of Subsequences

Posted on October 21, 2025

Welcome to Subscribe On Youtube [Read More]

3680 - Generate Schedule

Posted on October 20, 2025

Welcome to Subscribe On Youtube [Read More]

3679 - Minimum Discards to Balance Inventory

Posted on October 19, 2025

Welcome to Subscribe On Youtube [Read More]

3678 - Smallest Absent Positive Greater Than Average

Posted on October 18, 2025

Welcome to Subscribe On Youtube [Read More]

3677 - Count Binary Palindromic Numbers

Posted on October 17, 2025

Welcome to Subscribe On Youtube [Read More]

3676 - Count Bowl Subarrays

Posted on October 16, 2025

Welcome to Subscribe On Youtube [Read More]

3675 - Minimum Operations to Transform String

Posted on October 15, 2025

Welcome to Subscribe On Youtube [Read More]

3674 - Minimum Operations to Equalize Array

Posted on October 14, 2025

Welcome to Subscribe On Youtube [Read More]

3673 - Find Zombie Sessions

Posted on October 13, 2025

Welcome to Subscribe On Youtube [Read More]

3672 - Sum of Weighted Modes in Subarrays

Posted on October 12, 2025

Welcome to Subscribe On Youtube [Read More]

3671 - Sum of Beautiful Subsequences

Posted on October 11, 2025

Welcome to Subscribe On Youtube [Read More]

3670 - Maximum Product of Two Integers With No Common Bits

Posted on October 10, 2025

Welcome to Subscribe On Youtube [Read More]

3669 - Balanced K-Factor Decomposition

Posted on October 9, 2025

Welcome to Subscribe On Youtube [Read More]

3668 - Restore Finishing Order

Posted on October 8, 2025

Welcome to Subscribe On Youtube [Read More]

3667 - Sort Array By Absolute Value

Posted on October 7, 2025

Welcome to Subscribe On Youtube [Read More]

3666 - Minimum Operations to Equalize Binary String

Posted on October 6, 2025

Welcome to Subscribe On Youtube [Read More]

3665 - Twisted Mirror Path Count

Posted on October 5, 2025

Welcome to Subscribe On Youtube [Read More]

3664 - Two-Letter Card Game

Posted on October 4, 2025

Welcome to Subscribe On Youtube [Read More]

3663 - Find The Least Frequent Digit

Posted on October 3, 2025

Welcome to Subscribe On Youtube [Read More]

3662 - Filter Characters by Frequency

Posted on October 2, 2025

Welcome to Subscribe On Youtube [Read More]

3661 - Maximum Walls Destroyed by Robots

Posted on October 1, 2025

Welcome to Subscribe On Youtube [Read More]

3660 - Jump Game IX

Posted on September 30, 2025

Welcome to Subscribe On Youtube [Read More]

3659 - Partition Array Into K-Distinct Groups

Posted on September 29, 2025

Welcome to Subscribe On Youtube [Read More]

3658 - GCD of Odd and Even Sums

Posted on September 28, 2025

Welcome to Subscribe On Youtube [Read More]

3657 - Find Loyal Customers

Posted on September 27, 2025

Welcome to Subscribe On Youtube [Read More]

3656 - Determine if a Simple Graph Exists

Posted on September 26, 2025

Welcome to Subscribe On Youtube [Read More]

3655 - XOR After Range Multiplication Queries II

Posted on September 25, 2025

Welcome to Subscribe On Youtube [Read More]

3654 - Minimum Sum After Divisible Sum Deletions

Posted on September 24, 2025

Welcome to Subscribe On Youtube [Read More]

3653 - XOR After Range Multiplication Queries I

Posted on September 23, 2025

Welcome to Subscribe On Youtube [Read More]

3652 - Best Time to Buy and Sell Stock using Strategy

Posted on September 22, 2025

Welcome to Subscribe On Youtube [Read More]

3651 - Minimum Cost Path with Teleportations

Posted on September 21, 2025

Welcome to Subscribe On Youtube [Read More]

3650 - Minimum Cost Path with Edge Reversals

Posted on September 20, 2025

Welcome to Subscribe On Youtube [Read More]

3649 - Number of Perfect Pairs

Posted on September 19, 2025

Welcome to Subscribe On Youtube [Read More]

3648 - Minimum Sensors to Cover Grid

Posted on September 18, 2025

Welcome to Subscribe On Youtube [Read More]

3647 - Maximum Weight in Two Bags

Posted on September 17, 2025

Welcome to Subscribe On Youtube [Read More]

3646 - Next Special Palindrome Number

Posted on September 16, 2025

Welcome to Subscribe On Youtube [Read More]

3645 - Maximum Total from Optimal Activation Order

Posted on September 15, 2025

Welcome to Subscribe On Youtube [Read More]

3644 - Maximum K to Sort a Permutation

Posted on September 14, 2025

Welcome to Subscribe On Youtube [Read More]

3643 - Flip Square Submatrix Vertically

Posted on September 13, 2025

Welcome to Subscribe On Youtube [Read More]

3642 - Find Books with Polarized Opinions

Posted on September 12, 2025

Welcome to Subscribe On Youtube [Read More]

3641 - Longest Semi-Repeating Subarray

Posted on September 11, 2025

Welcome to Subscribe On Youtube [Read More]

3640 - Trionic Array II

Posted on September 10, 2025

Welcome to Subscribe On Youtube [Read More]

3639 - Minimum Time to Activate String

Posted on September 9, 2025

Welcome to Subscribe On Youtube [Read More]

3638 - Maximum Balanced Shipments

Posted on September 8, 2025

Welcome to Subscribe On Youtube [Read More]

3637 - Trionic Array I

Posted on September 7, 2025

Welcome to Subscribe On Youtube [Read More]

3636 - Threshold Majority Queries

Posted on September 6, 2025

Welcome to Subscribe On Youtube [Read More]

3635 - Earliest Finish Time for Land and Water Rides II

Posted on September 5, 2025

Welcome to Subscribe On Youtube [Read More]

3634 - Minimum Removals to Balance Array

Posted on September 4, 2025

Welcome to Subscribe On Youtube [Read More]

3633 - Earliest Finish Time for Land and Water Rides I

Posted on September 3, 2025

Welcome to Subscribe On Youtube [Read More]

3632 - Subarrays with XOR at Least K

Posted on September 2, 2025

Welcome to Subscribe On Youtube [Read More]

3631 - Sort Threats by Severity and Exploitability

Posted on September 1, 2025

Welcome to Subscribe On Youtube [Read More]

3630 - Partition Array for Maximum XOR and AND

Posted on August 31, 2025

Welcome to Subscribe On Youtube [Read More]

3629 - Minimum Jumps to Reach End via Prime Teleportation

Posted on August 30, 2025

Welcome to Subscribe On Youtube [Read More]

3628 - Maximum Number of Subsequences After One Inserting

Posted on August 29, 2025

Welcome to Subscribe On Youtube [Read More]

3627 - Maximum Median Sum of Subsequences of Size 3

Posted on August 28, 2025

Welcome to Subscribe On Youtube [Read More]

3626 - Find Stores with Inventory Imbalance

Posted on August 27, 2025

Welcome to Subscribe On Youtube [Read More]

3625 - Count Number of Trapezoids II

Posted on August 26, 2025

Welcome to Subscribe On Youtube [Read More]

3624 - Number of Integers With Popcount-Depth Equal to K II

Posted on August 25, 2025

Welcome to Subscribe On Youtube [Read More]

3623 - Count Number of Trapezoids I

Posted on August 24, 2025

Welcome to Subscribe On Youtube [Read More]

3622 - Check Divisibility by Digit Sum and Product

Posted on August 23, 2025

Welcome to Subscribe On Youtube [Read More]

3621 - Number of Integers With Popcount-Depth Equal to K I

Posted on August 22, 2025

Welcome to Subscribe On Youtube [Read More]

3620 - Network Recovery Pathways

Posted on August 21, 2025

Welcome to Subscribe On Youtube [Read More]

3619 - Count Islands With Total Value Divisible by K

Posted on August 20, 2025

Welcome to Subscribe On Youtube [Read More]

3618 - Split Array by Prime Indices

Posted on August 19, 2025

Welcome to Subscribe On Youtube [Read More]

3617 - Find Students with Study Spiral Pattern

Posted on August 18, 2025

Welcome to Subscribe On Youtube [Read More]

3616 - Number of Student Replacements

Posted on August 17, 2025

Welcome to Subscribe On Youtube [Read More]

3615 - Longest Palindromic Path in Graph

Posted on August 16, 2025

Welcome to Subscribe On Youtube [Read More]

3614 - Process String with Special Operations II

Posted on August 15, 2025

Welcome to Subscribe On Youtube [Read More]

3613 - Minimize Maximum Component Cost

Posted on August 14, 2025

Welcome to Subscribe On Youtube [Read More]

3612 - Process String with Special Operations I

Posted on August 13, 2025

Welcome to Subscribe On Youtube [Read More]

3611 - Find Overbooked Employees

Posted on August 12, 2025

Welcome to Subscribe On Youtube [Read More]

3610 - Minimum Number of Primes to Sum to Target

Posted on August 11, 2025

Welcome to Subscribe On Youtube [Read More]

3609 - Minimum Moves to Reach Target in Grid

Posted on August 10, 2025

Welcome to Subscribe On Youtube [Read More]

3608 - Minimum Time for K Connected Components

Posted on August 9, 2025

Welcome to Subscribe On Youtube [Read More]

3607 - Power Grid Maintenance

Posted on August 8, 2025

Welcome to Subscribe On Youtube [Read More]

3606 - Coupon Code Validator

Posted on August 7, 2025

Welcome to Subscribe On Youtube [Read More]

3605 - Minimum Stability Factor of Array

Posted on August 6, 2025

Welcome to Subscribe On Youtube [Read More]

3604 - Minimum Time to Reach Destination in Directed Graph

Posted on August 5, 2025

Welcome to Subscribe On Youtube [Read More]

3603 - Minimum Cost Path with Alternating Directions II

Posted on August 4, 2025

Welcome to Subscribe On Youtube [Read More]

3602 - Hexadecimal and Hexatrigesimal Conversion

Posted on August 3, 2025

Welcome to Subscribe On Youtube [Read More]

3601 - Find Drivers with Improved Fuel Efficiency

Posted on August 2, 2025

Welcome to Subscribe On Youtube [Read More]

3600 - Maximize Spanning Tree Stability with Upgrades

Posted on August 1, 2025

Welcome to Subscribe On Youtube [Read More]

3599 - Partition Array to Minimize XOR

Posted on July 31, 2025

Welcome to Subscribe On Youtube [Read More]

3598 - Longest Common Prefix Between Adjacent Strings After Removals

Posted on July 30, 2025

Welcome to Subscribe On Youtube [Read More]

3597 - Partition String

Posted on July 29, 2025

Welcome to Subscribe On Youtube [Read More]

3596 - Minimum Cost Path with Alternating Directions I

Posted on July 28, 2025

Welcome to Subscribe On Youtube [Read More]

3595 - Once Twice

Posted on July 27, 2025

Welcome to Subscribe On Youtube [Read More]

3594 - Minimum Time to Transport All Individuals

Posted on July 26, 2025

Welcome to Subscribe On Youtube [Read More]

3593 - Minimum Increments to Equalize Leaf Paths

Posted on July 25, 2025

Welcome to Subscribe On Youtube [Read More]

3592 - Inverse Coin Change

Posted on July 24, 2025

Welcome to Subscribe On Youtube [Read More]

3591 - Check if Any Element Has Prime Frequency

Posted on July 23, 2025

Welcome to Subscribe On Youtube [Read More]

3590 - Kth Smallest Path XOR Sum

Posted on July 22, 2025

Welcome to Subscribe On Youtube [Read More]

3589 - Count Prime-Gap Balanced Subarrays

Posted on July 21, 2025

Welcome to Subscribe On Youtube [Read More]

3588 - Find Maximum Area of a Triangle

Posted on July 20, 2025

Welcome to Subscribe On Youtube [Read More]

3587 - Minimum Adjacent Swaps to Alternate Parity

Posted on July 19, 2025

Welcome to Subscribe On Youtube [Read More]

3586 - Find COVID Recovery Patients

Posted on July 18, 2025

Welcome to Subscribe On Youtube [Read More]

3585 - Find Weighted Median Node in Tree

Posted on July 17, 2025

Welcome to Subscribe On Youtube [Read More]

3584 - Maximum Product of First and Last Elements of a Subsequence

Posted on July 16, 2025

Welcome to Subscribe On Youtube [Read More]

3583 - Count Special Triplets

Posted on July 15, 2025

Welcome to Subscribe On Youtube [Read More]

3582 - Generate Tag for Video Caption

Posted on July 14, 2025

Welcome to Subscribe On Youtube [Read More]

3581 - Count Odd Letters from Number

Posted on July 13, 2025

Welcome to Subscribe On Youtube [Read More]

3580 - Find Consistently Improving Employees

Posted on July 12, 2025

Welcome to Subscribe On Youtube [Read More]

3579 - Minimum Steps to Convert String with Operations

Posted on July 11, 2025

Welcome to Subscribe On Youtube [Read More]

3578 - Count Partitions With Max-Min Difference at Most K

Posted on July 10, 2025

Welcome to Subscribe On Youtube [Read More]

3577 - Count the Number of Computer Unlocking Permutations

Posted on July 9, 2025

Welcome to Subscribe On Youtube [Read More]

3576 - Transform Array to All Equal Elements

Posted on July 8, 2025

Welcome to Subscribe On Youtube [Read More]

3575 - Maximum Good Subtree Score

Posted on July 7, 2025

Welcome to Subscribe On Youtube [Read More]

3574 - Maximize Subarray GCD Score

Posted on July 6, 2025

Welcome to Subscribe On Youtube [Read More]

3573 - Best Time to Buy and Sell Stock V

Posted on July 5, 2025

Welcome to Subscribe On Youtube [Read More]

3572 - Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values

Posted on July 4, 2025

Welcome to Subscribe On Youtube [Read More]

3571 - Find the Shortest Superstring II

Posted on July 3, 2025

Welcome to Subscribe On Youtube [Read More]

3570 - Find Books with No Available Copies

Posted on July 2, 2025

Welcome to Subscribe On Youtube [Read More]

3569 - Maximize Count of Distinct Primes After Split

Posted on July 1, 2025

Welcome to Subscribe On Youtube [Read More]

3568 - Minimum Moves to Clean the Classroom

Posted on June 30, 2025

Welcome to Subscribe On Youtube [Read More]

3567 - Minimum Absolute Difference in Sliding Submatrix

Posted on June 29, 2025

Welcome to Subscribe On Youtube [Read More]

3566 - Partition Array into Two Equal Product Subsets

Posted on June 28, 2025

Welcome to Subscribe On Youtube [Read More]

3565 - Sequential Grid Path Cover

Posted on June 27, 2025

Welcome to Subscribe On Youtube [Read More]

3564 - Seasonal Sales Analysis

Posted on June 26, 2025

Welcome to Subscribe On Youtube [Read More]

3563 - Lexicographically Smallest String After Adjacent Removals

Posted on June 25, 2025

Welcome to Subscribe On Youtube [Read More]

3562 - Maximum Profit from Trading Stocks with Discounts

Posted on June 24, 2025

Welcome to Subscribe On Youtube [Read More]

3561 - Resulting String After Adjacent Removals

Posted on June 23, 2025

Welcome to Subscribe On Youtube [Read More]

3560 - Find Minimum Log Transportation Cost

Posted on June 22, 2025

Welcome to Subscribe On Youtube [Read More]

3559 - Number of Ways to Assign Edge Weights II

Posted on June 21, 2025

Welcome to Subscribe On Youtube [Read More]

3558 - Number of Ways to Assign Edge Weights I

Posted on June 20, 2025

Welcome to Subscribe On Youtube [Read More]

3557 - Find Maximum Number of Non Intersecting Substrings

Posted on June 19, 2025

Welcome to Subscribe On Youtube [Read More]

3556 - Sum of Largest Prime Substrings

Posted on June 18, 2025

Welcome to Subscribe On Youtube [Read More]

3555 - Smallest Subarray to Sort in Every Sliding Window

Posted on June 17, 2025

Welcome to Subscribe On Youtube [Read More]

3554 - Find Category Recommendation Pairs

Posted on June 16, 2025

Welcome to Subscribe On Youtube [Read More]

3553 - Minimum Weighted Subgraph With the Required Paths II

Posted on June 15, 2025

Welcome to Subscribe On Youtube [Read More]

3552 - Grid Teleportation Traversal

Posted on June 14, 2025

Welcome to Subscribe On Youtube [Read More]

3551 - Minimum Swaps to Sort by Digit Sum

Posted on June 13, 2025

Welcome to Subscribe On Youtube [Read More]

3550 - Smallest Index With Digit Sum Equal to Index

Posted on June 12, 2025

Welcome to Subscribe On Youtube [Read More]

3549 - Multiply Two Polynomials

Posted on June 11, 2025

Welcome to Subscribe On Youtube [Read More]

3548 - Equal Sum Grid Partition II

Posted on June 10, 2025

Welcome to Subscribe On Youtube [Read More]

3547 - Maximum Sum of Edge Values in a Graph

Posted on June 9, 2025

Welcome to Subscribe On Youtube [Read More]

3546 - Equal Sum Grid Partition I

Posted on June 8, 2025

Welcome to Subscribe On Youtube [Read More]
  • RSS
  • Email me

Leetcode  •  2026  •  leetcode.ca

Copyright © 2025 leetcode.ca