Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
not a kata issue
Given the error message, you're returning
null
instead of an empty array.This comment is hidden because it contains spoiler information about the solution
Not a kata issue, your code is wrong, read this: https://docs.codewars.com/training/troubleshooting#print-input
This comment is hidden because it contains spoiler information about the solution
I think it's too long , try to use regex .
but if the array have a different kind of number, what i had to return?
Please mark your post as having spoiler content when you post code like that.
This comment is hidden because it contains spoiler information about the solution
I see it , thank you for your help . newW become bigger with the loop .
Not a kata issue, you need to reset
newW
. In netbeans you probably didn't test it with the same input value.This comment is hidden because it contains spoiler information about the solution