
算法
懒人笔记—001
欢迎讨论、不喜勿喷;本人不喜欢写博客,几乎来自记事本或有道笔记的粘贴的过往或者现在的笔记,更多的是自己记录自己过往遇到小问题解决小问题的点滴,很多问题随着时间的过往已经感觉不应该当问题,但是还是贴出来了,供新人参考供自己回忆
展开
-
选择排序
public class CheckSort { public static void main(String[] args) { System.out.println("选择排序:"); int[] arr = {12, 5, 2, 64, 75, 3, 23, 23, 5, 577, 86, 2, 244, 554, 235, 7, 5, 88, 9,...原创 2019-11-14 09:40:57 · 146 阅读 · 0 评论 -
冒泡排序
public class BubbleSort { public BubbleSort() { System.out.println("冒泡排序"); int[] arr = {12, 5, 2, 64, 75, 3, 23, 23, 5, 577, 86, 2, 244, 554, 235, 7, 5, 88, 9, 0}; int le...原创 2019-11-14 09:15:12 · 240 阅读 · 0 评论 -
五角星
注:总感觉不对劲,就是说不上来哪里不对,看出来的可聊聊看法public class Wujiaoxing { public static void main(String[] args) { System.out.println("五角星"); for (int i = 1; i < 6; i++) { for (in...翻译 2019-11-13 15:56:41 · 276 阅读 · 0 评论 -
图形菱形
public class Lingxing { public void Top(Integer n) { Integer l = n / 2; Integer ok = n % 2; if (0 == ok) { System.out.println("不能生成菱形!"); } else { ...原创 2019-11-13 14:44:51 · 254 阅读 · 0 评论