Find element occuring once when all other are present thrice
Given an array of integers arr[] of length N, every element appears thrice except for one which occurs once.
Find that element which occurs once.
- Time : O(n)
- Space : O(1)
1 | class Solution { |