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.
Admittedly what I'm about to say is a border case and not reporting a bug: I can't help but see a way to have passing functions break, after the following procedure:
subclass the list class, break it somehow; put an instance of that object in your dataframe and suddenly the function no longer works.
For example:
OK, that was just me having fun with an edge case...
This comment is hidden because it contains spoiler information about the solution
yeah that's embarassing
corrected thks
done thanks
done
given that all pirates want as big a share of the treasure as possible, there is a forced equilibrium.
will make it clearer, thanks for the feedback
I think they are to most people indeed, I just have a few weeks only of Python (and any form of code actually
) behind me and know decorators for a few hours...
I have but still can't manage to push the kata
I struglle differentiating my solution func to user's func
could you pls have a look? it's published in beta
thks
hi XRFXLP,
thanks for your quick reply.
I have completed correctly all parts of the kata except the testing parts.
As I don't master enough the testing framework, I ran into various errors when testing. What makes it difficult among other things is that in my reference_func, I have several functions so I'm lost with the decorators.
I also do not understand well the structure of the packages (codewars_test, solution) and how I'm supposed to use these.
The kata is called Pirates and bullions treasure puzzle, can you see it?
Hi all,
I am creating my first kata and am struggling with the testing part, especially using the decorators and making random cases. I checked the github and codewars docs but not much is said about the that, at least not enough for me.
Could someone please help me validate my kata by explaining me the detailed way to have working test cases?
Thanks,
This comment is hidden because it contains spoiler information about the solution
I fully agree.
I have not solved it yet (nor have I given up, though), yet I managed the related kata asking for the last digit of a^b.
Like you I searched extensively on the web for algos such as modular exponentiation, but I doubt this is the expected method.