码迷,mamicode.com
首页 >  
搜索关键字:comare version number    ( 48018个结果)
Sum Root to Leaf Numbers leetcode java
题目: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
The differentiation program with abstract data
#!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
LeetCode 第一题,Two Sum
题目还原 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
Java学习之Xml系列三:dtd校验、改、增、删
见摘要、见代码注释,其他话不多说: 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
Postgres XL FAQ
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学习了好久,发现还是个小白,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
Leetcode--ZigZag Conversion
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
hdu1394--Minimum Inversion Number(线段树求逆序数,纯为练习)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!