Fade to Solo
Math & Geometry

Happy Number

NO NETEleetcode ↗

Problem

A number is "happy" if repeatedly replacing it with the sum of the squares of its digits eventually reaches 1. Determine whether a given positive integer is happy.

NO NET00:00
no net — stays locked