#3300

Minimum Element After Replacement With Digit Sum

newbie · 135 · lc easy +13 · 84.7% accepted · 101 likes · top 96%

Description

You are given integer array nums. Replace every element with the sum of its digits. Return the minimum element in the resulting array.

Code

1
2
3