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 is by far the most interesting codewars question for me so far and also the most clever answer.
I came to understand the code, but I honestly don't think I can come up with an answer this elegant and clean if given similar but different question.
Kudos!
This is my first 5kyu and my mind is blown with these peoples answers lol
func1 and func 2 are delegates, a type that represent a calling site (a method somewhere).
It's like pointer of function in C/C++, but delegates in C# posses more informations than that (the instance of the object for non static method, ...)
This feature is used in many scenario: Event manamgement, Linq (to object), ...
If compiler produce a binary and the binary works, that's clearly legal.
But, as you don't put parenthesis on a variable, it's better to use Invoke() to clarify the context.
i agree
How always is there someone that makes katas in one line?
I tried this solution but did not pass the test.
Psyco
Was für aussagekräftige Bezeichner!
bro you wont die from typing out args 1 time
The point of solving the issue was making it as short as possible.
Therefore, using the arrow function and removing the brakets were neccary.
It's clever, but not best practice at all :)
Das wäre in der Tat auch eine Lösung gewesen,
aber ich wollte ja eine möglichst kurze Lösung haben. :P
Davon abgesehen, sollte man die Funktion nicht auf meine Art implementieren, und auch möglichst auch ein reverse mit anschließender for-Schleife ;D
In this case he had to remove the given brackets so this actually took longer, but very clever!
In my opinion this is the best solution.
its because its written there <= means superior or equal
Loading more items...