GEICO·Software Engineer·Technical Phone Screen
- Given a string of houses ('H') and empty spaces ('.'), find the minimum number of food buckets to place in empty positions so every house has at least one adjacent bucket. Return -1 if it's not possible.
“Took me a minute to realize you should always try to place the bucket to the right of a house first, not the left.”