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.
For the future please mention the language you are solving in. There was a bug in the TypeScript random test case generation. Now only positive numbers will be generated.
The description should mention that they expect negative binary result (-) too, otherwise we would present the result in a negative binary representative (2's complement)
Approved.
Approved.
Groovy Translation
Haskell translation
your Turkish is not clean bro, the audience can't figure out the slang
That's fair, thanks. Whenever I start looking at bit-level stuff I start wanting to make sure it's rock solid, a habit drilled into me from my professors.
It's 7 kyu kata, I don't think there's a need to make it more complicated than it already is
Yes, I don't make suggestions or comments on katas often.
Since the function allows input of two 64 bit numbers, good practice is to be prepared for a result that may be longer than the inputs.
There is a test for adding two zeroes; there should be a test for the upper bounds as well, in my opinion.
Is this a question? The short answer is probably "no".
The long answer is that tests are specifically written to avoid 64 bit overflow, so the answer is probably "no".
In C++, since input is uint64_t, should tests include edge case for result that is 65 bits long, e.g. add_binary(UINT64_MAX + UINT64_MAX)?
can you give me soluttion
Okay but what is the question?
This comment is hidden because it contains spoiler information about the solution
Loading more items...