Problem 1346 · Easy

Check If N and Its Double Exist

Decide whether two distinct positions contain a value and its double.

Open the interactive visualisation