MCPcopy Create free account

hub / github.com/TheAlgorithms/Go / functions

Functions1,378 in github.com/TheAlgorithms/Go

↓ 1 callersFunctionmergePiles
(piles [][]T)
sort/patiencesort.go:44
↓ 1 callersFunctionmergeRun
mergeRun uses merge sort to sort adjacent data runs.
sort/timsort.go:63
↓ 1 callersFunctionmergeRuns
mergeRuns merge sorts all the data runs into a single sorted data slice.
sort/timsort.go:48
↓ 1 callersFunctionminimum
(node, nilNode Node[T])
structure/tree/tree.go:114
↓ 1 callersMethodmove
(n, at *Node[T])
structure/linkedlist/doubly.go:214
↓ 1 callersFunctionnextBoundary
(s string)
strings/manacher/longestpalindrome.go:27
↓ 1 callersFunctionnumDivisors
(n uint)
project_euler/problem_12/problem12.go:38
↓ 1 callersFunctionpad
pad pads the input message so that its length is congruent to 448 modulo 512
hashing/sha1/sha1.go:23
↓ 1 callersFunctionpad
pad pads the input message so that its length is congruent to 448 modulo 512
hashing/md5/md5.go:48
↓ 1 callersFunctionpad
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 callersFunctionpartition
(array []int, l, r int)
search/selectk.go:22
↓ 1 callersFunctionprodTree
(l int, r int)
math/factorial/factorial.go:57
↓ 1 callersMethodpushFix
(k *RBNode[T])
structure/tree/rbtree.go:257
↓ 1 callersMethodpushHelper
(root *AVLNode[T], key T)
structure/tree/avl.go:174
↓ 1 callersMethodpushHelper
(x *BSNode[T], val T)
structure/tree/bstree.go:166
↓ 1 callersMethodpushHelper
(x *RBNode[T], key T)
structure/tree/rbtree.go:175
↓ 1 callersFunctionrandomPrime
randomPrime returns two random prime numbers
cipher/rsa/rsa2.go:114
↓ 1 callersMethodremove
remove lazily a word from the Trie node, no node is actually removed.
structure/trie/trie.go:76
↓ 1 callersMethodresize
resize doubles the capacity of the hashmap and rehashes all existing entries
structure/hashmap/hashmap.go:93
↓ 1 callersFunctionselectK
search the element which index is idx
search/selectk.go:11
↓ 1 callersFunctionshuffle
(arr []T)
sort/bogosort.go:26
↓ 1 callersFunctionsum
Helper function to sum the frequencies
dynamic/optimalbst.go:55
↓ 1 callersMethodswap
(i, j int)
sort/heapsort.go:74
↓ 1 callersFunctiontoHexString
Helper function to convert hash output to hex string for comparison
hashing/sha1/sha1_test.go:13
↓ 1 callersFunctiontoHexString
Helper function to convert hash output to hex string for comparison
hashing/md5/md5_test.go:13
↓ 1 callersMethodtranspose
Helper function to create a transposed (reversed) graph.
graph/kosaraju.go:64
↓ 1 callersMethodup
(child int)
structure/heap/heap.go:72
↓ 1 callersFunctionweightNextNode
(current uint64)
project_euler/problem_14/problem14.go:42
MethodAccessNodesByLayer
AccessNodesByLayer accesses nodes layer by layer (2-D array), instead of printing the results as 1-D array.
structure/tree/avl.go:121
MethodAccessNodesByLayer
AccessNodesByLayer accesses nodes layer by layer (2-D array), instead of printing the results as 1-D array.
structure/tree/bstree.go:113
MethodAccessNodesByLayer
AccessNodesByLayer accesses nodes layer by layer (2-D array), instead of printing the results as 1-D array.
structure/tree/rbtree.go:122
MethodAdd
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
MethodAdd
Add adds two matrices.
math/matrix/add.go:15
MethodAddAtBeg
AddAtBeg adds a new snode with given value at the beginning of the list.
structure/linkedlist/singlylinkedlist.go:24
MethodAddAtEnd
AddAtEnd adds a new snode with given value at the end of the list.
structure/linkedlist/singlylinkedlist.go:32
FunctionAdvanced
Advanced Function performing the Advanced Aho-Corasick algorithm. Finds and prints occurrences of each pattern.
strings/ahocorasick/advancedahocorasick.go:10
FunctionBenchmarkAVLTree_Delete
(b *testing.B)
structure/tree/tree_test.go:620
FunctionBenchmarkAVLTree_Has
(b *testing.B)
structure/tree/tree_test.go:603
FunctionBenchmarkAVLTree_Insert
(b *testing.B)
structure/tree/tree_test.go:589
FunctionBenchmarkAddLargeMatrix
(b *testing.B)
math/matrix/add_test.go:48
FunctionBenchmarkAddSmallMatrix
(b *testing.B)
math/matrix/add_test.go:39
FunctionBenchmarkAliquotSum
(b *testing.B)
math/aliquot_test.go:36
FunctionBenchmarkBSTree_Delete
(b *testing.B)
structure/tree/tree_test.go:525
FunctionBenchmarkBSTree_Has
(b *testing.B)
structure/tree/tree_test.go:508
FunctionBenchmarkBSTree_Insert
(b *testing.B)
structure/tree/tree_test.go:495
FunctionBenchmarkBase64Decode
(b *testing.B)
conversion/base64_test.go:70
FunctionBenchmarkBase64Encode
(b *testing.B)
conversion/base64_test.go:26
FunctionBenchmarkBinary
(b *testing.B)
search/binary_test.go:56
FunctionBenchmarkBinaryAbs32
(b *testing.B)
math/abs_test.go:45
FunctionBenchmarkBinaryAbs64
(b *testing.B)
math/abs_test.go:51
FunctionBenchmarkBinaryInsertion
BEGIN BENCHMARKS
sort/sorts_test.go:246
FunctionBenchmarkBinaryIterative
(b *testing.B)
search/binary_test.go:64
FunctionBenchmarkBinaryToDecimal
(b *testing.B)
conversion/binarytodecimal_test.go:41
FunctionBenchmarkBitwiseLogBase2
(b *testing.B)
math/binary/logarithm_test.go:38
FunctionBenchmarkBogo
(b *testing.B)
sort/sorts_test.go:254
FunctionBenchmarkBruteForceFactorial
(b *testing.B)
checksum/luhn_test.go:37
FunctionBenchmarkBubble
(b *testing.B)
sort/sorts_test.go:250
FunctionBenchmarkBucketSort
(b *testing.B)
sort/sorts_test.go:259
FunctionBenchmarkCalculateCRC8
(b *testing.B)
checksum/crc8_test.go:57
FunctionBenchmarkCatalanNumber
(b *testing.B)
math/catalan/catalannumber_test.go:33
FunctionBenchmarkCheckEqualLargeMatrix
(b *testing.B)
math/matrix/checkequal_test.go:52
FunctionBenchmarkCheckEqualSmallMatrix
(b *testing.B)
math/matrix/checkequal_test.go:43
FunctionBenchmarkCircle
(b *testing.B)
sort/sorts_test.go:344
FunctionBenchmarkCircularQueue
BenchmarkCircularQueue benchmarks the CircularQueue implementation.
structure/circularqueue/circularqueue_test.go:228
FunctionBenchmarkCocktailSort
(b *testing.B)
sort/sorts_test.go:263
FunctionBenchmarkColumns
BenchmarkColumns benchmarks the Columns method.
math/matrix/matrix_test.go:241
FunctionBenchmarkComb
(b *testing.B)
sort/sorts_test.go:320
FunctionBenchmarkCombinations
(b *testing.B)
math/binomialcoefficient_test.go:38
FunctionBenchmarkCopyMatrix
(b *testing.B)
math/matrix/copy_test.go:101
FunctionBenchmarkCos
(b *testing.B)
math/cos_test.go:35
FunctionBenchmarkCount
(b *testing.B)
sort/sorts_test.go:291
FunctionBenchmarkCycle
(b *testing.B)
sort/sorts_test.go:336
FunctionBenchmarkDSANew
* ------------------- BENCHMARKS ------------------- */
cipher/dsa/dsa_test.go:70
FunctionBenchmarkDSASign
(b *testing.B)
cipher/dsa/dsa_test.go:76
FunctionBenchmarkDSAVerify
(b *testing.B)
cipher/dsa/dsa_test.go:91
FunctionBenchmarkDecimalToBinary
(b *testing.B)
conversion/decimaltobinary_test.go:41
FunctionBenchmarkDefaultPolynomial
(b *testing.B)
math/pollard_test.go:66
FunctionBenchmarkExchange
(b *testing.B)
sort/sorts_test.go:267
FunctionBenchmarkExponentiation
(b *testing.B)
math/modular/exponentiation_test.go:85
FunctionBenchmarkExtendedGCDIterative
(b *testing.B)
math/gcd/extendedgcd_test.go:54
FunctionBenchmarkExtendedGCDRecursive
(b *testing.B)
math/gcd/extendedgcd_test.go:50
FunctionBenchmarkFactorial
(b *testing.B)
math/factorial/factorial_test.go:59
FunctionBenchmarkFactorize
(b *testing.B)
math/prime/primefactorization_test.go:29
FunctionBenchmarkFindDistanceBetweenTwoPoints
(b *testing.B)
math/geometry/distance_test.go:73
FunctionBenchmarkFormula
(b *testing.B)
math/fibonacci/fibonacci_test.go:92
FunctionBenchmarkGCDIterative
(b *testing.B)
math/gcd/gcd_test.go:47
FunctionBenchmarkGCDRecursive
(b *testing.B)
math/gcd/gcd_test.go:43
FunctionBenchmarkGenerateTriangle
(b *testing.B)
math/pascal/pascaltriangle_test.go:33
FunctionBenchmarkGet
BenchmarkGet benchmarks the Get method.
math/matrix/matrix_test.go:205
FunctionBenchmarkHEXToRGB
(b *testing.B)
conversion/rgbhex_test.go:29
FunctionBenchmarkHash
(b *testing.B)
hashing/sha256/sha256_test.go:29
FunctionBenchmarkHeap
(b *testing.B)
sort/sorts_test.go:287
FunctionBenchmarkHexToBinary
(b *testing.B)
conversion/hexadecimaltobinary_test.go:41
FunctionBenchmarkHexToDecimal
(b *testing.B)
conversion/hexadecimaltodecimal_test.go:47
FunctionBenchmarkImprovedSimple
(b *testing.B)
sort/sorts_test.go:311
FunctionBenchmarkInsertion
(b *testing.B)
sort/sorts_test.go:271
FunctionBenchmarkIntToRoman
(b *testing.B)
conversion/inttoroman_test.go:25
FunctionBenchmarkInterpolation
(b *testing.B)
search/interpolation_test.go:17
FunctionBenchmarkIsBalanced
(b *testing.B)
other/nested/nestedbrackets_test.go:73
FunctionBenchmarkIsKrishnamurthyNumber
(b *testing.B)
math/krishnamurthy_test.go:43
← previousnext →601–700 of 1,378, ranked by callers