Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
AnotherGoodName
· 11mo ago · 0 comments
A + B mod n seems much easier than this.
Comments
[–]
tomsmeding
11mo ago
The method proposed is just A - B mod n. The two are entirely equivalent.
[–]
AnotherGoodName
OP
11mo ago
A few extra steps to essentially manually do the mod part tbh. Would take their 20 line program to a 1 liner.
[–]
BoiledCabbage
11mo ago
Yup