Documentation ¶
Index ¶
- func BinarySearch(content string, origin_arr []string) (resarray []string)
- func BinarySearchForMap[T interface{}](content string, origin_map map[string]T) (resmap map[string]T)
- func Comparestr(target string, tocompare string, compare_rate int) bool
- type ArrayQueen
- type ArrayStack
- type Heap
- type LinkList
- func (s *LinkList[T]) AddAfterValue(sourcevalue, value T)
- func (s *LinkList[T]) AddBeforeValue(sourcevalue T, value T)
- func (s *LinkList[T]) AddFirst(value T)
- func (s *LinkList[T]) AddLast(value T)
- func (s *LinkList[T]) DeleteFirst()
- func (s *LinkList[T]) DeleteLast()
- func (s *LinkList[T]) GetVal() T
- func (s *LinkList[T]) PrintList()
- func (s *LinkList[T]) Toarray() []T
- type ListQueen
- type ListStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinarySearch ¶
func BinarySearchForMap ¶
func BinarySearchForMap[T interface{}](content string, origin_map map[string]T) (resmap map[string]T)
binary search for map
Types ¶
type ArrayQueen ¶
type ArrayQueen[T basictype] struct {
// contains filtered or unexported fields
}
func (*ArrayQueen[T]) Add ¶
func (s *ArrayQueen[T]) Add(value T)
func (*ArrayQueen[T]) Peek ¶
func (s *ArrayQueen[T]) Peek() T
func (*ArrayQueen[T]) PrintQueen ¶
func (s *ArrayQueen[T]) PrintQueen()
func (*ArrayQueen[T]) Remove ¶
func (s *ArrayQueen[T]) Remove()
type ArrayStack ¶
type ArrayStack[T basictype] struct {
// contains filtered or unexported fields
}
func (*ArrayStack[T]) Peek ¶
func (s *ArrayStack[T]) Peek() T
func (*ArrayStack[T]) Pop ¶
func (s *ArrayStack[T]) Pop() T
func (*ArrayStack[T]) PrintArray ¶
func (s *ArrayStack[T]) PrintArray()
func (*ArrayStack[T]) Push ¶
func (s *ArrayStack[T]) Push(value T)
type LinkList ¶
type LinkList[T basictype] struct {
// contains filtered or unexported fields
}
func (*LinkList[T]) AddAfterValue ¶
func (s *LinkList[T]) AddAfterValue(sourcevalue, value T)
func (*LinkList[T]) AddBeforeValue ¶
func (s *LinkList[T]) AddBeforeValue(sourcevalue T, value T)
func (*LinkList[T]) DeleteFirst ¶
func (s *LinkList[T]) DeleteFirst()
func (*LinkList[T]) DeleteLast ¶
func (s *LinkList[T]) DeleteLast()
type ListQueen ¶
type ListQueen[T basictype] struct {
// contains filtered or unexported fields
}
func (*ListQueen[T]) PrintQueen ¶
func (s *ListQueen[T]) PrintQueen()
type ListStack ¶
type ListStack[T basictype] struct {
// contains filtered or unexported fields
}
func (*ListStack[T]) PrintStack ¶
func (s *ListStack[T]) PrintStack()
Click to show internal directories.
Click to hide internal directories.