摘要: 题目: A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, 阅读全文
posted @ 2015-12-16 12:15 YRB 阅读(2647) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2D matrixmatrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1,col1) and lower right corner (row... 阅读全文
posted @ 2015-12-16 05:15 YRB 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 链接: http://leetcode.com/probl 阅读全文
posted @ 2015-12-16 04:43 YRB 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: 题目:An image is represented by a binary matrix with0as a white pixel and1as a black pixel. The black pixels are connected, i.e., there is only one blac... 阅读全文
posted @ 2015-12-16 04:11 YRB 阅读(5524) 评论(0) 推荐(0) 编辑