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.
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.
Неприятная ката от слова совсем. Алгоритм был написан правильный, но тесты не проходило. В решении все тоже самое, только вместо вектора используемся дек.
8 kyu
Описание выдумал явно не очень умный персонаж
You can't change the order.
(a+c)*b
is invalid.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
The test you are failing is not
[1, 5, 6]
but[5, 6, 1]
Max you can get is5 * (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.
In what language?
This comment is hidden because it contains spoiler information about the solution
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.
All this type kata should solve after creating own prime number generator
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)
Please fix the test!
IMHO current constraints makes it 6kyu.
At 7kyu brute-force solutions should be accepted.
Loading more items...