Tap here to switch tabs
Problem
Submissions

Problem: Separate the Digits in an Array

Separate the Digits in an Array asks you to return an array of the individual digits, preserving their left-to-right order and the order of numbers in the input array.

Statement

Given an array of positive integers nums, return an array containing the digits of each integer in nums, separated and ordered as they appear in the original array.

Separating the digits of an integer means extracting its individual digits in their original order from left to right.

Constraints:

  • 1≤1 \leq nums.length ≤1000\leq 1000

  • 1≤1 \leq nums[i] ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Separate the Digits in an Array

Separate the Digits in an Array asks you to return an array of the individual digits, preserving their left-to-right order and the order of numbers in the input array.

Statement

Given an array of positive integers nums, return an array containing the digits of each integer in nums, separated and ordered as they appear in the original array.

Separating the digits of an integer means extracting its individual digits in their original order from left to right.

Constraints:

  • 1≤1 \leq nums.length ≤1000\leq 1000

  • 1≤1 \leq nums[i] ≤105\leq 10^5