Grinding DSA ✅
Learning Web Dev ✅
Still feels like I’m getting nowhere 😶
Am I the only one feeling like this?
#SelfDoubt
Gautam retweeted
🌀 Leetcode 54: Spiral Matrix
Traverse a 2D matrix in a spiral order 👉 right, down, left, up — repeat!
Tip: Use top, bottom, left, right boundaries & shrink them as you go.
Watch out for off-by-one errors! 😅
#Leetcode #Java #Coding #100DaysOfCode
Gautam retweeted
🔥 Solved Leetcode 234: Palindrome Linked List
🧠 Used two-pointer technique to find the middle
🔁 Reversed the second half
🔍 Compared both halves to check for palindrome
💡 Time: O(n), Space: O(1)
#Leetcode #100DaysOfCode #DSA #Java #LinkedList
Gautam retweeted
🧩 Leetcode 19: Remove Nth Node From End
💡 My approach: Count length ➕ delete target node
📏 Simple logic, 2 passes
#Leetcode #Java #DSA #Coding #100daysOfCoding
Gautam retweeted
Just solved 🔁 Reverse Linked List on #LeetCode !
Mastering pointer manipulation like a pro 😎
🧩 Classic problem. Clean logic.
#100DaysOfCode #DSA #Java 🚀#100DaysOfCode
Gautam retweeted
while (s <= e) {
int mid = s + (e - s) / 2;
if (canEatAll(..., mid)) e = mid - 1;
else s = mid + 1;
}
Gautam retweeted
🐒 LeetCode 875 – Koko Eating Bananas
Koko eats 🍌 at speed k. Find the minimum speed so she finishes all piles in h hours.
Trick: (pile + speed - 1) / speed avoids Math.ceil()
#LeetCode #Java #BinarySearch #100DaysOfCode #DSA
Gautam retweeted
✅ LeetCode 1961 – Check If String Is a Prefix of Array
Passed all test cases! 🧪💯
🧠 Logic: Build the prefix step-by-step using StringBuilder & compare with s. Exit early if it goes too long.
#LeetCode #Java #100DaysOfCode #CodingJourney #DSA
📌 Code: Given Below
Gautam retweeted
Solved LeetCode 27 – Remove Element with a 🔁 two-pointer swap trick!
Remove all val occurrences in-place without extra space 👇
🧠 Think smart with pointers!
#LeetCode #Java #Coding #DSA #100DaysOfCode
Gautam retweeted
🧠#Leetcode 33: Search in Rotated Sorted Array
🔍 #BinarySearch meets Rotation!
➡️ First, find the pivot (rotation point).
➡️ Then, search in the correct half using classic binary search.
⏱️ Time: O(log n)
📌 Tip: Handle the "not rotated" case carefully!
#Coding #Java
Gautam retweeted
🧠 #Leetcode 153: Find Minimum in Rotated Sorted Array
✅ Use #BinarySearch 🎯 Focus on the unsorted half to find the minimum 💡 Condition: if mid > end ➡️ min is in right Else ➡️ min is in left (including mid)
⏱️ Time: O(log n)
#Coding #Java #DSA
Gautam retweeted
🔁 LeetCode - 9. Palindrome Number
Can you check if an integer reads the same backward?
❌ Negative numbers = Not palindromes
❌ Don’t convert to String
✅ Reverse the number with math & compare!
Same as Question 7 Reverse Integer with a bit of twist
#Java #100DaysOfCode #DSA
Gautam retweeted
LeetCode Problem #1 - Two Sum
💡 Simple yet classic! Use a nested loop to check all pairs.
🎯 If nums[i] + nums[j] == target, return their indices.
📌 Starter-friendly & a great way to practice brute-force logic.
💻 Code snippet coming below 👇 #LeetCode #100DaysOfCode #Java










