You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing test case (Incorrect/Inefficient Code getting accepted because of missing test cases)
Bug Description
Hi Team, i think there are problems with these testcase, i have a solution that pass all your test cases but if i run the script with another entry array, my script is incorrect.
Capt 1 with your test cases:
Capt 2 with another test case: the returned value is incorrect, if script works in the way you ask us in the description, r.length should be 15 but is 6:
Language Used for Code
JavaScript
Code used for Submit/Run operation
var removeDuplicates = function(nums) {
let r = [];let k = 0
for (let i = 0; i < nums.length; i++) {
const element = nums[i];
if(element === r[r.length -1]) {
nums.splice(i,1)
i--
}
else {
r.push(element)
}
}
};
Expected behavior
Test cases should be more especifics, they should be more complex
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
JandroCastro
changed the title
[BUG] - <title>
[BUG] - Better test cases for Remove Duplicates from Sorted Array exercise
May 8, 2024
exalate-issue-syncbot
changed the title
[BUG] - Better test cases for Remove Duplicates from Sorted Array exercise
[BUG] - <title>
May 8, 2024
Thank you for reaching out to us and for your active contribution to our platform. We're sorry to hear that you're experiencing some issues with the test cases of problem 26.
To investigate this issue further, we need a few more details. Could you please provide us with the specific test case where you believe your code should have failed but it got accepted? Along with this, more about why you believe the test case reveals a problem with the current suite of tests would be useful.
Your active involvement helps us to continuously improve our platform and provide the best resources to our users.
Thank you for your understanding and cooperation.
Best Regards,
LeetCode Support Team
exalate-issue-syncbot
changed the title
[BUG] - <title>
[BUG] - Better test cases for Remove Duplicates from Sorted Array exercise
May 8, 2024
LeetCode Username
JandroCastro
Problem Number, Title, and Link
Bug Category
Missing test case (Incorrect/Inefficient Code getting accepted because of missing test cases)
Bug Description
Hi Team, i think there are problems with these testcase, i have a solution that pass all your test cases but if i run the script with another entry array, my script is incorrect.
Capt 1 with your test cases:
Capt 2 with another test case: the returned value is incorrect, if script works in the way you ask us in the description, r.length should be 15 but is 6:
Language Used for Code
JavaScript
Code used for Submit/Run operation
Expected behavior
Test cases should be more especifics, they should be more complex
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: