Ad
  • Custom User Avatar

    I'm not sure, but maybe the TypeScript test is broken.

    I'm working with this problem with TypeScript, and I failed a test within tests below.
    I tested them, and it seems I failed the first case.

    The error message say that "expected false to equal true", so the first case is expected to return false, and my program returns true for this case.
    Although, the first case is given as valid case at the Instruction page.

    Basic tests
    Log
    [121, 144, 19, 161, 19, 144, 19,  11] [121, 14641, 20736, 361, 25921, 361,20736, 361]
    
    [ 3, 4 ] [ 0, 25 ]
    
    [ 121, 144, 19, 161, 19, 144, 19,  11] [ 231, 14641, 20736, 361, 25921, 361, 20736, 361]
    
    [ 121, 144, 19, 161, 19, 144, 19,  11] [ 121, 14641, 20736, 36100, 25921, 361, 20736, 361]
    
    [] []
    expected false to equal true