
LeetCode
文章平均质量分 95
LeetCode刷题笔记
Camilleferros
あきらめるな
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeedCode-733. Flood Fill
强烈推荐,刷PTA的朋友都认识一下柳神–PTA解法大佬 不刷也可以认识一下 本文由参考于柳神博客写成 柳神的优快云博客,这个可以搜索文章 柳神的个人博客,这个没有广告,但是不能搜索 还有就是非常非常有用的 算法笔记 全名是 算法笔记 上级训练实战指南 //这本都是PTA的题解算法笔记 PS 今天也要加油鸭 题目原文 The “eight queens puzzle” is the problem of placing eight chess queens on an 8×8 chessboard原创 2021-08-14 15:42:41 · 322 阅读 · 0 评论 -
LeedCode-Easy-Maximum Subarray
题目原文 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. Follow up: If原创 2020-07-02 23:39:39 · 200 阅读 · 0 评论 -
LeedCode-Easy 38. Count and Say
题目原文 The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as "one 2, then one原创 2020-07-02 21:28:04 · 231 阅读 · 0 评论 -
LeedCode-Easy 21,26,27,28,35
Merge Two Sorted Lists 题目原文 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1->2->4, 1->3->4 Output: 1->1->2->3->4->4原创 2020-07-02 21:09:06 · 192 阅读 · 0 评论 -
LeedCode-Easy 1,7,9,13,14,20
文章目录Two Sum翻译:自己写的代码优秀的代码Reverse Integer1翻译代码Palindrome Number题目原文代码①字符串的解法-自己写的②不用字符串的写法Roman to Integer题目原文简单分析:代码下面是我用map写的代码:下面是大佬的代码Longest Common Prefix题目原文题目大意大佬的代码如下:Valid Parentheses题目原文:题目大意:我的代码如下:思路如下 因本人才疏学浅,如有错误之处,还请见谅 Two Sum Given an array原创 2020-05-12 18:05:19 · 352 阅读 · 0 评论