Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/randhir200/individual-sum-of-digit

You are given an arrayAofNintegers. You have to find the sum of the individual digit sum of all the elements in the array The digit sum here refers to the sum of digits, present in a given element Refer the sample I/O for better understanding, 12 -> 1 + 2 = 3 14 -> 1 + 4 = 5 16 -> 1 + 6 = 7 17 -> 1 + 7 = 8 29 -> 2 + 9 = 11 Therefore, the output is3 + 5 + 7 + 8 + 11 = 34.
https://github.com/randhir200/individual-sum-of-digit

Last synced: 1 day ago
JSON representation

You are given an arrayAofNintegers. You have to find the sum of the individual digit sum of all the elements in the array The digit sum here refers to the sum of digits, present in a given element Refer the sample I/O for better understanding, 12 -> 1 + 2 = 3 14 -> 1 + 4 = 5 16 -> 1 + 6 = 7 17 -> 1 + 7 = 8 29 -> 2 + 9 = 11 Therefore, the output is3 + 5 + 7 + 8 + 11 = 34.

Awesome Lists containing this project