Basically say I have a list in python
lst = [6, 6, 7, 1, 1, 1, 1, 4, 1]
the program should return 4 because the number '1' is displayed 4 times in a consecutive manner. Btw the number 6 also displays in a consecutive manner but the program should get the number that shows up the most while being consecutive
more examples:
[6, 4, 4, 4, 1, 1, 7]
should output 3 because '4' is consecutive 3 times
I've been stuck on this problem for a while now, any advice??