算法
Java
Leetcode
Find the single integer II.
Question
Given an array of integers, every element appears three times except for one. Find that single one.
See it on Leetcode
|
|
Hint
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
Solution
- java
- cpp
1 | public class Solution { |