Programming, Algorithms, Data, Tech, Web Development.
to vectors. Choice is yours. The point is, to find out whether Patrick does follow Liz, we should access the hashtable (constant time) and go through all items in the list comparing each element with “Liz” element (linear time). Linear time isn’t that bad at this point, because we have to loop over