Given a linked list, remove the nth node from
the end of list and return its head. For example, Given linked list:
1->2->3->4->5, and n = 2. After rem...
分类:
其他好文 时间:
2014-05-26 09:08:23
阅读次数:
262
xcode升级导致cocoapods很多奇葩问题
1.pod setup执行后半年没反应
解决办法设置淘宝的镜像
$ gem sources --remove https://rubygems.org/
//等有反应之后再敲入以下命令
$ gem sources -a http://ruby.taobao.org/
检查一下看看
$ gem sources -l*** CURRENT...
分类:
其他好文 时间:
2014-05-26 04:55:46
阅读次数:
236
一、安装MySql
1、卸载CentOS自带的MySql
获取root权限先,卸载CentOS自带的MySql
yum remove mysql
2、安装cmake...
分类:
数据库 时间:
2014-05-24 23:48:57
阅读次数:
542
Quick Referenceinsmodmodprobermmod User-space
utilities that load modules into the running kernels and remove them.#include
module_init(init_function)...
分类:
其他好文 时间:
2014-05-24 12:05:39
阅读次数:
286
从一个List中移除重复的数据使用迭代方法会报异常:java.util.ConcurrentModificationExceptionMap
temp = new HashMap();for (GroupRule rule : ruleList) { String ruleName =
rule.....
分类:
其他好文 时间:
2014-05-23 05:41:56
阅读次数:
187
Determine whether an integer is a palindrome.
Do this without extra space.if use recursive, like check the first dig and last
dig, then remove them, c...
分类:
其他好文 时间:
2014-05-23 02:45:15
阅读次数:
230
题目说:Try to do this in one pass
只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode...
分类:
其他好文 时间:
2014-05-23 01:52:29
阅读次数:
331
Remove Duplicates from Sorted Array...
分类:
其他好文 时间:
2014-05-22 23:06:48
阅读次数:
271
今天做判断插入用到了MySQL中ON DUPLICATE KEY UPDATE,现在Mark以下!
如果你想做到数据库中没有数据的话插入数据、有数据的话更新数据,那么你可以选择ON DUPLICATE KEY UPDATE。
ON DUPLICATE KEY UPDATE能够在UNIQUE索引或PRIMARY KEY存在的情况下对旧行执行UPDATE操作。
例如:如果列a被定义为UNIQUE,并且包含值1,则以下两个语句具有相同的效果:...
分类:
数据库 时间:
2014-05-21 13:28:45
阅读次数:
426