归档 2017

[LeetCode]Max Consecutive Ones

题目描述:

LeetCode 485. Max Consecutive Ones

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 digits or the last three digits are consecutive 1s.
    The ...

继续阅读

LeetCode Weekly Contest 14解题报告

LeetCode Weekly Contest 14是LeetCode举办的第十七场正式周赛,共4道题目,比赛时长2小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-14/

题解列表:

LeetCode 476. Number Complement

LeetCode 481. Magical String

LeetCode 482. License Key Formatting

LeetCode 480. Sliding Window Median

[LeetCode]License Key Formatting

题目描述:

LeetCode 482. License Key Formatting

Now you are given a string S, which represents a software license key which we would like to format. The string S is composed of alphanumerical characters and dashes. The dashes split the alphanumerical ...

继续阅读

每月存档

去年

明年