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.
This comment is hidden because it contains spoiler information about the solution
I'm not sure I understand you. The task as outlined in the description is to find the minimum wind speed needed to knock over all houses. If they all need to fall down, then the wind speed should be at least greater than the first house if i understand you correctly?
test.assert_equals(min_wind_strength([9, 8, 7, 6, 5]), 10)
test.assert_equals(min_wind_strength([10]), 10)
These seem contradictory. The first should be
9
right? Or the second should be11
.How is
test.assert_equals(min_wind_strength([9, 8, 7, 6, 5]), 7)
?Based on the description, wind moving left to right, wouldn't you need a minimum wind strength of
9
to topple the first card?This comment is hidden because it contains spoiler information about the solution
I'm not going get into a flame war right now, but generally speaking, closing issues that are not fixed is frowned upon.
As for the duplicate, here is just one example of another kata outside of beta that's done this task before, and decyrption is trivial in this case.
Generally speaking, codewars beta isn't a great platform for coding schools to use for projects or assignments.
Liked this one a lot, great job (again ;P).
ha! muscle memory ;P
good question. My authoring days are likely over so I'm not really an authority on this one, but I think either one would be fine. Codegolf tends to do well when there are a few ways to solve and not a single prescribed method. I don't know if that's going to be the case here. Flip a coin maybe? ;P
realistically the performance kata's get fewer completions (compared to their non-performance counterparts) and hence, by my own observation, remain in beta. I honestly don't know what the best approach is here. The other kata appears to be fairly well received too.
^agreed about the performance constraints right now.
Couple things to consider.
Loading more items...