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 have a scala translation ready for this kata here : https://www.codewars.com/kumite/5a0b5648ba2a14622d00017c?sel=5a0b5648ba2a14622d00017c
Could someone approve it please ? Thanks
I have an OCaml translation for this kata ready since a while ? Could someone approve it ?
https://www.codewars.com/kumite/5834be992fb0ba58b600004a?sel=5834be992fb0ba58b600004a
thanks :)
Thanks for the translation :)
Nice solution, but I don't understand how this works with non-letter characters (like punctuation and numbers) ?
Thanks for the feedback, and for taking the time to complete it !
You are right, I have updated the description.
If you enjoyed it, I also have the following kata in the same vein: https://www.codewars.com/kata/58599c35994864e9ee00017f
Nice compact solution by the way.
I like this one
Fun kata, and I am happy to see people start to translate katas into scala :)
Just as a note, I think the scala translation could have done without the null input, and also assuming an empty matrix was just a List() instead of List(List()).
That would have allowed more elegant and idiomatic code
Hi, thanks for the explanations ! issue resolved :)
I wonder if there is not a mistake in the OCaml translated kata :
The Kata description says :
For the given input 209917, the expected output is "29917 0 1" - when my code is returning "29917 1 0"
So here I would select digit '0', with index 1. I would insert the digit '0' at the first position, ie index 0.
So the answer should be "29917 1 0".
It seems logical the index where we take the digit is greater than the position where we insert it back (could be a kind of property test)
I also have a problem with a random test :
input 6579775
Expected 5657977 6 0
got
5679775 1 0
From the kata description :
"2) the index i of the digit d you took, i as small as possible"
I understand this should be the first '5' selected here (ie 6_5_79775) to be removed and reinserted, and not the last one (657977_5).
Could the translator fix this ? (impossible to finish the kata) - or tell me if I misunderstood the rules.
Thanks !
Could someone have a look please ? Scala translation
Thanks :)
Scala translation Kumited. Could someone review and approve please ? Thanks
Hi, here is a scala translation of the kata Where my anagrams at?
Could you review and approve please ?
Hey :) Here is a scala translation of the Kata.
Could you review and approve please ? Thanks.
Note : I didn't include any random test cases (none was included in the Haskell version I translated) - but I could have. Not sure if other languages are including some.
Scala translation submitted. Please approve.
Loading more items...