Split list into sorted chunks, without duplicates in each chunk - Python

后端 未结 0 1801
逝去的感伤
逝去的感伤 2021-01-24 06:24

Given list [1, 2, 3, 4, 2, 4, 1, 3, 5, 5, 6], how would you split it into this: [[1, 2, 3, 4], [2, 4], [1, 3, 5], [5, 6]]

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