上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 描述 给出若干闭合区间,合并所有重叠的部分。 样例 Given intervals = merged intervals: [ [ (1, 3), (1, 6), (2, 6), = (8, 10), (8, 10), (15, 18) (15, 18) ] ] 阅读全文
posted @ 2018-10-16 17:09 narjaja 阅读(172) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2018.cnblogs.com/blog/1324700/201810/1324700-20181015213704925-1181470772.jpg) ![](https://img2018.cnblogs.com/blog/1324700/201810/1324700-20181018122041216-1101720955.png) 阅读全文
posted @ 2018-10-15 21:37 narjaja 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 描述 给出一个有n个整数的数组S,在S中找到三个整数a, b, c,找到所有使得a + b + c = 0的三元组。 在三元组(a, b, c),要求a 0: break if i and numbers[i]==numbers[i 1]: continue target = numbers[i] 阅读全文
posted @ 2018-10-15 16:59 narjaja 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 给定一个整数n,返回n!(n的阶乘)的尾随零的个数。 class Solution { public: / @param n: a integer @return: return a integer / int trailingZeroes(int n) { // write your code h 阅读全文
posted @ 2018-10-15 16:58 narjaja 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Linux texMaker markdown编辑器typora or, download "binary file" ... PDF阅读标注工具 PDF压缩命令 阅读全文
posted @ 2018-10-11 22:33 narjaja 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 插入罗马数字 \newcommand{\RNum}[1]{\uppercase\expandafter{\romannumeral 1\relax}} 然后在正文里面就可以用\RNum{}来添加罗马数字了。如\RNum{1}. 阅读全文
posted @ 2018-10-11 22:28 narjaja 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 转自 "带环链表得几个问题" 判断一个链表是否有环,如果有环,则返回入环的第一个节点,否则返回null 如果一个链表有环,遍历一个链表便永远不会到达null,否则必定会到达null。设置两个指针,刚开始都指向头节点,遍历时,一个指针每次前进一步,我们称之为慢指针,另一个每次前进两步,称之为快指针,这 阅读全文
posted @ 2018-10-09 20:54 narjaja 阅读(132) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: / @param n: the nth @return: the nth sequence / string countAndSay(int n) { // write your code here string s = "1"; if (n==1) 阅读全文
posted @ 2018-09-14 20:08 narjaja 阅读(111) 评论(0) 推荐(0) 编辑
摘要: ` 阅读全文
posted @ 2018-09-14 13:55 narjaja 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 转自 "[LeetCode] Maximum Depth of Binary Tree 二叉树的最大深度" 阅读全文
posted @ 2018-09-13 21:25 narjaja 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页