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.
Cool!
"Only use ~~ as a substitution for Math.trunc() when you are confident that the range of input falls within the range of 32-bit integers."
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc
no you havnt ur blind
Got it, you're right! Thx! 🙏🏻
However, test cases do not test Unicode, only ASCII.
"Never do that!" sounds extreme. The intention of Kumite is to challenge and not repeat past solutions.
This was to similar to the previous 🤷🏻
Because Unicode
Because Unicode
TRUE! I've seen it on a map. 🔭😏
you are wrong because the earht is flat
Boxing won't occur here.
char.IsUpper
takes achar
and returns abool
.bool
(orSystem.Boolean
) has aEquals(bool)
override, so the compiler won't choose theObject.Equals(Object)
method.Using
==
is still better practice, though, asEquals
), though the I'm nearly positivebool.Equals(bool)
would be inlinedThe ValueType class that all structs implicitly inherit don't have a generic implementation so only the object base class' .Equals method is implemented, meaning you'll have to go through expensive boxing for a simple comparison. This can even involve reflection
See here https://source.dot.net/#System.Private.CoreLib/src/System/ValueType.cs
Fortunately, seemingly all value types provided by .NET implement their own .Equals method to avoid boxing. So do record structs
True but this doesnt't work, wouldn't pass any tests and doesn't conform to the tests
using System.Linq;class M{static T x(params T[]p)=>p.Max();}