I would like to know if someone can tell me a solution for the following problem.
If I have the following list
row = [a1, a2, a3, a4, a5, xx, a7, a8, a9, a10]
This is effectively a row at a cinema or theatre. I would like to write a program that is able to find blocks of available seats for this row (xx is an unavailable seat). For example If I wanted a block of 5 seats my program would say that they are available and would return a1-a5.
Any help with this would be greatly appreciated.
Thanks in advance.