slice

package
v0.0.0-...-1272ae6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntersectionOfTwoArrays

func IntersectionOfTwoArrays(nums1 []int, nums2 []int) []int

两个乱序切片求交集 Benchmark: 140ns/op

func IntersectionOfTwoOrderArrays

func IntersectionOfTwoOrderArrays(nums1 []int, nums2 []int) []int

两个顺序切片求交集 Benchmark: 118ns/op 如果先sort 10.2ns/op

func UnionOfTwoArray

func UnionOfTwoArray(nums1 []int, nums2 []int) (data []int)

两个slice的并集

Types

This section is empty.

Jump to

Keyboard shortcuts

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