Example 1:
Input: flowerbed = [1,0,0,0,1], n = 1
Output: True
Example 2:
Input: flowerbed = [1,0,0,0,1], n = 2
Output: False
判断条件:
1)i位置为0
2)前一个花盆为空 或者 边界
3)后一个花盆为空 或者 边界
class Solution {
public boolean canPlaceFlowers(int[] flowerbed, int n) {
int count