Coming up with a working algorithm took about 30 seconds (I got lucky, not brilliant), but it stretched my brain in an interesting way.
That's different from practice sites like leetcode, which have pretty cookie cutter problems. On problems like this one, sometimes:
- I get it in a few seconds, like this case
- Get it in a few minutes
- Get it in a few hours
- Give up and look up the solution
A fun problem a day would be, well, fun.
Coming up with a working algorithm took about 30 seconds (I got lucky, not brilliant), but it stretched my brain in an interesting way.
That's different from practice sites like leetcode, which have pretty cookie cutter problems. On problems like this one, sometimes:
- I get it in a few seconds, like this case
- Get it in a few minutes
- Get it in a few hours
- Give up and look up the solution
A fun problem a day would be, well, fun.