LeetCode solutions — page 2
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 51–100 of 439 solutions matching Easy + Python, filtered from 1,055.
- 1528. Kids With the Greatest Number of Candies Easy Languages: Python Accepted runtime 0ms
- 1532. Reformat The String Easy Languages: Python Accepted runtime 8ms
- 1537. Maximum Score After Splitting a String Easy Languages: Python Accepted runtime 4ms
- 1542. Consecutive Characters Easy Languages: Python Accepted runtime 7ms
- 1547. Destination City Easy Languages: Python Accepted runtime 0ms
- 1548. Check If All 1's Are at Least Length K Places Away Easy Languages: Python Accepted runtime 11ms
- 1556. Make Two Arrays Equal by Reversing Subarrays Easy Languages: Python Accepted runtime 4ms
- 1560. Number of Students Doing Homework at a Given Time Easy Languages: Python Accepted runtime 0ms
- 1566. Check If a Word Occurs As a Prefix of Any Word in a Sentence Easy Languages: Python Accepted runtime 0ms
- 1570. Final Prices With a Special Discount in a Shop Easy Languages: Python Accepted runtime 0ms
- 1574. Maximum Product of Two Elements in an Array Easy Languages: Python Accepted runtime 0ms
- 1580. Shuffle the Array Easy Languages: Python Accepted runtime 31ms
- 1584. Average Salary Excluding the Minimum and Maximum Salary Easy Languages: Python Accepted runtime 0ms
- 1603. Running Sum of 1d Array Easy Languages: Python Accepted runtime 0ms
- 1610. XOR Operation in an Array Easy Languages: Python Accepted runtime 0ms
- 1619. Path Crossing Easy Languages: Python Accepted runtime 3ms
- 1626. Can Make Arithmetic Progression From Sequence Easy Languages: Python Accepted runtime 3ms
- 1630. Count Odd Numbers in an Interval Range Easy Languages: Python Accepted runtime 30ms
- 1635. Number of Good Pairs Easy Languages: Python Accepted runtime 0ms
- 1642. Water Bottles Easy Languages: Python Accepted runtime 0ms
- 1646. Kth Missing Positive Number Easy Languages: Python Accepted runtime 4ms
- 1651. Shuffle String Easy Languages: Python Accepted runtime 0ms
- 1656. Count Good Triplets Easy Languages: Python Accepted runtime 165ms
- 1660. Thousand Separator Easy Languages: Python Accepted runtime 0ms
- 1666. Make The String Great Easy Languages: Python Accepted runtime 0ms
- 1677. Matrix Diagonal Sum Easy Languages: Python Accepted runtime 0ms
- 1682. Most Visited Sector in a Circular Track Easy Languages: Python Accepted runtime 0ms
- 1689. Detect Pattern of Length M Repeated K or More Times Easy Languages: Python Accepted runtime 0ms
- 1693. Sum of All Odd Length Subarrays Easy Languages: Python Accepted runtime 0ms
- 1698. Replace All ?'s to Avoid Consecutive Repeating Characters Easy Languages: Python Accepted runtime 0ms
- 1704. Special Positions in a Binary Matrix Easy Languages: Python Accepted runtime 6ms
- 1708. Design Parking System Easy Languages: Python Accepted runtime 3ms
- 1714. Rearrange Spaces Between Words Easy Languages: Python Accepted runtime 0ms
- 1720. Crawler Log Folder Easy Languages: Python Accepted runtime 0ms
- 1730. Special Array With X Elements Greater Than or Equal X Easy Languages: Python Accepted runtime 7ms
- 1737. Maximum Nesting Depth of the Parentheses Easy Languages: Python Accepted runtime 0ms
- 1741. Sort Array by Increasing Frequency Easy Languages: Python Accepted runtime 4ms
- 1742. Widest Vertical Area Between Two Points Containing No Points Easy Languages: Python Accepted runtime 42ms
- 1746. Largest Substring Between Two Equal Characters Easy Languages: Python Accepted runtime 0ms
- 1751. Slowest Key Easy Languages: Python Accepted runtime 2ms
- 1755. Defuse the Bomb Easy Languages: Python Accepted runtime 0ms
- 1760. Check Array Formation Through Concatenation Easy Languages: Python Accepted runtime 0ms
- 1764. Maximum Repeating Substring Easy Languages: Python Accepted runtime 0ms
- 1769. Get Maximum in Generated Array Easy Languages: Python Accepted runtime 0ms
- 1775. Design an Ordered Stream Easy Languages: Python Accepted runtime 19ms
- 1781. Check If Two String Arrays are Equivalent Easy Languages: Python Accepted runtime 0ms
- 1791. Richest Customer Wealth Easy Languages: Python Accepted runtime 0ms
- 1797. Goal Parser Interpretation Easy Languages: Python Accepted runtime 40ms
- 1802. Number of Students Unable to Eat Lunch Easy Languages: Python Accepted runtime 3ms
- 1806. Count of Matches in Tournament Easy Languages: Python Accepted runtime 42ms
Page 2 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.