News for hackers. Stuff that matters.
Re:Show HN: Every Day Is Pi Day by tgb on Tuesday March 14, 2017 @09:29AM (#13867324)
That's easy to check even with just ctrl+f: the last six digits are 422990 which occur 8 times throughout that string. Hence, we could remove at least the last digit without losing anything.
Re:Show HN: Every Day Is Pi Day by oneeyedpigeon on Tuesday March 14, 2017 @12:20PM (#13868845)
It also includes sequences that can never match such as "999". I wonder if overwriting those with a non-digit would allow indexOf to be infinitesimally faster?