Open ManuH68 opened 1 month ago
Joyce_Ndisya commented: Hello,
Your reported issue has been relayed to our team for thorough investigation. We appreciate your patience as we work to address and resolve this matter. We will reach out to you when we have updates regarding the issue.
If you have any further questions or concerns in the meantime, please feel free to let us know.
Best regards, LeetCode Support Team
Just to make it clear, the error is coming from the Leetcode test data for Dart. It's a bug in Leetcode. Because of this no Dart submission will ever be accepted while this bug is not corrected. I had to submit my code in an other language to be accepted.
That should not be closed until fixed.
Joyce_Ndisya commented: Hello there,
Thank you for reaching out.
Checking now, LeetCode has already added this test case at this time.
Your continued feedback is greatly appreciated as we work towards improving our platform.
Best regards, Joyce
Hi Joyce, I just tested it, the error is still there.
Joyce_Ndisya commented: Hello there.
Apologies for the earlier response.
The relevant team is analyzing the feedback and we will get back to you as soon as possible. We appreciate your patience during this time.
Warm regards, Joyce
LeetCode Username
Dartist
Problem Number, Title, and Link
0399 Evaluate Division https://leetcode.com/problems/evaluate-division/description/
Bug Category
Incorrect test case (Output of test case is incorrect as per the problem statement)
Bug Description
I got this message at the test case 18/28:
Line 93: type 'int' is not a subtype of type 'double'
0 new List.from (dart:core-patch/array_patch.dart:29:5)
1 deserializeToList (package:serializers/src/deserializers.dart:50:10)
2 main (file:///solution.dart:93:22)
What's happening here I think is that the input for values is [2.0, 3.0, 2]
During the deserialization Dart sees the last number as an int which cause the datatype mismatch in the error message above.
Because of this, nobody will be able to enter a valid Dart solution.
Language Used for Code
Dart
Code used for Submit/Run operation
Expected behavior
No error from the input test cases. Numbers should all be stored with a decimal point so that the deserialization process will indentify the numbers as type "double" and not "int".
Screenshots
No response
Additional context
No response