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.
I wanted to add some additional notes due to OOP, but they were unnecessary anyway. Undid the changes ✅
I'm personally curious about the need or desire to mention a method for C# or Java, when a.) this is relevant to any classical language, and b.) it should be obvious from the method call in the code example, in any case, the wording seems to suggest that C#/Java are the only language katas that are asking for a method, while any classic language is.
Though, this is made explicit in the code example, anyway.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks :D ! I will read about that c:
Func<int,bool>
(Func<T,TResult>)
is a predefined delegate – a method that has an int parameter and returns a bool. The return type is always the last one in signature and is required for Func<>. And it may be the only type in signature (Func).In other words, variable is a reference to a value, but delegate is like a reference to a method.
See this: https://docs.microsoft.com/en-us/dotnet/api/system.func-2?view=netframework-4.7.2
Hi! I come from python and i'm starting to learn C#. I grasp the basics and i'm practicing here but there's plenty of things that i don't understand.
Someone can explain me what is this :D ?
Func<int,bool> fun
o(15)g <-> t(20)
o(15)g-->"" t(20)-->g(7)
I am confused. Why the output of (t(20) - o(15)) is g(7) instead of e(5)_
Well, fixed. change
next integer
toclosest integer
.Thanks for your feedback ;-)
My English is very poor ;-)
This sentence has modified for three times, if
rounded up to the next integer
is not means "use Math.round", I'm going to make the 4th changes. ;-)I think you have a mistake in the description. You stated: "it has only 1/3 of its original value rounded up to the next integer".
Maybe a better description would be: "it has only 1/3 of its original value rounded up to the closest integer".
For 1.33 next integer is 2
For 1.33 closest integer is 1
At the first step, you calculate d(4)-->b(2) is wrong, 4/3=1.3333... Math.round(4/3)= 1 instead of 2
Hi,
From my calculations, the combat: between "dog" and "cat" should result in "Winner s1(eg)",
but the example and the tests say it should be a "Draw".
"dog" <-> "cat"
d(4) <-> c(3)
2 <-> 0
2 <-> a(1)
1 <-> 0
1 <-> t(20)
0 <-> 7
o(15) <-> 7
5 <-> 0
(eg) <-> ()
Were am I wrong?
This comment is hidden because it contains spoiler information about the solution
Loading more items...