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.
@hobovsky it seems you had a typo on your post up there:
It should be 144, not 114.
Your observation is most probably incorrect.
In the example it says that for input
531
, the expected answer is513
.Your error message says that your solution returned
531
, but it should return-1
, but you did not say what was the input number.instresting observation
from the description
next_smaller(531) == 513
from the test
531 should equal -1
why the contradiction?
lgtm
Done. Lmk if I missed any.
Scala translation
Replace those gross math.random calls with lodash and i'll approve
Kata is already tagged performance.
I am unconvinced that providing the test parameters and expected time complexity in the description would help in this instance. If someone doesn't arrive at a working approach on their own they won't know what to do with that information in the first place.
Other one should be remade and reranked at 7kyu, right now the requirements aren't even consistent across languages for it.
To think my thought process of finding the first character was the same, but couldn't figure out how to continue for the next characters.
And then to see this 'simple' solution to the problem...
Hats of to you
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.Loading more items...