By initializing the instruction
I would like to give the answer with the help of an example: int arr[] = {1,2,3};
Here arr is an array name initialized with values 1, 2 and 3.
Say you are given an array which has all duplicate members except one, which out this non-duplicate member.
Given an unsorted array which has a number in the majority (a number appears more than 50% in the array), how to find that number?