mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-10 00:09:06 +01:00
cs: add “136. Single Number”
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
ccd80cc46b
commit
c838c99927
1 changed files with 5 additions and 0 deletions
5
cs/single-number.cs
Normal file
5
cs/single-number.cs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
public class Solution {
|
||||||
|
public int SingleNumber(int[] nums) {
|
||||||
|
return nums.Aggregate((x, y) => x ^ y);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue