Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F ...
分类:
其他好文 时间:
2017-07-04 09:55:58
阅读次数:
178
转:https://mritd.me/2016/10/29/set-up-kubernetes-cluster-by-kubeadm/#23镜像版本怎么整 一、环境准备 首先环境还是三台虚拟机,虚拟机地址如下然后每台机器安装好 docker,至于 rpm 安装包版本下面介绍 IP 地址 节点192. ...
分类:
其他好文 时间:
2017-07-04 09:53:31
阅读次数:
540
翻译 给定一个单链表,确定它是否是回文的。 跟进: 你能够在O(n)时间和O(1)空间下完毕它吗? 原文 Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) t ...
分类:
其他好文 时间:
2017-07-03 21:07:59
阅读次数:
126
stitut,stit=set up,place “建立,放”所以constitute v 构成;制定(con 一起 +stitute→放到一起→构成)constitution a 构成:宪法(constitute+ion)constituent a 组成的(con+stitu+ent)instit ...
分类:
其他好文 时间:
2017-07-03 12:22:53
阅读次数:
1654
用SVN经常出现被锁定而无法提交的问题,选择解锁又提示没有文件被锁定,很是头疼。 这里整理了一下SVN 被锁定的几种解决方法: 1.出现这个问题后使用“清理”即"Clean up"功能,如果还不行,就直接到上一级目录,再执行“清理”,然后再“更新”。 2.有时候如果看到某个包里面的文件夹没有SVN的 ...
分类:
其他好文 时间:
2017-07-03 10:19:48
阅读次数:
147
$(".div").click(function(){ var that = this; // console.log(that.innerText); layer.open({ title: [ '房间信息', ' color:#fff;margin:0;' ] ,anim: 'up' // ,s ...
分类:
其他好文 时间:
2017-07-03 10:09:11
阅读次数:
128
Linux内核里的等待队列机制在做驱动开发时用的非常多,多用来实现阻塞式访问,下面简单总结了等待队列的四种用法,希望对读者有所帮助。 1. 睡眠等待某个条件发生(条件为假时睡眠): 睡眠方式:wait_event, wait_event_interruptible 唤醒方式:wake_up (唤醒时 ...
分类:
系统相关 时间:
2017-07-02 23:12:30
阅读次数:
208
Description Given a string of 0's and 1's up to 1000000 characters long and indices i and j, you are to answer a question whether all characters betwe ...
分类:
其他好文 时间:
2017-07-02 22:16:09
阅读次数:
166
void setOutsideTouchable(boolean touchable) Controls whether the pop-up will be informed of touch events outside of its window. void setFocusable(bool ...
今天遇到奇怪的事:SVN本地代码的标记突然没了。Clean up也报错 脑子一想这样的情况,能够先把原来的文件夹改一个名字。又一次把代码check out下来,再合并提交更新,但这样也太LOW了吧 上网上百度了下,发现了两篇文章。提供了解决方式,我的SVN版本号为1.8,实践了方法一。果然奏效了。适 ...
分类:
其他好文 时间:
2017-07-02 18:27:09
阅读次数:
316