Ad
  • Default User Avatar

    Ditto, I was like wtf.... almost thought it was python for a moment

  • Default User Avatar

    Thank you for replying. I had a typo of for pissing about. I had pissing about as 24 instead of 25. Sorry about that.

  • Default User Avatar

    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'

  • Default User Avatar

    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.

  • Default User Avatar

    I was trying to get this but I took the repetitive way.