LeetCode solutions — page 12
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 551–600 of 867 solutions matching Python, filtered from 1,055.
- 2845. Find the Value of the Partition Medium Languages: Python Accepted runtime 87ms
- 2847. Find Maximum Number of String Pairs Easy Languages: Python Accepted runtime 0ms
- 2849. Sum of Imbalance Numbers of All Subarrays Hard Languages: Python Accepted runtime 249ms
- 2856. Count Complete Subarrays in an Array Medium Languages: Python Accepted runtime 491ms
- 2857. Total Distance Traveled Easy Languages: Python Accepted runtime 7ms
- 2866. Longest Even Odd Subarray With Threshold Easy Languages: Python Accepted runtime 21ms
- 2868. Continuous Subarrays Medium Languages: Python Accepted runtime 608ms
- 2870. Longest Alternating Subarray Easy Languages: Python Accepted runtime 59ms
- 2871. Double a Number Represented as a Linked List Medium Languages: Python Accepted runtime 35ms
- 2872. Largest Element in an Array after Merge Operations Medium Languages: Python Accepted runtime 39ms
- 2873. Prime Pairs With Target Sum Medium Languages: Python Accepted runtime 2298ms
- 2876. Number of Employees Who Met the Target Easy Languages: Python Accepted runtime 0ms
- 2878. Apply Operations to Make All Array Elements Equal to Zero Medium Languages: Python Accepted runtime 32ms
- 2879. Minimum Changes to Make K Semi-palindromes Hard Languages: Python Accepted runtime 7085ms
- 2881. Split Strings by Separator Easy Languages: Python Accepted runtime 3ms
- 2882. Ways to Express an Integer as Sum of Powers Medium Languages: Python Accepted runtime 282ms
- 2886. Faulty Keyboard Easy Languages: Python Accepted runtime 3ms
- 2892. Check if Array is Good Easy Languages: Python Accepted runtime 4ms
- 2902. Max Pair Sum in an Array Easy Languages: Python Accepted runtime 32ms
- 2916. Check if it is Possible to Split Array Medium Languages: Python Accepted runtime 0ms
- 2919. Maximum Number of Groups With Increasing Length Hard Languages: Python Accepted runtime 158ms
- 2952. Minimum Time to Make Array Sum At Most x Hard Languages: Python Accepted runtime 719ms
- 2953. Count Pairs of Points With Distance k Medium Languages: Python Accepted runtime 2687ms
- 2954. Maximum Sum of Almost Unique Subarray Medium Languages: Python Accepted runtime 103ms
- 2955. Account Balance After Rounded Purchase Easy Languages: Python Accepted runtime 0ms
- 2977. Check if a String Is an Acronym of Words Easy Languages: Python Accepted runtime 3ms
- 2998. Count Symmetric Integers Easy Languages: Python Accepted runtime 871ms
- 2999. Check if Strings Can be Made Equal With Operations I Easy Languages: Python Accepted runtime 0ms
- 3019. Furthest Point From Origin Easy Languages: Python Accepted runtime 0ms
- 3032. Maximize Value of Function in a Ball Passing Game Hard Languages: Python Accepted runtime 6328ms
- 3033. Apply Operations to Make Two Strings Equal Medium Languages: Python Accepted runtime 3ms
- 3044. Minimum Operations to Collect Elements Easy Languages: Python Accepted runtime 0ms
- 3045. Minimum Right Shifts to Sort the Array Easy Languages: Python Accepted runtime 4ms
- 3055. Maximum Odd Binary Number Easy Languages: Python Accepted runtime 0ms
- 3062. Create a DataFrame from List Easy Languages: Python Accepted runtime 264ms
- 3063. Method Chaining Easy Languages: Python Accepted runtime 297ms
- 3064. Reshape Data: Concatenate Easy Languages: Python Accepted runtime 335ms
- 3065. Display the First Three Rows Easy Languages: Python Accepted runtime 264ms
- 3066. Create a New Column Easy Languages: Python Accepted runtime 368ms
- 3067. Modify Columns Easy Languages: Python Accepted runtime 336ms
- 3068. Rename Columns Easy Languages: Python Accepted runtime 243ms
- 3069. Change Data Type Easy Languages: Python Accepted runtime 273ms
- 3070. Fill Missing Data Easy Languages: Python Accepted runtime 256ms
- 3071. Drop Duplicate Rows Easy Languages: Python Accepted runtime 275ms
- 3072. Reshape Data: Pivot Easy Languages: Python Accepted runtime 301ms
- 3073. Reshape Data: Melt Easy Languages: Python Accepted runtime 304ms
- 3074. Select Data Easy Languages: Python Accepted runtime 343ms
- 3075. Drop Missing Data Easy Languages: Python Accepted runtime 263ms
- 3076. Get the Size of a DataFrame Easy Languages: Python Accepted runtime 257ms
- 3079. Minimum Edge Weight Equilibrium Queries in a Tree Hard Languages: Python Accepted runtime 2189ms
Page 12 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.