Hi. I have submitted a program source code for the MiniMax problem. The program is working flawlessly for all test cases, including the sample ones given in the problem statement’s explanation and the ones created by myself. The output is also as required and the constraints are being adhered to. Still after submitting the code, it was declared to be wrong. Why is it so?
Where is your code?
constraints are being adhered to
You dont need to do that. Constraints mean, the setter is conveying to you that “I am testing your code for input values in this range/between these values”/
it was declared to be wrong. Why is it so?
Just cause its working on sample I/O doesnt mean its correct. There are a lot of corner cases etc. Your code is failing on one or more of those.
Oh I see. Thanks.