上一页 1 2 3 4 5 6 7 8 9 ··· 33 下一页
摘要: 题目: For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible r 阅读全文
posted @ 2015-12-20 06:41 YRB 阅读(2352) 评论(2) 推荐(0) 编辑
摘要: 题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-12-20 04:05 YRB 阅读(2381) 评论(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-19 11:00 YRB 阅读(5476) 评论(0) 推荐(1) 编辑
摘要: 题目: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. The update(i, val) function modifies nums by 阅读全文
posted @ 2015-12-18 13:02 YRB 阅读(2867) 评论(0) 推荐(1) 编辑
摘要: 题目: Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for t 阅读全文
posted @ 2015-12-17 12:44 YRB 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 阅读(1387) 评论(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 阅读(1152) 评论(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 阅读(5519) 评论(0) 推荐(0) 编辑
摘要: 题目:Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.Note: The input string may co... 阅读全文
posted @ 2015-12-15 23:29 YRB 阅读(3377) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 33 下一页