Amrit Thapaliya

Amrit Thapaliya

  • NA
  • 16
  • 476

Most repeating number in sequence and its starting position

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