What is the time and space complexity of an algorithm, which calculates the dot product between two vectors with the length n?
algorithm complexity-theory vector
algorithm ×1
complexity-theory ×1
vector ×1