Problem 3438 · Easy

Find Valid Pair of Adjacent Digits in String

Count each digit, then return the first adjacent pair of different digits where each digit appears exactly its own value many times.

Open the interactive visualisation