04 2020 档案

摘要:Given a string that only contains "I" (increase) or "D" (decrease), let . Return any permutation of such that for all : If , then Example 1: Example 2 阅读全文
posted @ 2020-04-30 04:33 Grandyang 阅读(1135) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers, return if and only if it is a valid mountain array . Recall that A is a mountain array if and only if: There exists some w 阅读全文
posted @ 2020-04-27 07:19 Grandyang 阅读(1517) 评论(0) 推荐(1) 编辑
摘要:Given a string , count the number of distinct, non empty subsequences of . Since the result may be large, return the answer modulo . Example 1: Exampl 阅读全文
posted @ 2020-04-20 06:23 Grandyang 阅读(4628) 评论(0) 推荐(0) 编辑
摘要:Given a set of points in the xy plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes. If 阅读全文
posted @ 2020-04-13 06:26 Grandyang 阅读(3722) 评论(1) 推荐(0) 编辑
摘要:Given the node of a binary search tree, return the sum of values of all nodes with value between and (inclusive). The binary search tree is guaranteed 阅读全文
posted @ 2020-04-06 07:41 Grandyang 阅读(3412) 评论(0) 推荐(0) 编辑

Fork me on GitHub