3 test cases are not passing can u tell me the mistake please
It is mentioned in the question that during any time in the journey the power should not fall below or equal to K. so instead of checking at end you should check at every stage.
It is mentioned in the question that during any time in the journey the power should not fall below or equal to K. so instead of checking at end you should check at every stage.