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 solution is actually smart and clean
For readability, you should use Count for lists and Length for arrays. Arrays are always the same length. A list's count can change as you add items to it.
I did this with only arrays because I thought it said to return an array facepalm
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes you are right. In real projects, it is better to check for NULL.
This comment is hidden because it contains spoiler information about the solution
array is better, than list imho
Use spoiler flag next time, please.
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 type does this actually return? A generic list or the query that finds the list?
bad test case