Given an array of strings names that contain first and last names adjecent to each other, return an array containing the full names (separated by one space)
Example:
Input: names = ["John", "Doe", "Andy", "Smith", "Mary", "Johnson"] Output: ["John Doe", "Andy Smith", "Mary Johnson"]
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check