4 ms·
After submitting, I was embarrassed when I compared my solution to other people's elegant 4 liners. But then I had another look at my code and it captures exac
by johkra 16y ago
After submitting, I was embarrassed when I compared my solution to other people's elegant 4 liners.
But then I had another look at my code and it captures exactly how I thought about the problem. I think I would be happy to write code like this in an interview.