Count equal elements

后端 未结 0 1302
旧巷少年郎
旧巷少年郎 2021-01-19 15:50

I have this list:
(2 2 2 2 3 4 4 5 5 5 6 7 7 7 8 8)
and would like to return the number of repetitions. The result should be this:
(4 1 2 3 1 3 2)
I have t
相关标签:
回答
  • 消灭零回复
提交回复
热议问题