本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Same Tree
Total Accepted: 15922 Total
Submissions: 38418
Given two binary trees, write a function to check if they are equal o...
分类:
其他好文 时间:
2014-05-14 01:15:40
阅读次数:
293
hash_map和map的用法很相似,只是底层机制有所不同。
hash_map容器采用的底层机制是hash table代码:
template ,
class EqualKey = equal_to,
class Alloc = alloc>
class hash_map
{
private:
typedef hashtable, Key...
分类:
其他好文 时间:
2014-05-13 22:59:23
阅读次数:
256
今天项目中遇到了一个对List中对象去重的问题。首先对于我们自己系统中的对象我们只要重写该对象的
equal 和 hashcode 即可(利用对象中的能够唯一确定对象的属性)。但是我遇到的不是本系统的对象, 而是另一个系统中的对象,
我本身是无法对其进行重写的。 我的处理方法是遍历List,利用Ma...
分类:
其他好文 时间:
2014-05-13 19:06:03
阅读次数:
237
Squares
Time Limit: 3500MS
Memory Limit: 65536K
Total Submissions: 15489
Accepted: 5864
Description
A square is a 4-sided polygon whose sides have equal length and adja...
分类:
其他好文 时间:
2014-05-11 20:56:36
阅读次数:
416
1.shell程序格式 #! /bin/bash 首行#!指定shell编译器 # program
除首行的#外,其他的都表示注释 # read var1 read var2 if[ $var1 -eq $var2 ] then echo "$var1 is
equal to $var2" elif...
分类:
其他好文 时间:
2014-05-08 10:36:56
阅读次数:
252
Pat1060代码
题目描述:
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given...
分类:
其他好文 时间:
2014-05-08 02:07:49
阅读次数:
452
DES安全编码组件
支持 DES、DESede(TripleDES,就是3DES)、AES、Blowfish、RC2、RC4(ARCFOUR)
DES key size must be equal to 56
DESede(TripleDES) key size must be equal to 112 or 168
AES key ...
分类:
其他好文 时间:
2014-05-07 21:42:35
阅读次数:
514
The Little Elephant likes permutations. This time he has a permutation A[1], A[2], ..., A[N] of numbers 1, 2, ...,N.
He calls a permutation A good, if the number of its inversions is equal to the n...
分类:
其他好文 时间:
2014-05-07 07:20:50
阅读次数:
356
Subtraction Game 1
Chef is playing a game on a sequence of N positive integers, say A1, A2, ... AN. The game is played as follows.
If all the numbers are equal, the game ends.Otherwise
Sele...
分类:
其他好文 时间:
2014-05-07 03:14:01
阅读次数:
280
题目描述:
Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each step he throws a dice(a dice have six faces with equal probability to...
分类:
其他好文 时间:
2014-05-04 09:18:42
阅读次数:
321