cs: add “136. Single Number”

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-01-08 22:29:29 +01:00
parent ccd80cc46b
commit c838c99927
Signed by: mfocko
GPG key ID: 7C47D46246790496

5
cs/single-number.cs Normal file
View file

@ -0,0 +1,5 @@
public class Solution {
public int SingleNumber(int[] nums) {
return nums.Aggregate((x, y) => x ^ y);
}
}