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.
approved
Thank you for the responce @akar-0.
I did manage that.
As always I am suprised of other's solutions ...
A good kata.
It's hard to answer without spoiling the solution. 1/4 is the initial value, it's in C0 ([0,1]). For C1 the value you must control is no more 1/4, it changes on each iteration.
But looking at example where's here 1/4 ?
C1 = [0; 1/3], [2/3; 1]
PS: I probably missing something .... :(
PS2: Seems like I'm starting to get the idea
Yes it is.
Hi there, interesting kata (not yet passed :()
Just got a failed test '_4_denominator_not_a_power_of_3' in C translation
Is this correct?
done!
Could you at the same time fix the issue in logs (see above)? false/true are reversed in logs.
Just fixed that.
There's an error in tests logs (it should display the inverse). But the test itself is correct: the correct answer is
false
and you're returningtrue
. I missed that when approving the translation. I'll leave a message to the translator for him to fix it.C fork available.
When I attempt with my solution (in C) I get Passed: 95 and Failed: 6.
Among the failed cases:
num = 1
den = 2
n = 1
Submitted: false
Expected: true
I think the answer is FALSE and not TRUE ? Or, maybe I missed something in the description.
COBOL translation (author is inactive). I unified the description and made a correction
num and den will be less than 10e8
(not10e7
as stated in the current description).This comment is hidden because it contains spoiler information about the solution
Approved :)
Loading more items...