Skip to content

Commit 0c4607e

Browse files
committed
Add solution 136.
1 parent ed8dff9 commit 0c4607e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Solution {
2+
3+
/**
4+
* @param Integer[] $nums
5+
* @return Integer
6+
*/
7+
function singleNumber($nums) {
8+
for ($i = 1; $i < count($nums); $i++) {
9+
$nums[0] = $nums[0] ^ $nums[$i];
10+
}
11+
return $nums[0];
12+
}
13+
}

0 commit comments

Comments
 (0)