Ad
  • Custom User Avatar

    when this solution was written & accepted, it was using Python 2.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    wowie, such dogshit

  • Custom User Avatar

    oops, not sure why I went with streams there!

  • Custom User Avatar

    You are welcome. :)

  • Custom User Avatar

    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.

  • Custom User Avatar

    I was trying to do it without a loop, pretty messy!

  • Custom User Avatar

    This is cool, I learned some stuff from your solution. Thanks!

  • Custom User Avatar
  • Custom User Avatar

    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.

  • Custom User Avatar

    site bug, this is mine... wish I could just remove it.

  • Custom User Avatar

    Yes, as Giacomo points out, the function name for python should be hollow_triangle.

  • Custom User Avatar

    This is giving me flashbacks of the Befunge kata! ;)

  • Custom User Avatar

    accidentally submitted this and can't delete :(

  • Loading more items...