57
rated 0 times
[
58]
[
1]
/ answers: 1 / hits: 7414
/ 3 Years ago, fri, november 13, 2020, 12:00:00
const a = [1,2,3]
const b = [1,0,1]
const c = dotProduct(a,b) // will equal 4
What's an efficient way of implementing the dotProduct method without importing any new libraries?
More From » javascript