util

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package util 常用工具类

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMaxElement

func GetMaxElement(_array []int) int

GetMaxElement 获取数组中的最大元素

func GetZuheResult

func GetZuheResult(_m []int, _n int) [][]int

GetZuheResult 求排列组合 组合算法(从n个中取出m个数)--------------------------------------------------------- _m 待取数组,_n:取n个

func Power

func Power(value int, ct int) int

Power 求value的 ct 次冥

func RemoveIntElementOne

func RemoveIntElementOne(_array []int, _value int) []int

RemoveIntElementOne 数组删除指定value元素,只删除一个

func RemoveStrElement

func RemoveStrElement(_array []string, _value string) []string

func RemoveSubArr

func RemoveSubArr(_array []int, _subArr []int) []int

RemoveSubArr 删除子数组

Types

This section is empty.

Jump to

Keyboard shortcuts

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