ADP Interview Question for Developer Program Engineers
- 0of 0 votes
I was asked this during a recent interview.- kloblivioner April 18, 2014 in United States
Lucky number – a number is a lucky number if it comprises of combination of 4′s and 7′s.
For example , if 32 is the input number, the next nearest lucky number would be 44.
43 -> 44
45 -> 47
1004 -> 4444
Input number can be of any digits.
Design an algorithm that will take any random number and return its next lucky number
| Report Duplicate | Flag | PURGE
ADP Developer Program Engineer Algorithm
Open Chat in New Window