Documentation
¶
Index ¶
- func Comb(m, n int) int64
- func CombSet(m, n int) [][]int
- func MultiCombSet(nums []int, n int) [][]int
- type Comparable
- type Int64
- type Percent
- func (p Percent) Less(other Comparable) bool
- func (p Percent) MarshalJSON() ([]byte, error)
- func (p Percent) Normalize() int64
- func (p Percent) NormalizeWithBase(base int64) int64
- func (p Percent) String() string
- func (p Percent) Sub(other Comparable) Comparable
- func (p *Percent) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiCombSet ¶
Types ¶
type Comparable ¶
type Comparable interface {
Less(Comparable) bool
Sub(Comparable) Comparable
}
type Int64 ¶
type Int64 int64
func (Int64) Less ¶
func (v Int64) Less(other Comparable) bool
func (Int64) Sub ¶
func (v Int64) Sub(other Comparable) Comparable
type Percent ¶
type Percent struct {
// contains filtered or unexported fields
}
func NewPercent ¶
func (Percent) Less ¶
func (p Percent) Less(other Comparable) bool
func (Percent) MarshalJSON ¶
func (Percent) NormalizeWithBase ¶
func (Percent) Sub ¶
func (p Percent) Sub(other Comparable) Comparable
func (*Percent) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.