ramin83karimi
Member
Hi,
I have a list which contains only numbers and is never empty, the numbers are also sorted from small to big, but each number might show up more than once, i want to take that list and get a new list that tells me how many times a number has appeared.
For example:
Input: (7,7,7,11,13,13,23)
Output: (3,1,2,1)
Because we had three of 7, and one of 11, and two of 13, and one of 23
I have a list which contains only numbers and is never empty, the numbers are also sorted from small to big, but each number might show up more than once, i want to take that list and get a new list that tells me how many times a number has appeared.
For example:
Input: (7,7,7,11,13,13,23)
Output: (3,1,2,1)
Because we had three of 7, and one of 11, and two of 13, and one of 23