Given two same-sized integer vectors prevvalues and newvalues, which assigns eq with 1 if the vectors are equal, and 0 otherwise. How many operations does this algorithm require?
a) O(1)
b) O(n)
c) O(n log n)
d) O(n²)

Q&A Education