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.
when this solution was written & accepted, it was using Python 2.
This comment is hidden because it contains spoiler information about the solution
I'm not sure who is arguing that yours is less efficient. You have a redundant equality check but that would not amount to much. Superficially, I would guess the rest is the same but in general the Python core developers tend to internally optimize for Pythonic usages so, without testing, it's hard to know whether or not there is any advantage to using the accepted solution (I would guess there's a small advantage). The accepted solution is definitely a lot more Pythonic and more maintainable though.
wowie, such dogshit
oops, not sure why I went with streams there!
You are welcome. :)
I think the kata author may have abandoned supporting this one. I'm having the same issue, nine months later. Your solution should have been accepted.
I was trying to do it without a loop, pretty messy!
This is cool, I learned some stuff from your solution. Thanks!
very cool! :)
I don't understand what agreement has to do with it. If there are more sorting criteria that are not mentioned in the description, then it is objectively an inadequate description. That some number of people pushed through it (arguably due to reading the comments, as I am now), that does not mean that the description is adequate, it just means that people either figured it out (i.e., wasted lots of time, as you can see from some of the commenters here) or are aware of these sorts of issues on Codewars and fortunately chose to read the discussion first.
It's remarkable that you would claim the description is "perfectly" understandable, considering how many comments here were frustrated and confused by the sorting description. And as for proposing a better description the one here in the very comment that you are replying to is already better than the one in the Kata. Jtauri's is also good. The problem isn't that people aren't providing you with better descriptions, the problem is that you're ignoring them.
site bug, this is mine... wish I could just remove it.
Yes, as Giacomo points out, the function name for python should be
hollow_triangle
.This is giving me flashbacks of the Befunge kata! ;)
accidentally submitted this and can't delete :(
Loading more items...