TheChetan icon

Sum Of Substrings

TheChetan | PRO | 07/19/21 11:18:51 AM UTC (Edited) | 0 ⭐ | 1011 👁️ | Never ⏰ | []
text |

190 B

|

None

|

0 👍

/

0 👎

3. Given a positive integer. Find the sum of all of it's substrings.
 4256 -> 4, 2, 5, 6, 42, 25, 56, 425, 256, 4256
Ans: 5077
  Note that 45, 46 etc are not present as they are not substrings

Comments