LeetCode solutions — page 10
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 451–500 of 867 solutions matching Python, filtered from 1,055.
- 2536. Determine if Two Events Have Conflict Easy Languages: Python Accepted runtime 0ms
- 2538. Minimum Cost to Make Array Equal Hard Languages: Python Accepted runtime 77ms
- 2539. Minimum Number of Operations to Make Arrays Similar Hard Languages: Python Accepted runtime 136ms
- 2542. Average Value of Even Numbers That Are Divisible by Three Easy Languages: Python Accepted runtime 0ms
- 2544. Minimum Addition to Make Integer Beautiful Medium Languages: Python Accepted runtime 3ms
- 2547. Odd String Difference Easy Languages: Python Accepted runtime 1ms
- 2556. Convert the Temperature Easy Languages: Python Accepted runtime 0ms
- 2561. Number of Distinct Averages Easy Languages: Python Accepted runtime 0ms
- 2564. Most Profitable Path in a Tree Medium Languages: Python Accepted runtime 247ms
- 2566. Number of Unequal Triplets in Array Easy Languages: Python Accepted runtime 238ms
- 2568. Minimum Fuel Cost to Report to the Capital Medium Languages: Python Accepted runtime 221ms
- 2569. Number of Beautiful Partitions Hard Languages: Python Accepted runtime 1187ms
- 2571. Find the Pivot Integer Easy Languages: Python Accepted runtime 7ms
- 2574. Count Subarrays With Median K Hard Languages: Python Accepted runtime 31ms
- 2575. Minimum Cuts to Divide a Circle Easy Languages: Python Accepted runtime 0ms
- 2576. Minimum Penalty for a Shop Medium Languages: Python Accepted runtime 44ms
- 2580. Circular Sentence Easy Languages: Python Accepted runtime 0ms
- 2585. Delete Greatest Value in Each Row Easy Languages: Python Accepted runtime 4ms
- 2589. Maximum Value of a String in an Array Easy Languages: Python Accepted runtime 0ms
- 2594. Count Pairs Of Similar Strings Easy Languages: Python Accepted runtime 24ms
- 2598. Shortest Distance to Target String in a Circular Array Easy Languages: Python Accepted runtime 0ms
- 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
- 2601. Number of Great Partitions Hard Languages: Python Accepted runtime 65ms
- 2602. Maximum Enemy Forts That Can Be Captured Easy Languages: Python Accepted runtime 0ms
- 2605. Count Anagrams Hard Languages: Python Accepted runtime 692ms
- 2608. Count the Digits That Divide a Number Easy Languages: Python Accepted runtime 0ms
- 2610. Closest Prime Numbers in Range Medium Languages: Python Accepted runtime 1584ms
- 2614. Maximum Count of Positive Integer and Negative Integer Easy Languages: Python Accepted runtime 5ms
- 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
- 2618. Maximize the Minimum Powered City Hard Languages: Python Accepted runtime 2737ms
- 2619. Categorize Box According to Criteria Easy Languages: Python Accepted runtime 0ms
- 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
- 2631. Sort the Students by Their Kth Score Medium Languages: Python Accepted runtime 7ms
- 2634. Minimum Common Value Easy Languages: Python Accepted runtime 11ms
- 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
- 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
Page 10 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.