Ad
  • Custom User Avatar

    Passes that test now. Cool. Thanks so much.

  • Custom User Avatar

    I can't see the tests. When I write the test according to the demands in the instructions, it's correct. There's no indication about how the input object should be modified. I'm left guessing what the issue could be.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    You say, "Your mission is simple: write a function that takes an integer 'n'", but this is not correct. It does not take an integer 'n', it takes an integer n. (It's not a string.)

  • Custom User Avatar

    It would be swell if the edge cases were in the example with a little description of what we're trying to do. That would be most educational. I'm passing all the random tests, but obviously am not thinking of the edge cases.

  • Custom User Avatar

    I'm getting the same issue with your solution, which is strange. I need to sit with your solution for a minute and see wha might be going on there, but I fear it might be something wierd on codewar's end.

  • Custom User Avatar

    Do you mean you can't submit your final answer? Does it past all test cases when you click, "Submit Suite?" If not which tests does your solution fail? Feel free to post your code here and mark it spoiler content.

  • Custom User Avatar

    Okay. I just forgot to put in a second arg in the function when being tested. I'll fix that in a sec. Thanks so much. :-)

  • Custom User Avatar

    Hmmmm... Thanks for the feedback. I'm looking into it. I know I ran the test cases yesterday and they passed.

  • Custom User Avatar

    The confusing part to me was that I kept thinking that "people" and "crew" were two different things, especially because you use the Titanic as an example. The Titanic carried a ton of people that weren't a part of the crew. I recommend using a military boat name instead, such as the "U.S.S. Constitution." You want solvers/users thinking that "this.crew" means "people."

  • Custom User Avatar

    Yeah, after I copied and pasted my solution into Triangle Number Check, all tests passed. They're the same concept, so this should probably be deleted/replaced with a new kata? The only difference here is the hint, which I like.

  • Custom User Avatar

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

  • Custom User Avatar

    Okay. I solved this. I misunderstood. When it said "input" I thought it was referring to the second argument, but the first argument is what needs to be cleaned of symbols and numbers. My solution covers both the first and second arguments having symbols and numbers.

  • Custom User Avatar

    Theoretically, it’s impossible for my solution to not handle the special characters cases because I don’t even deal with strings that have any symbols (or numbers) in them when I determine what should be returned. ...right?

  • Loading more items...