Blue on Nostr: Huh, this #Leetcode problem ...
Huh, this #Leetcode problem (https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/) could have been solved with a call to a lower_bound and then to the upper_bound (if lower bound found anything).
But for some reason I decided to write those binary searches by hand. Why do I hate myself and everything that feels like a quality of life improvement seems like cheating to me?
But for some reason I decided to write those binary searches by hand. Why do I hate myself and everything that feels like a quality of life improvement seems like cheating to me?