Count Numbers With One Different Digit

Asked at Capital One · Coding Questions · Difficulty: Medium

Given an array of numbers, count the pairs of numbers that have the same number of digits but differ by exactly one digit.

Loading the problem…