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.
There are no random tests.
Actual tests depends on user code to split the two parts into methods with specific names:
This has to be one of the worst kata descriptions I've ever seen. Completely illegable.
8kyu? really?
thanks for kata.that was good.
Steps c and d are clearly the most difficult in the task ((NOT a) shift left by 2 bits)), I think the examples should give the expected value for c, not just for a and b.
b := sum of every difference between the consecutive characters of the input : Does it mean "sum of difference of ascii values"?
I agree that the kata is misleading in step (b).
This is incorrect. A difference is the result of subtracting one number from another number. In the equation
5 - 7 = -2
,-2
is the difference.But you're right: Step (b) should specify the direction of the subtraction operation.
Using C.
The description is incorrect/misleading. It states "b := sum of every difference between the consecutive characters of the input"
The difference between two numbers is always a positive value. This kata requires you to take the higher index and subtract the lower index, e.g. str[1] - str[0], str[2] - str[1] and so forth. abs(str[1] - str[2]) will give you the difference between two numbers, but is incorrect here.
Approved.
Bumping translation.
Python translation. Please, review and approve (the author is not active anymore).
Done
Tests are fixed (I copied uniapi's test code).
The NASM translation (which I approved an hour ago) has random tests. These random tests can be copied to the C translation without any changes.
Loading more items...