Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I'm sorry I don't understand what you are both saying, about nearing to the "nearest even integer" (it's probably because of my lack of mathematical knowledge).
In Python, as far as I know, if you try to round let's say
4.6
, it will give you 5, which is the "nearest integer" (not even), just like it's specified in the statement.What am I missing?
This comment is hidden because it contains spoiler information about the solution
In the description, you wrote:
reinforces
strings consist of only small letters.Although, as we can see in the examples, it can also include
digits
.Also, "reinforces" is a verb only. The correct noun is "reinforcements".
Returning
0
, as per stated in the description, involves 2 conditions:As I said before, an empty sequence is either considered:
OR
1
An empty sequence doesn't satisfy both conditions for returning
0
.And
1
is the missing number because as stated in the descritpion:"Check if the elements are part of an ascending sequence of integers starting with 1".
This comment is hidden because it contains spoiler information about the solution
The description states:
And:
What is inconsistent here?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I agree about the bullet points layout.
In the example you gave though, "a white space" is one thing, "number of error for that letter in a field of 6" is another thing.
Maybe this would be clearer: "the number of errors as a left justified string of 6 characters long".
The white space is usually the default filling character in an aligned string (center, left or right).
In Python, the description asks for an array as output. The examples show arrays as output. And yet the tests expect a tuple.
You're right ! Somehow I saw the first note but not the last one...
It is actually still the indices, it's just that it's 1-based indexing instead of 0-based.
I agree with you though, it should be clearer - like at least mention that it's 1-based.
The description states:
You mean you have to return the alphabet position of the odd-indexed characters in the string, right?
Loading more items...