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.
doesn't work on hooks, had to use GPT chat for refactoring
UPD wrong tests! if I specify the default input state as 'Yeti' it throws an error :
Controlled Beast with empty beast name passed
should set the default name to empty
Expected: '', instead got: 'Yeti' <
OK, than I change to ""
And catch new error wtf:
Controlled Beast without props passed
should set the default name to Yeti
Expected: 'Yeti', instead got: ''
This comment is hidden because it contains spoiler information about the solution
all implementations process small amounts of 'x', but the number '1xxx1xxx0xxx0xxx1xxx1xxx0xxx0xxx1xxx0' breaks the computer due to the huge array to process ;(
okay, for myself, I partially solved this kata)
at least, my shitcode working faster KEKW
Sorry about the mess O_o