Ad
  • Custom User Avatar

    I had bug in my code that manifested in the same way. Maybe this array will help you: [1, 0, 1]

  • Custom User Avatar

    Oh, I fixed it in example tests. Thank you!

  • Default User Avatar

    I completed it right now without problems, maybe your methods don't support big array.

  • Custom User Avatar

    testExamples ok
    testFixed ok
    testAdvanced ok
    testRandom ok

    STDERR: Process was terminated. It took longer than 12000ms to complete

    What's that? I written two methods, but both don't work and throw exception (timeout)/ Please help

  • Custom User Avatar

    If you are getting an error when running sample tests in TypeScript:

    Test Results:

    Log

    ../home/codewarrior/spec.ts(1,1): error TS1084: Invalid 'reference' directive syntax.

    ../home/codewarrior/spec.ts(2,1): error TS1084: Invalid 'reference' directive syntax.

    STDERR:
    Error: Command failed: tsc --module commonjs /home/codewarrior/spec.ts

    Just change reference to self closing tags

    /// <reference path="/runner/typings/mocha/index.d.ts" />

    /// <reference path="/runner/typings/chai/index.d.ts" />