上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 37 下一页
摘要: Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is th 阅读全文
posted @ 2020-04-15 01:57 Review->Improve 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Given the array queries of positive integers between 1 and m, you have to process all queries[i] (from i=0 to i=queries.length-1) according to the fol 阅读全文
posted @ 2020-04-14 08:04 Review->Improve 阅读(694) 评论(0) 推荐(0) 编辑
摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文
posted @ 2020-04-10 22:34 Review->Improve 阅读(124) 评论(0) 推荐(0) 编辑
摘要: There are n soldiers standing in a line. Each soldier is assigned a unique rating value. You have to form a team of 3 soldiers amongst them under the 阅读全文
posted @ 2020-04-02 12:52 Review->Improve 阅读(2328) 评论(0) 推荐(0) 编辑
摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2020-03-22 03:15 Review->Improve 阅读(131) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2020-03-22 03:13 Review->Improve 阅读(107) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar 阅读全文
posted @ 2020-03-22 03:12 Review->Improve 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Consider a matrix M with dimensions width * height, such that every cell has value 0 or 1, and any square sub-matrix of M of size sideLength * sideLen 阅读全文
posted @ 2020-03-19 05:26 Review->Improve 阅读(4084) 评论(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 cont 阅读全文
posted @ 2020-03-19 02:12 Review->Improve 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Given a string S, count the number of distinct, non-empty subsequences of S . Since the result may be large, return the answer modulo 10^9 + 7. Exampl 阅读全文
posted @ 2020-03-18 03:09 Review->Improve 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 37 下一页