Documentation
¶
Index ¶
- func GCD(a, b int) int
- func LCM(a, b int, integers ...int) int
- func MinInt(ints ...int) int
- func ParseNumsRow(input string) []int
- func Permutations(arr []int) [][]int
- func RemoveElementByIndex(s []int, i int) []int
- func RemoveElementByIndexInplace(s []int, i int) []int
- func ReverseString(s string) string
- func SliceInt(v int) []int8
- func SplitIntRange(from int, to int, n int) [][]int
- func SumIntSlice(s []int) (sum int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseNumsRow ¶
func Permutations ¶
func RemoveElementByIndex ¶
func ReverseString ¶
func SliceInt ¶
SliceInt returns a list of digits of a given integer
SliceInt(123456) => []int8{1,2,3,4,5}
func SplitIntRange ¶
SplitIntRange splits range into n sequential ranges
func SumIntSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.