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 ThakurPosted Jan 3, 2018, 4:31 AM
Altaf AnsariPosted Jan 3, 2018, 4:41 AM
Amrit ThapaliyaPosted Jan 3, 2018, 4:40 AM