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 1,055 solutions.
- 2210. Find Target Indices After Sorting Array Easy Languages: C++ Accepted runtime 0ms
- 2213. Find All People With Secret Hard Languages: Python Accepted runtime 412ms
- 2215. Finding 3-Digit Even Numbers Easy Languages: Python Accepted runtime 35ms
- 2219. Maximum Number of Words Found in Sentences Easy Languages: Python Accepted runtime 0ms
- 2226. Rings and Rods Easy Languages: Python Accepted runtime 0ms
- 2229. Maximum Fruits Harvested After at Most K Steps Hard Languages: Python Accepted runtime 109ms
- 2231. Find First Palindromic String in the Array Easy Languages: Python Accepted runtime 3ms
- 2232. Adding Spaces to a String Medium Languages: Python Accepted runtime 91ms
- 2233. Number of Smooth Descent Periods of a Stock Medium Languages: Python Accepted runtime 71ms
- 2234. Minimum Operations to Make the Array K-Increasing Hard Languages: Python Accepted runtime 174ms
- 2235. Capitalize the Title Easy Languages: Python Accepted runtime 3ms
- 2238. A Number After a Double Reversal Easy Languages: Python Accepted runtime 0ms
- 2243. Check if All A's Appears Before All B's Easy Languages: C++ Accepted runtime 0ms
- 2248. Minimum Cost of Buying Candies With Discount Easy Languages: Python Accepted runtime 3ms
- 2251. Number of Ways to Divide a Long Corridor Hard Languages: Python Accepted runtime 223ms
- 2254. Check if Every Row and Column Contains All Numbers Easy Languages: Python Accepted runtime 23ms
- 2260. Divide a String Into Groups of Size k Easy Languages: Python Accepted runtime 0ms
- 2263. Maximum Running Time of N Computers Hard Languages: Python Accepted runtime 1420ms
- 2264. Minimum Sum of Four Digit Number After Splitting Digits Easy Languages: C++ Accepted runtime 0ms
- 2265. Partition Array According to Given Pivot Medium Languages: Python Accepted runtime 24ms
- 2266. Minimum Cost to Set Cooking Time Medium Languages: Python Accepted runtime 0ms
- 2269. Count Elements With Strictly Smaller and Greater Elements Easy Languages: Python Accepted runtime 2ms
- 2270. Find All Lonely Numbers in the Array Medium Languages: Python Accepted runtime 123ms
- 2274. Keep Multiplying Found Values by Two Easy Languages: C++ Accepted runtime 0ms
- 2277. Count Equal and Divisible Pairs in an Array Easy Languages: Python Accepted runtime 35ms
- 2279. Maximum Split of Positive Even Integers Medium Languages: Python Accepted runtime 63ms
- 2283. Sort Even and Odd Indices Independently Easy Languages: Python Accepted runtime 0ms
- 2288. Count Operations to Obtain Zero Easy Languages: Python Accepted runtime 0ms
- 2292. Counting Words With a Given Prefix Easy Languages: Python Accepted runtime 0ms
- 2294. Minimum Time to Complete Trips Medium Languages: Python Accepted runtime 599ms
- 2298. Count Integers With Even Digit Sum Easy Languages: C++ Accepted runtime 0ms
- 2304. Cells in a Range on an Excel Sheet Easy Languages: Python Accepted runtime 0ms
- 2308. Divide Array Into Equal Pairs Easy Languages: C++ Accepted runtime 3ms
- 2312. Most Frequent Number Following Key In an Array Easy Languages: Python Accepted runtime 0ms
- 2316. Count Hills and Valleys in an Array Easy Languages: Python Accepted runtime 0ms
- 2317. Count Collisions on a Road Medium Languages: Python Accepted runtime 54ms
- 2320. Find All K-Distant Indices in an Array Easy Languages: Python Accepted runtime 179ms
- 2323. Minimum Bit Flips to Convert Number Easy Languages: Python Accepted runtime 0ms
- 2327. Largest Number After Digit Swaps by Parity Easy Languages: Python Accepted runtime 0ms
- 2331. Intersection of Multiple Arrays Easy Languages: Python Accepted runtime 3ms
- 2333. Count Number of Rectangles Containing Each Point Medium Languages: Python Accepted runtime 783ms
- 2334. Number of Flowers in Full Bloom Hard Languages: Python Accepted runtime 97ms
- 2337. Remove Digit From Number to Maximize Result Easy Languages: Python Accepted runtime 0ms
- 2339. K Divisible Elements Subarrays Medium Languages: Python Accepted runtime 395ms
- 2341. Count Prefixes of a Given String Easy Languages: Python Accepted runtime 0ms
- 2343. Count Unguarded Cells in the Grid Medium Languages: Python Accepted runtime 303ms
- 2345. Minimum Number of Operations to Convert Time Easy Languages: Python Accepted runtime 0ms
- 2346. Largest 3-Same-Digit Number in String Easy Languages: Python Accepted runtime 3ms
- 2347. Count Nodes Equal to Average of Subtree Medium Languages: Python Accepted runtime 36ms
- 2350. Find Closest Number to Zero Easy Languages: Python Accepted runtime 7ms
Page 10 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.