Hacker News new | ask | show | jobs
by llimllib 6409 days ago
Works, but not as efficient as possible. Look at patio11's solution; you only need to throw it away and repeat if it's >= 21. Otherwise you can just take n mod 7.