2 ms·
Off the top of my head, you can do a single mod 15 for the first case. I'm sure there are other micro optimizations, but really being able to write exactly what
by 0xffff2 8y ago
Off the top of my head, you can do a single mod 15 for the first case. I'm sure there are other micro optimizations, but really being able to write exactly what you did is sufficient to move on to real questions that actually have something to do with the job you're interviewing for.