二分查找图二叉树:代码#!/usr/bin/python#-*-coding:utf-8-*-#----------------------------------------------------------------------------------------#
to_do : bin....
分类:
编程语言 时间:
2014-06-09 23:06:48
阅读次数:
295
---恢复内容开始---字符串替换:string Replace(string oldValue,
string newValue)将字符串中的出现oldValue的地方替换为newValue。例子:名字替换。1 string s = "abc1234";2
...
分类:
其他好文 时间:
2014-06-09 22:47:39
阅读次数:
341
1.统计重数及次数。2.hash。%p,若冲突,则向后移动。******************************#include#include#includeusing
namespace std;const int maxn=5000000;const int p=1200007;str...
分类:
其他好文 时间:
2014-06-09 22:34:07
阅读次数:
211
//convert string type value to double type
value string s = "23"; double d; istringstream
is(s); is>>d; cout<<d<<endl; //输出23 //convert double type
.....
分类:
编程语言 时间:
2014-06-09 22:15:55
阅读次数:
220
安装Python依赖
pip3.4 install nose
pip3.4 install selenium
pip3.4 install Appium-Python-Client
运行测试用例android_contacts.py
import os
import unittest
from appium import webdriver
from time import slee...
分类:
移动开发 时间:
2014-06-08 05:55:17
阅读次数:
482
three collection tool for greenplum:pstack、strace、gcore.
[gpadmin@gtlions5913 ~]$ ps -ef | grep postgres|grep data...
分类:
其他好文 时间:
2014-06-08 05:30:55
阅读次数:
287
var Cts = "bblText";
if(Cts.indexOf("Text") > 0 )
{
alert('Cts中包含Text字符串');
}
indexOf用法:
返回 String 对象内第一次出现子字符串的字符位置。
strObj.indexOf(subString[, startIndex])
参数
...
分类:
Web程序 时间:
2014-06-08 05:00:36
阅读次数:
300
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means th...
分类:
其他好文 时间:
2014-06-08 04:05:14
阅读次数:
315
Django框架 简介本文地址: http://blog.csdn.net/caroline_wendy/article/details/29172271 1. 介绍Django是一个开放源代码的Web应用框架, 由Python写成.采用了MVC的软件设计模式, 即模型M, 视图V和控制器C.它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的, 并于2005年7月在BSD许可证下发布.这套框架是以比利时的吉普赛爵士吉他手Djan...
分类:
其他好文 时间:
2014-06-08 04:02:20
阅读次数:
397
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length...
分类:
其他好文 时间:
2014-06-08 03:06:52
阅读次数:
221