03 2021 档案

摘要:public class Solution { public int myAtoi(String str) { char[] chars = str.toCharArray(); int n = chars.length; int idx = 0; while (idx < n && chars[i 阅读全文
posted @ 2021-03-31 11:38 wusirzzz 阅读(70) 评论(0) 推荐(0)
摘要:/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } 阅读全文
posted @ 2021-03-17 21:35 wusirzzz 阅读(62) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-17 19:12 wusirzzz 阅读(42) 评论(0) 推荐(0)
摘要:package demo; public class SelectionSort { public static void main(String[] args) { int[] arr={1,3,2,45,65,33,12}; System.out.println("交换之前:"); for(in 阅读全文
posted @ 2021-03-17 15:01 wusirzzz 阅读(34) 评论(0) 推荐(0)
摘要:package demo; public class shellsort{ public static int count = 0; public static void main(String[] args) { int[] data = new int[] { 5, 3, 6, 2, 1, 9, 阅读全文
posted @ 2021-03-17 15:00 wusirzzz 阅读(25) 评论(0) 推荐(0)
摘要:1 package demo; 2 3 4 5 public class InsertSort { 6 private int[] array; 7 private int length; 8 9 public InsertSort(int[] array){ 10 this.array = arr 阅读全文
posted @ 2021-03-17 14:59 wusirzzz 阅读(44) 评论(0) 推荐(0)