题目地址
题目描述
Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one.
解题思路
将数组排序,之后遍历查找就可以了。直接看代码
解题代码【.CPP】
1 | class Solution { |
你想开发游戏还是改变世界?
Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one.
将数组排序,之后遍历查找就可以了。直接看代码
1 | class Solution { |