Description
Difficulty: Easy
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
给出一个整数数组,有一个元素只出现了一次,其他所有元素都出现了两次。找出这个元素。
Solution
|
|
近期评论