Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Some Dude
Why is "-1" not considered a happy number?

Some Dude

Jul 31, 2023

The question gives no constraints about the input being a positive number, and -1 will immediately go to a sum of 1.

2

0

Comments
Comments

On this page