Given an array that have duplicated member
[9, 8, 2, 6, 1, 8, 5, 3, 4, 7]
You should find the repeat number and share the output like this.
{
'1': 1,
'2': 1,
'3': 1,
'4': 1,
'5': 1,
'6': 1,
'7': 1,
'8': 2,
'9': 1
}
Given an array that have duplicated member
[9, 8, 2, 6, 1, 8, 5, 3, 4, 7]
You should find the repeat number and share the output like this.
{
'1': 1,
'2': 1,
'3': 1,
'4': 1,
'5': 1,
'6': 1,
'7': 1,
'8': 2,
'9': 1
}