Problem
Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are
inspected in this problem:Hash Table. One hash set is the words di...
分类:
其他好文 时间:
2014-05-05 22:44:44
阅读次数:
393
1,C++中操作数组
#include
using namespace std;
int length(char []);
void output_frequency(char []);
int main()
{
char str[]="yan cong min";
cout<<"要处理的字符串为:"<<str<<endl;
cout<<"字符串长度为:"<<lengt...
分类:
编程语言 时间:
2014-05-05 13:29:30
阅读次数:
432
题目:
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new len...
分类:
其他好文 时间:
2014-05-05 12:58:57
阅读次数:
294
函数的属性length、prototype和方法call()、apply()
length指的是该函数所期望传递进来的参数个数。
function fun0(){} //0
function fun1(num1){} //1
function fun2(num1,num2){} //2
//prototype
function MyObje...
分类:
移动开发 时间:
2014-05-05 12:55:59
阅读次数:
306
HTML文档中的每一个元素都是一个对象。每个元素都有nodeName、nodeType之类的DOM属性。文档中的每一个表单元素都是一个form对象。每个form对象都有一个elements.length属性。这个属性返回表单中包含的表单元素的个数。这个返回值与childNodes.length不一样...
分类:
其他好文 时间:
2014-05-03 22:17:45
阅读次数:
215
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
python中流程控制与函数编写
Last Eidt 2014/5/2...
分类:
编程语言 时间:
2014-05-03 17:17:00
阅读次数:
442
Python中怎么编写类
Last Edit 2013/5/2
先看一个例子:
#person.py
class person:
"""class to representaion a person"""
def __init__(self,name,age):
self.name=name
if 0<age<=150:
...
分类:
编程语言 时间:
2014-05-03 15:48:31
阅读次数:
390