【解决方法】 用Format属性: 这个其实解决不了截断的问题,不过可以显示更少的列,看起来更清楚。 Formatting The formatting options (--format) pretty-prints tasks output using a Go template. Valid ... ...
分类:
其他好文 时间:
2017-10-26 16:59:11
阅读次数:
145
分享三个hard难度的题,个人感觉比较有意思和有实际意义的三道,思路上和上次的有些区别,不过大致上还是一样的。 1:All Valid Permutations Of Parentheses II Get all valid permutations of l pairs of (), m pair ...
分类:
其他好文 时间:
2017-10-26 11:37:22
阅读次数:
181
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges mak ...
分类:
其他好文 时间:
2017-10-24 14:54:34
阅读次数:
187
题目:给定一个字符串,在最多删除一个字符的情况下,判断这个字符串是不是回文字符串。 思路:回文字符串,第一想到的就是使用两个指针,前后各一个,当遇到前后字符不一致的时候,有两种情况,删除前面字符或者删除后面字符。由于删除一个字符后剩下的仍旧是字符串,可以直接递归处理了。然后用一个flag,当达到2时 ...
分类:
编程语言 时间:
2017-10-23 18:06:16
阅读次数:
287
题目描述:给出一个正整数,不使用内置函数,如sqrt(),判断这个数是不是一个数的平方。 思路:直接使用二分法,貌似没啥好说的。代码如下: ...
分类:
编程语言 时间:
2017-10-21 19:14:36
阅读次数:
238
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the ...
分类:
其他好文 时间:
2017-10-20 18:21:04
阅读次数:
80
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only ...
分类:
其他好文 时间:
2017-10-20 13:41:37
阅读次数:
210
service资源 service资源主要对服务做启动、重启、关闭,监控进程的状态等.service的参数:service{‘resourcetitle‘:
name=>#(namevar)Thenameoftheservicetorun.Thisnameis...
ensure=>#Whetheraserviceshouldberunning.Valid...
binary=>#Thepathtothedaemon.Thisiso..
分类:
其他好文 时间:
2017-10-18 20:10:51
阅读次数:
189
背景 今天在使用JavaAPI来连接sqoop1.99.7的时候,遇到了个错误。 错误信息如下: 问题分析: 从报错信息上看貌似是Authentication认证的一些错误 解决方案 无意中在http://blog.csdn.net/jiacai2050/article/details/591176 ...
分类:
系统相关 时间:
2017-10-18 15:29:12
阅读次数:
248
hadoop环境部署完,执行hdfs zkfc -formatZK命令时,提示如上图所示错误 错误内容: 经调查结果是由于主机的hostname不合法,修改为不包含着‘.’ '/' '_'等非法字符。 ...
分类:
其他好文 时间:
2017-10-17 20:08:04
阅读次数:
946