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.
Nice! :]
just completed this; it was very fun! thank you
sorry guys i dont undestand. I am given a query function,but i dont know N at all. where do i get N from?
Kind regards
Marco
This comment is hidden because it contains spoiler information about the solution
Would it be interesting to add a batch of relatively small random tests that also output
N
on error, just to give users an idea in which phase of their algorithm their mistake is? Or is the fact this Query is a total black box part of the difficulty level and challenge of this kata?This comment is hidden because it contains spoiler information about the solution
much better now
I've added smaller tests
nvm, I probably made a mistake in calculations
Integer precision should be perfect up to about 4000 digits, which calculations in my kata shouldn't exceed. Maybe you're accidentally using floats somewhere? That's strange, if you're not
I don't understand Python, I thought integer precision was infinite:
And random tests of smaller numbers first too. Massive numbers are basically undebuggable.
Random tests are horrible. No meaningful error output, just one big blob of tests. Split these tests into batches and give some proper error feedback.
.
ok, who knows if it's impossible to cheat on this kata but it's definitely a lot more difficult now
Loading more items...