LeetCode solutions — page 4
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 151–200 of 307 solutions matching Medium + Python, filtered from 1,055.
- 2481. Strictly Palindromic Number Medium Languages: Python Accepted runtime 0ms
- 2482. Maximum Rows Covered by Columns Medium Languages: Python Accepted runtime 4ms
- 2483. Task Scheduler II Medium Languages: Python Accepted runtime 115ms
- 2511. Partition String Into Substrings With Values at Most K Medium Languages: Python Accepted runtime 51ms
- 2529. Range Product Queries of Powers Medium Languages: Python Accepted runtime 83ms
- 2544. Minimum Addition to Make Integer Beautiful Medium Languages: Python Accepted runtime 3ms
- 2564. Most Profitable Path in a Tree Medium Languages: Python Accepted runtime 247ms
- 2568. Minimum Fuel Cost to Report to the Capital Medium Languages: Python Accepted runtime 221ms
- 2576. Minimum Penalty for a Shop Medium Languages: Python Accepted runtime 44ms
- 2599. Take K of Each Character From Left and Right Medium Languages: Python Accepted runtime 219ms
- 2600. Maximum Tastiness of Candy Basket Medium Languages: Python Accepted runtime 506ms
- 2610. Closest Prime Numbers in Range Medium Languages: Python Accepted runtime 1584ms
- 2615. Make Number of Distinct Characters Equal Medium Languages: Python Accepted runtime 63ms
- 2616. Maximal Score After Applying K Operations Medium Languages: Python Accepted runtime 256ms
- 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
- 2631. Sort the Students by Their Kth Score Medium Languages: Python Accepted runtime 7ms
- 2640. Maximum Number of Integers to Choose From a Range I Medium Languages: Python Accepted runtime 49ms
- 2649. Count Total Number of Colored Cells Medium Languages: Python Accepted runtime 0ms
- 2651. Count Ways to Group Overlapping Ranges Medium Languages: Python Accepted runtime 19ms
- 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
- 2664. Maximize Greatness of an Array Medium Languages: Python Accepted runtime 34ms
- 2680. Count Collisions of Monkeys on a Polygon Medium Languages: Python Accepted runtime 0ms
- 2685. First Completely Painted Row or Column Medium Languages: Python Accepted runtime 105ms
- 2691. Count Vowel Strings in Ranges Medium Languages: Python Accepted runtime 25ms
- 2695. Find Score of an Array After Marking All Elements Medium Languages: Python Accepted runtime 486ms
- 2699. Count the Number of Fair Pairs Medium Languages: Python Accepted runtime 284ms
- 2709. Count the Number of Square-Free Subsets Medium Languages: Python Accepted runtime 483ms
- 2716. Prime Subtraction Operation Medium Languages: Python Accepted runtime 50ms
- 2730. Maximum OR Medium Languages: Python Accepted runtime 130ms
- 2766. Find the Prefix Common Array of Two Arrays Medium Languages: Python Accepted runtime 7ms
- 2779. Number of Adjacent Elements With the Same Color Medium Languages: Python Accepted runtime 67ms
- 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
- 2817. Minimum Cost to Make All Characters Equal Medium Languages: Python Accepted runtime 102ms
- 2828. Lexicographically Smallest String After Substring Operation Medium Languages: Python Accepted runtime 103ms
- 2832. Find the Longest Equal Subarray Medium Languages: Python Accepted runtime 366ms
- 2837. Minimum Operations to Make the Integer Zero Medium Languages: Python Accepted runtime 0ms
- 2845. Find the Value of the Partition Medium Languages: Python Accepted runtime 87ms
- 2856. Count Complete Subarrays in an Array Medium Languages: Python Accepted runtime 491ms
- 2868. Continuous Subarrays Medium Languages: Python Accepted runtime 608ms
- 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
- 2878. Apply Operations to Make All Array Elements Equal to Zero Medium Languages: Python Accepted runtime 32ms
- 2882. Ways to Express an Integer as Sum of Powers Medium Languages: Python Accepted runtime 282ms
- 2916. Check if it is Possible to Split Array Medium Languages: Python Accepted runtime 0ms
- 2953. Count Pairs of Points With Distance k Medium Languages: Python Accepted runtime 2687ms
Page 4 of 7
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.