# 档案日期2017的1

## LeetCode Weekly Contest 14解题报告 作者是 在线疯狂 发布于 2017年1月8日 在 LeetCode.

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

LeetCode 476. Number Complement

LeetCode 481. Magical String

LeetCode 480. Sliding Window Median

## 题目描述：

LeetCode 480. Sliding Window Median

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 middle value ...

## 题目描述：

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 ...

## 题目描述：

LeetCode 481. Magical String

A magical string S consists of only '1' and '2' and obeys the following rules:

The string S is magical because concatenating the number of contiguous occurrences of characters '1' and '2' generates the string ...

## 题目描述：

LeetCode 476. Number Complement

Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.

Note:

1. The given integer is guaranteed to fit within the range of a 32-bit signed ...