Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I don't understand the conditions for stripping the trailing new line symbols. If I strip all of them, I get errors from the random test set. If I don't, I get errors from all test sets. What's the actual rule here?
I love you
This comment is hidden because it contains spoiler information about the solution
I'm super glad that you liked it. All the best :)
Sorry to take so much of your time. Awesome katas, I've had a lot of fun solving them.
Wish you a wonderful day!
Sorry, I've re-typed the text above instead of copying it straight from the description. The actual description is however correct. It says:
at most 2 times higher
and notat least 2 times higher
as I wrongly typed above.Yep, but your explanation in the istructions says exact opposite :)
What you just said and how it actually works:
In the instructions:
Yes, I agree, therefore the function should return
false
in your scenario. This is exactly what this kata asks for.Have a look at the example test case with
list1
. The function should returnfalse
because there too many JavaScript developers relative to the Python developers. Therefore the expected outcode of the functionisLanguageDiverse
isfalse
. Exactly as in your scenario.But "language diverse" basically means that there is a diversity in languages, hence, there should not be a language that dominates all other ones... Does it make sense?
Example given, if
it is not a diverse meetup, since there are too many Python programmers.
Thanks for the feedback,
I think that the function actually complies with your specification.
It should return
true
if the meetup is language diverse (number IS at least 2 times higher...)It should return
false
if the meetup is not language diverse (number IS NOT at least 2 times higher...)It seems that the result should be false if the languages are not diverse (e.g., if the number of meetup participants representing any of the three programming languages is at most 2 times higher than the number of developers representing any of the remaining programming languages - it would be logical for a function isLanguageDiverse to return false).
Not enough lines in this one... Need to think of a way to do it better... XD
;-)
This comment is hidden because it contains spoiler information about the solution
The first time my solution gets merged with someone else's C:
Loading more items...