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 1,055 solutions.
- 1171. Shortest Path in Binary Matrix Medium Languages: Python Accepted runtime 128ms
- 1174. Sales Analysis III Easy Languages: SQL Accepted runtime 967ms
- 1179. Game Play Analysis I Easy Languages: SQL Accepted runtime 609ms
- 1182. Game Play Analysis IV Medium Languages: SQL Accepted runtime 528ms
- 1183. Statistics from a Large Sample Medium Languages: Python Accepted runtime 0ms
- 1184. Car Pooling Medium Languages: Python Accepted runtime 1ms
- 1185. Find in Mountain Array Hard Languages: Python Accepted runtime 28ms
- 1186. Building H2O Medium Languages: Python Accepted runtime 60ms
- 1187. Print FooBar Alternately Medium Languages: Python Accepted runtime 65ms
- 1188. Brace Expansion II Hard Languages: Python Accepted runtime 3ms
- 1194. Path In Zigzag Labelled Binary Tree Medium Languages: Python Accepted runtime 0ms
- 1195. Distribute Candies to People Easy Languages: C++ Accepted runtime 0ms
- 1196. Filling Bookcase Shelves Medium Languages: Python Accepted runtime 0ms
- 1197. Parsing A Boolean Expression Hard Languages: Python Accepted runtime 14ms
- 1203. Print in Order Easy Languages: Python Accepted runtime 50ms
- 1205. Defanging an IP Address Easy Languages: C++ Accepted runtime 3ms
- 1206. Corporate Flight Bookings Medium Languages: Python Accepted runtime 18ms
- 1207. Delete Nodes And Return Forest Medium Languages: Python Accepted runtime 43ms
- 1208. Maximum Nesting Depth of Two Valid Parentheses Strings Medium Languages: Python Accepted runtime 3ms
- 1210. Mean of Array After Removing Some Elements Easy Languages: Python Accepted runtime 0ms
- 1212. Sequential Digits Medium Languages: C++ Accepted runtime 0ms
- 1216. Print Zero Even Odd Medium Languages: Python Accepted runtime 50ms
- 1217. Relative Sort Array Easy Languages: C++ Accepted runtime 0ms
- 1218. Lowest Common Ancestor of Deepest Leaves Medium Languages: Python Accepted runtime 1ms
- 1219. Longest Well-Performing Interval Medium Languages: Python Accepted runtime 19ms
- 1220. Smallest Sufficient Team Hard Languages: Python Accepted runtime 95ms
- 1221. Element Appearing More Than 25% In Sorted Array Easy Languages: C++ Accepted runtime 0ms
- 1222. Remove Covered Intervals Medium Languages: C++ Accepted runtime 0ms
- 1224. Minimum Falling Path Sum II Hard Languages: C++ Accepted runtime 0ms
- 1227. Number of Equivalent Domino Pairs Easy Languages: Python Accepted runtime 15ms
- 1228. Minimum Cost Tree From Leaf Values Medium Languages: Python Accepted runtime 0ms
- 1229. Shortest Path with Alternating Colors Medium Languages: Python Accepted runtime 2ms
- 1230. Maximum of Absolute Value Expression Medium Languages: Python Accepted runtime 37ms
- 1231. Replace Elements with Greatest Element on Right Side Easy Languages: Python Accepted runtime 55ms
- 1236. N-th Tribonacci Number Easy Languages: C++ Accepted runtime 0ms
- 1238. Alphabet Board Path Medium Languages: Python Accepted runtime 33ms
- 1239. Largest 1-Bordered Square Medium Languages: Python Accepted runtime 105ms
- 1240. Stone Game II Medium Languages: Python Accepted runtime 129ms
- 1241. Decompress Run-Length Encoded List Easy Languages: Python Accepted runtime 0ms
- 1245. User Activity for the Past 30 Days I Easy Languages: SQL Accepted runtime 561ms
- 1247. Decrease Elements To Make Array Zigzag Medium Languages: Python Accepted runtime 3ms
- 1248. Binary Tree Coloring Game Medium Languages: Python Accepted runtime 0ms
- 1249. Snapshot Array Medium Languages: Python Accepted runtime 5694ms
- 1250. Longest Common Subsequence Medium Languages: Python Accepted runtime 461ms
- 1251. Longest Chunked Palindrome Decomposition Hard Languages: Python Accepted runtime 0ms
- 1256. Rank Transform of an Array Easy Languages: Python Accepted runtime 31ms
- 1258. Article Views I Easy Languages: SQL Accepted runtime 357ms
- 1260. Day of the Year Easy Languages: Python Accepted runtime 11ms
- 1261. Swap For Longest Repeated Character Substring Medium Languages: Python Accepted runtime 23ms
- 1262. Online Majority Element In Subarray Hard Languages: Python Accepted runtime 534ms
Page 4 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.