0
How repeated numbers are shows using array
Which number and how many times they are repeat
3 Antworten
+ 1
Question not clear.
Try to reframe it.
0
When you iterate through an array, you could in each iteration compare the integer with all integers before the current integer.
https://code.sololearn.com/cpPOp49c9DCX/?ref=app
In the example it would compare:
8 to 4,
3 to 4 and 8
4 to 4, 8 and 3
2 to 4, 8, 3 and 4
0
which the number are repeated and how many times they are repeated in array