MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / removeLeadingZero

Function removeLeadingZero

javascript/0043-multiply-strings.js:37–42  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

35};
36
37var removeLeadingZero = (buffer) => {
38 const isLeadZero = buffer[0] === 0;
39 if (!isLeadZero) return;
40
41 buffer.shift(); /* Time O(N + M) | Time O(N + M) */
42};
43
44var update = (num1, i, num2, j, buffer) => {
45 const curPos = i + j;

Callers 1

multiplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected