上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 37 下一页
摘要: There are N wines in a row. Each year you sell either the leftmost or the rightmost wine. The i-th wine has initial price p[i] and price k * p[i] in t 阅读全文
posted @ 2019-09-27 00:23 Review->Improve 阅读(376) 评论(0) 推荐(0) 编辑
摘要: In an infinite chess board with coordinates from -infinity to +infinity, you have a knight at square [0, 0]. A knight has 8 possible moves it can make 阅读全文
posted @ 2019-09-22 01:23 Review->Improve 阅读(5718) 评论(0) 推荐(0) 编辑
摘要: You have N stones in a row, and would like to create from them a pyramid. This pyramid should be constructed such that the height of each stone increa 阅读全文
posted @ 2019-09-20 05:46 Review->Improve 阅读(428) 评论(0) 推荐(0) 编辑
摘要: A competitive runner would like to create a route that starts and ends at his house, with the condition that the route goes entirely uphill at first, 阅读全文
posted @ 2019-09-19 11:38 Review->Improve 阅读(1163) 评论(0) 推荐(1) 编辑
摘要: Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words, y 阅读全文
posted @ 2019-09-16 23:31 Review->Improve 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: On a mysterious island there are creatures known as Quxes which come in three colors: red, green, and blue. One power of the Qux is that if two of the 阅读全文
posted @ 2019-09-14 03:21 Review->Improve 阅读(1852) 评论(0) 推荐(0) 编辑
摘要: Given a string s, we make queries on substrings of s. For each query queries[i] = [left, right, k], we may rearrange the substring s[left], ..., s[rig 阅读全文
posted @ 2019-09-04 23:28 Review->Improve 阅读(865) 评论(0) 推荐(0) 编辑
摘要: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee 阅读全文
posted @ 2019-08-30 06:46 Review->Improve 阅读(163) 评论(0) 推荐(0) 编辑
摘要: mplement a SnapshotArray that supports the following interface: SnapshotArray(int length) initializes an array-like data structure with the given leng 阅读全文
posted @ 2019-08-07 12:06 Review->Improve 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: A cryptarithmetic puzzle is a mathematical game where the digits of some numbers are represented by letters. Each letter represents a unique digit. Fo 阅读全文
posted @ 2019-08-06 10:17 Review->Improve 阅读(1390) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 37 下一页