LeetCode solutions — page 11
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 501–550 of 867 solutions matching Python, filtered from 1,055.
- 2657. Minimum Time to Complete All Tasks Hard Languages: Python Accepted runtime 589ms
- 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
- 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
- 2730. Maximum OR Medium Languages: Python Accepted runtime 130ms
- 2737. Row With Maximum Ones Easy Languages: Python Accepted runtime 7ms
- 2752. Sum Multiples Easy Languages: Python Accepted runtime 25ms
- 2756. Buy Two Chocolates Easy Languages: Python Accepted runtime 2ms
- 2757. Count of Integers Hard Languages: Python Accepted runtime 294ms
- 2766. Find the Prefix Common Array of Two Arrays Medium Languages: Python Accepted runtime 7ms
- 2767. Maximum Sum With Exactly K Elements Easy Languages: Python Accepted runtime 2ms
- 2777. Find the Distinct Difference Array Easy Languages: Python Accepted runtime 23ms
- 2779. Number of Adjacent Elements With the Same Color Medium Languages: Python Accepted runtime 67ms
- 2785. Semi-Ordered Permutation Easy Languages: Python Accepted runtime 0ms
- 2791. Find the Losers of the Circular Game Easy Languages: Python Accepted runtime 0ms
- 2792. Neighboring Bitwise XOR Medium Languages: Python Accepted runtime 19ms
- 2793. Count the Number of Complete Components Medium Languages: Python Accepted runtime 70ms
- 2794. Maximum Number of Moves in a Grid Medium Languages: Python Accepted runtime 36ms
- 2800. Minimum String Length After Removing Substrings Easy Languages: Python Accepted runtime 3ms
- 2812. Find the Maximum Achievable Number Easy Languages: Python Accepted runtime 0ms
- 2816. Lexicographically Smallest Palindrome Easy Languages: Python Accepted runtime 75ms
- 2817. Minimum Cost to Make All Characters Equal Medium Languages: Python Accepted runtime 102ms
- 2818. Maximum Strictly Increasing Cells in a Matrix Hard Languages: Python Accepted runtime 723ms
- 2819. Remove Trailing Zeros From a String Easy Languages: Python Accepted runtime 0ms
- 2824. Check if The Number is Fascinating Easy Languages: Python Accepted runtime 3ms
- 2825. Minimize String Length Easy Languages: Python Accepted runtime 7ms
- 2828. Lexicographically Smallest String After Substring Operation Medium Languages: Python Accepted runtime 103ms
- 2831. Number of Beautiful Pairs Easy Languages: Python Accepted runtime 219ms
- 2832. Find the Longest Equal Subarray Medium Languages: Python Accepted runtime 366ms
- 2836. Neither Minimum nor Maximum Easy Languages: Python Accepted runtime 7ms
- 2837. Minimum Operations to Make the Integer Zero Medium Languages: Python Accepted runtime 0ms
Page 11 of 18
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.