Closed pranjalchanda08 closed 1 week ago
Winston Tang commented: Hello pchanda2410,
Thank you for reaching out to us with your concerns. To assist you better, could you please provide us with the specific test case that you believe is inconsistent with the problem constraints? This will be really helpful in order for us to further investigate this issue.
While waiting for your response, you might also want to double-check the problem statement for any potential misunderstandings and retest your code with typical and edge cases. Especially, please verify your understanding of the 32-bit constraint you mentioned.
Looking forward to your reply.
Best regards, LeetCode Support Team
The same logic is working on JAVA but not in C
the only thing that helped is by changing the "int" to "long double"
Hello there,
Thanks for reaching out!
While the given test case still satisfied the original constraints, the constraints have been updated such that any subarray product now fits inside 32-bit integer now.
Best, LeetCode Support Team
LeetCode Username
pchanda2410
Problem Number, Title, and Link
https://leetcode.com/problems/maximum-product-subarray
Bug Category
Incorrect test case (Output of test case is incorrect as per the problem statement)
Bug Description
Language Used for Code
C
Code used for Submit/Run operation
Expected behavior
No runtime errors.
Screenshots
Additional context
No response