You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Calculate themaximum number of occupants that can use aset of contiguous stalls without things gettingtoo awkward
Choose the most socially-acceptable stall given a set ofcontiguous stalls and their occupant status
Calculate Minespeeper-like distances away from occupiedstalls for each empty stall so you can be as informed aspossible when making that imporant decision
Examples
Let's say you have five contiguous stalls with the 0th, and 4thstalls occupied. You can represent these stalls with an array ofBooleans,true for occupied, andfalse for vacant.