随笔分类 - On the way-数据结构与算法
进入数据结构与算法的学习
摘要:算法一:暴力遍历法 #include <stdio.h> int MaxSubseqSum2( int A[], int N ) { int ThisSum, MaxSum = 0; int i, j; for( i = 0; i < N; i++ ) { /* i是子列左端位置 */ for( j
阅读全文
摘要:#define _CRT_SECURE_NO_WARNINGS 1 //计算程序时间——clock()函数的使用 #include<stdio.h> #include<time.h> clock_t start, stop; //clock_t是clock函数返回值的变量类型 double dura
阅读全文

浙公网安备 33010602011771号