#leetcodemedium kết quả tìm kiếm
#73 Set Matrix Zeroes 🟦 Given an m×n matrix, if an element = 0 → set its row & col to 0. ⚡ In-place, O(1) space: use 1st row/col as markers → mark, zero out, then fix 1st row/col. 📊 Time: O(mn) | Space: O(1) #SetMatrixZeroes #LeetCodeMedium #InterviewReady

“Marked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. ⚡ #LeetCodeMedium #JavaMastery #CodeSmart”

Stop using arrays to solve linked list leetcode problems. Leetcode 92 - Reverse Linked List 2 - C++ #LeetcodeMedium #LinkedList

🛤️ #64 Minimum Path Sum Find the min path sum in an m×n grid, moving only ⬇️ or ➡️. Ex: [[1,3,1],[1,5,1],[4,2,1]] → 7 ✅ (path: 1→3→1→1→1) 💡 DP trick: dp[i][j] = grid[i][j] + min(top,left) ⏱ O(mn), 🗂 O(mn)/O(n). #DynamicProgramming #LeetCodeMedium #InterviewReady
![eninjain's tweet image. 🛤️ #64 Minimum Path Sum
Find the min path sum in an m×n grid, moving only ⬇️ or ➡️.
Ex: [[1,3,1],[1,5,1],[4,2,1]] → 7 ✅ (path: 1→3→1→1→1)
💡 DP trick: dp[i][j] = grid[i][j] + min(top,left)
⏱ O(mn), 🗂 O(mn)/O(n).
#DynamicProgramming #LeetCodeMedium #InterviewReady](https://pbs.twimg.com/media/GzqZ-KdaAAA3-Qt.jpg)
🛣️ #71 Simplify Path Simplify a Unix-style absolute path. / separates dirs, . = current, .. = parent. Remove extra slashes. Ex: "/home/"→"/home", "/a/./b/../../c/"→"/c" ✅ ⏱ O(n) | 📦 O(n) #SimplifyPath #StringParsing #LeetCodeMedium #UnixPaths #EdgeCases

452. Minimum Number of Arrows to Burst Balloons. Leetcode problem solution in Golang. #Leetcode150 #LeetcodeMedium #Golang

🔢 #81 Search in Rotated Sorted Array Find a target in a sorted array rotated at a pivot. 🎯 Use modified binary search: check which half is sorted, then narrow search. Input: [4,5,6,7,0,1,2], target=0 → Output: 4 ✅ O(log n) time, O(1) space. #BinarySearch #LeetCodeMedium
![eninjain's tweet image. 🔢 #81 Search in Rotated Sorted Array
Find a target in a sorted array rotated at a pivot. 🎯 Use modified binary search: check which half is sorted, then narrow search.
Input: [4,5,6,7,0,1,2], target=0 → Output: 4 ✅
O(log n) time, O(1) space.
#BinarySearch #LeetCodeMedium](https://pbs.twimg.com/media/G2BxmoZW0AA8SKf.jpg)
Solved another problem which is based on sliding window technique. Leetcode 1004 - Max Consecutive Ones III Check reply to view my solution. #LeetcodeMedium #SlidingWindow #Arrays

I think this is the first medium level problem which I have solved using Go 🥳 Leetcode 2095 - Delete middle node of linked list - Solution in Go. #LeetcodeMedium #LinkedList #100DaysOfCode

I started my weekend by solving a Leetcode medium level problem. Leetcode 1493 - Longest subarray of ones after deleting one element - Solution in Go. #Leetcode #TwoPointers #LeetcodeMedium #Go #Golang

I spent some time to understand mathematical proof from editorial solution, this solution depends more on mathematical proof than coding skills for sure. Leetcode 179: Largest Number: Solution in Go. #LeetcodeMedium #DSA #Golang #Go

#74 Search 2D Matrix Matrix sorted row-wise & first of each row > last of prev. Find target ✅ ⚡ Trick: treat it as 1D → Binary Search! row=mid/n, col=mid%n ⏱ O(log(mn)) | 💾 O(1) #Search2DMatrix #BinarySearch #LeetCodeMedium #InterviewReady

🔢 #77 Combinations Given n & k, return all k-number combinations from 1..n. ⚡ Use backtracking: build recursively, track current combo, add when size=k. 📦 Example: n=4, k=2 → [ [1,2],[1,3],[1,4],[2,3],[2,4],[3,4] ] #Combinations #Backtracking #LeetCodeMedium
![eninjain's tweet image. 🔢 #77 Combinations
Given n & k, return all k-number combinations from 1..n.
⚡ Use backtracking: build recursively, track current combo, add when size=k.
📦 Example: n=4, k=2 → [ [1,2],[1,3],[1,4],[2,3],[2,4],[3,4] ]
#Combinations #Backtracking #LeetCodeMedium](https://pbs.twimg.com/media/G1XArn1WkAEQ980.jpg)
🔢 #50 Pow(x, n) — Raise x to power n ⚡ Don’t multiply x again & again! Use Fast Power: 👉 If n even: xⁿ = (x²)ⁿ⁄² 👉 If n odd: xⁿ = x × (x²)ⁿ⁄² 👉 If n < 0: flip → x = 1/x, n = -n ⏱ Time: O(log n) 📦 Space: O(1) #SmartMath #BinaryPower #LeetCodeMedium

🔢 #57 Insert Interval You’ve got sorted, non-overlapping intervals & a new one barging in 🛬 💥 Slide it in! ✅ Add before it 🔄 Merge overlaps 🚀 Drop it in 📥 Add the rest! Ex: [[1,3],[6,9]], [2,5] → [[1,5],[6,9]] ⏱️ O(n) | 📦 O(n) #SmartMerge #GreedyMoves #LeetCodeMedium
![eninjain's tweet image. 🔢 #57 Insert Interval
You’ve got sorted, non-overlapping intervals &amp; a new one barging in 🛬
💥 Slide it in!
✅ Add before it
🔄 Merge overlaps
🚀 Drop it in
📥 Add the rest!
Ex: [[1,3],[6,9]], [2,5] → [[1,5],[6,9]]
⏱️ O(n) | 📦 O(n)
#SmartMerge #GreedyMoves #LeetCodeMedium](https://pbs.twimg.com/media/GxXEv6GXwAAkwMS.jpg)
🚧 #63 Unique Paths II Robot in m×n grid w/ obstacles (1). Only moves ⬇️➡️. Find unique paths to bottom-right! 📦 Ex: [[0,0,0],[0,1,0],[0,0,0]] → 2 ✅ 📊 DP: dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1] ⏱ O(mn), 🗂 O(mn) #UniquePathsII #DP #LeetCodeMedium #InterviewReady
![eninjain's tweet image. 🚧 #63 Unique Paths II
Robot in m×n grid w/ obstacles (1). Only moves ⬇️➡️.
Find unique paths to bottom-right!
📦 Ex: [[0,0,0],[0,1,0],[0,0,0]] → 2 ✅
📊 DP:
dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1]
⏱ O(mn), 🗂 O(mn)
#UniquePathsII #DP #LeetCodeMedium #InterviewReady](https://pbs.twimg.com/media/GzqTbGwb0AALHe5.jpg)
Fraction to Recurring Decimal | LeetCode 166 | Sep Day 24 | Hashing + String ✅✌️ youtu.be/7juLYhaCBQs . . . . . . . . . . . . #leetcodesolution #leetcodedaily #leetcodemedium #faangprep #startup #dsa #hashmap #math #codeexplain #coderlife #codingchallenge #prepareinterview

Implement Router | LeetCode 3508 | Sep Day 20 | Binary Search + Hashing ✅✌️ youtu.be/4AJLtXZchfs?si… . . . . . . . . . . . . . #leetcodesolution #leetcodedaily #leetcodemedium #faangprep #startup #dsa #queue #hashmap #codeexplain #coderlife #codingchallenge #leetcode3508

Sep day 18 Challenge is live, please do check it out ✅ youtu.be/_dKpo85-uSo?si… . . . . . . . . . . . . . #leetcodesolution #leetcodedaily #leetcodemedium #leetcodegrind #faangprep #startup #dsa #hashmap #priorityQueue #codeexplain #coderlife #codingchallenge #prepareinterview

99. Recover Binary Search Tree Leetcode problem solution using Golang. #LeetcodeMedium #BinarySearchTree

“Marked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. ⚡ #LeetCodeMedium #JavaMastery #CodeSmart”

452. Minimum Number of Arrows to Burst Balloons. Leetcode problem solution in Golang. #Leetcode150 #LeetcodeMedium #Golang

#73 Set Matrix Zeroes 🟦 Given an m×n matrix, if an element = 0 → set its row & col to 0. ⚡ In-place, O(1) space: use 1st row/col as markers → mark, zero out, then fix 1st row/col. 📊 Time: O(mn) | Space: O(1) #SetMatrixZeroes #LeetCodeMedium #InterviewReady

🛤️ #64 Minimum Path Sum Find the min path sum in an m×n grid, moving only ⬇️ or ➡️. Ex: [[1,3,1],[1,5,1],[4,2,1]] → 7 ✅ (path: 1→3→1→1→1) 💡 DP trick: dp[i][j] = grid[i][j] + min(top,left) ⏱ O(mn), 🗂 O(mn)/O(n). #DynamicProgramming #LeetCodeMedium #InterviewReady
![eninjain's tweet image. 🛤️ #64 Minimum Path Sum
Find the min path sum in an m×n grid, moving only ⬇️ or ➡️.
Ex: [[1,3,1],[1,5,1],[4,2,1]] → 7 ✅ (path: 1→3→1→1→1)
💡 DP trick: dp[i][j] = grid[i][j] + min(top,left)
⏱ O(mn), 🗂 O(mn)/O(n).
#DynamicProgramming #LeetCodeMedium #InterviewReady](https://pbs.twimg.com/media/GzqZ-KdaAAA3-Qt.jpg)
452. Minimum Number of Arrows to Burst Balloons. Leetcode problem solution in Golang. #Leetcode150 #LeetcodeMedium #Golang

“Marked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. ⚡ #LeetCodeMedium #JavaMastery #CodeSmart”

🛣️ #71 Simplify Path Simplify a Unix-style absolute path. / separates dirs, . = current, .. = parent. Remove extra slashes. Ex: "/home/"→"/home", "/a/./b/../../c/"→"/c" ✅ ⏱ O(n) | 📦 O(n) #SimplifyPath #StringParsing #LeetCodeMedium #UnixPaths #EdgeCases

🚧 #63 Unique Paths II Robot in m×n grid w/ obstacles (1). Only moves ⬇️➡️. Find unique paths to bottom-right! 📦 Ex: [[0,0,0],[0,1,0],[0,0,0]] → 2 ✅ 📊 DP: dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1] ⏱ O(mn), 🗂 O(mn) #UniquePathsII #DP #LeetCodeMedium #InterviewReady
![eninjain's tweet image. 🚧 #63 Unique Paths II
Robot in m×n grid w/ obstacles (1). Only moves ⬇️➡️.
Find unique paths to bottom-right!
📦 Ex: [[0,0,0],[0,1,0],[0,0,0]] → 2 ✅
📊 DP:
dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1]
⏱ O(mn), 🗂 O(mn)
#UniquePathsII #DP #LeetCodeMedium #InterviewReady](https://pbs.twimg.com/media/GzqTbGwb0AALHe5.jpg)
Solved another problem which is based on sliding window technique. Leetcode 1004 - Max Consecutive Ones III Check reply to view my solution. #LeetcodeMedium #SlidingWindow #Arrays

Stop using arrays to solve linked list leetcode problems. Leetcode 92 - Reverse Linked List 2 - C++ #LeetcodeMedium #LinkedList

🔢 #81 Search in Rotated Sorted Array Find a target in a sorted array rotated at a pivot. 🎯 Use modified binary search: check which half is sorted, then narrow search. Input: [4,5,6,7,0,1,2], target=0 → Output: 4 ✅ O(log n) time, O(1) space. #BinarySearch #LeetCodeMedium
![eninjain's tweet image. 🔢 #81 Search in Rotated Sorted Array
Find a target in a sorted array rotated at a pivot. 🎯 Use modified binary search: check which half is sorted, then narrow search.
Input: [4,5,6,7,0,1,2], target=0 → Output: 4 ✅
O(log n) time, O(1) space.
#BinarySearch #LeetCodeMedium](https://pbs.twimg.com/media/G2BxmoZW0AA8SKf.jpg)
I think this is the first medium level problem which I have solved using Go 🥳 Leetcode 2095 - Delete middle node of linked list - Solution in Go. #LeetcodeMedium #LinkedList #100DaysOfCode

I started my weekend by solving a Leetcode medium level problem. Leetcode 1493 - Longest subarray of ones after deleting one element - Solution in Go. #Leetcode #TwoPointers #LeetcodeMedium #Go #Golang

I spent some time to understand mathematical proof from editorial solution, this solution depends more on mathematical proof than coding skills for sure. Leetcode 179: Largest Number: Solution in Go. #LeetcodeMedium #DSA #Golang #Go

🔢 #50 Pow(x, n) — Raise x to power n ⚡ Don’t multiply x again & again! Use Fast Power: 👉 If n even: xⁿ = (x²)ⁿ⁄² 👉 If n odd: xⁿ = x × (x²)ⁿ⁄² 👉 If n < 0: flip → x = 1/x, n = -n ⏱ Time: O(log n) 📦 Space: O(1) #SmartMath #BinaryPower #LeetCodeMedium

🔢 #57 Insert Interval You’ve got sorted, non-overlapping intervals & a new one barging in 🛬 💥 Slide it in! ✅ Add before it 🔄 Merge overlaps 🚀 Drop it in 📥 Add the rest! Ex: [[1,3],[6,9]], [2,5] → [[1,5],[6,9]] ⏱️ O(n) | 📦 O(n) #SmartMerge #GreedyMoves #LeetCodeMedium
![eninjain's tweet image. 🔢 #57 Insert Interval
You’ve got sorted, non-overlapping intervals &amp; a new one barging in 🛬
💥 Slide it in!
✅ Add before it
🔄 Merge overlaps
🚀 Drop it in
📥 Add the rest!
Ex: [[1,3],[6,9]], [2,5] → [[1,5],[6,9]]
⏱️ O(n) | 📦 O(n)
#SmartMerge #GreedyMoves #LeetCodeMedium](https://pbs.twimg.com/media/GxXEv6GXwAAkwMS.jpg)
This problem can be easily solved if you are familiar with sliding window technique. Leetcode 1456 - Maximum number of vowels in a substring of given length - Leetcode Medium. Problem link - leetcode.com/problems/maxim… #Leetcode #LeetcodeMedium #Arrays

#74 Search 2D Matrix Matrix sorted row-wise & first of each row > last of prev. Find target ✅ ⚡ Trick: treat it as 1D → Binary Search! row=mid/n, col=mid%n ⏱ O(log(mn)) | 💾 O(1) #Search2DMatrix #BinarySearch #LeetCodeMedium #InterviewReady

Something went wrong.
Something went wrong.
United States Trends
- 1. Good Saturday 22.3K posts
- 2. Chalobah 2,279 posts
- 3. #SaturdayVibes 3,202 posts
- 4. Emiru 11K posts
- 5. Ohtani 235K posts
- 6. #dominATE_celebrATE 67.6K posts
- 7. #saturdaymorning 1,578 posts
- 8. Massie 36.3K posts
- 9. World Series 65.2K posts
- 10. Babe Ruth 3,840 posts
- 11. #HeartofTaehyung 49.8K posts
- 12. No Kings Day 49.6K posts
- 13. George Santos 94.5K posts
- 14. FDV 5min 3,082 posts
- 15. AI Alert 8,737 posts
- 16. TwitchCon 27.1K posts
- 17. Talus 15.8K posts
- 18. Carson Beck 17.2K posts
- 19. TOP CALL 10.1K posts
- 20. FDV Surge Alert 1,005 posts