You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kata/5 kyu/is-my-friend-cheating/readme.md
+19-5
Original file line number
Diff line number
Diff line change
@@ -5,21 +5,23 @@
5
5
- He says that the product of a and b should be equal to the sum of all numbers in the sequence, excluding a and b.
6
6
- Given a number n, could you tell me the numbers he excluded from the sequence?
7
7
8
-
The function takes the parameter: `n` (n is always strictly greater than 0) and returns an array or a string (depending on the language) of the form:
8
+
The function takes the parameter: `n`
9
+
(n is always strictly greater than 0) and returns an array or a string (depending on the language) of the form:
9
10
10
11
```
11
12
[(a, b), ...] or [[a, b], ...] or {{a, b}, ...} or or [{a, b}, ...]
12
13
```
13
14
14
-
with all `(a, b)` which are the possible removed numbers in the sequence `1 to n`.
15
+
with **all**`(a, b)` which are the possible removed numbers in the sequence `1 to n`.
15
16
16
-
`[(a, b), ...] or [[a, b], ...] or {{a, b}, ...} or ...`will be sorted in increasing order of the "a".
17
+
`[(a, b), ...] or [[a, b], ...] or {{a, b}, ...} or ...`will be sorted in increasing order of the "a".
17
18
18
-
It happens that there are several possible (a, b). The function returns an empty array (or an empty string) if no possible numbers are found which will prove that my friend has not told the truth! (Go: in this case return `nil`).
19
+
It happens that there are several possible (a, b).
20
+
The function returns an empty array (or an empty string) if no possible numbers are found which will prove that my friend has not told the truth! (Go: in this case return `nil`).
19
21
20
22
(See examples of returns for each language in "RUN SAMPLE TESTS")
21
23
22
-
##Examples:
24
+
# Examples:
23
25
24
26
```
25
27
removNb(26) should return [(15, 21), (21, 15)]
@@ -56,3 +58,15 @@ in C:
56
58
removNb(26) should return **an array of pairs {{15, 21}{21, 15}}**
Copy file name to clipboardExpand all lines: kata/5 kyu/valid-parentheses/readme.md
+13-2
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,17 @@ Write a function called that takes a string of parentheses, and determines if th
13
13
14
14
## Constraints
15
15
16
+
`0 <= input.length <= 100`
17
+
18
+
```if-not:javascript,go
19
+
Along with opening (`(`) and closing (`)`) parenthesis, input may contain any valid ASCII characters. Furthermore, the input string may be empty and/or not contain any parentheses at all. Do **not** treat other forms of brackets as parentheses (e.g. `[]`, `{}`, `<>`).
Copy file name to clipboardExpand all lines: kata/6 kyu/bit-counting/readme.md
+8
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,11 @@
3
3
Write a function that takes an integer as input, and returns the number of bits that are equal to one in the binary representation of that number. You can guarantee that input is non-negative.
4
4
5
5
_Example_: The binary representation of `1234` is `10011010010`, so the function should return `5` in this case
# [Build a pile of Cubes](https://www.codewars.com/kata/5592e3bd57b64d00f3000047)
2
2
3
-
Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a volume of n^3, the cube above will have volume of (n-1)^3 and so on until the top which will have a volume of 1^3.
3
+
Your task is to construct a building which will be a pile of n cubes.
4
+
The cube at the bottom will have a volume of n^3, the cube above
5
+
will have volume of (n-1)^3 and so on until the top which will have a volume of 1^3.
4
6
5
-
You are given the total volume m of the building. Being given m can you find the number n of cubes you will have to build?
7
+
You are given the total volume m of the building.
8
+
Being given m can you find the number n of cubes you will have to build?
6
9
7
-
The parameter of the function findNb `(find_nb, find-nb, findNb)` will be an integer m and you have to return the integer n such as n^3 + (n-1)^3 + ... + 1^3 = m if such a n exists or -1 if there is no such n.
10
+
The parameter of the function findNb `(find_nb, find-nb, findNb)` will be an integer m
You are given an array `strarr` of strings and an integer `k`. Your task is to return the **first** longest string consisting of k **consecutive** strings taken in the array.
3
+
You are given an array `strarr` of strings and an integer `k`. Your task is to return the **first** longest string
4
+
consisting of k **consecutive** strings taken in the array.
0 commit comments