今天生日,好多第一次。 第一次QQ上有那么多好友给说生日快乐。 第一次,去欢乐谷玩,第一次坐过山车,第一次坐太阳神车。 第一次看舞台剧-金面王朝,场景好真实,洪水。。 可惜只是自己一个人,玩的一点也不尽兴,没能把罗娜约出来,不知为什么,今天竟然问起了我的名字。。感觉不妙。哎,难啊。 晚...
分类:
其他好文 时间:
2015-08-31 01:09:01
阅读次数:
144
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2141Can you find it?DescriptionGive you three sequences of numbers A, B, C, then we give you a number X....
分类:
其他好文 时间:
2015-08-30 22:42:59
阅读次数:
127
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?https://leetcode.com/prob...
分类:
编程语言 时间:
2015-08-30 22:42:17
阅读次数:
243
DescriptionBessie noted that although humans have many universities they can attend, cows have none. To remedy this problem, she and her fellow cows f...
分类:
其他好文 时间:
2015-08-30 21:07:00
阅读次数:
174
安装mysql 最新版 56brew install mysql启动报错ben:~ soul$ which mysql
/usr/local/bin/mysql
ben:~ soul$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)解决办法运行ben:...
分类:
数据库 时间:
2015-08-30 17:37:36
阅读次数:
228
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5305Problem DescriptionThere arenpeople andmpairs of friends. For every pair of friends, they can choos...
分类:
其他好文 时间:
2015-08-30 17:26:09
阅读次数:
147
func cap(v Type) int返回指定类型的容量,根据不同类型,返回意义不同。数组: 元素个数 (和len(v)一样).数组指针: *v的元素个数 (和len(v)一样).Slice: the maximum length the slice can reach when resliced...
分类:
其他好文 时间:
2015-08-30 17:16:43
阅读次数:
130
hdu 2819 SwapDescription
Given an N*N matrix with each entry equal to 0 or 1. You can swap any two rows or any two columns. Can you find a way to make all the diagonal entries equal to 1?Input
There...
分类:
其他好文 时间:
2015-08-30 15:53:11
阅读次数:
151
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2015-08-30 12:45:46
阅读次数:
146
题目:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.AnalysisThis problem can be solved by using B...
分类:
其他好文 时间:
2015-08-30 12:37:50
阅读次数:
129