Skip to content

Commit

Permalink
2021_05_30
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyehcf committed May 30, 2021
1 parent 752b8ff commit 395bea4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Code136.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Single Number

```java
class Solution {
public int singleNumber(int[] nums) {
int result = 0;

for (int num : nums) {
result = result ^ num;
}

return result;
}
}
```

0 comments on commit 395bea4

Please sign in to comment.