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.
Not your algo, the description says '150 in a row' but akar-0 - and everyone else using 150 - is testing for 150 total (non-consecutive).
(100 consecutive - or 150 overall - passes all the tests).
Very satisfying kata. Will definitely check out your other katas.
In the description,
,
appears to be in the list of eyes - it is not, it just appears to be.Maybe remove the commas (and maybe the ors?) from the list of emoticon parts...?
I agree that it would be more sensible? fun? realistic? to take into account how much you fuel level has actually increased by the time you got home.
But it's a 7 year old kata, it's not changing.
This comment is hidden because it contains spoiler information about the solution
Just noting that the Python reference solution is still wrong:
"With n = 44099: 2 should equal 8" (but 44099 = 209x211)
This comment is hidden because it contains spoiler information about the solution
I would suggest removing the hint altogether as very few of the answers are in that form.
Interesting kata. I ended up with a (reasonably short and efficient) solution that appears to be completely different from any of the existing ones.
This was simulataneously satisfying ("I'm original and creative!") and disatisfying ("Why didn't I think of doing it this (probably better) way?")
Yup, much bettter.
(Python)
Both Sample tests and Edge cases require zeros(1) to be 2, yet clearly there is only one binary number of length 1 that starts with a 1 (as per the description).
It's very easy to observe. I would expect someone who passed grade 7 maths to be able to figure it out.
I don't agree. It's not best practice (despite the votes), but it's certainly not 'very bad' either. It's arguable if it's even 'bad', really, in this case.
(Python)
The test file uses math.pi before importing math (presumably because the example test cases were cut and pasted in afterwards) - it just needs the 'import math' statement moved to the top.
Only solutions which explicitly import math - even if they don't use it - can pass the tests.
This comment is hidden because it contains spoiler information about the solution
Loading more items...