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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文