Given a binary array seats representing a row of seats, where seats[i] = 1 means the seats[i] = 0 means the
Return the maximum possible distance between Alex and the closest occupied seat.
Constraints:
seats.length
seats[i] is either
At least one seat is empty
At least one seat is occupied
Given a binary array seats representing a row of seats, where seats[i] = 1 means the seats[i] = 0 means the
Return the maximum possible distance between Alex and the closest occupied seat.
Constraints:
seats.length
seats[i] is either
At least one seat is empty
At least one seat is occupied