Ad
  • Custom User Avatar

    The task is interesting, but implemented incorrectly. Tests should not be short: "101" => 'I', "1001" => 'EE', "100001" => 'EE'. The test data must be long so that desync analysis can be performed, the coefficients can be automatically adjusted, and the error corrected. In this version, the problem is solved only by manually adjusting the coefficients to the tests. Remove the task for revision

  • Custom User Avatar

    this solution is not correct,
    it is just fitting for tests,
    it does not work for the example from the condition
    Test.assert_equals(calc.evaluate("2 / 2 + 3 * 4 – 6"), 7)