Hi all,
I seem to have quite a bit of trouble solving even leetcode easy binary search problems in comparison to other leetcode problem types (solved 300+ problems so far). Does anyone have any advice/resources on how to get better at them (other than just practicing them of course)?
A lot of what I struggle with are the different edges cases that pop-up
What ends up occurring is that I normally end up writing a search algorithm and then spend forever trying to fix every edge case that comes up and ultimately end up with a hacky mess.