自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (1)
  • 收藏
  • 关注

原创 斐波那契数列递归算法的优化

public class Fibonacci { //优化使用的数组 static long[] cach = new long[51]; public static void main(String[] args) { long a = System.currentTimeMillis(); System.out.println( fd( 50 ) ); long l = System.currentTimeMillis(); System.out.println( l - a

2020-07-01 21:09:49 471

原创 小白的数组冒泡排序实现代码

public class Bubble_Sort { public static void main(String[] args) { int[] arr = {1, 5, 4, 7, 9, 3, 8, 6, 2,}; bubbleSort( arr ); } private static void bubbleSort(int[] arr) { for (int i = 0; i < arr.length - 1; i++) { for (int j = 0; j &l

2020-06-30 19:12:52 113

原创 数组的二分查找实现代码

public class twofenchazhao { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int a = 6; int index = binarySearchForIndex( arr, a ); System.out.println( index ); } private static int binarySearchForIndex(i

2020-06-30 19:08:53 110

集合笔记整理.doc

集合笔记 list arraylist集合 linkedlist集合 set hashset集合 treeset集合 map hashmap集合 terrset集合 不可变集合

2020-07-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除