最新 最热

(Head First 设计模式)学习笔记(2) --观察者模式(气象站实例)

应用概述: 某气象站通过传感器实时测量气温/湿度/压力等数据,要求设计一个系统,能让多种类型的公告栏自动更新这些数据(本例中有二类公告板:实时显示气温/温度公告板,动态统计最高/最低气温公告板)解释: 应用观察者模式,...

2018-01-23
0

Leetcode 75 Sort Colors

Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and...

2018-01-12
1

Leetcode 204 Count Primes

Description: Count the number of prime numbers less than a non-negative number, n. 统计小于n的素数有多少个。 用筛法进行素数打表,边打表边记录个数。class Solution {public: int countP......

2018-01-12
1

Leetcode 201 Bitwise AND of Numbers Range

Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For example, given the range [5, 7], you...

2018-01-12
1