Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A + B mod n seems much easier than this.


The method proposed is just A - B mod n. The two are entirely equivalent.


A few extra steps to essentially manually do the mod part tbh. Would take their 20 line program to a 1 liner.


Yup




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

Search: