Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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
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)