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.
substring method on StringBuffer's API returns a String object.
Is
arr
necessary?This comment is hidden because it contains spoiler information about the solution
Try defining
arr
inside the function. See this article for more detail about scope in JavaScript.It seems like your index
i
is beyond the range ofl
. Try usinglist.append(x)
. See: https://docs.python.org/3/tutorial/datastructures.html#more-on-listsThe question is asking for the minimum length, not the number of words with that length.
Is the
toString()
necessary?