Ad
  • Custom User Avatar

    check out the fork. i improved the number writing algorithm :)

  • Custom User Avatar

    Please don't raise a kata Issue when you're simply asking a Question. See https://docs.codewars.com/training/troubleshooting/#post-discourse.

    Take an array and remove every second element from the array. Always keep the first element and start removing with the next element.

    Your second solution completely ignores the elements of the input, so it's obviously incorrect. It does pass the sample tests and fixed tests though, this is because there's only one test case in both, and its expected output happens to match what your second solution outputs.