题目描述:
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?
思路:先将行顺序reverse,然后再对每个处于下三角区域的元素rotate。
...
分类:
其他好文 时间:
2014-12-25 11:18:52
阅读次数:
125
An RMAN backup job fails, displaying the following error:
ORA-19809: limit exceeded for recovery files
Your analysis shows that the Flash Recovery area is full. Which two a
ctions could you tak...
分类:
数据库 时间:
2014-12-25 10:02:40
阅读次数:
183
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
利用hashMap存储,原始的node作为key,new的nod...
分类:
其他好文 时间:
2014-12-24 22:53:14
阅读次数:
187
题目:
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?
思路:
题目的关键在in-place,否则就太容易了,为了达到in-place只能...
分类:
其他好文 时间:
2014-12-24 22:46:59
阅读次数:
138
【题目】
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use...
分类:
其他好文 时间:
2014-12-24 20:13:31
阅读次数:
151
描述:Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thi...
分类:
其他好文 时间:
2014-12-24 19:57:39
阅读次数:
127
转自http://blog.mutoo.im/2013/12/curl-could-not-communicate-with-https-sites.htmlmac升级为10.10以后,homebrew升级挂了,curl提示连接ssl失败解决办法mvim ~/.curlrcproxy = http:...
分类:
Web程序 时间:
2014-12-24 19:56:31
阅读次数:
238
题目: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 ...
分类:
其他好文 时间:
2014-12-24 17:39:33
阅读次数:
147
目前项目使用struts2, 所以页面中就使用到了struts2的标签,但是今天在做新的功能的时候突然出现 “Could not load the FreeMarker template named 'select'” 这样的错误,
看错误信息是找不到struts2 的select 标签,但是其他页面也都用到了select,也没有出现错误。最后发现问题出在了action中,我在action中定...
分类:
其他好文 时间:
2014-12-24 14:44:38
阅读次数:
107
一、Could not find an overload for “init” that accepts the supplied arguments错误信息:解决方案:let imageStatesImage: Array = [UIImage(named: "x")!, UIImage(name...
分类:
编程语言 时间:
2014-12-24 11:26:55
阅读次数:
155