上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 76 下一页
摘要: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the 阅读全文
posted @ 2020-09-11 05:12 Schwifty 阅读(127) 评论(0) 推荐(0)
摘要: The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another n 阅读全文
posted @ 2020-09-11 05:08 Schwifty 阅读(157) 评论(0) 推荐(0)
摘要: Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. For example 阅读全文
posted @ 2020-09-09 22:06 Schwifty 阅读(137) 评论(0) 推荐(0)
摘要: Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on 阅读全文
posted @ 2020-09-09 21:55 Schwifty 阅读(203) 评论(0) 推荐(0)
摘要: A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each letter appears in at mo 阅读全文
posted @ 2020-09-05 01:14 Schwifty 阅读(129) 评论(0) 推荐(0)
摘要: Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. 阅读全文
posted @ 2020-09-04 09:21 Schwifty 阅读(133) 评论(0) 推荐(0)
摘要: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2020-09-04 04:52 Schwifty 阅读(116) 评论(0) 推荐(0)
摘要: Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
posted @ 2020-09-03 10:53 Schwifty 阅读(169) 评论(0) 推荐(0)
摘要: Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of t 阅读全文
posted @ 2020-09-03 10:01 Schwifty 阅读(117) 评论(0) 推荐(0)
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2020-09-02 12:59 Schwifty 阅读(141) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 76 下一页