Kadane's Algorithm: The Complete Guide To Starting NewThe maximum subarray problem is a perfect example of how a seemingly simple problem can require much deeper thinking than you'd first expect. Here's what we're dealing with: you have a sequence of numbers in an array, some positive, some negative. Ho...6 min read·indentsandcolons.hashnode.devMay 27, 2025
Step-by-Step Solution to LeetCode 2765: Longest Alternating SubarrayIt’s currently ‘running streak’ week for me, and I’ve been tackling problems related to the maximum subarray sum problems. Today, 14 May 2025, I tackled LeetCode problem 2765: "Longest Alternating Subarray." Though LeetCode ranks this as "easy," I'd ...4 min read·indentsandcolons.hashnode.devMay 14, 2025
My Imperfect Path to Mastering Algorithms: Trading Perfection for MomentumI’ve been stuck in a limbo. I have always struggled with perfection and discomfort with abstraction, and sometimes I find myself doing a classic recursive child dialogue tree, asking 'why' and 'how' over and over again, with each answer spawning more...2 min read·indentsandcolons.hashnode.devMay 4, 2025