- 博客(3)
- 收藏
- 关注
原创 数据结构和算法——快速排序
#include <stdio.h> int a[101],n; void quick_sort(int left,int right) { int i,j,t,temp; if(left>=right) return; temp=a[left]; i=left; j=right; //在哨兵i,j 会合之前,将右侧找到的小数与左边找到的大数 互换 while(i!=j) ...
2018-12-29 15:42:53
168
原创 数据结构和算法——冒泡排序
#include &lt;stdio.h&gt; struct student { char name[20]; int score; }; int main() { struct student a[100],t; int i,j,n; scanf("%d",&amp;n); for(i=1;i&lt;=n;i++) scanf("%s %
2018-12-29 15:26:07
235
原创 第一pain笔记
在这里插入代码片@TOC 欢迎使用Markdown编辑器 public static String arrayToString(int[] arr) { StringBuffer sb = new StringBuffer();// 创建字符串缓冲区对象 sb.append("["); // 将‘[’添加到缓冲区 for (int i = 0; i < arr.length; i...
2018-12-29 15:04:46
202
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅