Skip to content
Advertisement

Tag: duplicates

find indices of duplicate floats in a list

I have an input of a very large list of floating point numbers, a sample is given I want to find all the duplicates and their index i.e. location in the list. The duplicates will only occur as a pair; never more than twice. The output should be like so there are just two entries 1.2 and 3.1 which occur

Advertisement