摘要:
1、实践题目:7-1 数字三角形 2、问题描述: 3、算法描述 #include <iostream> using namespace std; int b[10005][10005]; int numberTriangle(int a[1005][1005], int n){ for(int i 阅读全文
摘要:
1、实践题目:7-1 二分查找(此题与詹泽伟同学一同完成) 2、问题描述: 3、算法描述: 第一种方法(循环): #include<iostream> using namespace std; int BS(int a[],int x, int n){ int l = 0; int r = n - 阅读全文