会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hanjian7
博客园
首页
新随笔
联系
订阅
管理
2022年7月28日
605.种花问题
摘要: 题目来源于leetcode 题目 种花问题 提示: 1 <= flowerbed.length <= 2 * 104 flowerbed[i] 为 0 或 1 flowerbed 中不存在相邻的两朵花 0 <= n <= flowerbed.length 解题思路:利用初始条件即不可能有相邻的花,在
阅读全文
posted @ 2022-07-28 22:07 recklessh
阅读(24)
评论(0)
推荐(0)
公告