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.
Add each number and its digit reversal to a hash set; the set size is the count of distinct integers.