Hacker News new | past | comments | ask | show | jobs | submit login

Might just be missing something, but isn't 9+9+9+9+3=39? The largest number I believe is 99930? Also, it could further optimize by terminating digit sum calculations earlier if sum goes above 30 or could not reach 30 (num digits remaining * 9 is less than 30 - current_sum). imo this is pretty far from "crushing it"





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: