其实这篇接着上文(一),主要是解决samba安装的问题,中间又是一路曲折。不过这个问题也算是比较典型,有必要记录一下。#apt-get install smb*安装失败。其实顺利的话,直接一条这样的命令就过了,上次就是直接过的,不知道这次怎么蹦出来的。Error: Unable to correct...
分类:
其他好文 时间:
2015-02-10 21:32:28
阅读次数:
313
leetcode代码利用堆栈:http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/http://oj.leetcode.com/problems/longest-valid-parentheses/ (也可以用一维数组,贪...
分类:
其他好文 时间:
2015-02-10 20:13:24
阅读次数:
351
https://oj.leetcode.com/problems/3sum/Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array w...
分类:
其他好文 时间:
2015-02-10 18:28:56
阅读次数:
192
“Favour composition over inheritance”If you haven’t already read my previous post on the problems of traditional game architecture and why entity syst...
分类:
其他好文 时间:
2015-02-10 15:14:11
阅读次数:
342
https://oj.leetcode.com/problems/rotate-list/Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->...
分类:
其他好文 时间:
2015-02-09 17:39:44
阅读次数:
112
https://oj.leetcode.com/problems/implement-strstr/Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle ...
分类:
其他好文 时间:
2015-02-08 23:03:56
阅读次数:
218
Problem Description
Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now you are faced with a more difficult problem.
Given a consecutive number sequence S1, S...
分类:
其他好文 时间:
2015-02-08 09:09:37
阅读次数:
188
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'39: Combination Sumhttps://oj.leetcode.com/problems/combination-sum/Given a set of candida...
分类:
编程语言 时间:
2015-02-07 00:24:38
阅读次数:
186
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'40: Combination Sum IIhttps://oj.leetcode.com/problems/combination-sum-ii/Given a collecti...
分类:
编程语言 时间:
2015-02-07 00:24:13
阅读次数:
141
POJ 2151 Check the difficulty of problems(概率dp)...
分类:
其他好文 时间:
2015-02-06 14:55:50
阅读次数:
196