摘要: #题目简述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the ... 阅读全文
posted @ 2015-01-16 22:25 mrbean 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #题目简述:Given an absolute path for a file (Unix-style), simplify it.For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"click to sho... 阅读全文
posted @ 2015-01-16 18:42 mrbean 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 解决方法:这个貌似是属于一个bug把Image.py中的1500行左右的split函数改成如下即可: def split(self): "Split image into bands" self.load() if self.im.bands == 1... 阅读全文
posted @ 2015-01-16 14:49 mrbean 阅读(1213) 评论(0) 推荐(0) 编辑