LeetCode solutions — page 19
Every LeetCode problem I have solved, with the accepted code in each language I solved it in. The problem statements stay on LeetCode where they belong — what is here is the solution, the runtime it was accepted at, and a link to the repository it came from.
1,055 solutions
Showing 901–950 of 1,055 solutions.
- 3568. Find the Key of the Numbers Easy Languages: Python Accepted runtime 4ms
- 3569. Count of Substrings Containing Every Vowel and K Consonants II Medium Languages: Python Accepted runtime 1479ms
- 3572. Count Substrings That Can Be Rearranged to Contain a String II Hard Languages: Python Accepted runtime 3210ms
- 3573. Count Substrings That Can Be Rearranged to Contain a String I Medium Languages: Python Accepted runtime 291ms
- 3581. The Two Sneaky Numbers of Digitville Easy Languages: Python Accepted runtime 2ms
- 3582. Find Indices of Stable Mountains Easy Languages: Python Accepted runtime 0ms
- 3587. Maximum Points Tourist Can Earn Medium Languages: Python Accepted runtime 7578ms
- 3593. Find the Maximum Factor Score of Array Medium Languages: Python Accepted runtime 45ms
- 3600. Find the K-th Character in String Game I Easy Languages: Python Accepted runtime 19ms
- 3605. Construct the Minimum Bitwise Array I Easy Languages: Python Accepted runtime 127ms
- 3606. Minimum Element After Replacement With Digit Sum Easy Languages: Python Accepted runtime 10ms
- 3610. Find X-Sum of All K-Long Subarrays I Easy Languages: Python Accepted runtime 19ms
- 3611. Construct the Minimum Bitwise Array II Medium Languages: Python Accepted runtime 0ms
- 3612. Adjacent Increasing Subarrays Detection I Easy Languages: Python Accepted runtime 79ms
- 3616. Make Array Elements Equal to Zero Easy Languages: Python Accepted runtime 3658ms
- 3617. Find the Original Typed String I Easy Languages: Python Accepted runtime 46ms
- 3620. Maximum Number of Distinct Elements After Operations Medium Languages: Python Accepted runtime 751ms
- 3621. Minimum Operations to Make Array Values Equal to K Easy Languages: Python Accepted runtime 67ms
- 3622. Maximum Frequency of an Element After Performing Operations I Medium Languages: Python Accepted runtime 2046ms
- 3625. Stone Removal Game Easy Languages: Python Accepted runtime 0ms
- 3626. Smallest Divisible Digit Product I Easy Languages: Python Accepted runtime 1ms
- 3627. Find Minimum Time to Reach Last Room I Medium Languages: Python Accepted runtime 135ms
- 3628. Find Minimum Time to Reach Last Room II Medium Languages: Python Accepted runtime 2427ms
- 3629. Total Characters in String After Transformations I Medium Languages: Python Accepted runtime 6071ms
- 3632. Button with Longest Push Time Easy Languages: Python Accepted runtime 0ms
- 3633. Maximize the Number of Target Nodes After Connecting Trees I Medium Languages: Python Accepted runtime 2091ms
- 3636. Check Balanced String Easy Languages: Python Accepted runtime 0ms
- 3637. Count Number of Balanced Permutations Hard Languages: Python Accepted runtime 2186ms
- 3639. Zero Array Transformation I Medium Languages: Python Accepted runtime 63ms
- 3643. Zero Array Transformation II Medium Languages: Python Accepted runtime 507ms
- 3644. Minimum Positive Sum Subarray Easy Languages: Python Accepted runtime 23ms
- 3645. Maximize the Number of Target Nodes After Connecting Trees II Hard Languages: Python Accepted runtime 493ms
- 3646. Sum of Good Subsequences Hard Languages: Python Accepted runtime 441ms
- 3648. Find the Maximum Number of Fruits Collected Hard Languages: Python Accepted runtime 2528ms
- 3649. Minimum Time to Break Locks I Medium Languages: Python Accepted runtime 114ms
- 3651. Transformed Array Easy Languages: Python Accepted runtime 54ms
- 3653. Maximum Subarray Sum With Length Divisible by K Medium Languages: Python Accepted runtime 423ms
- 3655. Digit Operations to Make Two Integers Equal Medium Languages: Python Accepted runtime 890ms
- 3656. Minimum Number of Operations to Make Elements in Array Distinct Easy Languages: Python Accepted runtime 11ms
- 3657. Check if Grid can be Cut into Sections Medium Languages: Python Accepted runtime 515ms
- 3676. Smallest Number With All Set Bits Easy Languages: Python Accepted runtime 0ms
- 3680. Count Connected Components in LCM Graph Hard Languages: Python Accepted runtime 9120ms
- 3681. Maximum Area Rectangle With Point Constraints I Medium Languages: Python Accepted runtime 98ms
- 3684. Substring Matching Pattern Easy Languages: Python Accepted runtime 0ms
- 3685. Count Subarrays of Length Three With a Condition Easy Languages: Python Accepted runtime 8ms
- 3691. Minimum Operations to Make Columns Strictly Increasing Easy Languages: Python Accepted runtime 7ms
- 3702. Maximum Subarray With Equal Products Easy Languages: Python Accepted runtime 753ms
- 3704. Count Partitions with Even Sum Difference Easy Languages: Python Accepted runtime 0ms
- 3705. Find the Largest Almost Missing Integer Easy Languages: Python Accepted runtime 7ms
- 3708. Zigzag Grid Traversal With Skip Easy Languages: Python Accepted runtime 0ms
Page 19 of 22
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.