LeetCode solutions — page 3
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 101–150 of 439 solutions matching Easy + Python, filtered from 1,055.
- 1812. Reformat Phone Number Easy Languages: Python Accepted runtime 0ms
- 1817. Calculate Money in Leetcode Bank Easy Languages: Python Accepted runtime 0ms
- 1823. Determine if String Halves Are Alike Easy Languages: Python Accepted runtime 3ms
- 1829. Maximum Units on a Truck Easy Languages: Python Accepted runtime 5ms
- 1833. Find the Highest Altitude Easy Languages: Python Accepted runtime 0ms
- 1839. Decode XORed Array Easy Languages: Python Accepted runtime 0ms
- 1843. Number Of Rectangles That Can Form The Largest Square Easy Languages: Python Accepted runtime 160ms
- 1844. Maximum Number of Balls in a Box Easy Languages: Python Accepted runtime 204ms
- 1848. Sum of Unique Elements Easy Languages: Python Accepted runtime 0ms
- 1858. Latest Time by Replacing Hidden Digits Easy Languages: Python Accepted runtime 0ms
- 1873. Longest Nice Substring Easy Languages: Python Accepted runtime 0ms
- 1878. Check if Array Is Sorted and Rotated Easy Languages: Python Accepted runtime 0ms
- 1884. Minimum Changes To Make Alternating Binary String Easy Languages: Python Accepted runtime 11ms
- 1888. Find Nearest Point That Has the Same X or Y Coordinate Easy Languages: Python Accepted runtime 11ms
- 1894. Merge Strings Alternately Easy Languages: Python Accepted runtime 37ms
- 1899. Count Items Matching a Rule Easy Languages: Python Accepted runtime 0ms
- 1904. Second Largest Digit in a String Easy Languages: Python Accepted runtime 4ms
- 1910. Check if Binary String Has at Most One Segment of Ones Easy Languages: Python Accepted runtime 0ms
- 1915. Check if One String Swap Can Make Strings Equal Easy Languages: Python Accepted runtime 0ms
- 1916. Find Center of Star Graph Easy Languages: Python Accepted runtime 0ms
- 1920. Determine Color of a Chessboard Square Easy Languages: Python Accepted runtime 0ms
- 1927. Maximum Ascending Subarray Sum Easy Languages: Python Accepted runtime 0ms
- 1933. Number of Different Integers in a String Easy Languages: Python Accepted runtime 0ms
- 1938. Minimum Operations to Make the Array Increasing Easy Languages: Python Accepted runtime 99ms
- 1944. Truncate Sentence Easy Languages: Python Accepted runtime 0ms
- 1950. Sign of the Product of an Array Easy Languages: Python Accepted runtime 2ms
- 1954. Replace All Digits with Characters Easy Languages: Python Accepted runtime 0ms
- 1960. Check if the Sentence Is Pangram Easy Languages: Python Accepted runtime 0ms
- 1965. Sum of Digits in Base K Easy Languages: Python Accepted runtime 0ms
- 1970. Sorting the Sentence Easy Languages: Python Accepted runtime 30ms
- 1975. Minimum Distance to the Target Element Easy Languages: Python Accepted runtime 0ms
- 1983. Maximum Population Year Easy Languages: Python Accepted runtime 3ms
- 1987. Substrings of Size Three with Distinct Characters Easy Languages: Python Accepted runtime 3ms
- 1993. Sum of All Subset XOR Totals Easy Languages: Python Accepted runtime 0ms
- 1999. Longer Contiguous Segments of Ones than Zeros Easy Languages: Python Accepted runtime 3ms
- 2005. Check if All the Integers in a Range Are Covered Easy Languages: Python Accepted runtime 0ms
- 2010. Check if Word Equals Summation of Two Words Easy Languages: Python Accepted runtime 0ms
- 2015. Determine Whether Matrix Can Be Obtained By Rotation Easy Languages: Python Accepted runtime 0ms
- 2020. Remove One Element to Make the Array Strictly Increasing Easy Languages: Python Accepted runtime 191ms
- 2025. Redistribute Characters to Make All Strings Equal Easy Languages: Python Accepted runtime 31ms
- 2032. Largest Odd Number in String Easy Languages: Python Accepted runtime 10ms
- 2037. Count Square Sum Triples Easy Languages: Python Accepted runtime 110ms
- 2042. Maximum Product Difference Between Two Pairs Easy Languages: Python Accepted runtime 140ms
- 2048. Build Array from Permutation Easy Languages: Python Accepted runtime 0ms
- 2053. Check if All Characters Have Equal Number of Occurrences Easy Languages: Python Accepted runtime 0ms
- 2058. Concatenation of Array Easy Languages: Python Accepted runtime 0ms
- 2076. Sum of Digits of String After Convert Easy Languages: Python Accepted runtime 1ms
- 2083. Three Divisors Easy Languages: Python Accepted runtime 3ms
- 2088. Minimum Time to Type Word Using Special Typewriter Easy Languages: Python Accepted runtime 0ms
- 2093. Check If String Is a Prefix of Array Easy Languages: Python Accepted runtime 0ms
Page 3 of 9
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.