- 博客(2)
- 收藏
- 关注
原创 C++实现大根堆排序
#include <iostream> using namespace std; void Siftheap(int a[], int i, int n){ int j = 2 * i + 1, temp;//i指向分叉结点,j指向i的左结点 while (j < n) { if (j < n-1 && a[j] < a[j + 1])//...
2019-03-29 20:35:05
515
原创 分治法解决棋盘覆盖问题
#include&amp;amp;lt;stdio.h&amp;amp;gt; #include&amp;amp;lt;math.h&amp;amp;gt; #define size1 32 int t=0; int board[size1][size1]={0}; int main (void) { ChessBoard(0,0,27,25,size1); for(int i=0;i&amp;amp;lt;
2019-03-29 20:24:59
405
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人