Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.