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

Function multiplication

javascript/0043-multiply-strings.js:27–35  ·  view source on GitHub ↗
(num1, num2, buffer)

Source from the content-addressed store, hash-verified

25};
26
27var multiplication = (num1, num2, buffer) => {
28 for (let i = num1.length - 1; 0 <= i; i--) {
29 /* Time O(N) */
30 for (let j = num2.length - 1; 0 <= j; j--) {
31 /* Time O(M) */
32 update(num1, i, num2, j, buffer); /* Space O(N + M) */
33 }
34 }
35};
36
37var removeLeadingZero = (buffer) => {
38 const isLeadZero = buffer[0] === 0;

Callers 1

multiplyFunction · 0.85

Calls 3

updateFunction · 0.70
reverseFunction · 0.70
reverseMethod · 0.45

Tested by

no test coverage detected