摘要: 问题:https://leetcode-cn.com/problems/search-a-2d-matrix-ii/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/SearchMatrixClass.cs Blog:ht 阅读全文
posted @ 2019-03-19 18:04 落花流水Zxxxx 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/majority-element/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/MajorityElementClass.cs Blog:http 阅读全文
posted @ 2019-03-19 12:04 落花流水Zxxxx 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/single-number/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/SingleNumberClass.cs Blog:https://ww 阅读全文
posted @ 2019-03-18 17:29 落花流水Zxxxx 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/number-of-islands/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/NumIslandsClass.cs Blog:https:// 阅读全文
posted @ 2019-03-18 16:48 落花流水Zxxxx 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/EvalRPNClass.cs B 阅读全文
posted @ 2019-03-15 14:46 落花流水Zxxxx 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/daily-temperatures/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/DailyTemperaturesClass.cs Blog: 阅读全文
posted @ 2019-03-14 10:44 落花流水Zxxxx 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/valid-parentheses/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/ValidParentheses.cs Blog:https:/ 阅读全文
posted @ 2019-03-13 10:19 落花流水Zxxxx 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 问题:https://leetcode-cn.com/problems/perfect-squares/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/blob/master/NumSquares.cs Blog:https://www.cnb 阅读全文
posted @ 2019-03-07 15:08 落花流水Zxxxx 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 思路:使用先进先出的队列,广度优先搜索,使用字典可大幅减少遍历时间 问题:https://leetcode-cn.com/problems/open-the-lock/submissions/ GitHub实现:https://github.com/JonathanZxxxx/LeetCode/bl 阅读全文
posted @ 2019-03-06 14:24 落花流水Zxxxx 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 一、代码实现循环队列思路:使用数组存储数据,两个指针保存队列头尾问题:https://leetcode-cn.com/problems/design-circular-queue/ 设计你的循环队列实现。 循环队列是一种线性数据结构,其操作表现基于 FIFO(先进先出)原则并且队尾被连接在队首之后以形成一个循环。它也被称为“环形缓冲器”。 循环队列的一个好处是我们可以利用这个队列之前用过的空间... 阅读全文
posted @ 2019-03-05 14:29 落花流水Zxxxx 阅读(922) 评论(0) 推荐(0) 编辑