首页
沸点
课程
数据标注
HOT
AI Coding
更多
直播
活动
APP
插件
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
LeetCode每日一题
Cavetr
创建于2021-10-02
订阅专栏
记录自己的每日一题
暂无订阅
共12篇文章
创建于2021-10-02
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
LeetCode每日一题|66. 加一
题目描述 题目链接:https://leetcode-cn.com/problems/plus-one/ 思路分析 加一的实现是给数字的最后一位加一,如果等于十则往前进位。所以可以从数组最后一位往前遍
LeetCode每日一题|38. 外观数列
题目描述 题目链接:https://leetcode-cn.com/problems/count-and-say/ 思路分析 对这题没用到什么特别的算法,将题目转换成代码描述就可以,对于每一项,从前往
LeetCode每日一题|273. 整数转换英文表示
题目描述 题目链接:https://leetcode-cn.com/problems/integer-to-english-words/ 思路分析 已知输入num的范围为[0,$2^{31}-1$],
LeetCode每日一题|441. 排列硬币
题目描述 题目链接:https://leetcode-cn.com/problems/arranging-coins/ 思路分析 l行阶梯可以放$\cfrac {(1+l)l}2$个硬币,所以n个硬币
LeetCode每日一题|352. 将数据流变为多个不相交区间
题目描述 题目链接:https://leetcode-cn.com/u/cavetr/ 思路分析 对于这道题,首先我们需要存储addNum加进来的数据,所以在创建对象即构造函数中需要一个数组来存储这些
LeetCode每日一题|187. 重复的DNA序列
题目描述 题目链接:https://leetcode-cn.com/problems/repeated-dna-sequences/ 思路分析 使用一个哈希表来记录每个DNA序列(即长度为十的子串)的
LeetCode每日一题|434. 字符串中的单词数
题目描述 题目链接:https://leetcode-cn.com/problems/number-of-segments-in-a-string/ 思路分析 两种思路: 第一种,使用split以空格
LeetCode每日一题|414. 第三大的数
题目描述 题目链接:https://leetcode-cn.com/problems/third-maximum-number/ 思路分析 两种思路: 第一种,先准备一个数组来保存前三大的数,可以先预
LeetCode每日一题|284. 顶端迭代器
题目描述 题目链接:https://leetcode-cn.com/problems/peeking-iterator/ 思路分析 在该题中需要实现一个迭代器的类,而在创建该迭代器时回传进一个以实现的
LeetCode每日一题|482. 密钥格式化
题目描述 题目链接:https://leetcode-cn.com/problems/license-key-formatting/ 思路分析 该题相当于是将一个带-的字符串在去掉-后分成多个部分,除
LeetCode每日一题|166. 分数到小数
题目描述 题目链接:https://leetcode-cn.com/problems/fraction-to-recurring-decimal/ 思路分析 输出结果分为三个部分,符号、整数、小数。
LeetCode每日一题|405.数字转换为十六进制
题目描述 题目链接:https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal/ 思路分析 对于一个十其他进制,只需要除以要转化的