Most repeating number in sequence and its starting position
Suppose I have an array of integer arr[1,2,3,1,1,1,2,2,3,3].Here 1 is most repeated from position arr[3] to arr[5] for 3 times. Ho to find its starting position i.e arr[3] and total repeated count i.e 3 programmatically.

Dharmraj ThakurRank #577 · 4.2K reputationPosted Jan 2, 2018, 11:31 PM EST
Amrit Thapaliya12 reputationPosted Jan 2, 2018, 11:40 PM EST
Altaf AnsariRank #1,045 · 1.8K reputationPosted Jan 2, 2018, 11:41 PM EST