How can i group and sum elements in matrix, without using itertools.groupby?

后端 未结 0 601
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 03:33

the problem that I am facing is simple. I have matrix as list of lists like this:

[[0, 0, 1, 0, 0, 0, 0], [0, 1, 0, 1, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1], [0, 0,         


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