冒泡排序:比较相邻的两个数,如果第一个数比第二个数大,则两数交换。 选择排序:每次从所有数据中,选出最小的数据下标,然后和自定的最小索引交换。 package j_6_21; import java.util.Arrays; public class Text01 { public static v ...
分类:
编程语言 时间:
2020-06-22 13:02:37
阅读次数:
40
package com.data.manger.follow.controller; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; /** * ...
分类:
其他好文 时间:
2020-06-22 12:46:31
阅读次数:
49
Blob.js: /* eslint-disable */ /* Blob.js * A Blob implementation. * 2014-05-27 * * By Eli Grey, http://eligrey.com * By Devin Samarin, https://github. ...
分类:
其他好文 时间:
2020-06-22 12:21:56
阅读次数:
51
常用配置 热部署 配置依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </depen ...
分类:
编程语言 时间:
2020-06-22 01:27:22
阅读次数:
51
1089 Insert or Merge (25分) According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output l ...
分类:
其他好文 时间:
2020-06-21 20:03:52
阅读次数:
45
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi ...
分类:
其他好文 时间:
2020-06-21 19:56:30
阅读次数:
47
Arrays工具类排序和查找案例: package com.javaSe.Arrays; import java.util.Arrays; /* 好消息: SUN公司已经为我们程序员写好了一个数组工具类。 java.util.Arrays; */ public class ArraysTest02 ...
分类:
编程语言 时间:
2020-06-21 18:02:01
阅读次数:
66
链接:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list/ 思路 因为输入的列表已排序,因此可以通过将当前结点的值与它之后的结点进行比较来确定它是否为重复结点。 如果它是重复的,更改当前结点的 next 指针,以便它 ...
分类:
编程语言 时间:
2020-06-21 14:15:24
阅读次数:
52
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:
其他好文 时间:
2020-06-21 10:09:51
阅读次数:
35
Merge Two Sorted Lists (E) 题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of ...
分类:
其他好文 时间:
2020-06-21 09:38:24
阅读次数:
51