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.
This fork fixes the issue.
In kotlin, refsol is calculated with average as an integer, leading to unexpected results.
For the inputs:
meet = {tim=3, jim=4, randy=0, sandy=0, andy=8, katie=5, laura=0, saajid=2, alex=14, john=9, mr=1}
boss = alex
The average for this input is 5.454545...
But the refsol calculates the average as 5, leading to an expected return vaalue of "Get Out Now!" rather than the correct "Nice Work Champ!"
Why the heck is the average an integer? It should be a floating point number.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Fixed.
Done.
Done.
You have to force using given functions while creating such kata
Loading more items...