Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 04fefc9

Browse files
committed
kata link
1 parent 8d37147 commit 04fefc9

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

codewars/array-helpers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ numbers.even(); // must return [2, 4]
2323
numbers.odd(); // must return [1, 3, 5]
2424
```
2525

26+
**Kata's link:** [Array Helpers](http://www.codewars.com/kata/array-helpers)
27+
2628
#Best practice
2729

2830
**First:**
@@ -34,5 +36,3 @@ Array.prototype.sum = function () { return this.reduce(function(a, b) { retu
3436
Array.prototype.even = function () { return this.filter(function(item) { return 0 == item % 2; }); }
3537
Array.prototype.odd = function () { return this.filter(function(item) { return 0 != item % 2; }); }
3638
```
37-
38-
Kata's link: [Array Helpers](http://www.codewars.com/kata/array-helpers)

codewars/palindrome-for-your-dome.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You can see that they are case insensitive and disregards non alphanumeric chara
1717

1818
NOTE: reverse/reverse! have been disabled for String/Array and reverse() for JS.
1919

20+
**Kata's link:** [Palindrome for your Dome](http://www.codewars.com/kata/palindrome-for-your-dome/)
21+
2022
#Best practice
2123

2224
**First:**
@@ -65,6 +67,4 @@ function palindrome(string) {
6567
.every(function(v, i, array){ return v == array[array.length-i-1] })
6668
;
6769
}
68-
```
69-
70-
Kata's link: [Palindrome for your Dome](http://www.codewars.com/kata/palindrome-for-your-dome/)
70+
```

codewars/sum-of-many-ints.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ f(n=10, m=5) // returns 20 (1+2+3+4+0 + 1+2+3+4+0)
1212

1313
You'll need to get a little clever with performance, since n can be a very large number
1414

15+
**Kata's link:** [Sum of many ints](http://www.codewars.com/kata/sum-of-many-ints/)
16+
1517
#Best practice
1618

1719
**First:**
@@ -55,7 +57,4 @@ function f(n, m) {
5557
function f(n, m) {
5658
return ~~(n/m)*m*(m-1)/2 + n%m * (n%m + 1)/2;
5759
}
58-
```
59-
60-
Kata's link: [Sum of many ints](http://www.codewars.com/kata/sum-of-many-ints/)
61-
60+
```

codewars/who-likes-it.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ likes ["Alex", "Jacob", "Mark", "Max"] // must be "Alex, Jacob and 2 others like
1313
```
1414
For more than 4 names, the number in `and 2 others` simply increases.
1515

16+
**Kata's link:** [Who likes it?](http://www.codewars.com/kata/who-likes-it/)
17+
1618
#Best practice
1719

1820
**First:**
@@ -31,6 +33,4 @@ function likes (names) {
3133
return val === '{name}' ? names.shift() : names.length;
3234
});
3335
}
34-
```
35-
36-
Kata's link: [Who likes it?](http://www.codewars.com/kata/who-likes-it/)
36+
```

0 commit comments

Comments
 (0)