¡@

Home 

php Programming Glossary: seats

Search matrix for all rectangles of given dimensions (select blocks of seats)

http://stackoverflow.com/questions/6945105/search-matrix-for-all-rectangles-of-given-dimensions-select-blocks-of-seats

for all rectangles of given dimensions select blocks of seats All I have been trying to work out how to select say 15 tickets.. out how to select say 15 tickets within a single block of seats. EDIT the problem is how to find all rectangles of given dimensions.. rectangles of given dimensions say 3x5 for example of free seats The below is my table and the query selects 4 consecutive seats..