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.
You're right, it's about intent! My goal is fundamentals, where other's might be purely to improve practical coding experience.
Valid question, and I don't have an answer. I personally use Stream API to train myself at it, as it would be easier for me to use normal iterations.
This comment is hidden because it contains spoiler information about the solution
Not a suggestion. And your solution is
O(n^2)
.What exactly don't you understand?
The description is perfectly clear about the task.
I've got a question about using Linq for almost every search or sort question out there:
Even if not for technical interviews, does it not train your brain a lot better to figure out how to search for the answer yourself, as opposed to use an abstracted query library that does all the heavy lifting for you? I kind of feel like it's the equivelant of going to gym and using a machine to lift the weights for you. If your goal is to lift the weight, then fine, but it won't make you stronger.
The counter argument could be that you specifically want to get better at Linq, which is fine - but then should it not be distinguish that as a completely different type of kata?