Skip to content

Commit 7e528e7

Browse files
Create Hello World Function
1 parent fea566f commit 7e528e7

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

2553

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
};

readMe.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ I'am Started to solving Leet code solutions in JavaScript. I don't know how much
44

55
Let me know what you think and how you can help
66

7-
Total Solved 46 Problems
7+
Total Solved 47 Problems
88

99
| Problem no: | Problem | Category | Difficulty |
1010
| ----------- | -------------------------------------------------------- | -------- | ---------- |
@@ -46,6 +46,7 @@ Let me know what you think and how you can help
4646
| 2418 | Sort the People | Array | Easy |
4747
| 2535 | Difference Between Element Sum and Digit Sum of an Array | Array | Easy |
4848
| 2540 | Minimum Common Value | Array | Easy |
49+
| 2553 | Create Hello World Function | Array | Easy |
4950
| 2619 | Array.Prototype.Last | Array | Easy |
5051
| 2620 | Counter | Array | Easy |
5152
| 2621 | Sleep | Array | Easy |
@@ -55,4 +56,4 @@ Let me know what you think and how you can help
5556
| 2665 | Counter II | Array | Easy |
5657
| 2667 | Create Hello World Function | .. | Easy |
5758

58-
Total Solved 46 Problems
59+
Total Solved 47 Problems

0 commit comments

Comments
 (0)