LeetCode solutions — page 13
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 601–650 of 1,055 solutions.
- 2620. Find Consecutive Integers from a Data Stream Medium Languages: Python Accepted runtime 70ms
- 2621. Find Xor-Beauty of Array Medium Languages: Python Accepted runtime 3ms
- 2624. Difference Between Element Sum and Digit Sum of an Array Easy Languages: Python Accepted runtime 55ms
- 2630. Alternating Digit Sum Easy Languages: C++ Accepted runtime 0ms
- 2631. Sort the Students by Their Kth Score Medium Languages: Python Accepted runtime 7ms
- 2634. Minimum Common Value Easy Languages: Python Accepted runtime 11ms
- 2639. Separate the Digits in an Array Easy Languages: C++ Accepted runtime 4ms
- 2640. Maximum Number of Integers to Choose From a Range I Medium Languages: Python Accepted runtime 49ms
- 2642. Time to Cross a Bridge Hard Languages: Python Accepted runtime 219ms
- 2645. Pass the Pillow Easy Languages: Python Accepted runtime 0ms
- 2646. Kth Largest Sum in a Binary Tree Medium Languages: C++ Accepted runtime 66ms
- 2647. Split the Array to Make Coprime Products Hard Languages: Python Accepted runtime 4508ms
- 2648. Number of Ways to Earn Points Hard Languages: Python Accepted runtime 714ms
- 2649. Count Total Number of Colored Cells Medium Languages: Python Accepted runtime 0ms
- 2650. Split With Minimum Sum Easy Languages: Python Accepted runtime 3ms
- 2651. Count Ways to Group Overlapping Ranges Medium Languages: Python Accepted runtime 19ms
- 2652. Count Number of Possible Root Nodes Hard Languages: Python Accepted runtime 400ms
- 2654. Count the Number of Vowel Strings in Range Easy Languages: Python Accepted runtime 3ms
- 2655. Rearrange Array to Maximize Prefix Score Medium Languages: Python Accepted runtime 91ms
- 2656. Count the Number of Beautiful Subarrays Medium Languages: Python Accepted runtime 122ms
- 2657. Minimum Time to Complete All Tasks Hard Languages: Python Accepted runtime 589ms
- 2659. Number of Even and Odd Bits Easy Languages: C++ Accepted runtime 0ms
- 2663. Distribute Money to Maximum Children Easy Languages: JavaScript Accepted runtime 3ms
- 2664. Maximize Greatness of an Array Medium Languages: Python Accepted runtime 34ms
- 2668. Form Smallest Number From Two Digit Arrays Easy Languages: Python Accepted runtime 0ms
- 2675. Find the Width of Columns of a Grid Easy Languages: Python Accepted runtime 7ms
- 2679. Count Distinct Numbers on Board Easy Languages: Python Accepted runtime 0ms
- 2680. Count Collisions of Monkeys on a Polygon Medium Languages: Python Accepted runtime 0ms
- 2681. Put Marbles in Bags Hard Languages: Python Accepted runtime 135ms
- 2684. Determine the Winner of a Bowling Game Easy Languages: Python Accepted runtime 7ms
- 2685. First Completely Painted Row or Column Medium Languages: Python Accepted runtime 105ms
- 2689. Rearranging Fruits Hard Languages: Python Accepted runtime 117ms
- 2691. Count Vowel Strings in Ranges Medium Languages: Python Accepted runtime 25ms
- 2692. Take Gifts From the Richest Pile Easy Languages: Python Accepted runtime 0ms
- 2694. Find the Maximum Divisibility Score Easy Languages: Python Accepted runtime 2493ms
- 2695. Find Score of an Array After Marking All Elements Medium Languages: Python Accepted runtime 486ms
- 2698. Find the Array Concatenation Value Easy Languages: Python Accepted runtime 2ms
- 2699. Count the Number of Fair Pairs Medium Languages: Python Accepted runtime 284ms
- 2704. Maximum Difference by Remapping a Digit Easy Languages: Python Accepted runtime 0ms
- 2707. Merge Two 2D Arrays by Summing Values Easy Languages: Python Accepted runtime 3ms
- 2709. Count the Number of Square-Free Subsets Medium Languages: Python Accepted runtime 483ms
- 2714. Left and Right Sum Differences Easy Languages: JavaScript Accepted runtime 4ms
- 2715. K Items With the Maximum Sum Easy Languages: Python Accepted runtime 4ms
- 2716. Prime Subtraction Operation Medium Languages: Python Accepted runtime 50ms
- 2722. Prime In Diagonal Easy Languages: Python Accepted runtime 39ms
- 2723. Find the Longest Balanced Substring of a Binary String Easy Languages: Python Accepted runtime 0ms
- 2727. Number of Senior Citizens Easy Languages: C++ Accepted runtime 0ms
- 2730. Maximum OR Medium Languages: Python Accepted runtime 130ms
- 2731. Memoize Medium Languages: JavaScript Accepted runtime 238ms
- 2732. Counter Easy Languages: JavaScript Accepted runtime 41ms
Page 13 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.