MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / gcd

Function gcd

modules/gcd/gcd.js:9–12  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

7 var a, b, stack
8
9 function gcd(u, v){
10 stack.push({u: u, v: v})
11 return v ? gcd(v, u % v) : u
12 }
13
14 while (!stack.length || stack.length < 4 || stack.length > 5 || _.last(stack).u < 5){
15 a = 960 - Math.floor(Math.random()*400)

Callers 1

drawGCDFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected