LeetCode solutions — page 9
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 401–450 of 1,055 solutions.
- 2067. Maximum Number of Points with Cost Medium Languages: Python Accepted runtime 391ms
- 2076. Sum of Digits of String After Convert Easy Languages: Python Accepted runtime 1ms
- 2083. Three Divisors Easy Languages: Python Accepted runtime 3ms
- 2084. Maximum Number of Weeks for Which You Can Work Medium Languages: Python Accepted runtime 7ms
- 2087. Confirmation Rate Medium Languages: SQL Accepted runtime 574ms
- 2088. Minimum Time to Type Word Using Special Typewriter Easy Languages: Python Accepted runtime 0ms
- 2089. Maximum Matrix Sum Medium Languages: Python Accepted runtime 81ms
- 2093. Check If String Is a Prefix of Array Easy Languages: Python Accepted runtime 0ms
- 2094. Remove Stones to Minimize the Total Medium Languages: Python Accepted runtime 548ms
- 2095. Minimum Number of Swaps to Make the String Balanced Medium Languages: Python Accepted runtime 447ms
- 2096. Find the Longest Valid Obstacle Course at Each Position Hard Languages: Python Accepted runtime 138ms
- 2099. Number of Strings That Appear as Substrings in Word Easy Languages: Python Accepted runtime 0ms
- 2101. Last Day Where You Can Still Cross Hard Languages: Python Accepted runtime 1860ms
- 2102. Find the Middle Index in Array Easy Languages: Python Accepted runtime 0ms
- 2104. Operations on Tree Medium Languages: Python Accepted runtime 544ms
- 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
- 2123. The Number of Weak Characters in the Game Medium Languages: Python Accepted runtime 251ms
- 2124. First Day Where You Have Been in All the Rooms Medium Languages: Python Accepted runtime 106ms
- 2127. Employees Whose Manager Left the Company Easy Languages: SQL Accepted runtime 278ms
- 2128. Reverse Prefix of Word Easy Languages: Python Accepted runtime 0ms
- 2129. Number of Pairs of Interchangeable Rectangles Medium Languages: Python Accepted runtime 136ms
- 2130. Maximum Product of the Length of Two Palindromic Subsequences Medium Languages: Python Accepted runtime 762ms
- 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
- 2145. Grid Game Medium Languages: Python Accepted runtime 81ms
- 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
- 2164. Two Best Non-Overlapping Events Medium Languages: Python Accepted runtime 310ms
- 2165. Plates Between Candles Medium Languages: Python Accepted runtime 95ms
- 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
- 2174. Next Greater Numerically Balanced Number Medium Languages: Python Accepted runtime 4523ms
- 2176. Parallel Courses III Hard Languages: C++ Accepted runtime 60ms
- 2177. Check Whether Two Strings are Almost Equivalent Easy Languages: Python Accepted runtime 0ms
- 2179. Most Beautiful Item for Each Query Medium Languages: Python Accepted runtime 304ms
- 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
- 2201. Valid Arrangement of Pairs Hard Languages: Python Accepted runtime 549ms
- 2204. Find Subsequence of Length K With the Largest Sum Easy Languages: Python Accepted runtime 4ms
Page 9 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.