The signature of the function takes an integer as input. But the description says it takes an unsigned int as input. The test case also includes 1x10^32.
close, since there is no way for declaring a int is unsigned in Java
declaring the function to take (long n) is allowed ... however OJ testcases still fail.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.