Ad
  • Custom User Avatar

    The description should have some mention of the spaces around the asterisks for each floor. While it can be inferred that there needs to be spaces to actually make it look like pyramid, if it's not mentioned in the description then it can easily be overlooked. I managed to solve this one, but I was extremely confused by why my code wasn't passing originally when each floor had the correct amount of asterisks. The description describes what a floor looks like with no spaces, implying that each floor should only have asterisks. It's not until after you check the test cases that you can notice it needs spaces. At least not for newer and learning programmers.

  • Custom User Avatar

    The description does not specify how the following case is to be handled: (() (this is a minimally reduced example, there could be arbitrary characters around and between). Which of the parentheses is to be considered matched by the single closing paren?
    I'd consider this a borderline Issue, because I can't finalize my logic without this knowledge, and I personally detest having to write experimental implementations just to figure out the spec by running it against the test suite (and then have to revise my code).

  • Default User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    I've implemented my solution with Python and the function returns a list which has passed all tests, however, each "floor" of the tower is displayed in the same line when I run this function.

    How can I adjust the code so that each floor (list item) gets displayed in a separate line, while still returning a function (rather than turning a list into a string consisting of line items)?

  • Custom User Avatar
    • There's nothing new in this task
    • Making something "built-in" is nonsensical and version-dependent, i.e. here it resulted in Python 3.6 being unavailable (hence requirement was removed)
    • No random tests
    • In Python 3.8 a product function was added, and as soon as it becomes available on CW, this kata becomes obsolete
  • Custom User Avatar

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