1.

Which is the smallest number of 3 digits that is divisible by 2, 4, 8?(a) 100(b) 102(c) 116(d) 104The question was asked at a job interview.The doubt is from GCD LCM recursion topic in portion Recursion of Data Structures & Algorithms II

Answer»

Right option is (d) 104

Best explanation: LCM of 2, 4, 8 is 8. So check for the number that is DIVISIBLE by 8. So 104 is the SMALLEST number that is divisible by 2, 4, 8.



Discussion

No Comment Found

Related InterviewSolutions