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.
Java Translation
Confirmed. Thanks. Was C# 12 added to Codwars last month (Nov '24)?
https://www.codewars.com/post/whats-new-on-codewars-november-2024
The OP wrote this question 5 months ago. I wanted to share the idea of identity-functions as an FP practice to anyone interested.
Order
should be already available on CW for kata which have been migrated to C# 12.Anyone remiss about not having Order can use OrderBy instead with an identity-function as the key-selector.
If you are so inclined, you can dig as deeply as you like into the implementations and overloads of these Order/OrderBy methods with the source that MS provides online. Be aware that Microsoft has gone to great lengths to make these perform well. Older, simpler implementations are available at Microsoft's reference-source site -- but these are frozen in time and won't include the latest things like this
Order
extension.Had to do research on Combinatorics. Inputs are so much bigger than expected!
Some magic happened here. Or maybe just math 🪄
The code is nearly identical:
Sir, you are nitpicking here :'-)
This comment is hidden because it contains spoiler information about the solution
thanks for your suggestion
This is too easy to be 3 kyu, knock it down to 4 or make just multiplying with carry not viable.
Love it
I just take my solution from wikipedia everytime i see a question like this
Damn, thought I was there,
then discovered input 12311133345899.
now need to rethink my core values
Updated test cases. Didn't do the PS, but recognize that it's a good suggestion. Marking resolved.
Nice! Resolving.
Loading more items...