I am curious to know how long people try to solve an LC. problem on their own before looking for hints or a suggested solution. 10 minutes, 30 minutes, 60 minutes, more...?
On the one hand, we should try hard to solve the problem ourselves. We're going to get little to no help in the interview. If you always just look up the answer as soon as you get stuck, then you will learn little.
On the other hand, it makes no sense to spenf hours on a problem when there are so many others to solve. Just look at the answer for this one and then move on to the next.