摘要:
Given an array of integers A, find the sum of min(B), where B ranges over every (contiguous) subarray of A. Since the answer may be large, return the 阅读全文
摘要:
Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warme 阅读全文
摘要:
Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is gre 阅读全文
摘要:
Given words first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and thir 阅读全文
摘要:
Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be 阅读全文
摘要:
Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be 阅读全文
摘要:
Today, the bookstore owner has a store open for customers.length minutes. Every minute, some number of customers (customers[i]) enter the store, and a 阅读全文
摘要:
Students are asked to stand in non-decreasing order of heights for an annual photo. Return the minimum number of students that must move in order for 阅读全文
摘要:
You are given two sorted arrays of distinct integers nums1 and nums2. A valid path is defined as follows: Choose array nums1 or nums2 to traverse (fro 阅读全文
摘要:
A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if: For i <= k < j, A[k] > A[k+1] when k is odd, and A[k] < A[k+1] when k 阅读全文