Ad
  • Custom User Avatar

    Because that's for javascript, google how to print an array in C++

  • Custom User Avatar

    Doesn.t work in c++

  • Custom User Avatar

    put console.log(`arr = ${arr}`); as the first line in your function

  • Custom User Avatar

    And how do you use the console.log?

  • Custom User Avatar

    Spoiler flag!!!

    I wonder why this code doesn't work

    That's not kata issue, but problem with your code. (use question tag)

    JavaScript Completions: 4265 (you can see at the top of this page or bottom of kata details page)

    In short, your code is failing some tests, you can use console.log() to debug it and please read the error messages that are generated to help you.

  • Custom User Avatar

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

  • Custom User Avatar

    console.log the input.

  • Custom User Avatar

    Is there any way to see the tests, or at least the ones that the code fails?