一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up a...
分类:
其他好文 时间:
2016-07-03 19:37:36
阅读次数:
110
Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space ...
分类:
编程语言 时间:
2016-07-03 11:53:49
阅读次数:
159
安装好gitlab后,为了更好的管理,我们一般需要关闭用户注册功能。 做法: 去掉 Sign-up enabled 的对勾 Admin-->settings --> Sign-in Restrictions Sign-upenbaled 关闭注册功能 Sign-inenbaled 关闭注册登录功能 ...
分类:
其他好文 时间:
2016-07-03 10:29:23
阅读次数:
6242
Problem: https://leetcode.com/problems/combination-sum-iii/ Find all possible combinations of k numbers that add up to a number n, given that only num ...
分类:
其他好文 时间:
2016-07-03 00:27:31
阅读次数:
122
题意:一个无向图,问建立一条新边以后桥的最小数量。 分析:缩点以后,找出新图的树的直径,将这两点连接即可。 但是题目有个note:两点之间可能有重边!而用普通的vector保存边的话,用v!=fa的话是没办法让重边访问的,因此,使用数组模拟邻接表的方法来储存边。 这样,只要访问了一条边以后,令E[i ...
分类:
其他好文 时间:
2016-07-02 11:52:54
阅读次数:
166
1. Do not mess it up with number of islands. Each path extends only choose one. ...
分类:
其他好文 时间:
2016-07-02 06:58:50
阅读次数:
134
标题 http://www.cnblogs.com/endv/p/5634620.html 安装与配置指南安装与配置指南(数据库)说明哪些How to set up the P6专业数据库和服务器。also describes how to P6专业管理,包括建立安全和全球configuring偏好 ...
分类:
其他好文 时间:
2016-07-02 01:43:43
阅读次数:
202
//取上三级的用户idpublic function _get_up_third_id($member_id){ $up_id=array(); $invite_id=dbselect('invite_id')->from('{dt_user}')->where(['id'=>$member_id] ...
分类:
其他好文 时间:
2016-07-01 13:18:52
阅读次数:
381
Now,asmallbandoffreedomfightersstruggletoendtheosrsgold
long,darknightofDaein‘soppression.Thebigblognewsoftheday
isthatVoxMediahasacquiredCurbedNetwork.Asanamuletyoushould
bewearinganamuletofgloryandifyoucanaffordanarchersringi
alsorecommendwearingoneofthos..
分类:
其他好文 时间:
2016-06-30 23:50:25
阅读次数:
614
今天通过client端登陆VCSA,发现在一个host摘要中提示数据不是最新的查询过KB之后,需要在VCSA的高级选项中添加2个参数,使用web界面登陆,在VSCA中找到管理——设置——高级设置,打开编辑添加config.vpxd.quickStats.ConfigIssues和config.vpxd.quickStats.HostStatsCheck两..
分类:
其他好文 时间:
2016-06-30 23:40:14
阅读次数:
239