How can I write a algorithm that finds how many of a certain number is in a row in a list in python?

后端 未结 0 1661
借酒劲吻你
借酒劲吻你 2020-12-15 09:51

How can I write a algorithm that finds how many of a certain number is in a row in a list in python?

FOR EXAMPLE:

Input: List = [0,1,1,1,0,1,1] N = 1

Ou

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