Except this is part of an assignment that is 15% of my grade, and I have time anyway.
Besides, once I start on a problem. I CAN'T STOP until I found the solution. Giving up is for the week.
There are math problems on which I spent >5 hours, just because I couldn't stand not solving them.
I suppose, although it's not giving up when you recognize that winning one battle will cost you then entire war, but you didn't have any time constraints so that's fine! Us stupid ppl have timed tests xD