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.
.
Actually, it is a global variable with String keys:
Someone can update Ruby kata description?
I'm getting this as well on Ruby
In the description, you say
However, one of the test cases tests for the name 'Anna'. You should either change that test case, or put in the description what to do with an invalid name as input.
The javascript also returns an error similar to the ruby version "ReferenceError: employee is not defined". Also the description doesnt have any info on the arrays structure. Is it a double array? One long string?
As mentioned by samzhao2008, I'm getting a
undefined local variable or method 'employees' for main:Object
error in the Ruby version.inb4 eval = evil :)
Fantastic little story to illustrate a real-world example that succesfully masks what'd otherwise be a dry excercise in implementing simple maths.
As another commenter pointed out, I'm a little disappointed that Codewars is accepting the less accurate implementation w/ simple percentages instead of the proper exponential equation, but I assume that's at no fault of the author and a limitation of either the website or maybe Ruby itself.