solvingalgo
Published in

solvingalgo

Find the Element that Appears Once

Problem

  • Find the only element that appears once
In an unsorted array of integers, every element appears twice except for one element that appears only once. Return this element.Example:Input: a=[1, 4, 2, 4, 1, 3, 2]
Output: 3

Video:

Follow me on Twitter @teivah

--

--

--

A Collection of Helpful Programming Resources

Recommended from Medium

Load JSON to DynamoDB In Just A Few Clicks with The AWS Serverless Application Repository

Missing ffi_prep_closure error for ffi-1.13.1 gem

CS373 Fall 2021: Blog #4

Smart Electric fence controller with Android App for Farmers

UP: deploy serverless apps in seconds

The Most Loved Programming Language in the World

App4: Linux Remote CLI App using python — CGI with Firebase Stream Builder

Cudo and Gather Announce Partnership to Achieve Greater Cloud Infrastructure Scalability

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Teiva Harsanyi

Teiva Harsanyi

Software Engineer, Go, Rust, Java | 改善

More from Medium

DSA #1: Big O notation Time/Space complexity

How to solve the “Fibonacci Number modulo M” Problem in Java

Fibonacci numbers

Binary Tree Threading & Morris In-order Traversal

Storing Money and Float Precision