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.
The solution still needs to be merged with some more recent changes.
Hi dinglemouse! How are you doing?
In this case I wasn't aiming for the shortest, and indeed conversion to a string will lead to shorter code. Well done
Happy new year dinglemouse! Glad to see you forking again. I'll had codewars on pause for a bit, but I'll be picking up again.
C tests report
whereas I would expect to see values for expected and actual parts.
does not match the C translation
which part don't you understand, the algorithm, or the C part?
Description has
n<=2**100 - 1
whereas the C translation uses an unsigned long long for n, hence it can never be that range.For Haskell, it's not defined what should be returned for "other" input.
I haven't solved this kata, but it is currently failing for Forth, because of a recent change in the test framework.
If someone can pick this up, I know about the details and can help to fix it. Please contact me if necessary.
Approved
And thinking about this, for this small solution it doesn't matter that much, but it's probably better to only run your reference solution once. You can do that with:
I spotted something that got lost from my first comment:
( n -- parity )
You need
descibe
and anit
, not only one of them to solve the trashed stackdotest
. Even more so in Forth than in C.solve
describe#{
-}#
pair7 Kyu? Really?
Loading more items...