Ad
  • Custom User Avatar

    All languages should have fixed tests below to invalidate some cheezy solutions that check for summation == 0

    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, -2, -1]

  • Custom User Avatar
  • Custom User Avatar

    All languages other than JS, TS and Python:

    • Need test coverage for this issue.
    • Need test coverage for this issue (other than C).
    • Need test coverage for this issue.
    • Need tests for empty array removed.

    Relevant fixed tests are contained within the linked issues, Python and JS have sample random test code which should provide sufficient coverage.

  • Default User Avatar

    Empty array seems to fit the given defintion of "nice" (i.e., "an array where for every value n in the array, there is also an element n - 1 or n + 1 in the array.") For every value of an empty array (i.e., none) there is also an element n - 1 or n + 1 (i.e., none). Should either change the definition and instructions to specify that the array is non-empty or change the test so an empty array returns true.

  • Custom User Avatar

    Python: Random tests are vulnerable to input modification

  • Default User Avatar

    To be consistent with the description, the C function should be called compute_depth rather than integer_depth.

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Custom User Avatar

    python new test framework + random tests are required. updated in this fork

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Default User Avatar

    There are tests with 1 in Rust.

  • Custom User Avatar

    Python reference solution is wrong. For example:

      n     correct      reference
    14399  2 (119-121)      4
    34595  2 (185-187)      4
    

    Edge cases (e.g. 4453, 14399, 34595, 44969, 408593, 218683, 663193) should be in fixed tests in all languages.

  • Default User Avatar

    Hello! Why do I have such a result?
    Expected: [764, 987, 567, 155, 329], instead got: [329, 312, 181, 266, 606]

    what are the parameters here: a.letgth = ? i = ? n = ?

  • Custom User Avatar

    someone, expain me, please:

    in case arr.length = 110, i = 61, n = 36

    Expected: -1, instead got: [858, 731, 252, 534, 836, 716, 861, 783, 186, 984, 90, 839, 168, 26, 942,
    415, 847, 65, 35, 422, 143, 159, 235, 198, 355, 298, 44, 255, 995, 730, 843, 403, 306, 171, 636, 996]

    why does testcase expect -1 ?

  • Default User Avatar
  • Custom User Avatar

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

  • Loading more items...