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.
Is the mis-spelling of "bareable" on purpose? E.g. a
True
response means we can get bare? Or should it be "bearable?""Thank you for your explanation. It makes sense. The kata is worded oddly; I found the "...[ticket] can be used multiple times" verbiage to be very confusing. (And per your explanation, unnecessary.)
Isn't mutation an antipattern? Why would we not take a single input and return two new lists?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Validating the timestamp in the OID would be a worthy requirement of the
is_valid()
function. Currently the tests allow an invalid string (e.g.'zzzzzzzzzzzzzzzzzzzzzzzz'
) to pass (at least in Python).bump
The Kata needs a fix. Got NameError: name 'alpha' is not defined.
It's listed as been affected by the changes in the new runner.
https://github.com/Codewars/codewars.com/wiki/List-of-Affected-Kata
Python test results seem reversed.
['S'] should equal []
should equal[] should equal ['S']
...Gah. Thanks. I knew I was doing something stupid.
This comment is hidden because it contains spoiler information about the solution
FYI - The description says, "It is guaranteed that no zero appears in n." But I'm getting random tests with zeros in them in the Python version. E.g. "Testing for 31258102" and "Testing for 900916."
Weirdness with tests: I've got (apparently) working code that is still too slow. When I run it silently, it passes 746 tests. When I simply add a "print(n)" at the top of my function, it passes 951 tests. That seems counterintuitive to me. I'd expect that asking my code to do more work - not to mention I/O - would make it slower, not faster. [Update: I added another print statement that executes even more often. Now it passes 1037 tests.]