Loading repovive.com/problems/faang/2
This problem is based on a Meta interview problem described here.
A positive integer is called uniform if all of its digits are the same. For example, 1, 22, 333, 4444, and 999999999 are uniform integers, while 10, 121, and 9998 are not.
Given two integers A and B, count the number of uniform integers in the inclusive range [A,B].
AB
ans
75 300
5
1 9
9
5 1111
24