LeetCode solutions — page 17
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 801–850 of 1,055 solutions.
- 3277. Find the Number of Ways to Place People II Hard Languages: Python Accepted runtime 2418ms
- 3291. Find if Array Can Be Sorted Medium Languages: Python Accepted runtime 15ms
- 3299. Find the Maximum Number of Elements in Subset Medium Languages: Python Accepted runtime 122ms
- 3303. Find Beautiful Indices in the Given Array II Hard Languages: Python Accepted runtime 1921ms
- 3305. Count Prefix and Suffix Pairs II Hard Languages: Python Accepted runtime 1972ms
- 3306. Mark Elements on Array by Performing Queries Medium Languages: Python Accepted runtime 1934ms
- 3309. Count Prefix and Suffix Pairs I Easy Languages: Python Accepted runtime 8ms
- 3311. Ant on the Boundary Easy Languages: Python Accepted runtime 44ms
- 3312. Number of Changing Keys Easy Languages: Python Accepted runtime 2ms
- 3320. Maximum Number of Operations With the Same Score I Easy Languages: Python Accepted runtime 0ms
- 3321. Type of Triangle Easy Languages: C++ Accepted runtime 0ms
- 3324. Split the Array Easy Languages: JavaScript Accepted runtime 0ms
- 3326. Count Pairs of Connectable Servers in a Weighted Tree Network Medium Languages: Python Accepted runtime 1575ms
- 3327. Minimum Moves to Pick K Ones Hard Languages: Python Accepted runtime 107ms
- 3328. Apply Operations to Make Sum of Array Greater Than or Equal to k Medium Languages: Python Accepted runtime 3ms
- 3330. Modify the Matrix Easy Languages: Python Accepted runtime 0ms
- 3331. Minimum Operations to Exceed Threshold Value I Easy Languages: C++ Accepted runtime 0ms
- 3334. Apple Redistribution into Boxes Easy Languages: Python Accepted runtime 0ms
- 3347. Distribute Elements Into Two Arrays I Easy Languages: Python Accepted runtime 0ms
- 3348. Minimum Cost Walk in Weighted Graph Hard Languages: Python Accepted runtime 181ms
- 3349. Maximum Length Substring With Two Occurrences Easy Languages: Python Accepted runtime 7ms
- 3350. Distribute Elements Into Two Arrays II Hard Languages: Python Accepted runtime 993ms
- 3351. Maximize Happiness of Selected Children Medium Languages: Python Accepted runtime 853ms
- 3353. Existence of a Substring in a String and Its Reverse Easy Languages: Python Accepted runtime 0ms
- 3360. Minimum Deletions to Make String K-Special Medium Languages: Python Accepted runtime 56ms
- 3361. Latest Time You Can Obtain After Replacing Characters Easy Languages: Python Accepted runtime 40ms
- 3367. Find the Sum of Encrypted Integers Easy Languages: Python Accepted runtime 59ms
- 3371. Harshad Number Easy Languages: Python Accepted runtime 0ms
- 3372. Longest Strictly Increasing or Strictly Decreasing Subarray Easy Languages: Python Accepted runtime 4ms
- 3373. Maximum Prime Difference Medium Languages: Python Accepted runtime 883ms
- 3379. Score of a String Easy Languages: Python Accepted runtime 2ms
- 3380. Shortest Subarray With OR at Least K II Medium Languages: Python Accepted runtime 1824ms
- 3381. Shortest Subarray With OR at Least K I Easy Languages: Python Accepted runtime 2ms
- 3384. Minimum Number of Operations to Make Word K-Periodic Medium Languages: Python Accepted runtime 59ms
- 3389. Minimum Time to Visit Disappearing Nodes Medium Languages: Python Accepted runtime 394ms
- 3390. Minimum Rectangles to Cover Points Medium Languages: Python Accepted runtime 28ms
- 3394. Minimum Array End Medium Languages: Python Accepted runtime 0ms
- 3396. Valid Word Easy Languages: C++ Accepted runtime 0ms
- 3397. Find the Integer Added to Array I Easy Languages: C++ Accepted runtime 0ms
- 3398. Make a Square with the Same Color Easy Languages: Python Accepted runtime 0ms
- 3404. Minimum Number of Operations to Satisfy Conditions Medium Languages: Python Accepted runtime 171ms
- 3406. Find All Possible Stable Binary Arrays I Medium Languages: Python Accepted runtime 7382ms
- 3408. Count the Number of Special Characters I Easy Languages: Python Accepted runtime 3ms
- 3412. Permutation Difference between Two Strings Easy Languages: C++ Accepted runtime 0ms
- 3415. Check if Grid Satisfies Conditions Easy Languages: Python Accepted runtime 3ms
- 3416. Sum of Digit Differences of All Pairs Medium Languages: Python Accepted runtime 379ms
- 3418. Count Pairs That Form a Complete Day II Medium Languages: Python Accepted runtime 1073ms
- 3420. Find Occurrences of an Element in an Array Medium Languages: Python Accepted runtime 44ms
- 3421. Count Pairs That Form a Complete Day I Easy Languages: Python Accepted runtime 11ms
- 3426. Minimum Number of Chairs in a Waiting Room Easy Languages: Python Accepted runtime 1ms
Page 17 of 22
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.