Remix.run Logo
AnotherGoodName a day ago

A + B mod n seems much easier than this.

tomsmeding a day ago | parent | next [-]

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

AnotherGoodName a day ago | parent [-]

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

BoiledCabbage a day ago | parent | prev [-]

Yup