Storing 1 st occurence of arr [ i ]
a [ arr [ i ] ] = i NEW_LINE if ( k == 0 ) : NEW_LINE print ( " No ▁ repeating ▁ element ▁ found " ) NEW_LINE else : NEW_LINE min = max + 1 NEW_LINE for i in range ( max + 1 ) : NEW_LINE