Skip to content

Commit f1eb8db

Browse files
committed
1 parent 3f07b6c commit f1eb8db

File tree

34 files changed

+88
-77
lines changed

34 files changed

+88
-77
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-
| - | - | 2 | 11 | 19 | 388 | 525 | 192 | 60 | 63 |
28+
| - | - | 2 | 11 | 19 | 388 | 523 | 192 | 59 | 66 |
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/6-kyu/index.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
- [Wave Sorting](wave-sorting)
393393
- [We are the Robots d[(0)(0)]b](we-are-the-robots-d-0-0-b)
394394
- [What century is it?](what-century-is-it)
395-
- [What's in a name?](whats-in-a-name)
395+
- [What's A Name In?](whats-a-name-in)
396396
- [What's Your Poison?](whats-your-poison)
397397
- [What's your running pace?](whats-your-running-pace)
398398
- [When greatest is less than smallest](when-greatest-is-less-than-smallest)

β€Žkata/6-kyu/whats-in-a-name/README.mdβ€Ž renamed to β€Žkata/6-kyu/whats-a-name-in/README.mdβ€Ž

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
# [What's in a name?](https://www.codewars.com/kata/whats-in-a-name "https://www.codewars.com/kata/59daf400beec9780a9000045")
1+
# [What's A Name In?](https://www.codewars.com/kata/whats-a-name-in "https://www.codewars.com/kata/59daf400beec9780a9000045")
22

33
..Or rather, what's a name in? For us, a particular string is where we are looking for a name.
44

55
## Task
66

7-
Test whether or not the string contains all of the letters which spell a given name, in order.
7+
Write a function, taking two strings in parameter, that tests whether the first string
8+
contains all the letters of the second string, in order.
89

9-
## The format
10-
A function passing two strings, searching for one (the name) within the other.
11-
``function nameInStr(str, name){ return true || false }``
10+
The function should return `true` if that is the case, and else `false`.
11+
Letter comparison should be case-INsensitive.
1212

1313
## Examples
1414

15+
```
1516
nameInStr("Across the rivers", "chris") --> true
1617
^ ^ ^^ ^
1718
c h ri s
@@ -42,6 +43,4 @@ A function passing two strings, searching for one (the name) within the other.
4243
4344
Contains all of the correct letters in "Allison", in order,
4445
but not enough of all of them (missing an 'l').
45-
46-
47-
Note: testing will _not_ be case-sensitive.
46+
```
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# [Consecutive Digits To Form Sum](https://www.codewars.com/kata/consecutive-digits-to-form-sum "https://www.codewars.com/kata/5dae2599a8f7d90025d2f15f")
2+
3+
Positive integers have so many gorgeous features.
4+
Some of them could be expressed as a sum of two or more consecutive positive numbers.
5+
6+
### Consider an Example :
7+
8+
* `10` could be expressed as the sum of `1 + 2 + 3 + 4 `.
9+
10+
___
11+
12+
## Task
13+
14+
**_Given_** *Positive integer*, N , return true if it could be expressed as a sum of two or more
15+
consecutive positive numbers , otherwise return false .
16+
___
17+
18+
### Notes
19+
20+
* Guaranteed constraint : **_2 ≀ N ≀ (2^31) -1_** .
21+
22+
___
23+
24+
### Input >> Output Examples:
25+
26+
```
27+
* consecutiveDucks(9) ==> return (true) // 9 , could be expressed as a sum of ( 2 + 3 + 4 ) or ( 4 + 5 ) .
28+
* consecutiveDucks(64) ==> return (false)
29+
* consecutiveDucks(42) ==> return (true) // 42 , could be expressed as a sum of ( 9 + 10 + 11 + 12 ) .
30+
```

β€Žkata/7-kyu/consecutive-ducks/README.mdβ€Ž

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# [Digit*Digit](https://www.codewars.com/kata/digit-star-digit "https://www.codewars.com/kata/546e2562b03326a88e000020")
2+
3+
Welcome. In this kata, you are asked to square every digit of a number and concatenate them.
4+
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)
7+
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)
10+
11+
**Note:** The function accepts an integer and returns an integer.

0 commit comments

Comments
Β (0)