Identify Unique Element in Array

Given an integer array where only one element appears once and all others appear three times, find the unique element and return it. Complete this task without using extra space.

Input Format:

  • ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: