HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by AnotherGoodName | Hacker News Reader
Full thread
AnotherGoodName
·
A + B mod n seems much easier than this.
View on HN
tomsmeding
·
The method proposed is just A - B mod n. The two are entirely equivalent.
AnotherGoodName
·
A few extra steps to essentially manually do the mod part tbh. Would take their 20 line program to a 1 liner.
BoiledCabbage
·
Yup
Reply on news.ycombinator.com