DeepNinja07x / Python_Scripts

It contains all the Python Programs, whether it's a GUI, basic, Data Structures, etc. It's a collection of some great Python scripts from basic to advance levels for automating some monotonous tasks.
The Unlicense
32 stars 56 forks source link

Added a Hashing Problem #86

Closed chandankiller closed 3 years ago

chandankiller commented 3 years ago

Given an integer array A of size N, find the first repeating element in it.

We need to find the element that occurs more than once and whose index of first occurrence is smallest.

If there is no repeating element, return -1.