merge

package
v0.0.0-...-10ffd4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 0 Imported by: 0

README

归并排序

简介

  1. 把序列不停地从中间一分为二,直到每一段都只含有一个元素。
  2. 把相邻的子序列进行合并,按照从小到大的顺序入列。
  3. 直到完成整个序列的合并。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BUSort

func BUSort(a []int) []int

BUSort 返回自底向上的排序好的int切片

func Sort

func Sort(a []int) []int

Sort 返回一个排序好了的int切片

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL