Skip to content

Commit 2681055

Browse files
authored
chore: sync-up catalog (#383)
- digit-star-digit => square-every-digit (7-kyu) - subtract-the-sum => never-visit-a (8-kyu) - n-th-power (8-kyu => retired) - base-factorial-converter (beta => retired) - vampire-numbers-2 (beta => retired)
1 parent f55f34e commit 2681055

File tree

20 files changed

+25
-27
lines changed

20 files changed

+25
-27
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ slug.
2525

2626
| [1 kyu](/kata/1-kyu/index.md) | [2 kyu](/kata/2-kyu/index.md) | [3 kyu](/kata/3-kyu/index.md) | [4 kyu](/kata/4-kyu/index.md) | [5 kyu](/kata/5-kyu/index.md) | [6 kyu](/kata/6-kyu/index.md) | [7 kyu](/kata/7-kyu/index.md) | [8 kyu](/kata/8-kyu/index.md) | [beta](/kata/beta/index.md) | [retired](/kata/retired/index.md) |
2727
|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:-----------------------------:|:---------------------------:|:---------------------------------:|
28-
| - | 1 | 2 | 18 | 36 | 410 | 545 | 201 | 59 | 73 |
28+
| - | 1 | 2 | 18 | 36 | 410 | 545 | 200 | 57 | 76 |
2929

3030
**Note:** The source code is written in Java 17 and may use language features that are incompatible
3131
with Java 8, 11.

kata/7-kyu/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@
127127
- [Dice Rotation](dice-rotation)
128128
- [Difference between two collections](difference-between-two-collections)
129129
- [Difference between years. (Level 1)](difference-between-years-level-1)
130-
- [Digit*Digit](digit-star-digit)
131130
- [Digits explosion](digits-explosion)
132131
- [Disagreeable ascii](disagreeable-ascii)
133132
- [Disarium Number (Special Numbers Series #3)](disarium-number-special-numbers-series-number-3)
@@ -468,6 +467,7 @@
468467
- [Split By Value](split-by-value)
469468
- [Split In Parts](split-in-parts)
470469
- [Spoonerize Me](spoonerize-me)
470+
- [Square Every Digit](square-every-digit)
471471
- [Square Pi's](square-pis)
472472
- [Stacked Balls - 2D](stacked-balls-2d)
473473
- [Stacked Balls - 3D (square base)](stacked-balls-3d-square-base)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# [Digit*Digit](https://www.codewars.com/kata/digit-star-digit "https://www.codewars.com/kata/546e2562b03326a88e000020")
1+
# [Square Every Digit](https://www.codewars.com/kata/square-every-digit "https://www.codewars.com/kata/546e2562b03326a88e000020")
22

33
Welcome. In this kata, you are asked to square every digit of a number and concatenate them.
44

5-
For example, if we run 9119 through the function, 811181 will come out, because 9<sup>2</sup> is 81
6-
and 1<sup>2</sup> is 1. (81-1-1-81)
5+
For example, if we run 9119 through the function, 811181 will come out, because 9<sup>2</sup> is 81 and 1<sup>2</sup> is
6+
1. (81-1-1-81)
77

8-
Example #2: An input of 765 will/should return 493625 because 7<sup>2</sup> is 49, 6<sup>2</sup> is
9-
36, and 5<sup>2</sup> is 25. (49-36-35)
8+
Example #2: An input of 765 will/should return 493625 because 7<sup>2</sup> is 49, 6<sup>2</sup> is 36, and 5<sup>
9+
2</sup> is 25. (49-36-25)
1010

1111
**Note:** The function accepts an integer and returns an integer.
File renamed without changes.

kata/7-kyu/digit-star-digit/test/SquareDigitTest.java renamed to kata/7-kyu/square-every-digit/test/SquareDigitTest.java

File renamed without changes.

kata/8-kyu/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
- [Multiply](multiply)
139139
- [My head is at the wrong end!](my-head-is-at-the-wrong-end)
140140
# N
141-
- [N-th Power](n-th-power)
141+
- [Never visit a . . . !?](never-visit-a)
142142
- [No zeros for heroes](no-zeros-for-heros)
143143
# O
144144
- [OOP: Object Oriented Piracy](oop-object-oriented-piracy)
@@ -184,7 +184,6 @@
184184
- [String repeat](string-repeat)
185185
- [String Templates - Bug Fixing #5](string-templates-bug-fixing-number-5)
186186
- [Stringy Strings](stringy-strings)
187-
- [Subtract the Sum](subtract-the-sum)
188187
- [Sum Arrays](sum-arrays)
189188
- [Sum Mixed Array](sum-mixed-array)
190189
- [Sum of differences in array](sum-of-differences-in-array)
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
# [Subtract the Sum](https://www.codewars.com/kata/subtract-the-sum "https://www.codewars.com/kata/56c5847f27be2c3db20009c3")
1+
# [Never visit a . . . !?](https://www.codewars.com/kata/never-visit-a "https://www.codewars.com/kata/56c5847f27be2c3db20009c3")
22

3-
<span style="color:red">_NOTE! This kata can be more difficult than regular 8-kyu katas_</span>
3+
<span style="color:red">_NOTE! This kata can be more difficult than regular 8-kyu katas (lets say 7 or 6 kyu)_</span>
44

5-
Complete the function which get an input number `n` such that `n >= 10` and `n < 10000`, then:
6-
1. Sum all the digits of `n`.
7-
2. Subtract the sum from `n`, and it is your new `n`.
8-
3. If the new `n` is in the list below return the associated fruit, otherwise return back to task 1.
5+
Complete the function which get an input number `n` such that `n >= 10` and `n < 10000`, then:
6+
1. Sum all the digits of `n`.
7+
2. Subtract the sum from `n`, and it is your new `n`.
8+
3. If the new `n` is in the list below return the associated fruit, otherwise return back to task 1.
99

1010
### Example
11-
n = 325
12-
sum = 3+2+5 = 10
13-
n = 325-10 = 315 (not in the list)
14-
sum = 3+1+5 = 9
15-
n = 315-9 = 306 (not in the list)
16-
sum = 3+0+6 = 9
17-
n =306-9 = 297 (not in the list)
11+
12+
n = `325`
13+
sum = `3+2+5` = `10`
14+
n = `325-10` = `315` (not in the list)
15+
sum = `3+1+5` = `9`
16+
n = `315-9` = `306` (not in the list)
17+
sum = `3+0+6` = `9`
18+
n =`306-9` = `297` (not in the list)
1819
.
1920
.
2021
.
2122
...until you find the first n in the list below.
2223

23-
2424
There is no preloaded code to help you.
2525
_This is not about coding skills; think before you code_
2626

27-
2827
```
2928
1-kiwi
3029
2-pear
@@ -126,5 +125,4 @@ _This is not about coding skills; think before you code_
126125
98-pineapple
127126
99-apple
128127
100-pineapple
129-
130128
```
File renamed without changes.
File renamed without changes.

kata/beta/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# B
44
- [Bad Collection?](bad-collection)
55
- [BAD Hash - String to String](bad-hash-string-to-string)
6-
- [Base Factorial Converter](base-factorial-converter)
76
- [Basic Arabic-To-Roman Numerals (1 to 999)](basic-arabic-to-roman-numerals-1-to-999)
87
- [Beginner friendly: remove the letter o](beginner-friendly-remove-the-letter-o)
98
- [Brackets Checker](brackets-checker)
@@ -65,7 +64,6 @@
6564
- [Tinder for Programmers](tinder-for-programmers)
6665
- [Tug-o'-War](tug-o-war)
6766
# V
68-
- [Vampire Numbers](vampire-numbers-2)
6967
- [Very Simple Inheritance for Beginners](very-simple-inheritance-for-beginners)
7068
# W
7169
- [Weton](weton)

0 commit comments

Comments
 (0)