Tap here to switch tabs
Problem
Submissions

Problem: Compute Decimal Representation

med
30 min
Try to solve the Compute Decimal Representation problem.

Statement

Given a positive integer n, split it into its non-zero base-1010 place-value components and return them in descending order.

A base-1010 component is a number of the form dimes10kd imes 10^k, where 1≤d≤91 \leq d \leq 9 and k≥0k \geq 0. The sum of all returned components must equal n.

Constraints:

  • 1≤1 \leq n ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Compute Decimal Representation

med
30 min
Try to solve the Compute Decimal Representation problem.

Statement

Given a positive integer n, split it into its non-zero base-1010 place-value components and return them in descending order.

A base-1010 component is a number of the form dimes10kd imes 10^k, where 1≤d≤91 \leq d \leq 9 and k≥0k \geq 0. The sum of all returned components must equal n.

Constraints:

  • 1≤1 \leq n ≤109\leq 10^9