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.
So compact!
But also, if you just go to that kata and scroll down the solutions a bit, someone has done this approach for it. So you can still copy & paste...
yeah, true.
I am not sure whether these two constitute a duplicate. It kinda depends. If the task is "swap without a temporary variable", then indeed, both could be combined, and solutions would be allowed to use xor swap, abs/add/subtract, or destructurization, whatever available in the language. However, both tasks seem to require different, and highly specific approach. you can't solve c++ kata with tuple or array deconstruction. I think they are not duplicates, but I also do not think they are good kata. "let's see if you know this trick" do not constitute good kata in my opinion.
yes, they aren't strictly the same, but the underlying behavior is the exact same. Maybe you could unpublish yours and translate the other one instead?
Thanks, i didnt know this kata befor.
Im not sure.
A soulution for "XOR Swap" also works for "Swap two numbers", but not every soulution for "Swap two numbers" works for "XOR Swap".
Moreover "XOR Swap" is for C++ and "Swap two numbers" is for js.
thanks.
I fixed it.
Isn't this kata too close to this one? It's not exactly the same, but...
cstdlib
instead ofstdlib.h
)rand
is not seededThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
thanks.
I fixed it.
https://www.codewars.com/kata/reviews/6005c8ca14bcb2000117dae2/groups/6005dd65607a1e00017edf74
Maybe this workaround is considered harder than solving it normally, but it would be nice to fix it.
thanks.
I fixed it.
Sample tests are broken.
Loading more items...