3 ms·
You're right. Thanks for the correction. I guess that demonstrates why it's important to have a REPL or a compiler available for the interviewee. (My computer
by davidcuddeback 14y ago
You're right. Thanks for the correction.
I guess that demonstrates why it's important to have a REPL or a compiler available for the interviewee. (My computer wasn't available at the time that I wrote the comment.) I just wrote up my solution and confirmed that its terminating condition isn't correct.