Skip to content

Commit

Permalink
Create 136-Single-Number.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SPponmag committed Aug 20, 2022
1 parent f110883 commit 92f1f4d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions csharp/136-Single-Number.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public class Solution {
public int SingleNumber(int[] nums) {
var x = 0;
for (int i=0;i < nums.Length; i++)
{
x ^= nums[i];
}
return x;
}
}

0 comments on commit 92f1f4d

Please sign in to comment.