7 kyu
The mean of two means
724 of 1,685smarthutza
Loading description...
Arrays
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.
Really enjoyed this one — it was clear, well-structured, and quick to work through. A solid little challenge that feels good to complete. Thanks for the kata!
Ruby: move to 3.0 + RSpec, better assertion messages, language agnostic description
Approved
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai). Refer to this and this
Updated to Node v14
Ruby 3.0 should be enabled, see this to learn how to do it
The instructions say
getMean([1,3,2,4], 1, 2) should return -1 because x is not higher than 1. The instructions need also to have an additional example to indicate that it should also return -1 if y is not higher than 1.
JavaScript version needs random test cases
I now added random test cases
Python, Ruby and Crystal translations submitted if you want to approve them :)
Your kata definitely needs random test cases and, while I was checking to see if you were someone else I know... Wow, but is there anyone new not from London on CW :D?
Hi, Giacomo. First of all, nice to virtually meet you. I didn't realise there were so many Londoners around :) Good to know though. This is the first kata I created. I only started teaching myself Java Script about 7 weeks ago. So to be honest, I have no idea how to approve the translations you mentioned or how to create random test cases. Perhaps you could enlighten me? Excuse my ignorance :)
Really? Only 7 weeks ago? Not bad at all!
To create a kata, nothing I think beats bkaes guide to it, but you might also want to visit the dedicated channel and, finally, you might wish to consider training directly with my guys (I am currently outside the kingdom, but plenty of fun nevertheless).
Cheers!
P.S.: and, really, I think in the last 10 days or so, all the new codewarriors I interacted with were from out city: nice!
P.P.S.: for the translations, just click one, run it if you wish, or just press "approve".