136_Single_Number
- Source name
- 136_Single_Number.py
# File: Leetcode/Solutions/136_Single_Number.py
"""
Problem Number: 136
Problem Name: Single Number
Difficulty: Easy
Tags: Bit Manipulation, XOR, Neetcode 150
Company (Frequency): Amazon, Google, Facebook, Microsoft, Apple
Leetcode Link: <https://leetcode.com/problems/single-number/description/>
DESCRIPTION
Given array where every element appears twice except one, find that single one.
Approaches:
* XOR all numbers -> result. O(n) time, O(1) space.
"""