I Spent 30 Minutes Looking for a Trick That Didn’t Exist

Sometimes while solving DSA problems, I feel my brain has its own algorithm.