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.
Great code! I would extract the internal lambda into a separate function, but otherwise the solution is simply brilliant and most importantly, readable and clear. Good job! 👏👏
the return type does not even matter here. two integers that hold the same value will always compare equal, no matter their respective bit-width and signedness:
I feel extremely dumb with my char cast hahahaha
Please use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In Dart 3
breakis not required.defaultis optional.Why you dont need break in each case and a default block?
Agda Translation
😄
I completely missed
a < bin the constraints section. It is better to specifya < bin the first sentence: "You are given positive integers, a and b, a < b".dude, it's specified
The description should specify that
a != b. Moreover, in all testsa < b. If it is intentional then it should be specified.More modules should be banned (see this solution).
ValandApphave been replaced withValueandApplywhere appropriate.ExprandOpnow deriveEq. There really isn't a natural ordering of the arithmetic operations, so I've held off on derivingOrd. Solvers are free to derive their own if they wish.Loading more items...