摘要: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di 阅读全文
posted @ 2021-01-05 14:08 CNoodle 阅读(169) 评论(0) 推荐(0)
摘要: In a string s of lowercase letters, these letters form consecutive groups of the same character. For example, a string like s = "abbxxxxzyy" has the g 阅读全文
posted @ 2021-01-05 02:24 CNoodle 阅读(155) 评论(0) 推荐(0)
摘要: Suppose you have n integers labeled 1 through n. A permutation of those n integers perm (1-indexed) is considered a beautiful arrangement if for every 阅读全文
posted @ 2021-01-05 01:02 CNoodle 阅读(136) 评论(0) 推荐(0)