安装的时候遇到密码问题处理A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !You will find that password in '/root/.mysql_secret'.vi /root/.mysql_secretmysql ...
分类:
数据库 时间:
2015-07-01 20:23:37
阅读次数:
225
How to create .gitignore fileI need to add some rules to my.gitignorefile, however, I can't find it in my project folder. Isn't it created automatical...
vat test="11111111111test"
if (string.rangeOfString("test") != nil) //注意!=左右的空格
{
println("find")
}
如果想获得位置,就:
var t=string.rangeOfString("test")
开始位置
t?.startIndex
结束位置
t?.endIndex...
分类:
编程语言 时间:
2015-07-01 18:25:25
阅读次数:
196
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2015-07-01 18:23:35
阅读次数:
110
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.题目的意图It seems that it is not to check betwe...
分类:
其他好文 时间:
2015-07-01 17:35:29
阅读次数:
132
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: ——-a1 → a2
———————-↘
————————...
分类:
其他好文 时间:
2015-07-01 16:02:28
阅读次数:
118
MAC层定义了一些Service 用于为上层LLC提供服务。其中802.11中定义的MAC提供三种服务。# 搜索compat_wl18xx 源码目录# find . -type f|xargs grep "MA-UNITDATA"待补充
分类:
系统相关 时间:
2015-07-01 15:47:50
阅读次数:
174
我们在终端操作git的时候,是可以实时的get到当前所在的分支的操作文件:~/.bash_profile加入以下代码:## Parses out the branch name from .git/HEAD:find_git_branch () { local dir=. head until .....
分类:
其他好文 时间:
2015-07-01 13:52:09
阅读次数:
113
异或巧用:Single Number
今天刷leetcode,碰到了到题Single Number,觉得解答很巧妙,故记之。。。
题目:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have...
分类:
其他好文 时间:
2015-07-01 12:14:53
阅读次数:
116
4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum...
分类:
编程语言 时间:
2015-07-01 06:10:20
阅读次数:
313