← Salesforce questions
CodingReported in a candidate post, Jul 2025

Sum of all sub-number combinations of a given number

Filed under Salesforce

Given a number such as 123, compute the sum of all numbers formed by choosing digits in their original order (every non-empty subsequence of digits read as a number). For 123 this is…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

Collected from public candidate posts and coding forums. Updated Nov 2026.