Ad
  • Custom User Avatar

    i think this is the easiest way for begginer :v

  • Custom User Avatar

    got it, thanks =)

  • Custom User Avatar

    You're returning a boolean (True/False), not the number in negative form.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thanks =)

  • Default User Avatar

    Nope, the lines . . ;

    Test Passed: Value == z
    ... last argument - Expected: z, instead got: a
    

    . . . or . . .

    Test Passed: Value == c
    ... last argument - Expected: c, instead got: a
    

    result from distinct tests.

    Test Passed: Value == z
    Test Passed: Value == c
    

    . . . (which succeeded) are about last char of strings.

    ... last argument - Expected: z, instead got: a
    ... last argument - Expected: z, instead got: a
    

    . . . (which failed) are about last argument of arguments.

    eg, in :

    last( arg1, arg2, arg3, ..., arg99 )
    

    . . . last should return arg99 'cause it's the last argument.

    Hope it helps.
    ; )

  • Custom User Avatar

    last (...)
    should return...
    Test Passed: Value == 10
    Test Passed: Value == 10
    Test Passed: Value == z
    Test Passed: Value == z
    ... last argument - Expected: z, instead got: a
    Test Passed: Value == 5

    I think something is wrong.... Test Passed: Value == z ; ... last argument - Expected: z, instead got: a

    With randomized lists, wait for...
    Test Passed: Value == 2
    Test Passed: Value == b
    Test Passed: Value == c
    ... last argument - Expected: c, instead got: a

    Again,... Test Passed: Value == c ; ... last argument -Expected: c, instead got: a