string and vector implementation seems to be identical, are they really the same or is that a typo?
Is that a typo?
most of the functions of string and vectors are same. Hence there implementation seems to be identical. But there are some properties which strings have but vector doesn’t.
Like s1=“a”,s2=“b”, so if s3=s1+s2, s3 will become “ab”, but vectors doesn’t have this property.
I think there is a some typos in the given pdf , in string comparator part.
comparator implementation is usually same for both strings and vector.
only thing to notice is that in string comparator, u need to compare characters.
I think there are some typo in the given pdf, in string comparator part.
Will try to get them resolved asap.