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

Function reverse

javascript/0043-multiply-strings.js:102–105  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

100};
101
102const reverse = (s) =>
103 s
104 .split('') /* Time O(K) | Space O (K) */
105 .reverse(); /* Time O(K) */
106
107var update = (num1, i1, num2, i2, buffer) => {
108 const product = num1[i1] * num2[i2];

Callers 1

multiplicationFunction · 0.70

Calls 1

reverseMethod · 0.45

Tested by

no test coverage detected