归档 2016

LeetCode Weekly Contest 12解题报告

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

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

题解列表:

LeetCode 475. Heaters

LeetCode 468. Validate IP Address

LeetCode 474. Ones and Zeroes

LeetCode 471. Encode String with Shortest Length

[LeetCode]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]Validate IP Address

题目描述:

LeetCode 468. Validate IP Address

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

继续阅读

每月存档

去年

明年