随笔分类 -  日常学习积累

摘要:chapter1 计划 chapter2 排序 1快速排序算法学习 //快速排序 #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; int n; int a[N]; /* void 阅读全文
posted @ 2025-06-22 22:29 自在_随心 阅读(15) 评论(0) 推荐(0)
摘要://结构体 typedef struct{ int key;}node; //直接插入排序 void zhijie_sort(node data[], int n, unsigned long long& compare, unsigned long long& move) { int i, j; 阅读全文
posted @ 2022-12-23 23:50 自在_随心 阅读(33) 评论(0) 推荐(0)
摘要:以逗号进行举例 以逗号分开输出: String str=“zxc”; ArrayList<String> list=new Arraylist<>(); for(int i=0;i<str.length;i++) list.add(str.CharAt(i)+""); String str1=str 阅读全文
posted @ 2022-12-20 23:56 自在_随心 阅读(314) 评论(0) 推荐(0)