vagueman57.bsky.social
@vagueman57.bsky.social
#976: Largest Perimeter Triangle✅

Tagged "Easy" but brute force fails here!

Strategy:
Sort array
Traverse from end
Check: a+b>c (triangle rule)
First valid = max perimeter
if none is valid then return 0

TC: O(n log n)
#LeetCode #Coding
December 26, 2025 at 11:35 AM
#69 Sqrt(x) 💀

Was solving this and got stuck on overflow using mid*mid < x instead of mid < (x/mid)

Scrolled through comments for help and what I found made me laugh so hard 😭

#LeetCode #DSA #humor #sqrt
December 26, 2025 at 9:50 AM
2833. Furthest Point From Origin! ✅
Key insight: treat each '_' as L or R, simulate both extremes, and take max absolute distance. This gives the furthest reachable point. Clean, smart, and efficient!
#LeetCode #Cpp #Algorithms #DSA
December 26, 2025 at 5:26 AM
LeetCode Rewind dropped before GTA 6 lmao 😭 Balanced 287 submissions with college chaos—assignments, exams, sleepless nights. Not perfect but we kept going. 2026 gonna be our year 🚀

#LeetCodeRewind #DevLife #CodingJourney #DSA #Programming
December 25, 2025 at 11:17 AM
1816. Truncate Sentence! ✅

My approach: iterate through the string, count spaces until we hit k, then return substr(0, idx) at that position.

Simple logic: k words = k-1 spaces 🧠

TC: O(n) | SC: O(1)
#LeetCode #CPP #CodingLife
December 23, 2025 at 5:22 PM
You type a character.
Counter updates.
Preview updates.
State updates.

That instant feedback?

That’s what people call two-way binding in React 🎯

UI changes → state updates
State changes → UI re-renders

Simple. Predictable. Powerful.
#ReactJS #Frontend #WebDev
December 23, 2025 at 11:09 AM
Just solved #LeetCode 2558 - "Take Gifts From the Richest Pile"! 🎯

Use a max heap to repeatedly pick the largest pile and reduce it to the floor(sqrt).
O(n + k log n) time, O(n) space.
Simple but effective!

#Algorithms #Heap #Programming
December 22, 2025 at 7:17 PM
✅ LeetCode 404: Sum of Left Leaves

The trick? Distinguishing leaves from internal nodes:
- Leaf: !left && !right ❌🍃
- Internal: left && right ✅🌿

Pass a flag during recursion to track left children. Got 100% runtime! 🚀

#LeetCode #Algorithms #CodingInterview
December 22, 2025 at 1:12 PM
I accidentally ran git init in my HOME directory
VS Code kept warning "too many git commits" – ignored it for months.
Finally checked: 50,000+ commits in ~ 😂
Removed the .git folder & peace restored
Pro tip: NEVER git init in $HOME #git #programming #webdev #developers
December 18, 2025 at 5:17 PM
Unpopular opinion: React is NOT a framework. 🛑
It’s a library. The distinction matters.
Frameworks force architecture. React just gives you the LEGO bricks; you still have to build the house yourself (routing, state, styling).
Freedom = Responsibility. ⚛️
#ReactJS #WebDev
December 17, 2025 at 7:50 PM
Many people ignore constraints in DSA problems, but they are very important.

Constraints give a clear idea of the time complexity you should think about.
If operations are within ~10⁸, you already know which approach can work.
December 16, 2025 at 8:28 PM
Just updated my GitHub profile page.
Added a proper first page to it.
Go check it out
github.com/vagueman57
December 16, 2025 at 12:23 PM
Built a pixel-perfect clone of the Sheryians Coding School Cohort 2.0 landing page in 2 days. Learned flexbox, media queries, CSS variables, custom fonts, and responsive layouts. Fully responsive and added to my portfolio. Thanks
December 16, 2025 at 7:39 AM
Hi guys, I’m Rajiv.

I’ve been learning software development for some time.

From now on, I’ll start posting here and try to be regular.
I’ll share what I learn while building projects.
December 15, 2025 at 8:24 PM