Given two parallel arrays, names[i] and cities[i] describing employee i, sort the employees by name, and for equal names by city. Return the two arrays reordered consistently.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.