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 439 solutions matching Easy + Python, filtered from 1,055.
- 2099. Number of Strings That Appear as Substrings in Word Easy Languages: Python Accepted runtime 0ms
- 2102. Find the Middle Index in Array Easy Languages: Python Accepted runtime 0ms
- 2106. Find Greatest Common Divisor of Array Easy Languages: Python Accepted runtime 0ms
- 2112. Minimum Difference Between Highest and Lowest of K Scores Easy Languages: Python Accepted runtime 7ms
- 2116. Count Number of Pairs With Absolute Difference K Easy Languages: Python Accepted runtime 4ms
- 2121. Find if Path Exists in Graph Easy Languages: Python Accepted runtime 311ms
- 2122. Count Special Quadruplets Easy Languages: Python Accepted runtime 543ms
- 2128. Reverse Prefix of Word Easy Languages: Python Accepted runtime 0ms
- 2148. Minimum Number of Moves to Seat Everyone Easy Languages: Python Accepted runtime 3ms
- 2154. Minimum Moves to Convert String Easy Languages: Python Accepted runtime 1ms
- 2159. Two Out of Three Easy Languages: Python Accepted runtime 4ms
- 2163. Kth Distinct String in an Array Easy Languages: Python Accepted runtime 3ms
- 2168. Check if Numbers Are Ascending in a Sentence Easy Languages: Python Accepted runtime 0ms
- 2173. Number of Valid Words in a Sentence Easy Languages: Python Accepted runtime 11ms
- 2177. Check Whether Two Strings are Almost Equivalent Easy Languages: Python Accepted runtime 0ms
- 2181. Smallest Index With Equal Value Easy Languages: Python Accepted runtime 0ms
- 2186. Count Vowel Substrings of a String Easy Languages: Python Accepted runtime 25ms
- 2190. Count Common Words With One Occurrence Easy Languages: Python Accepted runtime 3ms
- 2195. Time Needed to Buy Tickets Easy Languages: Python Accepted runtime 0ms
- 2199. Two Furthest Houses With Different Colors Easy Languages: Python Accepted runtime 0ms
- 2204. Find Subsequence of Length K With the Largest Sum Easy Languages: Python Accepted runtime 4ms
- 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
- 2231. Find First Palindromic String in the Array Easy Languages: Python Accepted runtime 3ms
- 2235. Capitalize the Title Easy Languages: Python Accepted runtime 3ms
- 2238. A Number After a Double Reversal Easy Languages: Python Accepted runtime 0ms
- 2248. Minimum Cost of Buying Candies With Discount Easy Languages: Python Accepted runtime 3ms
- 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
- 2269. Count Elements With Strictly Smaller and Greater Elements Easy Languages: Python Accepted runtime 2ms
- 2277. Count Equal and Divisible Pairs in an Array Easy Languages: Python Accepted runtime 35ms
- 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
- 2304. Cells in a Range on an Excel Sheet Easy Languages: Python Accepted runtime 0ms
- 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
- 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
- 2337. Remove Digit From Number to Maximize Result Easy Languages: Python Accepted runtime 0ms
- 2341. Count Prefixes of a Given String Easy Languages: Python Accepted runtime 0ms
- 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
- 2350. Find Closest Number to Zero Easy Languages: Python Accepted runtime 7ms
- 2361. Calculate Digit Sum of a String Easy Languages: Python Accepted runtime 4ms
- 2372. Rearrange Characters to Make Target String Easy Languages: Python Accepted runtime 3ms
- 2383. Add Two Integers Easy Languages: Python Accepted runtime 0ms
Page 4 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.