6 kyu
Progressive Spiral Number Distance
51 of 245GiacomoSorbi
Loading description...
Mathematics
Number Theory
Fundamentals
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.
Haskell translation
Nice!
python new test frameworks
approved by someone.
Ruby 3.0 should be enabled.
Enabled in this fork
The expected value should be computed before calling the user function in C++.
Why?
C# Translation added.Please review and approve~
int n = randint(1, pow(10, randint(1, 15)));
. pow(10,15) = 1,000,000,000,000,000 > 2,147,483,647 (int.Max).The problem of cpp translation.b
argument of therandint
function overflows its data typerand
does't generate numbers as huge as10**15
randint
may overflow its data typeFixed.
Fixed what? All 3 issues are still present. It does return random positive values, but internally the RNG process is broken.
It seems to work pretty fine to me, including logging values not overflowing.
fab seriese of katas. Thanks! And thanks for breaking the final task up in to stages!!!
My pleasure and glad that it worked the way I wished :)
Thank you for your time and your feed!
Approved
I don't think it was a 6kyu kata but, most importantly: who the fuck did downvote you for this just posting "approved" :S?
Who are these comments for? Authors will know anyway, those who solve everything approved will know anyway. I don't downvote them but I can see the point.
Well, sometimes the notifications are failing and I do not mind an extra message; if you write something I don't like, I would rather tell you why I don't like it; I see no point in downvoting someone if not utterly rude/illegal/idiotic.
The only case I can remember is when I downvoted the rabid SJW that was telling me I should not joke/simplify issues like socialism (which I experimented for a long time, he certainly did not).