1MS || ✅🔥BEATS 100% PROOF🔥 || 💡CONCISE CODE✅ || 🌟JAVA || 🧑‍💻 BEGINNER FREINDLY
Code
![Screenshot 2025-01-13 173852.png](https://assets.leetcode.com/users/images/8eb1ea09-f25f-46c8-8de4-d33421e72b9c_1736950746.9027498.png)


# Code
```java []
class Solution {
    public int[] separateDigits(int[] nums) {
        int size = 0;
        for (int i : nums) {
            while (i > 0) {
                size++;
                i /= 10;
            }
        }

        int[] arr = new int[size];
        for (int i = nums.length - 1; i >= 0; i--) {
            int temp = nums[i];
            while (temp > 0) {
                arr[--size] = temp % 10;
                temp /= 10;
            }
        }
        return arr;
    }
}
```
![7b3ed9e7-75a3-497e-85ef-237ed4f4fef7_1735690315.3860667.png](https://assets.leetcode.com/users/images/16fcd271-1fdb-425a-8114-725d5eca2f44_1736950858.4816241.png)


['Java']