归档 2016

[LeetCode]Flatten Nested List Iterator

题目描述:

LeetCode 341. Flatten Nested List Iterator

Given a nested list of integers, implement an iterator to flatten it.

Each element is either an integer, or a list -- whose elements may also be integers or other lists.

Example 1:
Given ...

继续阅读

[TopCoder]SRM 687 Div2 Quacking

题目描述:

Ducks have started mysteriously appearing in your room. All ducks make the same sound: "quack". Each duck makes the sound one or more times, one after another. For example, valid sounds for a single duck are "quack", "quackquackquackquack", "quackquack" ...

继续阅读

每月存档

去年

明年