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.
well, it depends how you interpret the description I guess. The description should either:
I watched a quick guide of the rules. For instance, the statement below is incorrect. You can't flip any pieces in between, you can only flip from the piece you place to your first own piece.
For instance
balanced_num = balancedNum
it provides an alias to the snake_case version of the camelCase function name.
Example of function name aliasing:
p = print
p("Hello, World!")
All these ARE explained. Not spoon fed, ok, but the info are present.
I can't imagine how bad the description was before. It's still a bad description. You don't explain how we should interpret the input. You don't explain how a valid moves looks like.
It reads, "remove those two digits from the string", but then the spaces are both assumed and relevant, part of the string which never really got "smaller" (shorter). If it means "replace those two digits with spaces", and "return the minimum possible number of remaining ones and zeroes" then it should say that. Also that apparently was a question in the past, but now it's a direct instruction, and it still has a question mark.
yup, still can't make sense of it after understanding the solutions.
I've put my own solution as ref sol for the moment being. You should be able to pass Python now and check if the Python translation has any errors.
even with that fix, in Python I'm not always close enough to ref sol, while I am in JS; anyway, JS and Python updated
I updated the formula and the tolerance (js, python), but I think author solution in js and python are not the same. I give up on this kata. Let's tank it.
auhor has given up on this, I vote to retire
yes
i can't speak either
grah
probs nah
Loading more items...