Ad
  • Custom User Avatar
  • Default User Avatar

    YOUR CODE IS TOO SLOW. YOU'RE WELCOME.

  • Custom User Avatar

    I keep getting Excution Time out (12000ms), but when I test my code, it takes only 5000ms to excute.

    I feel like my code is simple enough, could you please take a look ?

  • 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

    did you forget to remove the initial comment, before the function? You should have some sort of feedback, normally.

  • Custom User Avatar

    I apologize about that. Thank you!

  • Default User Avatar

    Hi @boyski33, can you please post an example? (don't forget to use a spoiler tag), thanks

  • Default User Avatar

    Not sure what you want people to take a look at? the kata code is fine. if you want someone to check out your code, you may post it with proper markdown and remember to use a spoiler tag. Then someone may be able to help you.

  • 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

  • Default User Avatar

    no problem, Ed. I don't know why you're passing one test but it doesn't lend any credibility to your approach; I hope you can re-work your algorithm to modify the input array "in-place"

  • Custom User Avatar

    Sorry. 'Big Boy' is the largest array test.

  • Custom User Avatar

    not an issue a question. Generic message below:


    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.


    For your current problem, I bet you're creating a new array while you're supposed to mutate the one in the input.

    Closing, since it's not an issue.
    cheers

  • Custom User Avatar

    I'm afraid I may be misunderstanding some rule. In the console.log my array is actually showing up as reversed, but the tests are saying it's not? Any feedback, please?

  • Loading more items...