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.
This kata wonts you to Return, for each word, the number of letters that occupy the same positions as in the alphabet.
This kata expects these results:
.....
.....
10>10
9>10
8>10
7>10
6>10
5>5
4>5
3>5
2>5
1>5
0>0
-1>0
-2>0
-3>0
-4>0
-5>-5
-6>-5
-7>-5
-8>-5
-9>-5
-10>-10
-11>-10
.....
.....
etc...
spent three days. it was hard. I writed on the paper the steps - this helped me
A good one. Thank you
what should I learn to be able to write code for this kata?
This comment is hidden because it contains spoiler information about the solution
The kata says that my poem is not a copy of the kata's poem. But it IS. My poem looks exactly same and I cheked for extra spaces - but it is perfect. One guy bellow sayd the the kata exepts only if in your code you type "1 buttles" instead of "1 buttle"... do not know what to say... Please help me
Are you talking about this part?
" 1 bottle of beer on the wall.
1 bottle of beer on the wall, 1 bottle of beer."
Do we need to write "1 bottles" istead of "1 bottle"?
I love this little cute kata! Thank you!))
This comment is hidden because it contains spoiler information about the solution
omg, it looks like test case 5 HAS NO array b? Is it possible? What code I have to write to find out did main method passed both arrays or no? I do Java
I have same problem. Cannot pass the test 5 that has two empty arrays. I do check empty arrays in the beggining. It works in IntellijiIdea but doesnt work here.
if((a.length == 0) && (b.length == 0)){
return true;
}
hobovsky, I do it in Java. Why it is wrong?
if((a.length == 0) && (b.length == 0)){
return true;
}
I tryed && and & - nothing helps
no need to use abs. do not do it
I passed 12 and failed in 1. Cannot pass test 5 with two empty arrays. But I do check length of both arrays and if BOTH of them are 0 I return TRUE ((a.length == 0) & (b.length == 0)) Am I right??
Loading more items...