← All problemsSign in

You Deserve Me !!

You are given two integer values A and B. Count the number of integers in the interval [A,B] that contain a single distinct digit. Input The first line contains two integers A and B. Output Output a single integer representing the number of values in the interval [A, B] containing a single distinct digit. Constraints - 1 ≤ A ≤ B ≤ 10^6 Example Input 5 11 output 6 Input 10 100 ou

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start