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 867 solutions matching Python, filtered from 1,055.
- 1283. Reformat Date Easy Languages: Python Accepted runtime 0ms
- 1286. Constrained Subsequence Sum Hard Languages: Python Accepted runtime 323ms
- 1287. Distance Between Bus Stops Easy Languages: Python Accepted runtime 39ms
- 1289. Day of the Week Easy Languages: Python Accepted runtime 0ms
- 1293. Three Consecutive Odds Easy Languages: Python Accepted runtime 0ms
- 1294. Range Frequency Queries Medium Languages: Python Accepted runtime 177ms
- 1297. Maximum Number of Balloons Easy Languages: Python Accepted runtime 0ms
- 1300. Critical Connections in a Network Hard Languages: Python Accepted runtime 267ms
- 1302. Delete Characters to Make Fancy String Easy Languages: Python Accepted runtime 304ms
- 1303. Minimum Moves to Reach Target Score Medium Languages: Python Accepted runtime 0ms
- 1306. Minimum Absolute Difference Easy Languages: Python Accepted runtime 63ms
- 1319. Unique Number of Occurrences Easy Languages: Python Accepted runtime 3ms
- 1448. Maximum 69 Number Easy Languages: Python Accepted runtime 0ms
- 1451. Minimum Number of Taps to Open to Water a Garden Hard Languages: Python Accepted runtime 24ms
- 1454. Remove Palindromic Subsequences Easy Languages: Python Accepted runtime 0ms
- 1458. Sort Integers by The Number of 1 Bits Easy Languages: Python Accepted runtime 1ms
- 1461. Count All Valid Pickup and Delivery Options Hard Languages: Python Accepted runtime 0ms
- 1463. The K Weakest Rows in a Matrix Easy Languages: Python Accepted runtime 0ms
- 1468. Check If N and Its Double Exist Easy Languages: Python Accepted runtime 0ms
- 1471. Maximum Students Taking Exam Hard Languages: Python Accepted runtime 8ms
- 1472. Increasing Decreasing String Easy Languages: Python Accepted runtime 26ms
- 1473. Find the Longest Substring Containing Vowels in Even Counts Medium Languages: Python Accepted runtime 267ms
- 1482. How Many Numbers Are Smaller Than the Current Number Easy Languages: Python Accepted runtime 3ms
- 1485. Minimum Cost to Make at Least One Valid Path in a Grid Hard Languages: Python Accepted runtime 90ms
- 1486. Find the Distance Value Between Two Arrays Easy Languages: Python Accepted runtime 27ms
- 1490. Generate a String With Characters That Have Odd Counts Easy Languages: Python Accepted runtime 0ms
- 1491. Number of Times Binary String Is Prefix-Aligned Medium Languages: Python Accepted runtime 35ms
- 1496. Lucky Numbers in a Matrix Easy Languages: Python Accepted runtime 0ms
- 1500. Count Largest Group Easy Languages: Python Accepted runtime 70ms
- 1505. Create Target Array in the Given Order Easy Languages: Python Accepted runtime 3ms
- 1508. Longest Happy Prefix Hard Languages: Python Accepted runtime 93ms
- 1510. Find Lucky Integer in an Array Easy Languages: Python Accepted runtime 4ms
- 1514. Minimum Value to Get Positive Step by Step Sum Easy Languages: Python Accepted runtime 0ms
- 1517. Restore The Array Hard Languages: Python Accepted runtime 719ms
- 1519. Minimum Subsequence in Non-Increasing Order Easy Languages: Python Accepted runtime 3ms
- 1524. String Matching in an Array Easy Languages: Python Accepted runtime 3ms
- 1527. Number of Ways to Paint N × 3 Grid Hard Languages: Python Accepted runtime 7ms
- 1528. Kids With the Greatest Number of Candies Easy Languages: Python Accepted runtime 0ms
- 1532. Reformat The String Easy Languages: Python Accepted runtime 8ms
- 1535. Build Array Where You Can Find The Maximum Exactly K Comparisons Hard Languages: Python Accepted runtime 1563ms
- 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
- 1557. Check If a String Contains All Binary Codes of Size K Medium Languages: Python Accepted runtime 235ms
- 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
Page 4 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.