Problem 3002 · Medium
Keep values that appear in only one array first, then fill the spare slots with values shared by both.
Open the interactive visualisation