Search
⌘K

Leetcode 2243. Calculate Digit Sum of a String

Repeatedly partition the digit string into consecutive groups of size k, replace each group with the decimal string of the sum of its digits, and concatenate the results; stop and return the string once its length is ≤ k. This is a straightforward simulation focused on digit-summing and string manipulation.


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.