I was asked to write down a Java function sharedStr
that by given 2 sorted arrays of String
s, returns the number of String
s that appea
The fact that the arrays are sorted is a red herring, it is irrelevant to the solution.
Use a Map