- 博客(5)
- 问答 (1)
- 收藏
- 关注
原创 数组里寻找子数组元素之和为给定值sum
//在一个数组里 寻找任意个数的和为给定值 //这里只输出一种结果。 void PrintResult(int **dp,int data[],int length,int sum,list &res); void FindNumberofValueN(int data[],unsigned int length,int sum) { if(data == NULL || length == 0
2014-09-01 15:13:49
765
原创 简单的几道算法_AboutString
#include #include #include using namespace std; //字符串排序 void Permutation(char *pStr,char *pBegin) { if(*pBegin == '\0') cout<<pStr<<endl; for(char *pCh = pBegin; *pCh != '\0';++pCh) { char t
2014-08-31 17:13:20
339
原创 简单的几道算法题_AboutDP
#include using namespace std; /** 整数切分。比如2有1种1+1 3有2种 1+1+1 2+1 4有4种 1+1+1+1 2+2 1+3 1+1+2 5有6种 1+1+1+1+1 1+1+3 1+1+1+2 2+2+1 2+3 1+4 */ int IntergeSplit(int n) { if (n <= 1) return 0; int **d
2014-08-31 17:08:43
308
原创 简单的几道算法题_About Binary Tree
存着 以免下次换电脑找不到,哈哈 #include #include using namespace std; struct BinaryTreeNode { int m_nValue; int m_nLeftMaxLength; //存放的是左边最长叶子距离 int m_nRigthMaxLength; BinaryTreeNode* m_pLeft; Binary
2014-08-31 17:06:45
380
空空如也
hive问题: pyhs2 load数据报错
2016-05-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人