源码://HeapSort.cpp#include using namespace
std;//about heap://the last leaf node is a[n-1]//the last non-leaf node is
a[n/2-1];// a[i]// ...
分类:
其他好文 时间:
2014-05-27 02:21:23
阅读次数:
240
reference
from:http://www.programcreek.com/2013/09/top-10-questions-for-java-collections/The
following are the most popular questions of Java collecti...
分类:
编程语言 时间:
2014-05-23 22:27:40
阅读次数:
545
MySQL字符集的一个坑http://imysql.com/2013/10/29/misunderstand-about-charset-handshake.shtmlMySQL字符集的一个坑1条回复今天帮同事处理一个棘手的事情,问题是这样的:无论在客户机用哪个版本的mysql客户端连接服务器,发现...
分类:
数据库 时间:
2014-05-23 12:06:09
阅读次数:
363
Construct Binary Tree from Preorder and Inorder
TraversalGiven preorder and inorder traversal of a tree, construct the binary
tree.Note:You may assume...
分类:
其他好文 时间:
2014-05-19 18:43:40
阅读次数:
177
一、现在我们在网站设计(三)的基础上,来编写about.html页面。这个页面要用到的知识点是利用JavaScript和DOM实现选择性地显示和隐藏某些DIVabout.html页面在前面我们为了看导航栏菜单项高亮显示时,已经写了部分内容,只是那时写的代码没有实现div显示和隐藏,现在就在之前编写的...
分类:
编程语言 时间:
2014-05-19 18:41:51
阅读次数:
256
题目链接Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-...
分类:
其他好文 时间:
2014-05-19 14:10:25
阅读次数:
250
原文:JavaScript网站设计实践(四)编写about.html页面,利用JavaScript和DOM,选择性的显示和隐藏DIV元素一、现在我们在网站设计(三)的基础上,来编写about.html页面。这个页面要用到的知识点是利用JavaScript和DOM实现选择性地显示和隐藏某些DIVabo...
分类:
编程语言 时间:
2014-05-19 13:35:23
阅读次数:
309
.val()works on input elements (or any element
with a value attribute?) and.text()will not work on input elements..val()gets
the value of the input ele...
分类:
Web程序 时间:
2014-05-19 12:14:34
阅读次数:
382
var db:NotesDatabase=session.getCurrentDatabase();
var doc:NotesDocument=db.getDocumentByUNID('80E2193C517E9B3A872578D90018D92E');
var valString:String = "";
if (doc.hasItem('BWImage')){
var nrt:Note...
分类:
其他好文 时间:
2014-05-18 06:26:33
阅读次数:
267
【题目】
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
The so...
分类:
其他好文 时间:
2014-05-18 03:15:50
阅读次数:
287