← Cisco questions

Find Happy Numbers in an Array

Filed under Cisco

Given an array of integers, return all numbers that are 'happy'. A happy number is defined by replacing the number with the sum of the squares of its digits and repeating until the number equals 1 or…

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 Cisco questions

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