Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • 22204998?s=100

    It makes me uncomfortable that this is 'build a tower', and not a pyramid

  • 40402568?s=100

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

  • 18171520?s=100

    this is an Object. The tests apparently want this.valueOf(), which is the primitive string within the object.

    I'd say this is an issue. You're working on an Object ( because in a prototype method ); you should be able to return that Object ( you should also be able to return a primitive string ).

    Note that primitive (!) strings are immutable, but String Objects are not, in that sense.

  • 44442490?s=100

    FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

  • 32236948?s=100

    return? (note: I don't do C++, but...)

  • 13309907?s=100

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

  • Profile pic

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

  • Profile pic

    You may edit the description to fit to the selected language. I was confused by the ' ' in the examples because I thought that means the tower should have walls consisting of '

    You can use the markdown language for it:
    https://www.codewars.com/docs/kata-creator

    example for c# + python:
    ```csharp

    {
        "     *     ",
        "    ***    ",
        "   *****   ",
        "  *******  ",
        " ********* ",
        "***********"
    }
    

    ```
    ```python

    [
      '     *     ', 
      '    ***    ', 
      '   *****   ', 
      '  *******  ', 
      ' ********* ', 
      '***********'
    ]
    

    ```

  • 37740842?s=100

    the kata wants space each floor too. for example if your tower's last floor has 6 star, than your first floor need to have 1 star and 5 spaces. your second floor needs to have 2 stars 4 spaces, your third floor needs to have 3 stars 3 spaces and goes on. you must add spaces too. i know, it is silly but kata's tests want it.

  • 9571508?s=100

    You have to return the recursive call too for it to work. Your code has another problem, don't use global vars, they keep their values between tests.

  • 32236948?s=100

    Hi,

    Seems you're "rather new" to cw, so here are some general guidelines about the comments:

    • Issue: problem in the kata itself (description, wrong tests, wrong internal solution...)
    • Suggestions: well, I guess that part is clear
    • Question anything else that is related to you having a problem solving a kata -> that's you, currently.

    When you post issues:

    • provide ALL the useful information:
      • language
      • input
      • outputs (actual expected) when relevant
      • error message when relevant
    • check, DOUBLE check that this IS an issue, meaning that the problem is in the kata itself and not in your code. If it's in your code, post rather a question
    • if you pass this step, you still have to prove/explain what the issue is (and if you can provide fixes, it's even better)

    When you post a question: well, most of the above apply too x)

    When you post code, use proper github markdown, so that it's readable.

    And for your current problem, I don't do JS but... Are you sure you're actually returning something?

    cheers

  • 29166977?s=100

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

  • Profile pic

    ahh.. you'll get it before the new year :)

  • 9571508?s=100

    Ufff, a long way to go, 96% left. So I guess by 2050 or so ;).

  • Profile pic

    random question... what % to 1 Dan are you?

  • Loading more items...