3
Reply

Most repeating number in sequence and its starting position

Amrit Thapaliya

Amrit Thapaliya

Jan 3 2018 3:53 AM
148
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.

Answers (3)