![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode专题
whuty1304
这个作者很懒,什么都没留下…
展开
-
LeetCode-561 Array-Partition-I
文章目录0.简介1.题目描述2.解题思路3.参考代码4.复杂度分析参考内容0.简介记录LeetCode刷题过程,每篇分为四部分,题目描述、解题思路、参考代码、复杂度分析如有疑问欢迎讨论,GitHub地址:https://github.com/LoneRanger0504/LeetCode1.题目描述给定长度为 2n 的数组, 你的任务是将这些数分成 n 对, 例如 (a1, b1), (...原创 2019-04-04 16:09:15 · 202 阅读 · 0 评论 -
LeetCode-001 Two-Sum
0.简介记录LeetCode刷题过程,每篇分为四部分,题目描述、解题思路、参考代码、复杂度分析如有疑问欢迎讨论GitHub地址:https://github.com/LoneRanger0504/LeetCode1.题目描述给定一个整数数组nums和一个目标值target,请你在该数组中找出和为目标值的那两个整数,并返回他们的数组下标。你可以假设每种输入只会对应一...原创 2019-04-01 16:29:33 · 159 阅读 · 0 评论 -
LeetCode-717 1-Bit-And-2-Bit-Characters
文章目录0.简介1.题目描述2.解题思路3.参考代码4.复杂度分析0.简介记录LeetCode刷题过程,每篇分为四部分,题目描述、解题思路、参考代码、复杂度分析如有疑问欢迎讨论,GitHub地址:https://github.com/LoneRanger0504/LeetCode1.题目描述有两种特殊字符。第一种字符可以用一比特0来表示。第二种字符可以用两比特(10 或 11)来表示。...原创 2019-04-02 17:42:33 · 134 阅读 · 0 评论 -
LeetCode-258 Add-Digits
文章目录0.简介1.题目描述2.解题思路3.参考代码4.复杂度分析0.简介记录LeetCode刷题过程,每篇分为四部分,题目描述、解题思路、参考代码、复杂度分析如有疑问欢迎讨论,GitHub地址:https://github.com/LoneRanger0504/LeetCode1.题目描述给定一个非负整数 num,反复将各个位上的数字相加,直到结果为一位数。示例1:输入: 38...原创 2019-04-03 13:53:59 · 150 阅读 · 0 评论 -
LeetCode-14 Longest-Common-Prefix
文章目录0.简介1.题目描述2.解题思路2.1暴力匹配3.参考代码4.复杂度分析0.简介记录LeetCode刷题过程,每篇分为四部分,题目描述、解题思路、参考代码、复杂度分析如有疑问欢迎讨论,GitHub地址:https://github.com/LoneRanger0504/LeetCode1.题目描述编写一个函数来查找字符串数组中的最长公共前缀。如果不存在公共前缀,返回空字符串 “”...原创 2019-04-20 17:54:07 · 175 阅读 · 0 评论