Problem 3002 · Medium

Maximum Size of a Set After Removals

Keep values that appear in only one array first, then fill the spare slots with values shared by both.

Open the interactive visualisation