Skip to content

Instantly share code, notes, and snippets.

@gengwg
Created April 22, 2025 20:03
Show Gist options
  • Save gengwg/35998a754ec43340ea9cba7beece4daf to your computer and use it in GitHub Desktop.
Save gengwg/35998a754ec43340ea9cba7beece4daf to your computer and use it in GitHub Desktop.
google leetcode
388 Longest Absolute File Path 34.7% Medium
340 Longest Substring with At Most K Distinct Characters 38.5% Hard
308 Range Sum Query 2D - Mutable 19.8% Hard
418 Sentence Screen Fitting 27.2% Medium
361 Bomb Enemy 38.0% Medium
281 Zigzag Iterator 48.3% Medium
298 Binary Tree Longest Consecutive Sequence 39.8% Medium
425 Word Squares 41.7% Hard
346 Moving Average from Data Stream 57.4% Easy
163 Missing Ranges 27.7% Medium
394 Decode String 40.2% Medium
66 Plus One 36.9% Easy
393 UTF-8 Validation 35.6% Medium
317 Shortest Distance from All Buildings 33.2% Hard
271 Encode and Decode Strings 26.5% Medium
288 Unique Word Abbreviation 15.3% Easy
305 Number of Islands II 38.0% Hard
280 Wiggle Sort 55.0% Medium
200 Number of Islands 32.2% Medium X
259 3Sum Smaller 40.6% Medium X
289 Game of Life 36.3% Medium
246 Strobogrammatic Number 38.8% Easy
351 Android Unlock Patterns 42.7% Medium
406 Queue Reconstruction by Height 54.5% Medium
391 Perfect Rectangle 24.1% Hard
279 Perfect Squares 35.0% Medium
286 Walls and Gates 42.3% Medium
218 The Skyline Problem 25.5% Hard
465 optimal Account Balancing 29.9% Hard
345 Reverse Vowels of a String 37.3% Easy
56 Merge Intervals 28.3% Hard
297 Serialize and Deserialize Binary Tree 31.5% Hard
407 Trapping Rain Water II 35.5% Hard
471 Encode String with Shortest Length 43.5% Hard
417 Pacific Atlantic Water Flow 32.7% Medium
399 Evaluate Division 39.8% Medium
320 Generalized Abbreviation 43.5% Medium
247 Strobogrammatic Number II 38.2% Medium
411 Minimum Unique Word Abbreviation 31.1% Hard
329 Longest Increasing Path in a Matrix 35.4% Hard
295 Find Median from Data Stream 23.3% Hard
228 Summary Ranges 28.0% Medium
159 Longest Substring with At Most Two Distinct Characters 39.6% Hard
284 Peeking Iterator 35.1% Medium
359 Logger Rate Limiter 58.1% Easy
380 Insert Delete GetRandom O(1) 38.3% Hard
294 Flip Game II 45.2% Medium
341 Flatten Nested List Iterator 38.6% Medium
146 LRU Cache 16.0% Hard
315 Count of Smaller Numbers After Self 33.5% Hard
360 Sort Transformed Array 43.2% Medium
400 Nth Digit 30.4% Easy
276 Paint Fence 33.8% Easy
253 Meeting Rooms II 38.2% Medium
389 Find the Difference 50.7% Easy
362 Design Hit Counter 52.7% Medium
401 Binary Watch 43.6% Easy
293 Flip Game 54.0% Easy
42 Trapping Rain Water 35.3% Hard
239 Sliding Window Maximum 31.4% Hard
269 Alien Dictionary 22.4% Hard
318 Maximum Product of Word Lengths 42.2% Medium
212 Word Search II 22.2% Hard
270 Closest Binary Search Tree Value 38.0% Easy
274 H-Index 32.0% Medium
128 Longest Consecutive Sequence 35.3% Hard
230 Kth Smallest Element in a BST 42.0% Medium
369 Plus One Linked List 52.6% Medium
358 Rearrange String k Distance Apart 31.8% Hard
463 Island Perimeter 56.5% Easy
20 Valid Parentheses 32.1% Easy
409 Longest Palindrome 44.5% Easy
249 Group Shifted Strings 38.7% Easy
162 Find Peak Element 35.8% Medium
373 Find K Pairs with Smallest Sums 29.8% Medium
139 Word Break 28.2% Medium
421 Maximum XOR of Two Numbers in an Array 42.1% Medium
415 Add Strings 41.2% Easy
327 Count of Range Sum 28.8% Hard
332 Reconstruct Itinerary 28.0% Medium
158 Read N Characters Given Read4 II - Call multiple times 24.3% Hard
10 Regular Expression Matching 23.5% Hard
348 Design Tic-Tac-Toe 45.2% Medium
240 Search a 2D Matrix II 37.9% Medium
155 Min Stack 26.2% Easy
324 Wiggle Sort II 25.2% Medium
23 Merge k Sorted Lists 25.9% Hard
336 Palindrome Pairs 24.7% Hard
166 Fraction to Recurring Decimal 16.8% Medium
4 Median of Two Sorted Arrays 20.8% Hard
133 Clone Graph 25.0% Medium
54 Spiral Matrix 24.5% Medium
382 Linked List Random Node 46.2% Medium
231 Power of Two 39.2% Easy
173 Binary Search Tree Iterator 38.9% Medium
140 Word Break II 22.2% Hard
266 Palindrome Permutation 55.1% Easy
402 Remove K Digits 26.1% Medium
22 Generate Parentheses 41.8% Medium
422 Valid Word Square 36.5% Easy
57 Insert Interval 26.3% Hard
224 Basic Calculator 25.4% Hard
251 Flatten 2D Vector 38.7% Medium
272 Closest Binary Search Tree Value II 37.6% Hard
17 Letter Combinations of a Phone Number 32.4% Medium
31 Next Permutation 28.1% Medium
309 Best Time to Buy and Sell Stock with Cooldown 39.6% Medium
408 Valid Word Abbreviation 27.4% Easy
375 Guess Number Higher or Lower II 35.0% Medium
44 Wildcard Matching 19.0% Hard
50 Pow(x, n) 27.1% Medium
353 Design Snake Game 25.6% Medium
397 Integer Replacement 29.1% Medium
451 Sort Characters By Frequency 50.8% Medium
302 Smallest Rectangle Enclosing Black Pixels 43.9% Hard
354 Russian Doll Envelopes 31.7% Hard
282 Expression Add Operators 28.5% Hard
368 Largest Divisible Subset 33.0% Medium
208 Implement Trie (Prefix Tree) 25.6% Medium
214 Shortest Palindrome 22.9% Hard
261 Graph Valid Tree 36.5% Medium
313 Super Ugly Number 37.0% Medium
378 Kth Smallest Element in a Sorted Matrix 43.3% Medium
321 Create Maximum Number 23.8% Hard
331 Verify Preorder Serialization of a Binary Tree 35.1% Medium
374 Guess Number Higher or Lower 33.5% Easy
326 Power of Three 39.3% Easy
257 Binary Tree Paths 34.7% Easy
370 Range Addition 53.5% Medium
363 Max Sum of Rectangle No Larger Than K 32.1% Hard
357 Count Numbers with Unique Digits 45.1% Medium
356 Line Reflection 30.0% Medium
330 Patching Array 31.5% Hard
444 Sequence Reconstruction 20.9% Medium
447 Number of Boomerangs 42.7% Easy
379 Design Phone Directory 29.6% Medium
448 Find All Numbers Disappeared in an Array 56.3% Easy
377 Combination Sum IV 41.6% Medium
323 Number of Connected Components in an Undirected Graph 46.6% Medium
316 Remove Duplicate Letters 28.5% Hard
474 Ones and Zeroes 35.4% Medium
314 Binary Tree Vertical Order Traversal 35.3% Medium
459 Repeated Substring Pattern 39.7% Easy
312 Burst Balloons 41.6% Hard
460 LFU Cache 18.7% Hard
310 Minimum Height Trees 28.5% Medium
469 Convex Polygon 27.8% Medium
475 Heaters 30.5% Easy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment