Binary search requires O(log n) time complexity, but only if your array is sorted first. Otherwise you're just randomly guessing in the middle of chaos. Kind of like trying to find the exact moment your life went off the rails by checking your mid-twenties, then your teens, then... wait, it's all unsorted? Always has been.
The brutal honesty here is that you can't efficiently debug your life decisions when they're scattered across time in no particular order. You need that sweet O(log n) efficiency, but instead you're stuck with O(n) linear search through every regret. Sort yourself out first, then we'll talk algorithms.
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp