You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?抠细节的题,题目思想如下:to...
分类:
其他好文 时间:
2014-06-28 22:11:37
阅读次数:
214
通过终端安装程序sudo apt-get install xxx时出错:E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the admini...
分类:
其他好文 时间:
2014-06-28 16:06:36
阅读次数:
198
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-22 21:31:26
阅读次数:
214
安装的时候首先出现
hfs: summary table not allowed on FS withblock size of 2048
错误,然后就是
hfs: could not initializc summary table forOSX Base System
错误。
一开始也不知道是怎么回事,后来在yandex上搜索中找到一篇帖子,它说这是CPU的问题。Mac OS X 10.9不能识别特有的CPU格式,只能识别一部分。于是呢,按照帖子中的做法,首先找到Virtual Box的位置,用命令符的...
分类:
其他好文 时间:
2014-06-22 18:43:15
阅读次数:
268
在linux下写了一个非常简单的Hello world程序,编译运行竟然报错:Error: Could not find or load main class Hello
最后发现是CLASSPATH的问题。
首先需要检查jdk环境变量是否配置正确:参考这篇文章:ubuntu12.04 安装配置jdk1.7
主要在环境变量这块:
export JAVA_HOME=/usr/java/jdk...
分类:
系统相关 时间:
2014-06-22 08:58:51
阅读次数:
410
题目:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find...
分类:
其他好文 时间:
2014-06-22 08:30:24
阅读次数:
236
????用hibernate访问sybase时遇见的异常。
Could not obtain connection metadata : ASE is now using a multi-byte character set, and the TEXT character counts have not been re-calculated using this character set ...
分类:
系统相关 时间:
2014-06-22 06:19:49
阅读次数:
1188
Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are...
分类:
其他好文 时间:
2014-06-21 16:40:45
阅读次数:
280
Letter Combinations of a Phone Number:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit...
分类:
移动开发 时间:
2014-06-21 00:56:16
阅读次数:
261
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-06-20 15:30:19
阅读次数:
227