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.
slight issue but maybe add some edge cases as a regex that could passes for Jon Dajohnson could pass all python test cases
Could someone explain me the problem that how the we are getting the ouput i am not able to understand @GiacomoSorbi or any one else and how the pair are forming
input "15 20 60 75 80 100"
for this pair of discount,initial can be 15 20 , 60 75 , 80 100
so for this all the discount prices could be 15 , 60 , 80 so how the output is 15 ,60 ,75
input 9 9 12 12 12 15 16 20
for this pair of discount , initial will be 9 9 , 12 12 , 12 15 , 16 20
so for this output will be 9 , 12 , 12 , 16 so how the output is 9 , 9 ,12 ,15
Python fork.
Now
O(n ^ 2)
solutions actually fail.I just added
25
cases with length from30_000
to50_000
.I know it's lazy, but I don't see a reason for somethinig more complex.
python new test framework is required. updated in this fork
Python: new test framework is required.
All languages (presumably) ~~ Missing a fixed and sample test where
start == end == step
like the first example in descriptionDescription should be language-agnostic
in C# there is only one parameter (string template)
python new test framework is required. updated in this fork
image is broken in description.
Python: Random tests are vulnerable to input modification
what is kyu
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
The description says "the quality of an item can never be negative or increase beyond 50".
Both of these limits are not true (and not just in cases where the item is "Sulfuras"), as in the tests, some items start with quality values that are negative, while others start with quality values that are above 50.
For clarification, this Kata tests that quality values above 50 should be reduced if necessary, but should otherwise not be altered, and negative quality values are changed to 0 the first time they are encountered, and then increased as indicated by the other requirements.
(I have seen the issue of items with an initial quality value greater than 50 pointed out by other commenters, but haven't seen anyone point out the negative quality value issue.)
Loading more items...