6 kyu
Reach Me and Sum my Digits
1,099 of 3,370raulbc777
Loading description...
Fundamentals
Algorithms
Mathematics
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.
Interested kata with non-linear solution. +rep
js intial valuue not available
JS fork with upgrade to Node V18, making the description language-agnostic and etc (full details in the comments to it)
merged
For JS and possible other languages: the input data can be modified (
pattern_l
, for example)Resolved for JS in the latest merged fork, needed to verify the other languages as well
resolved for Java as well
for Coffeescript as well
the other languages don't have that problem, so I can say for now this issue is resolved
python new test framework
Approved +1
Really bad naming conventions for Python
I remember i couldnt solve this. Turns out not that hard. Nice kyu. :)
for me it was at least 5 kyu, but i enjoyed;)
This comment has been hidden.
Your solution modifies the input list
pattern_l
, which is then used by the author solution. That should be a kata issue, I'll raise it rnDone, in c++.
I don't understand. Explain me the first test case, please.
The last number of the example he gave is the position, and then find the corresponding number according to the position, and find the sum of the ten hundred thousand digits of this number
Please review: C++ Translation
Approved! +1
That was interesting. I enjoyed it.
I'm glad you liked it :)
Go translation
Approved +1
Thank you for the Go translation!
D translation
Approved+1
Description should be language-agnostic
Maximum
k
th term range should be specifieddone
JS Node 18. should be enabled
Unnecessary logs should be removed
done
Python new test framework should be used
Function and parameter name should use
snake_case
Resolved by fork above
Ruby 3.0 should be enabled
Function name should use
snake_case
Both done in this fork
great kata, but could be better if you would ask the sum of the sum of all numbers - meaning you would have to get all the numbers in the sequence.
Too late to enforce such change as it will invalidate all solutions
Rust translation.
Approved by author secretly
This comment has been hidden.
It depends on how many times the cycle repeats (the value of nthterm). Be careful of the indexes.
This comment has been hidden.
I pass the test but get "unknown error" at submit
Enjoyed this one. Thanks!
Glad you liked it!
When I click "Run tests", I pass them all, but when I submit it, it fails all of the tests! Really stuck on this, any advice as to why I might be failing the submission tests?
Post your code and someone may be able to help.
If I click on 'Run Tests' all tests passed. If I click on Submit button it says 'Waiting for result' forever and the submit button also got disabled. Anyone faced similar issue?
This comment has been hidden.
I liked this one!
I think there is an error in the sample number list: term7 = 20 # and so on..., this one should be term7 = 22.
You are right. Thanks for your observation!
Excellent! Upvoted!
Thanks for the feedback and your time solving this kata.