How repeated numbers are shows using array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How repeated numbers are shows using array

Which number and how many times they are repeat

28th Nov 2019, 5:17 PM
Shalu Shendre
3 Answers
+ 1
Question not clear. Try to reframe it.
28th Nov 2019, 5:23 PM
Avinesh
Avinesh - avatar
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
28th Nov 2019, 6:37 PM
Seb TheS
Seb TheS - avatar
0
which the number are repeated and how many times they are repeated in array
29th Nov 2019, 5:50 PM
Shalu Shendre