Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ functions
Functions
1,378 in github.com/TheAlgorithms/Go
⨍
Functions
1,378
◇
Types & classes
127
Method
Left
()
structure/tree/rbtree.go:41
Method
Left
()
project_euler/problem_18/edge.go:15
Method
Left
()
project_euler/problem_18/root.go:14
Method
Left
()
project_euler/problem_18/leaf.go:15
Method
LeftIsNil
()
project_euler/problem_18/edge.go:90
Method
LeftIsNil
()
project_euler/problem_18/root.go:52
Method
LeftIsNil
()
project_euler/problem_18/leaf.go:65
Method
Length
Size returns the number of elements in the stack.
structure/stack/stackarray.go:27
Function
Lerp
Lerp or Linear interpolation This function will return new value in 't' percentage between 'v0' and 'v1'
math/lerp.go:5
Method
Less
(o testInt)
structure/heap/heap_test.go:11
Method
Less
(o testStudent)
structure/heap/heap_test.go:20
Method
Less
(i, j int)
graph/prim.go:15
Method
LevelOrder
LevelOrder returns the level order traversal of the tree
structure/tree/avl.go:114
Method
LevelOrder
LevelOrder returns the level order traversal of the tree
structure/tree/bstree.go:106
Method
LevelOrder
LevelOrder returns the level order traversal of the tree
structure/tree/rbtree.go:115
Function
LongestIncreasingSubsequence
LongestIncreasingSubsequence returns the longest increasing subsequence where all elements of the subsequence are sorted in increasing order
dynamic/longestincreasingsubsequence.go:15
Function
LongestIncreasingSubsequenceGreedy
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
Function
LpsDp
LpsDp function
dynamic/longestpalindromicsubsequence.go:27
Function
LpsRec
LpsRec function
dynamic/longestpalindromicsubsequence.go:22
Function
MakeRandomMatrix
(rows, columns int)
math/matrix/strassenmatrixmultiply_test.go:105
Function
MatrixChainDp
MatrixChainDp function
dynamic/matrixmultiplication.go:26
Function
MatrixChainRec
MatrixChainRec function
dynamic/matrixmultiplication.go:12
Method
Max
Max returns the Max value of the tree
structure/tree/avl.go:131
Method
Max
Max returns the Max value of the tree
structure/tree/bstree.go:123
Method
Max
Max returns the Max value of the tree
structure/tree/rbtree.go:132
Method
Max
()
structure/tree/btree.go:237
Function
MergeIter
(items []T)
sort/mergesort.go:61
Method
Min
Min returns the Min value of the tree
structure/tree/avl.go:141
Method
Min
Min returns the Min value of the tree
structure/tree/bstree.go:133
Method
Min
Min returns the Min value of the tree
structure/tree/rbtree.go:142
Method
Min
()
structure/tree/btree.go:230
Method
More
(b any)
graph/dijkstra.go:17
Function
Mu
Mu is the Mobius function This function returns μ(n) for given number
math/mobius.go:23
Function
New
New gives a new heap object.
structure/heap/heap.go:15
Function
New
New returns a new DoublyEndedQueue.
structure/deque/deque.go:22
Function
NewAVL
NewAVL creates a novel AVL tree
structure/tree/avl.go:54
Function
NewAny
NewAny gives a new heap object. element can be anything, but must provide less function.
structure/heap/heap.go:24
Function
NewBTree
(maxKeys int)
structure/tree/btree.go:35
Function
NewBTreeNode
(maxKeys int, isLeaf bool)
structure/tree/btree.go:24
Function
NewBinarySearch
NewBinarySearch creates a novel Binary-Search tree
structure/tree/bstree.go:46
Function
NewCircularQueue
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
Function
NewCyclic
Create new list.
structure/linkedlist/cyclic.go:12
Function
NewDoubly
()
structure/linkedlist/doubly.go:31
Function
NewLRU
NewLRU represent initiate lru cache with capacity
cache/lru.go:30
Function
NewRB
NewRB creates a new Red-Black Tree
structure/tree/rbtree.go:57
Function
NewSingly
NewSingly returns a new instance of a linked list
structure/linkedlist/singlylinkedlist.go:19
Function
NewStack
NewStack creates and returns a new stack.
structure/stack/stackarray.go:17
Function
OddEvenSort
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
Function
Pancake
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
Function
ParallelMerge
ParallelMerge Perform merge sort on a slice using goroutines
sort/mergesort.go:72
Method
Parent
()
structure/tree/avl.go:30
Method
Parent
()
structure/tree/bstree.go:26
Method
Parent
()
structure/tree/rbtree.go:37
Function
Patience
(arr []T)
sort/patiencesort.go:16
Method
Peek
Peek returns the top element of the stack without removing it.
structure/stack/stackarray.go:32
Function
Pigeonhole
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
Method
Pop
Pop removes and returns the top element from the stack.
structure/stack/stackarray.go:46
Method
PostOrder
PostOrder traverses the tree in the following order Left --> Right --> Root
structure/tree/avl.go:107
Method
PostOrder
PostOrder traverses the tree in the following order Left --> Right --> Root
structure/tree/bstree.go:99
Method
PostOrder
PostOrder traverses the tree in the following order Left --> Right --> Root
structure/tree/rbtree.go:108
Method
PreOrder
PreOrder Traverses the tree in the following order Root --> Left --> Right
structure/tree/avl.go:95
Method
PreOrder
PreOrder Traverses the tree in the following order Root --> Left --> Right
structure/tree/bstree.go:87
Method
PreOrder
PreOrder Traverses the tree in the following order Root --> Left --> Right
structure/tree/rbtree.go:96
Method
Predecessor
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
Method
Predecessor
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
Method
Predecessor
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
Method
PrintPyramid
PrintPyramid is a method that prints the tree as a pyramid
project_euler/problem_18/tree.go:160
Method
PrintReport
PrintReport is a method that prints a report of the tree Node by node
project_euler/problem_18/tree.go:121
Method
Push
Push pushes the element t onto the heap. The complexity is O(log n) where n = h.Len().
structure/heap/heap.go:35
Method
Push
Push adds an element to the top of the stack.
structure/stack/stackarray.go:22
Method
Push
Push a chain of Node's into the AVL Tree
structure/tree/avl.go:67
Method
Push
Push a chain of Node's into the BinarySearch
structure/tree/bstree.go:59
Method
Push
Push a chain of Node's into the Red-Black Tree
structure/tree/rbtree.go:72
Method
Push
(x interface{})
graph/prim.go:18
Function
Quicksort
Quicksort Sorts the entire array
sort/quicksort.go:42
Function
RadixSort
(arr []T)
sort/radixsort.go:46
Function
Recursive
Recursive This function recursively computes the factorial of a number
math/factorial/factorial.go:32
Method
Reverse
Reverse reverses the list.
structure/linkedlist/singlylinkedlist.go:127
Method
Right
()
structure/tree/tree.go:19
Method
Right
()
structure/tree/avl.go:38
Method
Right
()
structure/tree/bstree.go:34
Method
Right
()
structure/tree/rbtree.go:45
Method
Right
()
project_euler/problem_18/edge.go:19
Method
Right
()
project_euler/problem_18/root.go:18
Method
Right
()
project_euler/problem_18/leaf.go:23
Method
RightIsNil
()
project_euler/problem_18/edge.go:94
Method
RightIsNil
()
project_euler/problem_18/root.go:56
Method
RightIsNil
()
project_euler/problem_18/leaf.go:69
Method
Search
(key T)
structure/tree/btree.go:58
Function
Selection
(arr []T)
sort/selectionsort.go:5
Method
SetParent
(node Node)
project_euler/problem_18/edge.go:98
Method
SetParent
(node Node)
project_euler/problem_18/root.go:60
Method
SetParent
(node Node)
project_euler/problem_18/leaf.go:73
Function
Shell
(arr []T)
sort/shellsort.go:5
Function
Simple
(arr []T)
sort/simplesort.go:16
Function
Sin
Sin returns the sine of the radian argument x. [See more](https://en.wikipedia.org/wiki/Sine_and_cosine)
math/sin.go:9
Function
Start
Start ...
strings/combination/combination.go:13
Function
Stooge
(arr []T)
sort/stooge_sort.go:28
Method
Successor
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
Method
Successor
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
← previous
next →
901–1,000 of 1,378, ranked by callers