LeetCode #1570 Dot Product of Two Sparse Vectors
The question is pretty simple once you understand the hint:
You should store the sparse vector efficiently.
We can use the dictionary data structure to solve this.
Link: LeetCode #1570 Dot Product of Two Sparse Vectors
/**
* @param {number[]} nums...
michelletanpy.hashnode.dev1 min read