[Solved] Count of non-repeating digits
The question is ambiguous, since there’s two reasonable ways of interpreting “repeated digit”. First, a number has a “repeated digit” if it has the same digit twice or more in succession. For example 12334 has a repeated digit (3). Second, a number has a repeated digit if the same digit appears twice. So 1231 would … Read more