Problems > Harshad Number > Editorial

Harshad Number — Solution & Editorial

Back to the Problem

Compute the digit sum and test divisibility.

Complexity: O(√N) or better