File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change
1
+
2
+ // Separate the Digits in an Array
3
+
4
+ /**
5
+ * @param {number[]} nums
6
+ * @return {number[]}
7
+ */
8
+ var separateDigits = function (nums) {
9
+ var output = [];
10
+
11
+ nums = nums.join('').split('')
12
+
13
+ for (x of nums) {
14
+ output.push(+x)
15
+ }
16
+
17
+ return output
18
+ };
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ I'am Started to solving Leet code solutions in JavaScript. I don't know how much
4
4
5
5
Let me know what you think and how you can help
6
6
7
- Total Solved 46 Problems
7
+ Total Solved 47 Problems
8
8
9
9
| Problem no: | Problem | Category | Difficulty |
10
10
| ----------- | -------------------------------------------------------- | -------- | ---------- |
@@ -46,6 +46,7 @@ Let me know what you think and how you can help
46
46
| 2418 | Sort the People | Array | Easy |
47
47
| 2535 | Difference Between Element Sum and Digit Sum of an Array | Array | Easy |
48
48
| 2540 | Minimum Common Value | Array | Easy |
49
+ | 2553 | Create Hello World Function | Array | Easy |
49
50
| 2619 | Array.Prototype.Last | Array | Easy |
50
51
| 2620 | Counter | Array | Easy |
51
52
| 2621 | Sleep | Array | Easy |
@@ -55,4 +56,4 @@ Let me know what you think and how you can help
55
56
| 2665 | Counter II | Array | Easy |
56
57
| 2667 | Create Hello World Function | .. | Easy |
57
58
58
- Total Solved 46 Problems
59
+ Total Solved 47 Problems
You can’t perform that action at this time.
0 commit comments