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.
Try an "attempt", the "test" is failing for me as well.
I believe the logic in test and attempt is different.
How did you get this to work without getters? I copy and pasted your solution and it didn't work because the methods that were being called didn't exist.
this was Python 2
I must have broken something when updating this kata to Node 18. Should be fixed now, please veryfy (you might have to click RESET to see new tests, so make sure to back up your solution).
I get this error in JavaScript, even when all my function does is console.log() or return 0.
This would return False for 4.0, but that should be True based on the constraints in the description (only floats with a decimal part not equal to 0 are uneven).
I wanted to do it recursively but I couldn't figure out how to keep track of the counts, of course now it seems so obvious, you just add once each time the function is called!
This comment is hidden because it contains spoiler information about the solution
this is how I did it at first then I realized I could use a Counter.
nice use of or
the problem also states that human_years >= 1 though
FUXK
This comment is hidden because it contains spoiler information about the solution
AAAAAAAAAAAAAARRRRRRRRRRRRGGGGGGGGGGHHHHHHHHHHHHHHHHH
it creates a dictionary where the keys are the characters in s and the values are the number of times they occur in s.
Loading more items...