Problem 2442 · Medium

Count Number of Distinct Integers After Reverse Operations

Add each number and its digit reversal to a hash set; the set size is the count of distinct integers.

Open the interactive visualisation