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
↓ 95 callers
Method
Push
(...T)
structure/tree/example_test.go:12
↓ 65 callers
Function
New
NewMatrix creates a new Matrix based on the provided arguments.
math/matrix/matrix.go:17
↓ 60 callers
Method
Key
()
structure/tree/tree.go:16
↓ 49 callers
Function
New
New gives new set.
structure/set/set.go:7
↓ 46 callers
Method
Add
Add: adds new element to the set
structure/set/set.go:20
↓ 45 callers
Method
Right
()
project_euler/problem_18/problem18.go:39
↓ 44 callers
Method
Left
()
project_euler/problem_18/problem18.go:38
↓ 41 callers
Method
Delete
(T)
structure/tree/example_test.go:13
↓ 35 callers
Method
Len
Len: gives the length of the set (total no. of elements in set)
structure/set/set.go:24
↓ 31 callers
Method
Get
(T)
structure/tree/example_test.go:14
↓ 28 callers
Method
Find
Find finds the root of the set to which the given element belongs. It performs path compression to make future Find operations faster.
graph/unionfind.go:37
↓ 27 callers
Method
Enqueue
Enqueue adds an item to the rear of the queue. Returns an error if the queue is full.
structure/circularqueue/circularqueuearray.go:43
↓ 27 callers
Method
Height
()
structure/tree/avl.go:42
↓ 27 callers
Function
testFramework
(t *testing.T, sortingFunction func([]int) []int)
sort/sorts_test.go:12
↓ 26 callers
Function
benchmarkFramework
END TESTS
sort/sorts_test.go:207
↓ 22 callers
Method
GetItems
GetItems: gives the array( []T ) of elements of the set.
structure/set/set.go:26
↓ 21 callers
Method
AddEdge
AddEdge will add a new edge between the provided vertices in the graph
graph/coloring/graph.go:34
↓ 21 callers
Method
InOrder
()
structure/tree/example_test.go:23
↓ 19 callers
Method
Columns
()
math/matrix/matrix.go:87
↓ 18 callers
Method
Max
()
structure/tree/example_test.go:18
↓ 18 callers
Method
Rows
()
math/matrix/matrix.go:83
↓ 17 callers
Method
Min
()
structure/tree/example_test.go:19
↓ 17 callers
Function
NewFromElements
NewFromElements creates a new Matrix from the given elements.
math/matrix/matrix.go:43
↓ 16 callers
Function
Int
Int is a function which returns the minimum of all the integers provided as arguments.
math/min/min.go:6
↓ 15 callers
Method
AddAtBeg
AddAtBeg Add a node to the beginning of the linkedlist
structure/linkedlist/doubly.go:56
↓ 15 callers
Function
Int
Int is a function which returns the maximum of all the integers provided as arguments.
math/max/max.go:6
↓ 15 callers
Method
Remove
Remove zero, one or more words lazily from the Trie, no node is actually removed.
structure/trie/trie.go:92
↓ 15 callers
Method
Set
(row, col int, val T)
math/matrix/matrix.go:74
↓ 14 callers
Function
EnQueue
EnQueue it will be added new value into our list
structure/queue/queuearray.go:15
↓ 14 callers
Function
GetTransition
GetTransition Returns ending state for transition σ(fromState,overChar), '-1' if there is none.
strings/ahocorasick/shared.go:121
↓ 14 callers
Method
Successor
(T)
structure/tree/example_test.go:21
↓ 13 callers
Method
In
In: checks whether item is present in set or not.
structure/set/set.go:28
↓ 13 callers
Method
Search
(key T)
structure/tree/btree.go:74
↓ 13 callers
Method
String
String implements the fmt.Stringer interface for Matrix.
math/matrix/string.go:6
↓ 13 callers
Method
enqueue
enqueue it will be added new value into queue
structure/queue/queuelinkedlist.go:26
↓ 11 callers
Method
Has
(T)
structure/tree/example_test.go:16
↓ 11 callers
Method
Predecessor
(T)
structure/tree/example_test.go:20
↓ 11 callers
Method
Push
push add value to last index
structure/stack/stacklinkedlist.go:25
↓ 11 callers
Method
SubMatrix
SubMatrix extracts a submatrix from the current matrix.
math/matrix/submatrix.go:10
↓ 11 callers
Method
verify
--------------- helper functions --------------------------- verify if provided words are present
structure/trie/trie_test.go:131
↓ 11 callers
Method
verifySizeCapa
verify expected size and capacity
structure/trie/trie_test.go:150
↓ 10 callers
Method
CheckEqual
CheckEqual checks if the current matrix is equal to another matrix (m2). Two matrices are considered equal if they have the same dimensions and all th
math/matrix/checkequal.go:9
↓ 10 callers
Method
Insert
Insert zero, one or more words at a Trie node.
structure/trie/trie.go:36
↓ 10 callers
Method
IsEmpty
IsEmpty function is check that the array has value or not
structure/dynamicarray/dynamicarray.go:78
↓ 10 callers
Function
NewNode
NewNode creates a new Trie node with initialized children map.
structure/trie/trie.go:14
↓ 9 callers
Function
Bitwise
Bitwise computes using bitwise operator the maximum of all the integer input and returns it
math/max/bitwisemax.go:13
↓ 9 callers
Method
Contains
Contains checks if the given key is stored in the hashmap
structure/hashmap/hashmap.go:75
↓ 9 callers
Method
Count
Count Number of nodes in the linkedlist
structure/linkedlist/doubly.go:138
↓ 9 callers
Method
Dequeue
Dequeue removes and returns the item from the front of the queue. Returns an error if the queue is empty.
structure/circularqueue/circularqueuearray.go:57
↓ 9 callers
Method
Subtract
Subtract subtracts two matrices.
math/matrix/subtract.go:10
↓ 9 callers
Method
Value
()
project_euler/problem_18/problem18.go:36
↓ 9 callers
Function
generateBenchmarkTestCase
This function generate consistent testcase for benchmark test.
search/testcases.go:61
↓ 8 callers
Method
Depth
()
structure/tree/example_test.go:17
↓ 8 callers
Method
GetID
()
project_euler/problem_18/problem18.go:37
↓ 8 callers
Method
MatchDimensions
MatchDimensions checks if two matrices have the same dimensions.
math/matrix/matchdimensions.go:4
↓ 8 callers
Method
Put
Put cache with key and value to lru
cache/lru.go:52
↓ 8 callers
Method
Put
Put the key in LFU cache
cache/lfu.go:67
↓ 8 callers
Method
Union
Union merges the sets, if not already merged, to which the given elements belong. It performs union by rank to keep the tree as flat as possible.
graph/unionfind.go:46
↓ 7 callers
Function
DeQueue
DeQueue it will be removed the first value that added into the list
structure/queue/queuearray.go:20
↓ 7 callers
Method
Determinant
Calculates the determinant of the matrix. This method only works for square matrices (e.i. matrices with equal rows and columns).
math/matrix/determinant.go:18
↓ 7 callers
Method
Find
Find words at a Trie node.
structure/trie/trie.go:43
↓ 7 callers
Method
Insert
(Node)
project_euler/problem_18/problem18.go:46
↓ 7 callers
Function
IsBalanced
IsBalanced returns true if provided input string is properly nested. Input is a sequence of brackets: '(', ')', '[', ']', '{', '}'. A sequence of br
other/nested/nestedbrackets.go:23
↓ 7 callers
Function
MillerTestMultiple
MillerTestMultiple is like MillerTest but runs the test for multiple witnesses.
math/prime/millerrabintest.go:85
↓ 7 callers
Method
Multiply
Multiply multiplies the current matrix (m1) with another matrix (m2) and returns the result as a new matrix.
math/matrix/multiply.go:15
↓ 7 callers
Method
Pop
pop remove last item as first output
structure/stack/stacklinkedlist.go:36
↓ 7 callers
Method
isInQueue
isInQueue is a method that avoids duplicates in the tree
project_euler/problem_18/tree.go:222
↓ 6 callers
Method
AccessNodesByLayer
()
structure/tree/example_test.go:26
↓ 6 callers
Method
AddWeightedEdge
AddWeightedEdge will add a new weighted edge between the provided vertices in the graph
graph/graph.go:42
↓ 6 callers
Method
Capacity
Capacity returns the number of nodes in the Trie
structure/trie/trie.go:55
↓ 6 callers
Method
Copy
()
math/matrix/copy.go:11
↓ 6 callers
Method
IsEmpty
Empty check our stack has value or not
structure/stack/stacklinkedlistwithlist.go:56
↓ 6 callers
Method
IsEmpty
isEmpty to check our array is empty or not
structure/stack/stacklinkedlist.go:49
↓ 6 callers
Method
Len
Len it will return the length of list
structure/queue/queuelinklistwithlist.go:63
↓ 6 callers
Function
Max
Max function - possible duplicate
dynamic/knapsack.go:14
↓ 6 callers
Method
Put
Put inserts a new key-value pair into the hashmap
structure/hashmap/hashmap.go:50
↓ 6 callers
Method
ValidateColorsOfVertex
(colors map[int]Color)
graph/coloring/graph.go:44
↓ 6 callers
Method
dequeue
dequeue it will be removed the first value into queue (First In First Out)
structure/queue/queuelinkedlist.go:43
↓ 6 callers
Function
fillList
(list *Cyclic[int], n int)
structure/linkedlist/cyclic_test.go:8
↓ 6 callers
Method
height
(root *AVLNode[T])
structure/tree/avl.go:295
↓ 6 callers
Method
leftRotate
(x *AVLNode[T])
structure/tree/avl.go:323
↓ 6 callers
Method
rightRotate
(x *AVLNode[T])
structure/tree/avl.go:341
↓ 5 callers
Method
Add
Add function is add new element to our array
structure/dynamicarray/dynamicarray.go:41
↓ 5 callers
Method
AddEdge
AddEdge will add a new edge between the provided vertices in the graph
graph/graph.go:36
↓ 5 callers
Method
Dequeue
Dequeue will be removed the first value that input (First In First Out - FIFO)
structure/queue/queuelinklistwithlist.go:30
↓ 5 callers
Method
Empty
Empty is check our list is empty or not
structure/queue/queuelinklistwithlist.go:68
↓ 5 callers
Method
Empty
()
structure/tree/example_test.go:15
↓ 5 callers
Function
Encrypt
Encrypt encrypts by right shift of "key" each character of "input"
cipher/caesar/caesar.go:10
↓ 5 callers
Method
Enqueue
Enqueue will be added new value
structure/queue/queuelinklistwithlist.go:25
↓ 5 callers
Function
Exponentiation
Exponentiation returns base^exponent % mod
math/modular/exponentiation.go:24
↓ 5 callers
Method
Get
Get value from lru if not found, return nil
cache/lru.go:41
↓ 5 callers
Method
Get
Get the key in cache by LFU
cache/lfu.go:53
↓ 5 callers
Method
Get
(row, col int)
math/matrix/matrix.go:66
↓ 5 callers
Method
Idx
()
sort/heapsort.go:118
↓ 5 callers
Method
IsEmpty
IsEmpty checks if the queue is empty.
structure/circularqueue/circularqueuearray.go:78
↓ 5 callers
Function
IsValid
IsValid checks if the input matrix has consistent row lengths.
math/matrix/isvalid.go:6
↓ 5 callers
Method
Length
Length return length of our stack
structure/stack/stacklinkedlistwithlist.go:51
↓ 5 callers
Method
Length
len use to return length of our stack
structure/stack/stacklinkedlist.go:54
↓ 5 callers
Function
New
New returns a randomly generated global unique identifier.
strings/guid/guid.go:28
↓ 5 callers
Function
NewPolybius
NewPolybius returns a pointer to object of Polybius. If the size of "chars" is longer than "size", "chars" are truncated to "size".
cipher/polybius/polybius.go:25
next →
1–100 of 1,378, ranked by callers