## Workflowy full notes

Recently, I'm becoming a crazy fan of workflowy because its ability to build a personal wiki concisely.

However, there's only one thing bothers me that workflowy hide all the notes as the screenshot below, and it annoys me a lot.

Luckily we can always find a way to get around …

## 分析

• 确实可以排序(LOL)
• 可以应对C-style array和C++-style container的排序需求
• 可以应用于任意random access container
• 可以使用用户自定义的排序函数 / 仿函数 / lambda函数

## 实现

### 函数原型

```template< class It, class Compare >
void sort …```

## A. 2月29日 (Feb. 29th)

### Description

Given a starting date and an ending date. Count how many Feb. 29th are between the given dates.

### Solution

The easiest way, of course, the brute force, which is quite simple with Python using the `datetime` lib.

However, it's not an effective way for the …

100组数据。

## ØMQ是一个消息系统

ZeroMQ是一个消息系统，也被称为“消息中间件”。它被广泛的用于经济、游戏、嵌入式等领域。

### ZeroMQ的起源和发展

ZeroMQ最先的设想是实现一个炒鸡快的用于证券交易的消息系统，所以在设计初期的关注点就是在极致的优化上。

## A. Fox And Snake

Implementation

```(n, m) = map(int, raw_input().split())

res = []

for i in xrange(n):
if i % 2 == 0:
res.append('#' * m)
elif (i / 2) % 2 == 0:
res.append('.' * (m - 1) + '#')
else:
res.append('#' + '.' * (m - 1))

for line in res:
print line
```

DFS …