安装Ubuntu12.04 -64位时,用EasyBCD建好引导文件重启电脑后出现如下错误:Error 15: File not found原因一个是安装文件所在盘符不对,另一个是文件名。Ubuntu12.04 32位的ISO包解压后casper文件夹下内核文件为vmlinuz,而64位解压后cas...
No architectures to compile for(ONLY_ACTIVE_ARCH=YES 这种错误 修改building settings下 Build Active Architecture only 为NO即可。dyld: Symbol not found: _objc_setP...
分类:
其他好文 时间:
2014-06-18 15:30:00
阅读次数:
260
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
思路:最简单的方法就是按...
分类:
其他好文 时间:
2014-06-18 12:40:54
阅读次数:
265
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Could you devise a constant space solution?
思路:因为需要遍历整个矩阵,时间复杂度肯定需要O(m * n),对于空间复杂度而言,第一种是可以使用O(m * n),...
分类:
其他好文 时间:
2014-06-18 12:33:39
阅读次数:
167
题目
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
In...
分类:
其他好文 时间:
2014-06-18 12:03:16
阅读次数:
227
项目是使用spring MVC(1)在浏览器中访问,后台总报错:Java代码NomappingfoundforHTTPrequestwithURI[/exam3/welcome]inDispatcherServletwithname'spring2'查了好半天,才发现是controller没有扫描到...
分类:
移动开发 时间:
2014-06-17 20:04:22
阅读次数:
494
元组将多个值组合为单个值。元组内的值可以是任意 类型,各元素不必是相同的类型。元组在作为函数返 回值时尤其有用。1、定义方法1let http404Error= (404,"Not Found")println("The status codeis \(http404Error.0)")// pri...
分类:
其他好文 时间:
2014-06-17 19:41:45
阅读次数:
172
??
A class diagram
shows a set of classes, interfaces, and collaborations and their relationships. These diagrams are the most common diagram found in modeling object-oriented systems. Class diagram...
分类:
其他好文 时间:
2014-06-17 19:28:33
阅读次数:
261
如果编译时出现了以下错误:checkingfortgetentin-ltermcap…nocheckingfortermcapfunctionslibrary…configure:error:Nocurses/termcaplibraryfound说明curses/termcap库没有安装去下载一个ncurses-5.6.tar.gz,wgethttp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gztar..
分类:
数据库 时间:
2014-06-17 17:30:13
阅读次数:
239
题目
Determine whether an integer is a palindrome. Do this without extra space.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to ...
分类:
其他好文 时间:
2014-06-17 16:12:39
阅读次数:
226