-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
Description
LeetCode Username
yatindrarai0045
Problem Number, Title, and Link
https://leetcode.com/problems/single-number/
Bug Category
Missing test case (Incorrect/Inefficient Code getting accepted because of missing test cases)
Bug Description
i want to add this test case to the problem statement
Input: nums = [-30000, 10, -30000, -100, 10, 30000, -100]
Output: 30000
Language Used for Code
C++
Code used for Submit/Run operation
class Solution {
public:
int singleNumber(vector<int>& nums) {
int result = 0;
for (int num:nums){
result ^= num;
}
return result;
}
};
Expected behavior
i want to add this test case to the problem statement
Input: nums = [-30000, 10, -30000, -100, 10, 30000, -100]
Output: 30000
Screenshots
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels