© 2026 Hashnode
Imagine you've just created an algorithm, and it works lightning-fast on your brand-new computer. You're thrilled with the results and can't wait to share your success, so you ask your friend to give it a try. However, when your friend runs the same ...

Introduction: Why This Matters You're building a dashboard that displays sales data. You need to find the highest sale to set the Y-axis scale on your chart. Or maybe you're processing sensor data and need to identify peak values. Finding the maximum...

If you’re having a coding interview, and that you are overwhelmed by the number of coding problems out there, you’re not alone. Especially when you are in a hurry, you want to grasp as much problem solving skills as possible, and this article ( and o...

Your code works. It runs. It produces the right output. But here's the question nobody asks beginners: How well does it work? You write a function that searches through a list. It works for 10 items. It works for 100 items. But what happens when you ...

LeetCode 961: N-Repeated Element in Size 2N Array is usually solved with a simple Hash Set (O(N) space) or randomized checks. But recently, I challenged myself to solve it deterministically using O(1) space. The result? A modified version of Moore’s ...
