__________________________________________________

**Top Companies Interview Questions..-**

Microsoft | Amazon | more.. |

If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.

__________________________________________________

### Related Posts:

- Find two non-repeating numbers in an array in O(n) time and O(1) space
- Find the last repeating character in a given string.
- Find the last non repeating character in a given string.
- Find the two repeating elements in a given array | 6 Approaches
- Find the first repeating character in a given string
- Find the first non repeating character in a given string
- Find duplicates in an given array in O(n) time and O(1) extra space.
- Find the element which appears maximum number of times in the array.
- Dynamic Programming – Minimum Numbers are Required Whose Square Sum is Equal To a…
- Find three elements in an array that sum to a zero.