1、将图片方向旋转为up方向-(UIImage *)rotateImage:(UIImage *)aImage{ CGImageRef imgRef = aImage.CGImage; CGFloat width = CGImageGetWidth(imgRef); CGF...
分类:
其他好文 时间:
2014-08-18 14:27:52
阅读次数:
144
Problem C CALCULATOR CONUNDRUMAlice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time...
分类:
其他好文 时间:
2014-08-18 12:07:54
阅读次数:
269
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
public class Solution {
public int totalNQueens(int n) {
...
分类:
其他好文 时间:
2014-08-18 10:49:54
阅读次数:
206
IPStor在linux操作系统上进入linux后使用ifconfig-a查看ip地址#ifconfig-aeno16777736:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500inet192.168.188.11netmask255.255.255.0broadcast192.168.188.255inet6fe80::20c:29ff:fe1c:334dprefixlen64scopeid0x20<link..
分类:
其他好文 时间:
2014-08-18 01:42:23
阅读次数:
890
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?...
分类:
其他好文 时间:
2014-08-17 15:39:42
阅读次数:
221
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:
其他好文 时间:
2014-08-17 15:31:52
阅读次数:
221
hdu4619:http://acm.hdu.edu.cn/showproblem.php?pid=4619题意:题目大意:给你两种纸牌 ,一种水平放置共有n张 ,一种竖直放置共有m张。水平放置的纸牌占据点(x, y)和(x + 1 , y) , 竖直放置的纸牌占据点(x , y) 和 (x , y...
分类:
其他好文 时间:
2014-08-17 09:10:41
阅读次数:
320
Square spiralNikola picks up a strange circuit board. All of its elements are connected in a spiral and it is possible to connect the neighboring elem...
分类:
其他好文 时间:
2014-08-17 09:09:51
阅读次数:
411
Bus PassTime Limit:5 Seconds Memory Limit:32768 KBYou travel a lot by bus and the costs of all the seperate tickets are starting to add up.Therefore y...
分类:
其他好文 时间:
2014-08-17 08:07:21
阅读次数:
296
http://blog.csdn.net/xifeijian/article/details/8830933上述这个朋友博文提醒,可能是因为其他软件添加了JAVA_HOME的路径造成冲突。但他支持删除QTP等软件新添加的环境变量;个人比较担心,如果删除是否会影响相应软件的使用,故暂时未删除。想到一个...
分类:
编程语言 时间:
2014-08-17 01:04:41
阅读次数:
459