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.
Please add random tests.
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?
Haha. Thanks for the suggestion :-)
I gotta say, you make fun kata! Thanks! I'm thinking there should be a murder/mystery sequel about Mr. Pong's unexpected disappearance after Mrs. Pong comes home and discovers all her precious porcelain in pieces on the floor!
@zhiburt, Yeah sorry...
Translations of my Kata must be same as original (or as much as is possible for the language) else I won't approve them. So that means same kind of Random Test code too.
Not speaking for Dinglemouse but speaking for the quality assurance team at Codewars: this should not be approved then.
Learn how to do random tests. Have a look at how Rust kata you have solved do it ( you can ), and steal from there what has already been invented. Copy the actual logic from the kata.
Random tests really are essential to have.
Hi great kata (especially the description :))
I've created a Rust translation but it doesn't contain random tests.
https://www.codewars.com/kumite/61fe5d0f31469b48c9e8261b?sel=61fe5d0f31469b48c9e8261b
Hey I also run into such an issue.
I did reset it didn't help.
I am confident to say that it's not an issue in my code.
Also I can state that the issue is not determenistic.
For example I've got an error on such data
[][]int{{165, 526}, {510, 397}}
.I created my own test with it and it works.
BTW: thanks for a great kata
Fixed
Fun Kata, took a couple of hours to complete. Encoding was pretty straight forward, but came up with a hacky solution for decoding, but eventually passed all tests.
Thank you for a great kata @darrentburgess.
I've eventually coped with it. (Not sure if it's a decent solution, but it works :))
And I would like to notice that in rust basic tests there's two tiny syntax errors
cannot find function `encodeRailFenceCipher` in this scope
.The fix is to rename the function.
Loading more items...