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.
The tests are alright, and Python 3 is available now.
!
Reminder: Python 2 will be retired in 2 months, see: https://pythonclock.org/
So it is completely reasonable to not only open for but switch all katas to Python 3.
Description has changed too much so it only applies to Python.
Perhaps you can find a way so that python specific advice (such as sub-classing int) only shows up for Python code?
Actual and expected values in Haskell are flipped.
yeah, you are right. Thanks for your help.
Try returning some arbitrary value which you know is incorrect (like a list with just 1 random number), and see if you get a message like
expected: your_wrong_output, but got: something_else
. I think the actual/expected values are flipped, because this case in the fixed tests is correct.There're no such test cases in JS. You must be mutating the input.
This comment is hidden because it contains spoiler information about the solution
Good point! I've added negative tests throughout. Thanks for the help.
Tests dont check for negative numbers in Javascript
Can we open this to Python 3? Sigh
Spent a few hours trying to figure out what I am doing wrong. Simple tests work but random tests I fail about 20. Heres an example:
It seems to be the same bug... I am not making my solution using bit shifts as I want to understand it first...
Any suggestions would be great!
I'm having this same issue (I think) as I pass all tests and random tests except when there is a backtick. I don't quite understand the problem? Could someone ellaborate?
Loading more items...