NIKE interview question

Multiply numbers without using multiply operation or Math library.

Interview Answer

Anonymous

Sep 7, 2022

// 0+1 0+1+1 0+1+1+1 // 0+2 0+2+2 0+2+2+2 const mul = (a,b) => { let repAdd = 0; if(a<=b){ for(let i=0; i