Find Minimum Index of Repeating Element in Array
Given an array of integers. The task is to find the Minimum index of repeating element in an array in linear time and in a single traversal of the array. Examples: Input : {5, 6, 2, 1, 6, 1, 2} Output : Minimum index of repeating element is 1 Input : {1, 2, 5, 6, 7} Output :… Read More »
