Printing multiple arrays from an array

前端 未结 0 856
野性不改
野性不改 2020-11-22 05:25

Lets say we have a sorted array, A = [1,2,2,3,7,7,7,9].

We want the output to look like:

[1]

[2,2]

[3]

[7,7,7]

[9]

This is m

相关标签:
回答
  • 消灭零回复
提交回复
热议问题