Leetcode 3099. Harshad Number
Compute the sum of digits of the given integer x and return that sum if x is divisible by it (i.e., x is a Harshad number); otherwise return -1.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.