News for hackers. Stuff that matters.
Re:Most common phone interview question at Google by eesmith on Saturday May 02, 2020 @03:12PM (#23054131)
For another value of N it's three orders of magnitude faster.

In the example case where s[0] == s[1], it might be an order of magnitude slower, if there's much object initialization for the lookup table.

There are no comments on this comment yet.