摘要: #define _CRT_SECURE_NO_WARNINGS #include #include #include #include using namespace std; int q[3000]; // quotient, size of the array ? //int r[3000]; // remainder int s[3000]; // whether a re... 阅读全文
posted @ 2016-07-23 16:26 PatrickZhou 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include int main() { int T; int m, n; char dna[55][1005]; // 4 max || (cnt[0] == max && maxChar > 'A')){ max = cnt[0]; ... 阅读全文
posted @ 2016-07-20 14:21 PatrickZhou 阅读(117) 评论(0) 推荐(0) 编辑
摘要: //3-1 3-2 3-3 3-4 3-5 3-6 阅读全文
posted @ 2016-07-16 13:32 PatrickZhou 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 以上iterator j的作用为:若待插入的key与某个结点相同(设为p),则在while循环中,某一次x = p后,大于等于向右走,则下一次x = p.right,由于v的值一定小于p的右子树中任何一个值,所以进入p的右子树后,x一定是一直向左走直到节点y(y的左儿子为空)。则y为p的右子树最小值 阅读全文
posted @ 2016-07-16 13:30 PatrickZhou 阅读(704) 评论(0) 推荐(0) 编辑