permute_combine

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Permutation

type Permutation struct {
	// contains filtered or unexported fields
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/7/7 23:28
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description 给定不含有重复元素的数组[1,2,3],求所有的排列
  • [1,2,3]、[1,3,2]、[2,1,3]、[2,3,1]、[3,1,2]、[3,2,1] *

func (*Permutation) PermuteMethod

func (m *Permutation) PermuteMethod(arrayI interface{}) [][]interface{}

func (*Permutation) Tags

func (m *Permutation) Tags() []string

type PermutationByChange

type PermutationByChange struct {
	// contains filtered or unexported fields
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/7/7 23:28
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description 给定不含有重复元素的数组[1,2,3],求所有的排列
  • [1,2,3]、[1,3,2]、[2,1,3]、[2,3,1]、[3,1,2]、[3,2,1] *

func (*PermutationByChange) PermuteMethod

func (m *PermutationByChange) PermuteMethod(arrayI interface{}) [][]interface{}

func (*PermutationByChange) Tags

func (m *PermutationByChange) Tags() []string

type PermutationTime

type PermutationTime struct {
	// contains filtered or unexported fields
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/7/8 17:23
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description 时间的全排列
  • Given four digits, count how many valid times can be displayed on a digital clock (in 24-hour format) using those digits.
  • The earliest time is 00:00 and the latest time is 23:59. *

func (*PermutationTime) EligibleTimeMaxMethod

func (m *PermutationTime) EligibleTimeMaxMethod(timeArr []int) []int

func (*PermutationTime) EligibleTimeNumMethod

func (m *PermutationTime) EligibleTimeNumMethod(timeArr []int) int

type PermutationWithRepeatNum

type PermutationWithRepeatNum struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/7/7 23:28
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description 给定可能含有重复元素的数组[1,1,2,3],求所有的排列
  • [1,1,2,3]、[1,1,2,3]、[1,1,2,3]、[1,1,2,3] *

func (*PermutationWithRepeatNum) Method

func (m *PermutationWithRepeatNum) Method()

type PermutationWithRepeatNumReduce

type PermutationWithRepeatNumReduce struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/7/7 23:28
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description 给定可能含有重复元素的数组[1,1,2,3],求所有的排列并去除重复展示的结果
  • [1,1,2,3]、[1,1,2,3]、[1,1,2,3]、[1,1,2,3] *

func (*PermutationWithRepeatNumReduce) Method

func (m *PermutationWithRepeatNumReduce) Method()

type SubArraySum

type SubArraySum struct {
}

*

  • @author ljfirst
  • @version V1.0
  • @date 2023/9/12 23:48
  • @author-Email ljfirst@mail.ustc.edu.cn
  • @blogURL https://blog.csdn.net/ljfirst
  • @description 求数组的所有子数组之和 *

func (*SubArraySum) GetAttribute

func (m *SubArraySum) GetAttribute() *C.Attribute

func (*SubArraySum) Method

func (m *SubArraySum) Method(array []int) int

Jump to

Keyboard shortcuts

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