Left Sidebar
Showing posts with the label Happy NumberShow all
How to check if a given number is a Happy Number?
Champak Roy
November 27, 2021
What is a Happy Number? (This is a question that is asked often in Coding Interviews and also in programming assignments in schools and college courses) A Happy Number is a number where the sum of di…
Interview Questions: Write programs to do the following.
Champak Roy
August 20, 2021
Check for a Perfect Number A perfect number is a number that is equal to the sum of its proper divisors. Eg 6 is a perfect number because its proper divisors are 1, 2 and 3 where 1+2+3=6. Another pe…