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.
@author
: do not publish a kata without random tests. also, read ( all! ) available documentation before trying again.retired
retired
No Random Tests
Phyton, Sample Tests: It looks like you missed ')' in the first test case
Looks like you like golf :D
This comment is hidden because it contains spoiler information about the solution
I understand the logic, but why is the sorting behavior different between the two approaches (this code and mine)?
My solution passed tests but it doesn't check length. Probably it will be good to add tests for something like valid NIF + letters/digits/etc e.g. '49921020A1D'
Lol now I feel stupid
🔪
Please address the issues raised in the previous creation of the same kata before creating the new ones. (Or the mods are likely to revoke your kata creation right altogether)
Anyways, besides the lack of random tests: fibonacci sequence is grossly overdone as a kata concept, and subjects to many duplicates. This kata merely tries to wrap it around some superficial checking.
Description: "Additional messages: m and n are different positive integers."
"Example: fib(1,1,34) would return 9 since 35 is the 9th fibonacci number in this sequence."
In the example we see m = n = 1 case. Also '35' in the example probably is '34'. Could you please fix/clarify?
I like both of your answers
Loading more items...