7 kyu
Difference Of Squares
429 of 7,364noku
Loading description...
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.
Java translation
C Translation (user somewhat inactive).
approved
Nice kata. Very simple and easy to understand.
Lua translation!
Approved
Не понимаю, почему ни reduce, ни циклы не работают
map() is Array method, you are trying to use it with number.
проблема в том, что в VS коде у меня все работает, а здесь тесты не проходили.
Prolog translation
Approved.
JS fork, Chai assertions, Node version upgrade, fixed random tests, previous version was generating in range 0<=n<=99, description says 1<=n<=100.
approved
Can you consider approving this C# translation?
Seems to be approved.
This type of kata? again? :-/
(it's a two years old kata... ;) )
Who dug it then?? :O
PHP Translation Kumited - please carefully review and approve :D
Python translation updated (random tests included).
; ) )
Approved
In the instructions you ask for sum_of_squares - sum2, but in order to pass tests, I had to do: sum2 - sum_of_squares
This comment has been hidden.
For some reason it was still the other way around. Fixed now.
You might consider adding some error messages for incorrect submissions.
This comment has been hidden.
Nice kata, I don't think it is 8kyu though, ranked it as 7kyu
Details need minor fixes for readability. E.g. 'n' in the description becomes (x) in the test.
This comment has been hidden.
Fixed
This comment has been hidden.
That's not an issue for a
7kyu
kata.This comment has been hidden.
C# translation kumited.
I just finished the ruby version of this Kata and have a couple of small issues with it.
Hi haferjir, I fix the issues mentioned by you.
Thanks.
An example test case should be provided.
I added some examples test cases.
There needs to be some test provided by default for this Kata
I addded some default tests.
Wasn't this on the Euler problem database, or something very similar?
JS translation kumited.
(Random tests added, description not modified (awaiting for Python translation approval) ) more info on how to approve it ( or not )
Python translation kumited.
(Description modified & random tests added) more info on how to approve it ( or not )
Approved some time ago
I think that after reading the full description, the purpose of the kata is evident, but the first line confuses things a little right now. It might be better to change "...the sum of the squares of the first one hundred natural numbers and the square of the sum." to "...the sum of the squares of the first
n
natural numbers (1 <= n <= 100
) and the square of their sum. For example, whenn
= 10:" or something like that. Otherwise, after reading the first line, it seems like the goal is to evaulate only the case ofn
= 100.Thanks I changed it to be more evident.