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
↓ 1 callers
Function
mergePiles
(piles [][]T)
sort/patiencesort.go:44
↓ 1 callers
Function
mergeRun
mergeRun uses merge sort to sort adjacent data runs.
sort/timsort.go:63
↓ 1 callers
Function
mergeRuns
mergeRuns merge sorts all the data runs into a single sorted data slice.
sort/timsort.go:48
↓ 1 callers
Function
minimum
(node, nilNode Node[T])
structure/tree/tree.go:114
↓ 1 callers
Method
move
(n, at *Node[T])
structure/linkedlist/doubly.go:214
↓ 1 callers
Function
nextBoundary
(s string)
strings/manacher/longestpalindrome.go:27
↓ 1 callers
Function
numDivisors
(n uint)
project_euler/problem_12/problem12.go:38
↓ 1 callers
Function
pad
pad pads the input message so that its length is congruent to 448 modulo 512
hashing/sha1/sha1.go:23
↓ 1 callers
Function
pad
pad pads the input message so that its length is congruent to 448 modulo 512
hashing/md5/md5.go:48
↓ 1 callers
Function
pad
pad returns a padded version of the input message, such as the padded message's length is a multiple of 512 bits. The padding methodology is as follow
hashing/sha256/sha256.go:37
↓ 1 callers
Function
partition
(array []int, l, r int)
search/selectk.go:22
↓ 1 callers
Function
prodTree
(l int, r int)
math/factorial/factorial.go:57
↓ 1 callers
Method
pushFix
(k *RBNode[T])
structure/tree/rbtree.go:257
↓ 1 callers
Method
pushHelper
(root *AVLNode[T], key T)
structure/tree/avl.go:174
↓ 1 callers
Method
pushHelper
(x *BSNode[T], val T)
structure/tree/bstree.go:166
↓ 1 callers
Method
pushHelper
(x *RBNode[T], key T)
structure/tree/rbtree.go:175
↓ 1 callers
Function
randomPrime
randomPrime returns two random prime numbers
cipher/rsa/rsa2.go:114
↓ 1 callers
Method
remove
remove lazily a word from the Trie node, no node is actually removed.
structure/trie/trie.go:76
↓ 1 callers
Method
resize
resize doubles the capacity of the hashmap and rehashes all existing entries
structure/hashmap/hashmap.go:93
↓ 1 callers
Function
selectK
search the element which index is idx
search/selectk.go:11
↓ 1 callers
Function
shuffle
(arr []T)
sort/bogosort.go:26
↓ 1 callers
Function
sum
Helper function to sum the frequencies
dynamic/optimalbst.go:55
↓ 1 callers
Method
swap
(i, j int)
sort/heapsort.go:74
↓ 1 callers
Function
toHexString
Helper function to convert hash output to hex string for comparison
hashing/sha1/sha1_test.go:13
↓ 1 callers
Function
toHexString
Helper function to convert hash output to hex string for comparison
hashing/md5/md5_test.go:13
↓ 1 callers
Method
transpose
Helper function to create a transposed (reversed) graph.
graph/kosaraju.go:64
↓ 1 callers
Method
up
(child int)
structure/heap/heap.go:72
↓ 1 callers
Function
weightNextNode
(current uint64)
project_euler/problem_14/problem14.go:42
Method
AccessNodesByLayer
AccessNodesByLayer accesses nodes layer by layer (2-D array), instead of printing the results as 1-D array.
structure/tree/avl.go:121
Method
AccessNodesByLayer
AccessNodesByLayer accesses nodes layer by layer (2-D array), instead of printing the results as 1-D array.
structure/tree/bstree.go:113
Method
AccessNodesByLayer
AccessNodesByLayer accesses nodes layer by layer (2-D array), instead of printing the results as 1-D array.
structure/tree/rbtree.go:122
Method
Add
Inserting the first node is a special case. It will point to itself. For other cases, the node will be added to the end of the list. End of the list i
structure/linkedlist/cyclic.go:20
Method
Add
Add adds two matrices.
math/matrix/add.go:15
Method
AddAtBeg
AddAtBeg adds a new snode with given value at the beginning of the list.
structure/linkedlist/singlylinkedlist.go:24
Method
AddAtEnd
AddAtEnd adds a new snode with given value at the end of the list.
structure/linkedlist/singlylinkedlist.go:32
Function
Advanced
Advanced Function performing the Advanced Aho-Corasick algorithm. Finds and prints occurrences of each pattern.
strings/ahocorasick/advancedahocorasick.go:10
Function
BenchmarkAVLTree_Delete
(b *testing.B)
structure/tree/tree_test.go:620
Function
BenchmarkAVLTree_Has
(b *testing.B)
structure/tree/tree_test.go:603
Function
BenchmarkAVLTree_Insert
(b *testing.B)
structure/tree/tree_test.go:589
Function
BenchmarkAddLargeMatrix
(b *testing.B)
math/matrix/add_test.go:48
Function
BenchmarkAddSmallMatrix
(b *testing.B)
math/matrix/add_test.go:39
Function
BenchmarkAliquotSum
(b *testing.B)
math/aliquot_test.go:36
Function
BenchmarkBSTree_Delete
(b *testing.B)
structure/tree/tree_test.go:525
Function
BenchmarkBSTree_Has
(b *testing.B)
structure/tree/tree_test.go:508
Function
BenchmarkBSTree_Insert
(b *testing.B)
structure/tree/tree_test.go:495
Function
BenchmarkBase64Decode
(b *testing.B)
conversion/base64_test.go:70
Function
BenchmarkBase64Encode
(b *testing.B)
conversion/base64_test.go:26
Function
BenchmarkBinary
(b *testing.B)
search/binary_test.go:56
Function
BenchmarkBinaryAbs32
(b *testing.B)
math/abs_test.go:45
Function
BenchmarkBinaryAbs64
(b *testing.B)
math/abs_test.go:51
Function
BenchmarkBinaryInsertion
BEGIN BENCHMARKS
sort/sorts_test.go:246
Function
BenchmarkBinaryIterative
(b *testing.B)
search/binary_test.go:64
Function
BenchmarkBinaryToDecimal
(b *testing.B)
conversion/binarytodecimal_test.go:41
Function
BenchmarkBitwiseLogBase2
(b *testing.B)
math/binary/logarithm_test.go:38
Function
BenchmarkBogo
(b *testing.B)
sort/sorts_test.go:254
Function
BenchmarkBruteForceFactorial
(b *testing.B)
checksum/luhn_test.go:37
Function
BenchmarkBubble
(b *testing.B)
sort/sorts_test.go:250
Function
BenchmarkBucketSort
(b *testing.B)
sort/sorts_test.go:259
Function
BenchmarkCalculateCRC8
(b *testing.B)
checksum/crc8_test.go:57
Function
BenchmarkCatalanNumber
(b *testing.B)
math/catalan/catalannumber_test.go:33
Function
BenchmarkCheckEqualLargeMatrix
(b *testing.B)
math/matrix/checkequal_test.go:52
Function
BenchmarkCheckEqualSmallMatrix
(b *testing.B)
math/matrix/checkequal_test.go:43
Function
BenchmarkCircle
(b *testing.B)
sort/sorts_test.go:344
Function
BenchmarkCircularQueue
BenchmarkCircularQueue benchmarks the CircularQueue implementation.
structure/circularqueue/circularqueue_test.go:228
Function
BenchmarkCocktailSort
(b *testing.B)
sort/sorts_test.go:263
Function
BenchmarkColumns
BenchmarkColumns benchmarks the Columns method.
math/matrix/matrix_test.go:241
Function
BenchmarkComb
(b *testing.B)
sort/sorts_test.go:320
Function
BenchmarkCombinations
(b *testing.B)
math/binomialcoefficient_test.go:38
Function
BenchmarkCopyMatrix
(b *testing.B)
math/matrix/copy_test.go:101
Function
BenchmarkCos
(b *testing.B)
math/cos_test.go:35
Function
BenchmarkCount
(b *testing.B)
sort/sorts_test.go:291
Function
BenchmarkCycle
(b *testing.B)
sort/sorts_test.go:336
Function
BenchmarkDSANew
* ------------------- BENCHMARKS ------------------- */
cipher/dsa/dsa_test.go:70
Function
BenchmarkDSASign
(b *testing.B)
cipher/dsa/dsa_test.go:76
Function
BenchmarkDSAVerify
(b *testing.B)
cipher/dsa/dsa_test.go:91
Function
BenchmarkDecimalToBinary
(b *testing.B)
conversion/decimaltobinary_test.go:41
Function
BenchmarkDefaultPolynomial
(b *testing.B)
math/pollard_test.go:66
Function
BenchmarkExchange
(b *testing.B)
sort/sorts_test.go:267
Function
BenchmarkExponentiation
(b *testing.B)
math/modular/exponentiation_test.go:85
Function
BenchmarkExtendedGCDIterative
(b *testing.B)
math/gcd/extendedgcd_test.go:54
Function
BenchmarkExtendedGCDRecursive
(b *testing.B)
math/gcd/extendedgcd_test.go:50
Function
BenchmarkFactorial
(b *testing.B)
math/factorial/factorial_test.go:59
Function
BenchmarkFactorize
(b *testing.B)
math/prime/primefactorization_test.go:29
Function
BenchmarkFindDistanceBetweenTwoPoints
(b *testing.B)
math/geometry/distance_test.go:73
Function
BenchmarkFormula
(b *testing.B)
math/fibonacci/fibonacci_test.go:92
Function
BenchmarkGCDIterative
(b *testing.B)
math/gcd/gcd_test.go:47
Function
BenchmarkGCDRecursive
(b *testing.B)
math/gcd/gcd_test.go:43
Function
BenchmarkGenerateTriangle
(b *testing.B)
math/pascal/pascaltriangle_test.go:33
Function
BenchmarkGet
BenchmarkGet benchmarks the Get method.
math/matrix/matrix_test.go:205
Function
BenchmarkHEXToRGB
(b *testing.B)
conversion/rgbhex_test.go:29
Function
BenchmarkHash
(b *testing.B)
hashing/sha256/sha256_test.go:29
Function
BenchmarkHeap
(b *testing.B)
sort/sorts_test.go:287
Function
BenchmarkHexToBinary
(b *testing.B)
conversion/hexadecimaltobinary_test.go:41
Function
BenchmarkHexToDecimal
(b *testing.B)
conversion/hexadecimaltodecimal_test.go:47
Function
BenchmarkImprovedSimple
(b *testing.B)
sort/sorts_test.go:311
Function
BenchmarkInsertion
(b *testing.B)
sort/sorts_test.go:271
Function
BenchmarkIntToRoman
(b *testing.B)
conversion/inttoroman_test.go:25
Function
BenchmarkInterpolation
(b *testing.B)
search/interpolation_test.go:17
Function
BenchmarkIsBalanced
(b *testing.B)
other/nested/nestedbrackets_test.go:73
Function
BenchmarkIsKrishnamurthyNumber
(b *testing.B)
math/krishnamurthy_test.go:43
← previous
next →
601–700 of 1,378, ranked by callers