Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mzusin committed Jul 15, 2024
1 parent 57d21aa commit 654b7a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ export const polarToCartesian = (center: Vector2, radii: Vector2, angleInRad: nu
/**
* Greatest common divisor (GCD).
* O( log(min(num1, num2)) ).
*
* GCD is always defined as a non-negative number.
* If num2 is 0, then the GCD is num1.
* Otherwise, the GCD of num1 and num2 is the same as the GCD of num2 and num1 % num2.
*
* a=48,𝑏=18 ---> 48 % 18 = 12
* a=18,b=12 ---> 18 % 12 = 6
Expand Down

0 comments on commit 654b7a1

Please sign in to comment.