上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 68 下一页
摘要: 题目如下: Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other wo 阅读全文
posted @ 2019-09-12 13:29 seyjs 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a date, return the corresponding day of the week for that date. The input is given as three integers representing the day, month and year  阅读全文
posted @ 2019-09-12 13:12 seyjs 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 题目如下: A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pairs of neighboring stops where distance[i] is 阅读全文
posted @ 2019-09-12 13:10 seyjs 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 题目如下: With respect to a given puzzle string, a word is valid if both the following conditions are satisfied: word contains the first letter of puzzle. 阅读全文
posted @ 2019-09-06 16:10 seyjs 阅读(481) 评论(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], ..., 阅读全文
posted @ 2019-09-06 15:59 seyjs 阅读(512) 评论(2) 推荐(0) 编辑
摘要: 题目如下: Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) (Recall that an integer is prime if and only 阅读全文
posted @ 2019-09-06 15:45 seyjs 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 题目如下: A transaction is possibly invalid if: the amount exceeds $1000, or; if it occurs within (and including) 60 minutes of another transaction with t 阅读全文
posted @ 2019-08-31 22:21 seyjs 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce 阅读全文
posted @ 2019-08-31 22:17 seyjs 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. After doin 阅读全文
posted @ 2019-08-31 22:11 seyjs 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on F 阅读全文
posted @ 2019-08-23 10:02 seyjs 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 68 下一页