My LeetCode grinding. Trying to do a problem a day.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

problem.txt 298B

123456789101112131415
  1. Given a non-empty array of integers, every element appears twice except for one. Find that single one.
  2. Note:
  3. Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
  4. Example 1:
  5. Input: [2,2,1]
  6. Output: 1
  7. Example 2:
  8. Input: [4,1,2,1,2]
  9. Output: 4