摘要:
题目描述:给定一个由不同的小写字母组成的字符串,输出这个字符串的所有全排列。我们假设对于小写字母有'a' #include using namespace std; const int arrSize=10;char arr[arrSize];bool mark[arrSize];char ans... 阅读全文
posted @ 2014-12-16 22:26
tinylcy
阅读(401)
评论(0)
推荐(0)
摘要:
题目描述:The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular regio... 阅读全文
posted @ 2014-12-16 16:56
tinylcy
阅读(203)
评论(0)
推荐(0)
摘要:
题目描述:A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two ad... 阅读全文
posted @ 2014-12-16 16:06
tinylcy
阅读(173)
评论(0)
推荐(0)
摘要:
题目描述:输入一颗二叉树和一个整数,打印出二叉树中结点值的和为输入整数的所有路径。路径定义为从树的根结点开始往下一直到叶结点所经过的结点形成一条路径。输入:每个测试案例包括n+1行:第一行为2个整数n,k(1#include #include using namespace std; struct... 阅读全文
posted @ 2014-12-16 15:05
tinylcy
阅读(249)
评论(0)
推荐(0)

浙公网安备 33010602011771号