Ad
  • Default User Avatar

    Fell for that as well.. refactoring..

  • Custom User Avatar

    You can literally see the spaces in the examples in the description.

  • 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

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