Ad
  • Default User Avatar

    My error is slightly different ("expected 1 to equal +0"). Maybe i'm not framing my question correctly. Can you explain why assert.strictEqual(findUniq([0, 0, 1 ]), 0) should equal 0 and not 1? My code is returning 1 which I understand but how is this not correct?

  • Default User Avatar

    NunoOliveira, could you elaborate on how the unique value is still expected to be zero even when there are multiple of those values?

  • Default User Avatar

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

  • Default User Avatar

    Slightly trickier than the usual level 8. Hint: One line... Don't overthink.