题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 w....
分类:
编程语言 时间:
2014-08-01 06:57:21
阅读次数:
297
#!r6rs
( import ( rnrs base ( 6 ) )
( rnrs io simple ( 6 ) ) )
( define ( deriv exp var )
( define ( variable? x )
( symbol? x ) )
( define ( =number? exp num )...
分类:
其他好文 时间:
2014-08-01 02:28:20
阅读次数:
210
题目还原
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up t...
分类:
其他好文 时间:
2014-08-01 02:25:11
阅读次数:
391
见摘要、见代码注释,其他话不多说: DTD文档: <?xml?version="1.0"?encoding="UTF-8"?>
<!ELEMENT?SwordLibrary?(Sword*)>
<!ELEMENT?Sword?(SwordName,Price,Attack)>
<!ELEMENT?SwordName?(#PCDATA)...
分类:
编程语言 时间:
2014-08-01 00:18:51
阅读次数:
359
Q. What does XL stand for? XL is short for eXtensible Lattice. It also connotes an extra large version of PostgreSQL, in this case across multiple systems. Q. Is this a “NoSQL” solution? No, Post...
分类:
其他好文 时间:
2014-08-01 00:17:51
阅读次数:
358
python学习了好久,发现还是个小白,python还是不会用,从今天起每天学写一点小程序,做个打不死的小强。相关知识:列表,字典#!/usr/bin/envpythonpeople={‘yong‘:{‘phone‘:‘123‘,‘addr‘:‘Shanghai‘},‘bu‘:{‘phone‘:‘456‘,‘addr‘:‘Wuhan‘},‘yan‘:{‘phone‘:‘789‘,‘addr‘:‘Henan..
分类:
编程语言 时间:
2014-08-01 00:13:51
阅读次数:
253
Problem Description:
The string "PAYPALISHIRING" is written in a zigzag pattern
on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)...
分类:
其他好文 时间:
2014-08-01 00:11:50
阅读次数:
285
第一次实现堆排序,花了近两个小时。
主要还是堆调整,原理网上很多,直接给出运行代码和结果:
代码:
#include
using namespace std;
void adjustHeap(int number[],int k,int length){
int t=number[k];
int i;
for(; k*2+1 < length; k=i){
i=k*2...
分类:
其他好文 时间:
2014-08-01 00:10:20
阅读次数:
285
Minimum Inversion Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 10326 Accepted Submission(s): 6359
Problem Description
The invers...
分类:
其他好文 时间:
2014-08-01 00:08:10
阅读次数:
299
import javax.mail.Part;
/**
* 顺序查找
*
* @author 曾修建
* @version 创建时间:2014-7-30 下午04:15:10
*/
public class SequentialSearch {
public static void main(String[] args) {
Integer[] a...
分类:
其他好文 时间:
2014-08-01 00:07:30
阅读次数:
295