Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hemant-Jain-Author/Data-Structures-Algorithms-In-Go
/ functions
Functions
1,518 in github.com/Hemant-Jain-Author/Data-Structures-Algorithms-In-Go
⨍
Functions
1,518
◇
Types & classes
101
↓ 2 callers
Function
min
(a, b, c int)
AlgorithmsChapters/DP/GridMinCost.go:40
↓ 2 callers
Function
min
(a, b int)
AlgorithmsChapters/DP/Vacation.go:5
↓ 2 callers
Function
min
(a, b, c int)
AlgorithmsChapters/DP/EditDist.go:5
↓ 2 callers
Method
parent
(node *Node)
Tree/SPLAYTree.go:107
↓ 2 callers
Function
partition
(arr []int, low int, high int, pivot int)
AlgorithmsChapters/DAC/NutsAndBolts.go:25
↓ 2 callers
Method
percolateDown
(parent int)
Graph/GraphAM.go:427
↓ 2 callers
Method
percolateDown
(parent int)
Graph/hp.go:24
↓ 2 callers
Method
percolateDown
(parent int)
Graph/Graph.go:1573
↓ 2 callers
Method
percolateUp
percolateUp moves the element at the given index up the heap to its correct position
AlgorithmsChapters/Greedy/JoinRopes.go:134
↓ 2 callers
Method
percolateUp
(child int)
AlgorithmsChapters/Greedy/ChotaBhim.go:116
↓ 2 callers
Method
percolateUp
(child int)
AlgorithmsChapters/Greedy/OptimalMergePattern.go:79
↓ 2 callers
Method
percolateUp
(child int)
AlgorithmsChapters/Greedy/HuffmanTree.go:122
↓ 2 callers
Method
percolateUp
(child int)
Heap/heap2.go:51
↓ 2 callers
Method
percolateUp
(child int)
Heap/Heap.go:57
↓ 2 callers
Method
percolateUp
(child int)
Graph/GraphAM.go:443
↓ 2 callers
Method
percolateUp
(child int)
Graph/hp.go:40
↓ 2 callers
Method
percolateUp
(child int)
Graph/Graph.go:1589
↓ 2 callers
Function
precedence
* Output: Parenthesis Count : 1234435521 */
Stack/StackExercise.go:520
↓ 2 callers
Function
reverseStack
* Output: [4 1 2 3] */
Stack/StackExercise.go:127
↓ 2 callers
Function
reverseString
(in string)
Stack/StackExercise.go:595
↓ 2 callers
Method
rightLeftRotate
Function to right then left rotate subtree rooted with x
Tree/AVLTree.go:111
↓ 2 callers
Function
sortedInsert
* Output: main line 1 fun1 line 1 fun2 line 1 fun1 line 2 main line 2 */
Stack/StackExercise.go:35
↓ 2 callers
Method
split
(parent *Node, child *Node, index int)
Tree/BTree.go:147
↓ 2 callers
Function
swap
(arr []int, i int, j int)
Heap/heap2.go:405
↓ 2 callers
Function
swap
(arr []int, i int, j int)
Heap/Heap.go:390
↓ 2 callers
Function
swap
(arr []int, first int, second int)
Sorting/QuickSelect.go:35
↓ 2 callers
Function
swap
(arr []int, first int, second int)
Sorting/QuickSort.go:34
↓ 2 callers
Method
swap
swap swaps the elements at the given indices in the heap's array
AlgorithmsChapters/Greedy/JoinRopes.go:109
↓ 2 callers
Method
swap
(i, j int)
AlgorithmsChapters/Greedy/ChotaBhim.go:96
↓ 2 callers
Method
swap
(i, j int)
AlgorithmsChapters/Greedy/OptimalMergePattern.go:59
↓ 2 callers
Method
swap
(i, j int)
AlgorithmsChapters/Greedy/HuffmanTree.go:102
↓ 2 callers
Method
swap
(i, j int)
Heap/heap2.go:31
↓ 2 callers
Method
swap
(i, j int)
Heap/Heap.go:37
↓ 2 callers
Method
swap
(i, j int)
Graph/GraphAM.go:423
↓ 2 callers
Method
swap
(i, j int)
Graph/hp.go:20
↓ 2 callers
Method
swap
(i, j int)
Graph/Graph.go:1569
↓ 2 callers
Function
union
consider x and y are roots of sets.
Graph/Graph.go:576
↓ 1 callers
Function
APTriplets
* SmallerThenTripletCount: 13 SmallerThenTripletCount: 13 */
Searching/Searching.go:1269
↓ 1 callers
Function
AbcTriplet
* Triplet with sum 6 are : (1 2 3)(2 7 -3)(-4 3 7) Triplet with sum 6 are : (-4 3 7)(-3 2 7)(1 2 3) */
Searching/Searching.go:1177
↓ 1 callers
Function
AbcTriplet2
(arr []int)
Searching/Searching.go:1191
↓ 1 callers
Function
Add
(n *TreeNode, value int)
Basics/Tree.go:20
↓ 1 callers
Method
Add
(value interface{})
Queue/QueueLinkedLIst.go:18
↓ 1 callers
Method
AddTail
(value int)
LinkedLIst/DoublyLinkedList.go:46
↓ 1 callers
Function
AndEx
(a int, b int)
Searching/BitManipulation.go:5
↓ 1 callers
Method
Area
()
Basics/Shape.go:9
↓ 1 callers
Function
ArrayIndexMaxDiff
(arr []int, size int)
IntroductoryChapters/Intro.go:397
↓ 1 callers
Function
ArrayIndexMaxDiff2
(arr []int, size int)
IntroductoryChapters/Intro.go:415
↓ 1 callers
Function
ArrayReduction
(arr []int, size int)
Sorting/SortingEx.go:265
↓ 1 callers
Method
BFS
(source int, target int)
Graph/Graph.go:135
↓ 1 callers
Method
BellmanFordShortestPath
* Shortest Paths: (0->1 @ 4) (0->1->2 @ 12) (0->1->2->3 @ 19) (0->7->6->5->4 @ 21) (0->7->6->5 @ 11) (0->7->6 @ 9) (0->7 @ 8) (0->1->2->8 @ 14) */
Graph/Graph.go:1272
↓ 1 callers
Method
BfsDistance
(source int, dest int)
Graph/Graph.go:421
↓ 1 callers
Method
BfsLevelNode
* 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 */
Graph/Graph.go:396
↓ 1 callers
Function
BinarySearch01
(data []int)
Searching/Searching.go:1839
↓ 1 callers
Function
BinarySearch01Util
(data []int, start int, end int)
Searching/Searching.go:1847
↓ 1 callers
Function
BinarySearchRecursiveUtil
(data []int, low int, high int, value int)
IntroductoryChapters/Intro.go:605
↓ 1 callers
Function
BinarySearchRotateArrayUtil
(data []int, start int, end int, key int)
Searching/Searching.go:1925
↓ 1 callers
Function
BitReversalEx
(a int)
Searching/BitManipulation.go:9
↓ 1 callers
Function
BruteForceSearch
(text string, pattern string)
String/StringMatching.go:11
↓ 1 callers
Function
BubbleSort2
BubbleSort2 sorts the array using the specified comparison function. It includes an optimization to stop early if no swaps are made in a pass.
Sorting/BubbleSort.go:30
↓ 1 callers
Function
BucketSort
(arr []int, maxValue, numBucket int)
Sorting/BucketSort.go:9
↓ 1 callers
Method
CeilBST
(val int)
Tree/Tree.go:910
↓ 1 callers
Function
CheckPermutation
* abababab */
Searching/Searching.go:2064
↓ 1 callers
Function
CheckPermutation2
(data1 string, data2 string)
Searching/Searching.go:2099
↓ 1 callers
Function
CheckPermutation3
(data1 string, data2 string)
Searching/Searching.go:2121
↓ 1 callers
Function
ChotaBhim
(cups []int)
AlgorithmsChapters/Greedy/ChotaBhim.go:9
↓ 1 callers
Function
ChotaBhim2
(cups []int)
AlgorithmsChapters/Greedy/ChotaBhim.go:36
↓ 1 callers
Function
CircularTour
Position : 8
Queue/QueueEX.go:41
↓ 1 callers
Function
CircularTour2
(arr [][2]int, n int)
Queue/QueueEX.go:59
↓ 1 callers
Function
ClosestNumber
(arr []int, size int, num int)
Searching/Searching.go:2339
↓ 1 callers
Function
ClosestPair
* MinDiff 1 MinDiff 1 The pair is: 9 & 10 Minimum difference is : 1 The pair is : 9 & 10 Minimum difference is : 1 */
Searching/Searching.go:983
↓ 1 callers
Function
ClosestPair2
(arr []int, value int)
Searching/Searching.go:1002
↓ 1 callers
Function
ClosestPairBF
(arr [][]int)
AlgorithmsChapters/DAC/ClosestPair.go:22
↓ 1 callers
Function
ClosestPairDC
(arr [][]int)
AlgorithmsChapters/DAC/ClosestPair.go:38
↓ 1 callers
Method
CompareList
(ll *List)
LinkedLIst/LinkedLIst.go:246
↓ 1 callers
Function
ConvertXY
* Starting Point : 1 Starting Point 2 : 1 */
Queue/QueueEX.go:102
↓ 1 callers
Method
CopyList
()
LinkedLIst/LinkedLIst.go:220
↓ 1 callers
Method
CopyList
()
LinkedLIst/CircularLinkedList.go:154
↓ 1 callers
Method
CopyListReversed
()
LinkedLIst/LinkedLIst.go:206
↓ 1 callers
Method
CopyListReversed
()
LinkedLIst/CircularLinkedList.go:137
↓ 1 callers
Method
CopyMirrorTree
()
Tree/Tree.go:487
↓ 1 callers
Method
CopyTree
()
Tree/Tree.go:470
↓ 1 callers
Function
CountBits
(a int)
Searching/BitManipulation.go:13
↓ 1 callers
Function
CountRotation
(arr []int)
Searching/Searching.go:1909
↓ 1 callers
Function
CountSort
CountSort performs counting sort on the given array within the specified range.
Sorting/CountSort.go:6
↓ 1 callers
Function
CreateHeap
CreateHeap creates a new heap with the given comparison function
AlgorithmsChapters/Greedy/JoinRopes.go:89
↓ 1 callers
Function
CreateHeap
(comp func(x interface{}, y interface{}) bool, args ...[]interface{})
AlgorithmsChapters/Greedy/ChotaBhim.go:79
↓ 1 callers
Function
CreateHeap
(comp func(x interface{}, y interface{}) bool, args ...[]interface{})
AlgorithmsChapters/Greedy/OptimalMergePattern.go:42
↓ 1 callers
Function
CreateHeap
(comp func(x interface{}, y interface{}) bool, args ...[]interface{})
AlgorithmsChapters/Greedy/HuffmanTree.go:85
↓ 1 callers
Method
DFS
(source, target int)
Graph/Graph.go:101
↓ 1 callers
Method
DFSStack
* Vertex 0 is connected to : 2(cost:1) 1(cost:1) Vertex 1 is connected to : 2(cost:1) 0(cost:1) Vertex 2 is connected to : 3(cost:1) 1(cost:1) 0(cost:
Graph/Graph.go:76
↓ 1 callers
Method
DeleteNode
(delValue int)
LinkedLIst/LinkedLIst.go:113
↓ 1 callers
Method
DeleteNode
(value int)
Tree/Tree.go:382
↓ 1 callers
Method
Dijkstra
* Node index 0 is connected to : 1(cost:1) 2(cost:1) Node index 1 is connected to : 0(cost:1) 2(cost:1) Node index 2 is connected to : 0(cost:1) 1(cos
Graph/GraphAM.go:63
↓ 1 callers
Method
Dijkstra
* Shortest Paths: (0->1 @ 1) (0->1->2 @ 2) (0->1->2->3 @ 3) (0->7->6->5->4 @ 4) (0->7->6->5 @ 3) (0->7->6 @ 2) (0->7 @ 1) (0->7->8 @ 2) */
Graph/Graph.go:1201
↓ 1 callers
Function
DistNearestFill
(arr [][]int, maxCol int, maxRow int)
Queue/QueueEX.go:511
↓ 1 callers
Function
DistNearestFill2
(arr [][]int, maxCol int, maxRow int)
Queue/QueueEX.go:546
↓ 1 callers
Function
DistNearestFillUtil
* StepsOfKnight : 8 StepsOfKnight2 : 8 */
Queue/QueueEX.go:487
↓ 1 callers
Function
DuplicateKDistance
* 3 true 6 true 3 */
Searching/Searching.go:2376
↓ 1 callers
Function
EditDist
(str1, str2 string)
AlgorithmsChapters/DP/EditDist.go:17
↓ 1 callers
Function
EditDistDP
(str1, str2 string)
AlgorithmsChapters/DP/EditDist.go:45
← previous
next →
301–400 of 1,518, ranked by callers