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.
Python globals are not shared between modules, though if you need totally global name you can use builtins
@FischerEnterprise
Thank you very much for your comment about counting details. It should be added to the kata description.
I'm afraid there is something bad with your golang runtime env.
When I ran my code locally (e.g. Height(311, 10131) ) it calculated the proper result 71692....6927, but in codewars environment the same code gave 0.
Let me notice that for
z=1
(as well as forz=0
) the sequence is immediately convergent (in fact it is constant). I've the impression that those cases are not verified by tests as well as by some solutions. So maybe the test suite should be extended eg. by expectationsf(1, 0)==1
as well asf(0, 0)==0
?