LeetCode solutions — page 5
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 201–250 of 569 solutions matching Easy, filtered from 1,055.
- 2041. The Latest Login in 2020 Easy Languages: SQL Accepted runtime 541ms
- 2042. Maximum Product Difference Between Two Pairs Easy Languages: Python Accepted runtime 140ms
- 2048. Build Array from Permutation Easy Languages: Python Accepted runtime 0ms
- 2053. Check if All Characters Have Equal Number of Occurrences Easy Languages: Python Accepted runtime 0ms
- 2058. Concatenation of Array Easy Languages: Python Accepted runtime 0ms
- 2076. Sum of Digits of String After Convert Easy Languages: Python Accepted runtime 1ms
- 2083. Three Divisors Easy Languages: Python Accepted runtime 3ms
- 2088. Minimum Time to Type Word Using Special Typewriter Easy Languages: Python Accepted runtime 0ms
- 2093. Check If String Is a Prefix of Array Easy Languages: Python Accepted runtime 0ms
- 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
- 2110. Employees With Missing Information Easy Languages: SQL Accepted runtime 506ms
- 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
- 2127. Employees Whose Manager Left the Company Easy Languages: SQL Accepted runtime 278ms
- 2128. Reverse Prefix of Word Easy Languages: Python Accepted runtime 0ms
- 2132. Convert 1D Array Into 2D Array Easy Languages: C++ Accepted runtime 4ms
- 2137. Final Value of Variable After Performing Operations Easy Languages: C++ Accepted runtime 0ms
- 2144. Maximum Difference Between Increasing Elements Easy Languages: C++ 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
- 2210. Find Target Indices After Sorting Array Easy Languages: C++ Accepted runtime 0ms
- 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
- 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
- 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
- 2264. Minimum Sum of Four Digit Number After Splitting Digits Easy Languages: C++ Accepted runtime 0ms
- 2269. Count Elements With Strictly Smaller and Greater Elements Easy Languages: Python Accepted runtime 2ms
- 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
Page 5 of 12
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.