How To Solve Missing Number Problem In Java, An Amazon Interview Question
Introduction
We make use of XOR principles in finding a missing element.
Let’s see how to achieve this using the XOR operator.
Problem statement
Given an array nums containing n distinct numbers in the range [0, n], return the only number in the rang...
ggorantala.hashnode.dev6 min read