会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小苏打的博客
博客园
首页
新随笔
联系
订阅
管理
2020年10月10日
Leetcode485. 最大连续1的个数
摘要: 给定一个二进制数组, 计算其中最大连续1的个数。 示例 1: 输入: [1,1,0,1,1,1]输出: 3解释: 开头的两位和最后的三位都是连续1,所以最大连续1的个数是 3.注意: 输入的数组只包含 0 和1。输入数组的长度是正整数,且不超过 10,000。 代码: class Solution
阅读全文
posted @ 2020-10-10 20:21 小苏打068
阅读(87)
评论(0)
推荐(0)
2019年10月31日
PAT甲级1001 A+B Format (20 分)
摘要: Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha
阅读全文
posted @ 2019-10-31 09:50 小苏打068
阅读(110)
评论(0)
推荐(0)
公告