Skip to content

Commit

Permalink
changed homepage in package
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorisSteenkamp committed Apr 9, 2021
1 parent 4e2bea3 commit e263937
Show file tree
Hide file tree
Showing 8 changed files with 420 additions and 405 deletions.
2 changes: 1 addition & 1 deletion browser/index.min.js

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion node/gcd/double/integer-gcd.d.ts
Expand Up @@ -7,6 +7,12 @@
* @doc
*/
declare function gcdInt(a: number, b: number): number;
/**
* Computes the greatest common divisor of two integers a and b, using the
* binary GCD algorithm - probably slower than just using gcdInt that uses
* the Euclidean Algorithm.
*/
declare function gcdIntBinary(a: number, b: number): number;
/**
* Naively computes and returns the greatest common divisor of 2 or more
* integers by taking each integer in turn and calculating the GCD of that
Expand All @@ -18,4 +24,19 @@ declare function gcdInt(a: number, b: number): number;
* @doc
*/
declare function gcdInts(vals: number[]): number;
export { gcdInt, gcdInts };
/**
* :::tip Heads up!
* don't use - too slow - use [[gcdInts]] instead
* :::
*
* Computes and returns the greatest common divisor of 2 or more integers by
* calculating GCDs rescursively using a tree (Divide and Conquer).
*
* * It turns out this method is *slower* than the naive method
*
* @param vals the integers for which the GCD is to be calculated
*
* @internal
*/
declare function gcdIntsTree(vals: number[]): number;
export { gcdInt, gcdInts, gcdIntsTree, gcdIntBinary };
7 changes: 6 additions & 1 deletion node/gcd/double/integer-gcd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/gcd/double/integer-gcd.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions node/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e263937

Please sign in to comment.