Ad
  • Custom User Avatar

    under the examples it clearly states that the years are classified in centuries using 'STRICT' construction instead of popular.
    This means 1-100 is 1st century, 2000 is 20th century as it shows in the examples given.

  • Custom User Avatar

    Неприятная ката от слова совсем. Алгоритм был написан правильный, но тесты не проходило. В решении все тоже самое, только вместо вектора используемся дек.

  • Custom User Avatar
  • Default User Avatar

    Описание выдумал явно не очень умный персонаж

  • Custom User Avatar

    You can't change the order. (a+c)*b is invalid.

  • Default User Avatar

    Time: 452ms Passed: 14Failed: 7Exit Code: 1
    Test Results:
    Fixed Tests
    Basic Test Cases
    Test Passed
    Test Passed
    Test Passed
    Test Passed
    Test Passed
    Test Passed
    6 should equal 5
    Test Passed
    Test Passed
    Test Passed
    36 should equal 35
    12 should equal 8
    18 should equal 14
    49 should equal 48
    Test Passed
    32 should equal 27

    i got the max and it says no it want onather thing

  • Custom User Avatar

    The test you are failing is not [1, 5, 6] but [5, 6, 1] Max you can get is 5 * (6 + 1).

    Remember that you have to use numbers in their original order, you cannot reorder them.

    Your solution is buggy, it is not a kata issue.

  • Custom User Avatar

    In what language?

  • Custom User Avatar

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

  • Custom User Avatar

    You cannot swap the operands. For example, with the given numbers, you cannot get the expression (1 + 3) * 2 = 8.

  • Default User Avatar

    I think the expression: (a + c) * b, was not taken into consideration while designing this Kata. Removing it from your array of possible expressions should fix it if you're using the same approach as mine.

  • Custom User Avatar

    All this type kata should solve after creating own prime number generator

  • Default User Avatar

    if you want something to be fixed then demonstrate how it is broken such that another person can reproduce the situation. otherwise nobody has any clue what you're referring to (and most people will probably assume there's nothing wrong and that you're simply dealing with a bug in your own code)

  • Custom User Avatar

    Please fix the test!

  • Custom User Avatar

    IMHO current constraints makes it 6kyu.
    At 7kyu brute-force solutions should be accepted.

  • Loading more items...