LeetCode刷题实战605:种花问题
程序IT圈
共 1133字,需浏览 3分钟
·
2022-05-15 11:30
示例 1:
输入:flowerbed = [1,0,0,0,1], n = 1
输出:true
示例 2:
输入:flowerbed = [1,0,0,0,1], n = 2
输出:false
评论
共 1133字,需浏览 3分钟
·
2022-05-15 11:30
示例 1:
输入:flowerbed = [1,0,0,0,1], n = 1
输出:true
示例 2:
输入:flowerbed = [1,0,0,0,1], n = 2
输出:false