2376. Count Special Integers
Created 08/14/2022
Input: n = 20
Output:
19
Explanation:
All the integers from 1 to 20, except 11, are special. Thus, there are 19 special integers.Input: n = 5
Output:
5
Explanation:
All the integers from 1 to 5 are special.Input: n = 135
Output:
110
Explanation:
There are 110 integers from 1 to 135 that are special.
Some of the integers that are not special are: 22, 114, and 131.Basic Idea
Java Code:
Last updated