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.
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.
brilliant
I knew there was a way to start from the center! I shutter to think of all the list insertions in my solution :(
This comment is hidden because it contains spoiler information about the solution
Loading more items...