Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 375 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 375 Bytes

LonelyInteger

Description

Given an array of integers, where all elements but one occur twice, find the unique element.

Returns

  • int: the element that occurs only once

Input Format

  • The first line contains a single integer, n, the number of integers in the array.
  • The second line contains n space-separated integers that describe the values in a.