Skip to content

Missing Test Case - 136. Single Number #31908

@YatindraRai002

Description

@YatindraRai002

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions