# 归档 2016年12月11日

## LeetCode Weekly Contest 12解题报告 作者是 在线疯狂 发布于 2016年12月11日 在 LeetCode.

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

LeetCode 475. Heaters

LeetCode 474. Ones and Zeroes

LeetCode 471. Encode String with Shortest Length

## 题目描述：

LeetCode 471. Encode String with Shortest Length

Given a non-empty string, encode the string such that its encoded length is the shortest.

The encoding rule is: `k[encoded_string]`, where the encoded_string inside the square brackets is being repeated exactly ...

## 题目描述：

LeetCode 474. Ones and Zeroes

In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue.

For now, suppose you are a dominator of m `0s` and n `1s` respectively ...

## 题目描述：

In this problem, your job to write a function to check whether a input string is a valid IPv4 address or IPv6 address or neither.

IPv4 addresses are canonically represented in dot-decimal notation, which ...

## 题目描述：

LeetCode 475. Heaters

Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses.

Now, you are given positions of houses and heaters on a horizontal ...