← Google questions

Happy Number

Filed under Google · Also reported at DotPe

Write an algorithm to determine if a number n is a happy number. A happy number is a number defined by the following process: starting with any positive integer, replace the number by the sum of the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.