以下内容摘自《http://blog.csdn.net/asanscape/article/details/6084600》Smart Pointer在初始化或释放等操作时,它们是一个对象,用点操作符,其他大部分操作则使用“->”操作符。For example: _ConnectionPtrm_p....
分类:
其他好文 时间:
2014-07-10 10:11:06
阅读次数:
211
src_dir=$(pwd)/All_hdst_dir=$(pwd)/Alldiff_dir=$(pwd)/diffif [ ! -d $diff_dir ]then mkdir $diff_dirfifor src_full_entry in $src_dir/*do src_cat_entry=...
分类:
其他好文 时间:
2014-07-10 10:07:49
阅读次数:
241
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
分类:
其他好文 时间:
2014-07-10 00:18:17
阅读次数:
278
Given two binary strings, return their sum (also a binary string).
分类:
其他好文 时间:
2014-07-09 23:52:48
阅读次数:
383
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
分类:
其他好文 时间:
2014-07-07 23:16:52
阅读次数:
197
题目链接 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...
分类:
其他好文 时间:
2014-07-07 22:25:30
阅读次数:
359
Fortran has two kinds of subprograms: subroutine and function. Usually, subroutine is a combination of several procedures generating side effects with...
分类:
其他好文 时间:
2014-06-30 12:43:00
阅读次数:
207
【问题】
Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.
定义一个过程,它以三个数为参数,返回其中较大的两个数的平方和。
【普通版】
(define (sum-square-largest x y ...
分类:
其他好文 时间:
2014-06-30 00:19:52
阅读次数:
270
题目
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
great
/...
分类:
其他好文 时间:
2014-06-29 23:16:19
阅读次数:
312
【题目】
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
【题意】
给定一个链表,每个节点除了next指针外,还有一个random指针,指向任意的节点。
要求,复制这样的一个链表
【思路】
思路...
分类:
其他好文 时间:
2014-06-29 20:41:21
阅读次数:
232