Problem 3046 · Easy

Split the Array

A value can be split between the two halves only if it appears at most twice, so one count check decides the answer.

Open the interactive visualisation