Special Numbers You are given an integer, ‘MAXVAL’. Your task is to determine the total number of special numbers present in the range, 1 to ‘MAXVAL’. Note: A special number is a number, which when rotated 180 degrees, resembles some other number in the same range. Every digit of a special number must be a valid digit....
read more
CodingNinjas
author
2y
Tip 1:
Tip 2:
Tip 3:
CodingNinjas
author
2y
Check all numbers independentlyThe approach is to loop through all the numbers in the given range one by one and check whether this number is a special number or not. We can check if a number is speci...
see more
CodingNinjas
author
2y
Checking numbers having only special digitsThe approach is to observe the fact that any special number will only have special digits in it. So, instead of checking all the numbers in the range, 1 to ‘...
see more
Add answer anonymously...
Top Google Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Google Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app