Problem 3140 · Medium

Consecutive Available Seats II

SQL walkthrough with invented sample tables. Find the longest runs of adjacent free seats and return every seat in the longest run or runs.

Open the interactive visualisation