随笔分类 -  数据结构与算法

摘要:main.java package com.company; //import java.util.ArrayList; public class Main { public static void main(String[] args) { // write your code here Arra 阅读全文
posted @ 2020-09-08 21:12 liuw_flexi 阅读(280) 评论(0) 推荐(0) 编辑
摘要:斐波那契数列: package com.mj; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(fib2(46)); 阅读全文
posted @ 2020-08-12 16:35 liuw_flexi 阅读(179) 评论(0) 推荐(0) 编辑
摘要:排序算法: #include <iostream> //冒泡排序 void bubbleSort(int array[],int size){ std::cout << "array= " << array << std::endl; for (int end = size-1; end > 0; 阅读全文
posted @ 2020-08-12 16:34 liuw_flexi 阅读(122) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示