摘要: 题目:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路1:找对应关系,90度翻转是... 阅读全文
posted @ 2015-10-14 19:11 savageclc26 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the de... 阅读全文
posted @ 2015-10-14 18:18 savageclc26 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note... 阅读全文
posted @ 2015-10-14 17:45 savageclc26 阅读(102) 评论(0) 推荐(0) 编辑