C# + Stack without reverse
Complexity\n- Time complexity:\nO(n * m)\n\n- Space complexity:\nO(n * m)\n\n# Code\n\npublic class Solution {\n    public int[] SeparateDigits(int[] nums) {\n 
# Complexity\n- Time complexity:\nO(n * m)\n\n- Space complexity:\nO(n * m)\n\n# Code\n```\npublic class Solution {\n    public int[] SeparateDigits(int[] nums) {\n        Stack<int> s = new ();\n        for(int i = nums.Length - 1; i >= 0; i--){\n            while(nums[i] > 0){\n                s.Push(nums[i] % 10);\n                nums[i] /= 10;\n            }\n        }\n        return s.ToArray();\n    }\n}\n```
['Stack', 'C#']