Overflow Pirates
@OverflowPirates
Followers
114
Following
1K
Media
117
Statuses
591
๐ดโโ ๏ธ Overflow Pirates ๐ป Go backend & full-stack adventures ๐ Teaching dev wisdom like anime arcs ๐ดโโ ๏ธ Sailing for my next tech adventure
East Blue
Joined July 2021
Congrats, Team India Women! ๐๐ World Champions โ youโve brought the joy and pride home! Every inning, every victory, every moment made the nation proud๐ฎ๐ณ #WorldChampions #indwvssaw
0
0
2
Writing perfect TypeScript types for 3 hours... then fixing one error with as any ๐
0
0
1
Why are Indian https://t.co/Yi7uVTqzvp colleges obsessed with Turbo C? You open VS Code and suddenly you're the villain of the syllabus ๐ญ Let me code in peace, not in 1995. Is your college like this, too, or is it just mine?
1
0
1
Node.js built the web. ๐ Bun is rebuilding it โ faster. โก Node = stable, proven Bun = fast, all-in-one (runtime + bundler + test runner) Same goal. New speed. Which one are you using? ๐ #JavaScript #NodeJS #Bun
0
0
1
IDE auto-complete is killing real learning. You think you โknowโ code until the interview asks you to write syntax from scratch ๐
1
0
1
Just installed Cursor free version ๐ Any tips on using it efficiently, or should I go premium? Let me know your thoughts ๐
1
0
1
Which is the best source of learning Machine learning online? Please give some #suggestions
0
0
1
This keeps counts aligned with the original array, even though merge sort keeps rearranging elements. Final complexity โ O(n log n), space O(n). Clean, reliable way to solve the problem using merge sort in Java.
0
0
1
To keep results in the correct order, maintain an indexes[] array that stores each elementโs original position. When you update counts, use that original index: counts.set(indexes[left], counts.get(indexes[left]) + rightTaken);
1
0
1
During the merge: If rightVal < leftVal, move the right element and increase a counter (rightTaken). When placing a left element, add rightTaken to its result because those many smaller elements came from the right side.
1
0
1
For LeetCode 315 โ Count of Smaller Numbers After Self, the merge-sort approach counts smaller elements as it merges. Hereโs how it works in Java ๐
1
0
1
This keeps counts aligned with the original array, even though merge sort keeps rearranging elements. Final complexity โ O(n log n), space O(n). Clean, reliable way to solve the problem using merge sort in Java.
0
0
1
To keep results in the correct order, maintain an indexes[] array that stores each elementโs original position. When you update counts, use that original index: counts.set(indexes[left], counts.get(indexes[left]) + rightTaken);
1
0
1
During the merge: If rightVal < leftVal, move the right element and increase a counter (rightTaken). When placing a left element, add rightTaken to its result because those many smaller elements came from the right side.
1
0
1
Does anyone else absolutely struggle to solve LeetCode 315 'Count of Smaller Numbers After Self' with merge sort? ๐ตโ๐ซ If merge sort made you want to pull your hair out, how did you finally crack it? Share your tips
2
0
2
Hey, I'm looking to #connect with those interested in: Web Development Web3 Blockchain Frontend / Backend System Design React / Next.js UI / UX Open Source SaaS Startups Freelancing Golang DSA #letsconnect
2
0
3
Delete LinkedIn. Delete Insta. Make friends on X. Start coding ๐จโ๐ป Am I right???
0
0
1
My code right now: Literally collapsing Me: adds try-catch block Everythingโs fine ๐ญ
0
0
1