overHaapyNumbers code logic

Could you help me the spot the possible error in code logic which is making the test cases to fail.

Hey i think there is some problem with test cases in java.Let me check the test cases.Till then try running your code on leetcode.
Link-https://leetcode.com/problems/happy-number/#:~:text=Happy%20Number%20-%20LeetCode&text=Write%20an%20algorithm%20to%20determine,number%20n%20is%20"happy".&text=Those%20numbers%20for%20which%20this,number%2C%20and%20False%20if%20not.

Hi Mohit,

This is working fine on Leet Code.
Also for the unique character string question, test cases are not designed to meet every possible scenario where code may fail. Please get that updated as well.
Thanks :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.