上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 76 下一页
摘要: 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 阅读全文
posted @ 2020-08-15 13:40 Schwifty 阅读(117) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-08-14 14:27 Schwifty 阅读(110) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-08-14 13:44 Schwifty 阅读(89) 评论(0) 推荐(0)
摘要: Given words first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and thir 阅读全文
posted @ 2020-08-13 13:58 Schwifty 阅读(88) 评论(0) 推荐(0)
摘要: Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be 阅读全文
posted @ 2020-08-13 09:57 Schwifty 阅读(100) 评论(0) 推荐(0)
摘要: Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be 阅读全文
posted @ 2020-08-13 08:05 Schwifty 阅读(100) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-08-12 23:56 Schwifty 阅读(119) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-08-12 23:17 Schwifty 阅读(154) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-08-12 04:52 Schwifty 阅读(151) 评论(0) 推荐(0)
摘要: 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  阅读全文
posted @ 2020-08-11 12:00 Schwifty 阅读(106) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 76 下一页