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.
This comment is hidden because it contains spoiler information about the solution
can u elaborate where is the input and where to print
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
What about 'Y' ? :)
The "comments" are given as the parameter
str
. When a function is called you have the option of including parameters, which are local variables only visible to the function.str
is a variable and you must look at this instead, not the self created variable "comment". Your variable "comment" is static and will not change, butstr
is dynamic. Change your variable name of your regex to something else, so as it does not replace the original parameter.As kazk says, the problem is using "...array" when given null. You should check for null before using "...array".
This comment is hidden because it contains spoiler information about the solution
I think that error comes from
...array
when givennull
.Next time, mark your comment as spoiler.
This comment is hidden because it contains spoiler information about the solution