摘要: In a gold mine grid of size m * n, each cell in this mine has an integer representing the amount of gold in that cell, 0 if it is empty. Return the ma 阅读全文
posted @ 2020-04-27 23:57 xuan_abc 阅读(153) 评论(0) 推荐(0)
摘要: Given two binary search trees, return True if and only if there is a node in the first tree and a node in the second tree whose values sum up to a giv 阅读全文
posted @ 2020-04-27 11:55 xuan_abc 阅读(226) 评论(0) 推荐(0)
摘要: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2020-04-27 11:41 xuan_abc 阅读(101) 评论(0) 推荐(0)
摘要: An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, 阅读全文
posted @ 2020-04-27 09:54 xuan_abc 阅读(131) 评论(0) 推荐(0)
摘要: There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to 阅读全文
posted @ 2020-04-27 09:29 xuan_abc 阅读(176) 评论(0) 推荐(0)
摘要: Given a matrix of integers A with R rows and C columns, find the maximum score of a path starting at [0,0] and ending at [R-1,C-1]. The score of a pat 阅读全文
posted @ 2020-04-27 08:40 xuan_abc 阅读(234) 评论(0) 推荐(0)
摘要: A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p 阅读全文
posted @ 2020-04-27 06:46 xuan_abc 阅读(150) 评论(0) 推荐(0)
摘要: We are given some website visits: the user with name username[i] visited the website website[i] at time timestamp[i]. A 3-sequence is a list of websit 阅读全文
posted @ 2020-04-27 06:03 xuan_abc 阅读(268) 评论(0) 推荐(0)