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.
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.
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).
This comment is hidden because it contains spoiler information about the solution
NASM Translation: https://www.codewars.com/kumite/6295294f033da70064b88b14?sel=6295294f033da70064b88b14
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)?
product
function was added, and as soon as it becomes available on CW, this kata becomes obsoleteThis comment is hidden because it contains spoiler information about the solution