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.
Ditto, I was like wtf.... almost thought it was python for a moment
Thank you for replying. I had a typo of for pissing about. I had pissing about as 24 instead of 25. Sorry about that.
It think the totals were miscalculated for each of the test cases listed below in javascript.
I haved check the math and wrote the total above the objects
Based on your rules
<=80: 'kill me now'
< 100 & > 80: 'i can handle this'
100 or over: 'party time!!'
total = 98
{ tim: 'IS',
jim: 'cleaning',
randy: 'trading',
sandy: 'accounts',
andy: 'trading',
katie: 'pissing about',
laura: 'change',
saajid: 'trading',
alex: 'canteen',
john: 'pissing about',
mr: 'regulation' }
Expected: 'party time!!', instead got: 'i can handle this'
The total is 98! It should not be over 100.
total = 98
{ tim: 'retail',
jim: 'change',
randy: 'cleaning',
sandy: 'pissing about',
andy: 'pissing about',
katie: 'retail',
laura: 'IS',
saajid: 'finance',
alex: 'IS',
john: 'trading',
mr: 'change' }
It should work for random inputs too - Expected: 'party time!!', instead got: 'i can handle this'
total = 99
{ tim: 'IS',
jim: 'change',
randy: 'trading',
sandy: 'cleaning',
andy: 'pissing about',
katie: 'regulation',
laura: 'regulation',
saajid: 'IS',
alex: 'pissing about',
john: 'retail',
mr: 'IS' }
The total is 99
It should work for random inputs too - Expected: 'party time!!', instead got: 'i can handle this'
You need to add more sample cases. You are wasting people's time by not adding
Test.assertEquals(LCS("anothertest","notatest") , "nottest);
Your Kata is just making alot of people frustrated. Having only 2 test shown is lazy.
I was trying to get this but I took the repetitive way.