摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. 阅读全文
posted @ 2015-05-13 11:20 m_CHaN 阅读(302) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 阅读全文
posted @ 2015-05-13 11:06 m_CHaN 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 一副牌,抽去大小王后(初练也可以把J/Q/K也拿去),剩下1~10这40张牌(以下用1代替A)。任意抽取4张牌(称为牌组),用加、减、乘、除 (可加括号)把牌面上的数算成24。每张牌必须且只能用一次。 阅读全文
posted @ 2015-05-11 09:59 m_CHaN 阅读(2248) 评论(0) 推荐(0) 编辑
摘要: 使用Python下os,sys模块实现Linux文件查找。 阅读全文
posted @ 2015-05-06 13:33 m_CHaN 阅读(4061) 评论(0) 推荐(0) 编辑
摘要: Count the number of prime numbers less than a non-negative number, n. 阅读全文
posted @ 2015-05-06 11:11 m_CHaN 阅读(197) 评论(0) 推荐(0) 编辑