Leetcode: 136. Single Number
Problem Explanation
We are given a non empty array where all elements are repeated twice except one. We need to find that number.
Examples :
nums = [1,3,1,2,3,2]
Output: 2
nums = [5]
Output: 5
Different approaches to solve the problem
Brute Force ...
blog.sarathchandra.me2 min read