Ad
  • Custom User Avatar

    instead of matching a simple string with +, why didn't you used [a-zA-Z]{4,} ? this way you dont need to test for the word length in the function

  • Custom User Avatar

    its been a year since you included this comment, but the wizard's evil power is also 10, not 11

  • Custom User Avatar

    missing python test cases

    test.assert_equals(caffeineBuzz(1), "mocha_missing!")
    test.assert_equals(caffeineBuzz(2), "mocha_missing!")
    test.assert_equals(caffeineBuzz(3), "Java")
    test.assert_equals(caffeineBuzz(4), "mocha_missing!")
    test.assert_equals(caffeineBuzz(5), "mocha_missing!")
    test.assert_equals(caffeineBuzz(6), "JavaScript")
    test.assert_equals(caffeineBuzz(7), "mocha_missing!")
    test.assert_equals(caffeineBuzz(8), "mocha_missing!")
    test.assert_equals(caffeineBuzz(9), "Java")
    test.assert_equals(caffeineBuzz(10), "mocha_missing!")
    test.assert_equals(caffeineBuzz(11), "mocha_missing!")
    test.assert_equals(caffeineBuzz(12), "CoffeeScript")
    
  • Custom User Avatar

    using sqrt(n), instead of n/2 was a really clever idea

  • Custom User Avatar

    wow... please dont do this again

  • Custom User Avatar

    why 'ans' as the variable name ?