4 kyu
Nelson the Number Theorist
38myst-6
Loading description...
Number Theory
Mathematics
Performance
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
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 has been hidden.
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?I don't understand Python, I thought integer precision was infinite:
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
nvm, I probably made a mistake in calculations
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.
And random tests of smaller numbers first too. Massive numbers are basically undebuggable.
I've added smaller tests
much better now
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Probably have to ask Blind4Basics for this one; they have used some code similar to this (but more sophisticated) for this exact purpose in other katas.
ok, who knows if it's impossible to cheat on this kata but it's definitely a lot more difficult now
.