How to Find No of Duplicates in an Array of Integers

Hi,

Can you try the following sample?

dict = arrInt.GroupBy(Function(i) i).Where(Function(g) g.Count>1).ToDictionary(Function(g) g.Key,Function(g) g.Count)

Sample20230324-2aL.zip (2.6 KB)

Regards,