본문 바로가기

풀어본 Algorithm 문제 정리

[OJ.leetcode] single-number-ii

https://oj.leetcode.com/problems/single-number-ii/


Given an array of integers, every element appears three times except for one. Find that single one.

Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?