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
阅读全文
摘要:/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; }
阅读全文
摘要: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
阅读全文
摘要: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,
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号