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.
Every element of the sequence satisfies a condition that certain power (e.i. ANY) of the sum of its digits is equal to the number itself. Your calculations are correct but the test cases are fine as well ;)
This is neither clever nor best practice at all!! Evaluating condition "result.Count(i => i == item) < x" for each and every item in arr is most likely to be very expensive. Or are the upvotes just for shortness of the method??? I'm really upset seeing such a code that appreciated :(