All work

Select view

Select search mode

 

gcd would be faster with rem

Description

`gcd` calls `mod`. The code already guarantees that the both arguments are positive so in this case, `rem` could be used instead to get the same result, but with a slight performance improvement.

Environment

None

Details

Assignee

Reporter

Priority

Created September 4, 2018 at 4:52 PM
Updated September 4, 2018 at 4:52 PM

Activity

Flag notifications