MCPcopy Create free account

hub / github.com/TheAlgorithms/Go / functions

Functions1,378 in github.com/TheAlgorithms/Go

MethodLeft
()
structure/tree/rbtree.go:41
MethodLeft
()
project_euler/problem_18/edge.go:15
MethodLeft
()
project_euler/problem_18/root.go:14
MethodLeft
()
project_euler/problem_18/leaf.go:15
MethodLeftIsNil
()
project_euler/problem_18/edge.go:90
MethodLeftIsNil
()
project_euler/problem_18/root.go:52
MethodLeftIsNil
()
project_euler/problem_18/leaf.go:65
MethodLength
Size returns the number of elements in the stack.
structure/stack/stackarray.go:27
FunctionLerp
Lerp or Linear interpolation This function will return new value in 't' percentage between 'v0' and 'v1'
math/lerp.go:5
MethodLess
(o testInt)
structure/heap/heap_test.go:11
MethodLess
(o testStudent)
structure/heap/heap_test.go:20
MethodLess
(i, j int)
graph/prim.go:15
MethodLevelOrder
LevelOrder returns the level order traversal of the tree
structure/tree/avl.go:114
MethodLevelOrder
LevelOrder returns the level order traversal of the tree
structure/tree/bstree.go:106
MethodLevelOrder
LevelOrder returns the level order traversal of the tree
structure/tree/rbtree.go:115
FunctionLongestIncreasingSubsequence
LongestIncreasingSubsequence returns the longest increasing subsequence where all elements of the subsequence are sorted in increasing order
dynamic/longestincreasingsubsequence.go:15
FunctionLongestIncreasingSubsequenceGreedy
LongestIncreasingSubsequenceGreedy is a function to find the longest increasing subsequence in a given array using a greedy approach. The dynamic prog
dynamic/longestincreasingsubsequencegreedy.go:9
FunctionLpsDp
LpsDp function
dynamic/longestpalindromicsubsequence.go:27
FunctionLpsRec
LpsRec function
dynamic/longestpalindromicsubsequence.go:22
FunctionMakeRandomMatrix
(rows, columns int)
math/matrix/strassenmatrixmultiply_test.go:105
FunctionMatrixChainDp
MatrixChainDp function
dynamic/matrixmultiplication.go:26
FunctionMatrixChainRec
MatrixChainRec function
dynamic/matrixmultiplication.go:12
MethodMax
Max returns the Max value of the tree
structure/tree/avl.go:131
MethodMax
Max returns the Max value of the tree
structure/tree/bstree.go:123
MethodMax
Max returns the Max value of the tree
structure/tree/rbtree.go:132
MethodMax
()
structure/tree/btree.go:237
FunctionMergeIter
(items []T)
sort/mergesort.go:61
MethodMin
Min returns the Min value of the tree
structure/tree/avl.go:141
MethodMin
Min returns the Min value of the tree
structure/tree/bstree.go:133
MethodMin
Min returns the Min value of the tree
structure/tree/rbtree.go:142
MethodMin
()
structure/tree/btree.go:230
MethodMore
(b any)
graph/dijkstra.go:17
FunctionMu
Mu is the Mobius function This function returns μ(n) for given number
math/mobius.go:23
FunctionNew
New gives a new heap object.
structure/heap/heap.go:15
FunctionNew
New returns a new DoublyEndedQueue.
structure/deque/deque.go:22
FunctionNewAVL
NewAVL creates a novel AVL tree
structure/tree/avl.go:54
FunctionNewAny
NewAny gives a new heap object. element can be anything, but must provide less function.
structure/heap/heap.go:24
FunctionNewBTree
(maxKeys int)
structure/tree/btree.go:35
FunctionNewBTreeNode
(maxKeys int, isLeaf bool)
structure/tree/btree.go:24
FunctionNewBinarySearch
NewBinarySearch creates a novel Binary-Search tree
structure/tree/bstree.go:46
FunctionNewCircularQueue
NewCircularQueue creates a new CircularQueue with the given size. Returns an error if the size is less than or equal to 0.
structure/circularqueue/circularqueuearray.go:29
FunctionNewCyclic
Create new list.
structure/linkedlist/cyclic.go:12
FunctionNewDoubly
()
structure/linkedlist/doubly.go:31
FunctionNewLRU
NewLRU represent initiate lru cache with capacity
cache/lru.go:30
FunctionNewRB
NewRB creates a new Red-Black Tree
structure/tree/rbtree.go:57
FunctionNewSingly
NewSingly returns a new instance of a linked list
structure/linkedlist/singlylinkedlist.go:19
FunctionNewStack
NewStack creates and returns a new stack.
structure/stack/stackarray.go:17
FunctionOddEvenSort
OddEvenSort performs the odd-even sort algorithm on the given array. It is a variation of bubble sort that compares adjacent pairs, alternating betwee
sort/oddevensort.go:12
FunctionPancake
Pancake sorts a slice using flip operations, where flip refers to the idea of reversing the slice from index `0` to `i`.
sort/pancakesort.go:8
FunctionParallelMerge
ParallelMerge Perform merge sort on a slice using goroutines
sort/mergesort.go:72
MethodParent
()
structure/tree/avl.go:30
MethodParent
()
structure/tree/bstree.go:26
MethodParent
()
structure/tree/rbtree.go:37
FunctionPatience
(arr []T)
sort/patiencesort.go:16
MethodPeek
Peek returns the top element of the stack without removing it.
structure/stack/stackarray.go:32
FunctionPigeonhole
Pigeonhole sorts a slice using pigeonhole sorting algorithm. NOTE: To maintain time complexity O(n + N), this is the reason for having only Integer co
sort/pigeonholesort.go:17
MethodPop
Pop removes and returns the top element from the stack.
structure/stack/stackarray.go:46
MethodPostOrder
PostOrder traverses the tree in the following order Left --> Right --> Root
structure/tree/avl.go:107
MethodPostOrder
PostOrder traverses the tree in the following order Left --> Right --> Root
structure/tree/bstree.go:99
MethodPostOrder
PostOrder traverses the tree in the following order Left --> Right --> Root
structure/tree/rbtree.go:108
MethodPreOrder
PreOrder Traverses the tree in the following order Root --> Left --> Right
structure/tree/avl.go:95
MethodPreOrder
PreOrder Traverses the tree in the following order Root --> Left --> Right
structure/tree/bstree.go:87
MethodPreOrder
PreOrder Traverses the tree in the following order Root --> Left --> Right
structure/tree/rbtree.go:96
MethodPredecessor
Predecessor returns the Predecessor of the node of Key if there is no predecessor, return default value of type T and false otherwise return the Key o
structure/tree/avl.go:153
MethodPredecessor
Predecessor returns the Predecessor of the node of Key if there is no predecessor, return default value of type T and false otherwise return the Key o
structure/tree/bstree.go:145
MethodPredecessor
Predecessor returns the Predecessor of the node of Key if there is no predecessor, return default value of type T and false otherwise return the Key o
structure/tree/rbtree.go:154
MethodPrintPyramid
PrintPyramid is a method that prints the tree as a pyramid
project_euler/problem_18/tree.go:160
MethodPrintReport
PrintReport is a method that prints a report of the tree Node by node
project_euler/problem_18/tree.go:121
MethodPush
Push pushes the element t onto the heap. The complexity is O(log n) where n = h.Len().
structure/heap/heap.go:35
MethodPush
Push adds an element to the top of the stack.
structure/stack/stackarray.go:22
MethodPush
Push a chain of Node's into the AVL Tree
structure/tree/avl.go:67
MethodPush
Push a chain of Node's into the BinarySearch
structure/tree/bstree.go:59
MethodPush
Push a chain of Node's into the Red-Black Tree
structure/tree/rbtree.go:72
MethodPush
(x interface{})
graph/prim.go:18
FunctionQuicksort
Quicksort Sorts the entire array
sort/quicksort.go:42
FunctionRadixSort
(arr []T)
sort/radixsort.go:46
FunctionRecursive
Recursive This function recursively computes the factorial of a number
math/factorial/factorial.go:32
MethodReverse
Reverse reverses the list.
structure/linkedlist/singlylinkedlist.go:127
MethodRight
()
structure/tree/tree.go:19
MethodRight
()
structure/tree/avl.go:38
MethodRight
()
structure/tree/bstree.go:34
MethodRight
()
structure/tree/rbtree.go:45
MethodRight
()
project_euler/problem_18/edge.go:19
MethodRight
()
project_euler/problem_18/root.go:18
MethodRight
()
project_euler/problem_18/leaf.go:23
MethodRightIsNil
()
project_euler/problem_18/edge.go:94
MethodRightIsNil
()
project_euler/problem_18/root.go:56
MethodRightIsNil
()
project_euler/problem_18/leaf.go:69
MethodSearch
(key T)
structure/tree/btree.go:58
FunctionSelection
(arr []T)
sort/selectionsort.go:5
MethodSetParent
(node Node)
project_euler/problem_18/edge.go:98
MethodSetParent
(node Node)
project_euler/problem_18/root.go:60
MethodSetParent
(node Node)
project_euler/problem_18/leaf.go:73
FunctionShell
(arr []T)
sort/shellsort.go:5
FunctionSimple
(arr []T)
sort/simplesort.go:16
FunctionSin
Sin returns the sine of the radian argument x. [See more](https://en.wikipedia.org/wiki/Sine_and_cosine)
math/sin.go:9
FunctionStart
Start ...
strings/combination/combination.go:13
FunctionStooge
(arr []T)
sort/stooge_sort.go:28
MethodSuccessor
Successor returns the Successor of the node of Key if there is no successor, return default value of type T and false otherwise return the Key of succ
structure/tree/avl.go:165
MethodSuccessor
Successor returns the Successor of the node of Key if there is no successor, return default value of type T and false otherwise return the Key of succ
structure/tree/bstree.go:157
← previousnext →901–1,000 of 1,378, ranked by callers