没有合适的资源?快使用搜索试试~ 我知道了~
2020 年 4月 7 日「LeetCode」打卡题目:Counting Elements
0 下载量 77 浏览量
2021-01-20
02:43:38
上传
评论
收藏 26KB PDF 举报
温馨提示
试读
2页
Counting Elements Given an integer array arr, count element x such that x + 1 is also in arr. If there’re duplicates in arr, count them seperately. Example 1: Input: arr = [1,2,3] Output: 2 Explanation: 1 and 2 are counted cause 2 and 3 are in arr. Example 2: Input: arr = [1,1,3,3,5,5,7,7] Output:
资源推荐
资源评论
资源评论
weixin_38622827
- 粉丝: 4
- 资源: 905
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功