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.
Almost did the same thing...but I changed the trait bounds on
array_diff
to also require thatT
implement theCopy
trait.Then I used
iter
andcopied
instead of just usinginto_iter
like I should have...because I initially misspelledinto_iter
while trying this exact thing :PYes, but array sizes are quite small in test cases, so creating additional structures can be less productive in this specific case.
This code has O(n*m) runtime as for each element we have to re-scan in b from scratch.
nvm it was just a typo.
This compiles and runs perfectly. Could you copy your code here?
i tried this and kept getting an error when
a[]
was emptyI think this kata should be removed in favour of "Decode the Morse code" https://www.codewars.com/kata/54b724efac3d5402db00065e, because they both implement exactly the same Kata.
Rust translation kumited. Please check and approve if you like.
Aww. That's a shame really.
Sorry but I can't approve: I know nothing to NASM, nobody approved it and I have a translation to do. Cheers.
.
Apologies. I've corrected it.
Thanks for pointing this out.
Haskell translation added. Feel free to approve or reject it. :)
Hey, marcinbunch. I made a translation for Rust. Feel free to approve/reject it.