LeetCode wants to give one of its best employees the option to travel among N cities to collect algorithm problems. But all work and no play makes Jac ...
分类:
其他好文 时间:
2017-05-30 00:38:18
阅读次数:
448
Vladik often travels by trains. He remembered some of his trips especially well and I would like to tell you about one of these trips: Vladik is at in ...
分类:
其他好文 时间:
2017-05-29 16:37:43
阅读次数:
302
发展历史C语言之所以命名为C,是因为 C语言源自Ken Thompson发明的B语言,而 B语言则源自BCPL语言。1967年,剑桥大学的Martin Richards对CPL语言进行了简化,于是产生了BCPL(Basic Combined Programming Language)语言。c语言宣传 ...
分类:
编程语言 时间:
2017-05-27 17:12:36
阅读次数:
196
House Man Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2256 Accepted Submission(s): 896 Probl ...
分类:
其他好文 时间:
2017-05-21 13:54:43
阅读次数:
176
旅游推荐系统的演进 http://tech.meituan.com/travel-recsys.html 背景 度假业务在整个在线旅游市场中占据着非常重要的位置,如何做好做大这块蛋糕是行业内的焦点。与美食或酒店的用户兴趣点明确(比如找某个确定的餐厅或者找某个目的地附近的酒店)不同,旅游场景中的用户兴 ...
分类:
其他好文 时间:
2017-05-18 21:34:58
阅读次数:
312
最近我作为Python菜鸟一枚开始征战Codewars,所以打算在这里记下遇到的有意思的题目。今天这第一题叫做“Best Travel”: John和Mary计划去一些小镇旅行。Mary已经列好了这些小镇之间的距离比如ls=[50, 55, 57, 58, 60]。但是John不想开车太累,所以提出 ...
分类:
其他好文 时间:
2017-05-17 23:42:37
阅读次数:
268
转自http://www.cnblogs.com/xiaohuochai/p/5608807.html 元字符 大部分字符在正则表达式中,就是字面的含义,比如/a/匹配a,/b/匹配b 但还有一些字符,它们除了字面意思外,还有着特殊的含义,这些字符就是元字符 在javascript中,共有14个元字 ...
分类:
其他好文 时间:
2017-05-17 17:30:29
阅读次数:
614
数据元素存在3种关系: 1)先行后续,即一个数据元素有一个直接前驱和一个直接后继,这种组织结构叫线性结构; 2)层次关系,每一层上数据元素可能和下一层中的多个数据元素相关,但只和上一层中的一个数据元素相关,这类组织结构叫树结构; 3)数据元素间是”一对多“或者”多对一“的关系,即任意两个数据元素之间 ...
分类:
其他好文 时间:
2017-05-15 19:59:45
阅读次数:
240
这个题目主要考察二叉树的先序遍历。1. 先序遍历2. 节点用队列存储3. 遍历队列,建立链表实现:public class Solution { public void Flatten(TreeNode root) { if(root == null) { return; } Travel(root ...
分类:
其他好文 时间:
2017-05-13 11:26:50
阅读次数:
124
Problem statement: LeetCode wants to give one of its best employees the option to travel among N cities to collect algorithm problems. But all work an ...
分类:
其他好文 时间:
2017-05-07 10:29:53
阅读次数:
237