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.
Thank you! Corrected
Thanks done
thanks corrected the example
Thanks. Changed that part to match what it says earlier in the problem:
" can be made with any amount of pills a and/or b "
let me know if you think it works this way!
Thank you. added a hardcoded case to test this as well as approx 5% of the random cases
Thank you for this! I altered it from recurrence_rate to recurrence but missed that spot.
corrected
Solution corrected thanks for picking this up
Even though 1.47,1.96,2.89 is 3 numbers it is only TWO consecutive increases (1.47->1.96 and 1.96->2.89)
Thank you for the question. You are not the only person that thought like this.
In this kata, the average of ALL of the pressures in the array must be evaluated to see if the patient meets the first or second criteria.
The "minimum of 2 measurements" means that if the patient has less than 2 measurements in the array, do not evaluate it with the first or second criteria (for example index 1 in the instruction example)
Let me know if this is more clear
Great pickup thank you. I have amended the random generator to prevent the nadir appearing mor than once and I will clarify in the description that the nadir value will appear only once.
excellent thank you
Thank you. added a few percent chance of a the minimum being moved to the last few values after generating the patient
Thanks added this import although since it worked before that I'm not sure I understand what it does
Thank you for identifying this. I realize now I should (obviously) have not compared floats the way I initially tried.
Thanks for this interesting finding. I have added a fixed test for 3 increasing values before the nadir (and a couple more) as well as increasing the number of random tests to 1000 because the solutions are quite fast anyway. Do you think it would be better to edit the random generator?
Loading more items...