Dev
Mentor
Coach Interview AI
Mock Interview AI
Coding Problems
Blog
Pricing
Toggle theme
Sign In
Get Started
Toggle theme
Loading...
For the best coding experience, use a desktop browser.
Easy
Math
Happy Number Math
Detect happy number using cycle detection.
Examples
Input:
n = 19
Output:
true
Sample Test Cases
Case 1 Input:
19
Expected:
true
Reset
Run
Submit
Loading editor...
Test Case
Output
Submission
Case 1 Input:
19
Expected:
true