Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-08-06 14:35:41
阅读次数:
177
查看指定服务的状态ls -al /etc/rc?.d/*rc.local将rc.local删除服务update-rc.d -f rc.local remove将rc.local加入服务并设置开机顺序99,关机不执行update-rc.d rc.local start 99 2 3 4 5 .查看现有...
分类:
其他好文 时间:
2014-08-06 11:38:41
阅读次数:
209
安装Ubuntu14.04后使用中文作为本地语言,更新系统后会安装2个字体(fonts-arphic-ukai,fonts-arphic-uming),应该是楷体,非常难看,而且无法更改,在终端执行以下命令删除即可:sudo apt-get remove fonts-arphic-ukai font...
分类:
系统相关 时间:
2014-08-06 01:46:40
阅读次数:
244
组合模式(Composite):将对象组合成树形结构以表示“部分-整体”的组合结构,组合模式使得用户对单个对象和组合对象的使用具有一致性。
透明方式和安全方式
(1),透明方式:在 Component 中声明所有用来管理子对象的方法,其中包括 Add、 Remove 等、这样实现 Component 接口的所有子类都具备了 Add、Remove 方法。这样做的好处是子类对外界来说没有区别,他们...
分类:
编程语言 时间:
2014-08-05 22:32:30
阅读次数:
242
首先抽象出一个线性表抽象类(包含基本的增删操作)
public abstract class MyAbstractList {
public abstract void add(E t);
public abstract void add(int index,E t);
public abstract void remove();
public abstract void remove(...
分类:
编程语言 时间:
2014-08-05 14:13:59
阅读次数:
316
简单的方法就是直接增加:利用git remote 链接不在同一个域名下的远程仓库:先查看是否已建:git remove (-v)git remote add 简短名 服务器名@:域名:文件路径注:如果是第一个链接远程仓库的话,一般起简短名是没用的,默认为 origion, 否则,有效,看有没有效,最...
分类:
其他好文 时间:
2014-08-05 13:26:19
阅读次数:
152
大家知道对于字符串频繁拼接是使用stringbuilder.Append方法比使用string+=方法效率高很多,但有时需要清空stringbuilder时却不知道怎么清空,因为它没有clear或empty的方法。那用什么方法呢?在网上搜了一下大概一下三种方法。1、Remove例: Str...
分类:
其他好文 时间:
2014-08-05 09:26:48
阅读次数:
227
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?For example, Given sorted array A = [1,1,1,2,2,3],Your function should...
分类:
其他好文 时间:
2014-08-05 00:24:38
阅读次数:
281
Given preorder and inorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree./** * Definiti...
分类:
其他好文 时间:
2014-08-05 00:01:38
阅读次数:
271
Given inorder and postorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree.class Solutio...
分类:
其他好文 时间:
2014-08-04 23:57:18
阅读次数:
476