MCPcopy
hub / github.com/skygragon/leetcode-cli / getUnit

Function getUnit

lib/helper.js:24–30  ·  view source on GitHub ↗
(units, v)

Source from the content-addressed store, hash-verified

22];
23
24function getUnit(units, v) {
25 for (let i = 0; i < units.length; ++i) {
26 if (units[i].count <= 0 || v < units[i].count)
27 return [v, units[i]];
28 v /= units[i].count;
29 }
30}
31
32const LANGS = [
33 {lang: 'bash', ext: '.sh', style: '#'},

Callers 1

helper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected