Walk
Problem Description
I used to think I could be anything, but now I know that I couldn't do anything. So I started traveling.
The nation looks like a connected bidirectional graph, and ...
分类:
其他好文 时间:
2014-09-17 18:44:22
阅读次数:
385
说实话,我讨厌这样一个土鳖的标题,希望内容不让你失望. 本文最早源于一系列关于解决问题方法论的思考,从解决问题的一般原则到探索如何让解决问题依赖知识积累和思维工具而不是偶发灵感.这样关注点逐渐从解决问题演变为个人知识体系的构建和知识的管理. 2009年 解决问题:心态 原则 方法 2012年 [Think] 解决问题 Ⅱ 2012年 实用主义的思考与学习 读书笔记...
分类:
其他好文 时间:
2014-09-17 13:42:27
阅读次数:
307
说是计算几何,其实是一道水题。直接算半圆面积即可。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 #define PI acos(-1)11 1...
分类:
其他好文 时间:
2014-09-16 23:40:21
阅读次数:
300
/*to solve the problem ,i think we can use stack to maintain the numbers,and list to keep it sorted,which is very important to find the Median number....
分类:
其他好文 时间:
2014-09-15 19:07:19
阅读次数:
181
Problem Description
I used to think I could be anything, but now I know that I couldn't do anything. So I started traveling.
The nation looks like a connected bidirectional graph, and I am rando...
分类:
其他好文 时间:
2014-09-14 01:27:16
阅读次数:
274
Problem Description
I used to think I could be anything, but now I know that I couldn't do anything. So I started traveling.
The nation looks like a connected bidirectional graph, and I am randoml...
分类:
其他好文 时间:
2014-09-13 22:50:06
阅读次数:
202
哲学家进餐问题:(1) 在什么情况下5 个哲学家全部吃不上饭?考虑两种实现的方式,如下:A.算法描述: 1 void philosopher(int i) {/*i:哲学家编号,从0 到4*/ 2 while (TRUE) { 3 think( ); /*哲学家正在思考*/ ...
分类:
其他好文 时间:
2014-09-13 14:34:25
阅读次数:
268
Description
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:
其他好文 时间:
2014-09-13 09:23:34
阅读次数:
197
There’s this new and really powerful type of data: event data. Well, it’s not really new. I bet you are already familiar with event data, even if you ...
分类:
其他好文 时间:
2014-09-10 15:42:40
阅读次数:
322