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, ...
分类:
其他好文 时间:
2014-05-07 18:01:05
阅读次数:
412
inline static UIColor* getColorFromHex(NSString *hexColor)
{
if (hexColor == nil) {
return nil;
}
unsigned int red, green, blue;
NSRange range;
range.length = 2;
...
分类:
移动开发 时间:
2014-05-07 11:48:26
阅读次数:
327
最近做个DG的归档日志删除,[oracle@.local logs]crontab -l
* 8 * * * sh /home/oracle/dbscripts/del_arc.sh
该脚本分别调用 生成 删除 校验 三个脚本cat del_arc.sh
#! /bin/bash
source /home/oracle/.bash_profile
sh /home/oracle/dbscrip...
分类:
数据库 时间:
2014-05-07 11:29:48
阅读次数:
519
Chef had an interesting dream last night. He dreamed of a new revolutionary chicken recipe. When he woke up today he tried very hard to reconstruct the ingredient list. But, he could only remember cer...
分类:
其他好文 时间:
2014-05-07 11:23:54
阅读次数:
330
Description
Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where he had to use his toilet paper to draw on,...
分类:
其他好文 时间:
2014-05-07 05:16:29
阅读次数:
385
安装Ganglia-3.6中,遇到以这样一个问题,见下图:
解决问题:
遗漏安装包dejavu-fonts-common , dejavu-lgc-sans-mono-fonts, dejavu-sans-mono-fonts 。
下载安装或者直接从库中安装,最简单的方式(centOS, red hat linux ):
yum -y install de...
分类:
其他好文 时间:
2014-05-07 03:06:05
阅读次数:
378
//1、工厂模式 function createCar(){ var car = new
Object(); car.color="red"; ...
分类:
编程语言 时间:
2014-05-07 02:06:50
阅读次数:
520
R-B Tree简介 Red-Black
Tree,是一种特殊的二叉查找树。红黑树的每个节点上都有存储位表示节点的颜色,即红(Red)或黑(Black)。红黑树的特性:(1)每个节点是黑或红。(2)根节点是黑色。(3)每个叶子节点(NIL)是黑色。[注意:这里叶子节点,是指为空(NIL或NULL)....
分类:
其他好文 时间:
2014-05-07 01:53:34
阅读次数:
570
Interface
Java里用interface关键字,引入一种没有具体实现的类型。
Declaring Interfaces
interface一般以大写字母开头,able单词结束,如下例子:
interface Drawable
{
int RED = 1; // For simplicity, integer constants are used. These constants ...
分类:
移动开发 时间:
2014-05-06 15:09:43
阅读次数:
671
Problem:In the 2020 grid below, four numbers
along a diagonal line have been marked in red.08 02 22 97 38 15 00 40 00 75 04
05 07 78 52 12 50 77 91 08...
分类:
其他好文 时间:
2014-05-06 14:35:55
阅读次数:
460