Search
⌘K

Leetcode 1085. Sum of Digits in the Minimum Number

Given an array of integers, find the minimum element and return the sum of its decimal digits. This requires scanning to get the minimum (O(n)) and computing its digit sum (O(log value)).


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.