摘要: 题目描述:(链接)You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?解题思路:先将矩阵选... 阅读全文
posted @ 2015-10-11 22:11 skycore 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given apatternand a stringstr, find ifstrfollows the same pattern.Herefollowmeans a full match, such that there is a bijection between a lett... 阅读全文
posted @ 2015-10-11 13:20 skycore 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after r... 阅读全文
posted @ 2015-10-11 10:45 skycore 阅读(125) 评论(0) 推荐(0) 编辑