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 specified that for clarity in all languages but the two's complement is a de-facto universal standard for signed numbers; and in C23 it is the only representation allowed by the standard
added more specs
Approved
nice kata
D translation
Go translation
From your example one may deduce that you are talking about two's complement, but it would help if you actually mentioned it, because ISO C (C99 section 6.2.6.2/2) allows 3 different implementations (two's compl., one's compl. and magnitude).
Rust translation
I tried to reword the description in COBOL's translation (see just above). Let me know if you have a better idea.
COBOL translation + unified translation + some rewording (see issue just below; author is inactive).
Approved :)
So, is it a signed or an unsigned integer? Can't have it both ways, not in a strongly typed language you can't, unless you want to introduce overloading in a
7kyu
kata.Haskell translation
should be fixed
Loading more items...