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
I don't know that already become master and you guys still have conflicts and struggles!!
I don't think Voile meant
[0]
by saying "all zeroes". And theit
headers in the sample tests are wrong now.On top of that,
[0]
doesn't make any sense when the instructions list is empty. Either get rid of useless input validation, or make the expected output something reasonable likenull
or[]
.Thanks!
Idk how to stop the users from modifying inputs (I noobs and you pros, i know...), can you give me some hints?
The user can modify the input.
Returning empty list for no packages does not make sense at all: there is a sensible default value for no packages, which is all
0
s.