【Leetcode 136】Single Number
难度: 简单(Easy)
题目
Given an array of integers, every element appears twice except for one. Find that single one.
思路
两个相同的数字异或为零
代码
1 | class Solution(object): |
难度: 简单(Easy)
Given an array of integers, every element appears twice except for one. Find that single one.
两个相同的数字异或为零
1 | class Solution(object): |
评论系统未开启,无法评论!