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
↓ 1 callers
Function
RottenFruit2
(arr [][]int, maxCol int, maxRow int)
Queue/QueueEX.go:342
↓ 1 callers
Function
RottenFruitUtil
* -2 -2 -6 -14 -14 NAN */
Queue/QueueEX.go:283
↓ 1 callers
Function
Search01
* 6 */
Searching/Searching.go:1829
↓ 1 callers
Method
SearchBT
(value int)
Tree/Tree.go:950
↓ 1 callers
Function
SearchRotateArray
(arr []int, key int)
Searching/Searching.go:1915
↓ 1 callers
Function
SelectionSort
* [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] */
Sorting/SelectionSort.go:23
↓ 1 callers
Function
SelectionSort2
(arr []int)
Sorting/SelectionSort.go:36
↓ 1 callers
Function
SeparateEvenAndOdd
(data []int, size int)
Sorting/SortingEx.go:155
↓ 1 callers
Function
SeparateEvenAndOdd
* Water : 7 Water : 7 */
Searching/Searching.go:2777
↓ 1 callers
Function
SeparateEvenAndOdd2
(data []int, size int)
Sorting/SortingEx.go:173
↓ 1 callers
Method
Set
(arr []int, ind int, val int)
Tree/SegmentTree.go:61
↓ 1 callers
Method
Set
(arr []int, index int, val int)
Tree/BinaryIndexTree.go:36
↓ 1 callers
Function
ShellSort
(arr []int)
Sorting/ShellSort.go:9
↓ 1 callers
Method
ShortestPath
* true */
Graph/Graph.go:1124
↓ 1 callers
Function
Shuffle
* 123 132 213 231 321 312 */
String/StringEx.go:318
↓ 1 callers
Method
Size
Size returns the size of the heap
AlgorithmsChapters/Greedy/JoinRopes.go:185
↓ 1 callers
Method
Size
()
AlgorithmsChapters/Greedy/OptimalMergePattern.go:123
↓ 1 callers
Method
Size
()
AlgorithmsChapters/Greedy/HuffmanTree.go:166
↓ 1 callers
Method
Size
()
LinkedLIst/DoublyLinkedList.go:17
↓ 1 callers
Method
Size
()
LinkedLIst/DoublyCircularLIst.go:17
↓ 1 callers
Method
Size
Size returns the number of elements in the queue.
Queue/QueueLL.go:16
↓ 1 callers
Function
SmallerThenTripletCount
* AbcTriplet : 1 2 3 AbcTriplet : -3 -4 1 */
Searching/Searching.go:1222
↓ 1 callers
Function
SmallerThenTripletCount2
(arr []int, value int)
Searching/Searching.go:1237
↓ 1 callers
Function
SmallestPositiveMissingNumber
(arr []int, size int)
IntroductoryChapters/Intro.go:252
↓ 1 callers
Function
SmallestPositiveMissingNumber2
(arr []int, size int)
IntroductoryChapters/Intro.go:269
↓ 1 callers
Function
SmallestPositiveMissingNumber3
(arr []int, size int)
IntroductoryChapters/Intro.go:283
↓ 1 callers
Function
SmallestPositiveMissingNumber4
(arr []int, size int)
IntroductoryChapters/Intro.go:303
↓ 1 callers
Function
Sort1toN
(arr []int, size int)
IntroductoryChapters/Intro.go:214
↓ 1 callers
Function
Sort1toN2
(arr []int, size int)
IntroductoryChapters/Intro.go:229
↓ 1 callers
Function
SortByOrder
(arr []int, size int, arr2 []int, size2 int)
Sorting/SortingEx.go:226
↓ 1 callers
Function
StairUniqueWaysBU
(n int)
AlgorithmsChapters/DP/StairUniqueWays.go:5
↓ 1 callers
Function
StairUniqueWaysBU2
(n int)
AlgorithmsChapters/DP/StairUniqueWays.go:20
↓ 1 callers
Function
StepsOfKnight
(size int, srcX int, srcY int, dstX int, dstY int)
Queue/QueueEX.go:420
↓ 1 callers
Function
StepsOfKnight2
(size int, srcX int, srcY int, dstX int, dstY int)
Queue/QueueEX.go:442
↓ 1 callers
Function
StepsOfKnightUtil
* RottenFruit : 3 RottenFruit2 : 3 */
Queue/QueueEX.go:399
↓ 1 callers
Function
StockAnalystAdd
* GetMaxArea :: 20 GetMaxArea :: 20 */
Stack/StackExercise.go:784
↓ 1 callers
Function
StockBuySellMaxProfit
(arr []int)
AlgorithmsChapters/DP/StockBuySell.go:5
↓ 1 callers
Function
StockBuySellMaxProfit2
(arr []int)
AlgorithmsChapters/DP/StockBuySell.go:25
↓ 1 callers
Function
StockBuySellMaxProfitTC
(arr []int, t int)
AlgorithmsChapters/DP/StockBuySell.go:47
↓ 1 callers
Function
StockBuySellMaxProfitTC2
(arr []int, t int)
AlgorithmsChapters/DP/StockBuySell.go:66
↓ 1 callers
Function
StockSpanRange
* Output: Result after Evaluation: 288 */
Stack/StackExercise.go:674
↓ 1 callers
Function
StockSpanRange2
(arr []int)
Stack/StackExercise.go:688
↓ 1 callers
Method
StronglyConnectedComponent
* IsStronglyConnected : true */
Graph/Graph.go:839
↓ 1 callers
Function
SubsetSum
(arr []int, n int, target int)
AlgorithmsChapters/BT/SubsetSum.go:5
↓ 1 callers
Method
Sum
Sum returns the sum of the list elements.
Basics/LinkedList.go:29
↓ 1 callers
Method
SumAllBT
()
Tree/Tree.go:573
↓ 1 callers
Function
SumArray
(data []int)
IntroductoryChapters/Intro.go:12
↓ 1 callers
Function
SumDistinct
* Odd values: 30 Odd count is : 1 Odd count Elements are : 30 & 40 */
Searching/Searching.go:584
↓ 1 callers
Function
SumPairRestArray
* closest pair is : 1 & 5 closest pair is : 1 & 5 */
Searching/Searching.go:1044
↓ 1 callers
Function
TSP
Function to find the minimum weight Hamiltonian Cycle
AlgorithmsChapters/BT/TSP.go:9
↓ 1 callers
Method
Top
()
Tree/Tree.go:1267
↓ 1 callers
Method
TopologicalSort
* DFS Path is: [0 3 6 7 5 4 2 1] Path between 0 & 6: true DFS Path is: 0 1 4 7 5 2 6 3 Path between 0 & 6: true BFS Path is: [0 1 2 3 4 5 6 7] Path be
Graph/Graph.go:189
↓ 1 callers
Method
TopologicalSortDFS
(index int, visited []bool, stk *Stack)
Graph/Graph.go:207
↓ 1 callers
Function
TotalArea
(shapes ...Shape)
Basics/Shape.go:38
↓ 1 callers
Function
TotalPerimeter
(shapes ...Shape)
Basics/Shape.go:46
↓ 1 callers
Function
TowerOfHanoi
(num int)
AlgorithmsChapters/BT/TOH.go:5
↓ 1 callers
Method
TreeDepth
()
Tree/Tree.go:417
↓ 1 callers
Method
TreeToListRec
()
Tree/Tree.go:584
↓ 1 callers
Method
TrimOutsidedataRange
(min int, max int)
Tree/Tree.go:858
↓ 1 callers
Function
TwoComplementEx
(a int)
Searching/BitManipulation.go:66
↓ 1 callers
Function
UnionIntersectionSorted
(arr1 []int, size1 int, arr2 []int, size2 int)
Sorting/SortingEx.go:366
↓ 1 callers
Function
UnionIntersectionUnsorted
(arr1 []int, size1 int, arr2 []int, size2 int)
Sorting/SortingEx.go:408
↓ 1 callers
Function
Unique3Ways
Diagonal movement allowed.
AlgorithmsChapters/DP/GridUniqueWays.go:6
↓ 1 callers
Function
UniqueWays
(m int, n int)
AlgorithmsChapters/DP/GridUniqueWays.go:32
↓ 1 callers
Method
Update
(ind int, val int)
Tree/rangeMaxST.go:68
↓ 1 callers
Function
WaveArray
(arr []int)
IntroductoryChapters/Intro.go:137
↓ 1 callers
Function
WaveArray2
(arr []int)
IntroductoryChapters/Intro.go:150
↓ 1 callers
Function
WildCharMatchExp
(exp string, str string)
AlgorithmsChapters/DP/WildCharMatch.go:10
↓ 1 callers
Function
WildCharMatchExpDP
(exp string, str string)
AlgorithmsChapters/DP/WildCharMatch.go:30
↓ 1 callers
Function
XorEx
(a int, b int)
Searching/BitManipulation.go:70
↓ 1 callers
Function
ZeroSumTriplets
* Pair is: 3 & 7 */
Searching/Searching.go:1078
↓ 1 callers
Function
ZeroSumTriplets2
(arr []int)
Searching/Searching.go:1093
↓ 1 callers
Function
absBubbleSort
(arr []int, size int, reference int)
Sorting/SortingEx.go:202
↓ 1 callers
Function
absGreater
(value1 int, value2 int, reference int)
Sorting/SortingEx.go:198
↓ 1 callers
Method
add
(poly2 *Polynomial)
LinkedLIst/Polynomial.go:51
↓ 1 callers
Method
addUtil
(n *Node, value int)
Tree/Tree.go:40
↓ 1 callers
Method
ancestor
(curr *Node, first int, second int)
Tree/Tree.go:457
↓ 1 callers
Function
appendValues
appendValues appends the elements of t to values in order and returns the resulting slice.
Tree/Tree.go:1026
↓ 1 callers
Function
binarySearchRecursiveUtil
(data []int, low, high, value int)
Searching/Searching.go:51
↓ 1 callers
Method
borrowFromLeft
Move a key from parent to right and left to parent.
Tree/BTree.go:320
↓ 1 callers
Method
borrowFromRight
Move a key from parent to left and right to parent.
Tree/BTree.go:347
↓ 1 callers
Function
checkReverse
(arr []int, size int)
Sorting/SortingEx.go:315
↓ 1 callers
Function
closestPairUtil
(p []*Point, start int, stop int, q []*Point, n int)
AlgorithmsChapters/DAC/ClosestPair.go:59
↓ 1 callers
Method
compareListUtil
(head1 *ListNode, head2 *ListNode)
LinkedLIst/LinkedLIst.go:250
↓ 1 callers
Method
constructST
(input []int, start int, end int, index int)
Tree/SegmentTree.go:26
↓ 1 callers
Method
constructST
(input []int, start int, end int, index int)
Tree/rmqST.go:26
↓ 1 callers
Method
constructST
(input []int, start int, end int, index int)
Tree/rangeMaxST.go:26
↓ 1 callers
Method
copyMirrorTree
(curr *Node)
Tree/Tree.go:493
↓ 1 callers
Method
copyTree
(curr *Node)
Tree/Tree.go:476
↓ 1 callers
Method
countAllPath
(src int, dest int)
Graph/Graph.go:267
↓ 1 callers
Method
countAllPathDFS
(visited []bool, source int, dest int)
Graph/Graph.go:248
↓ 1 callers
Function
countSort
(arr []int, n int, dividend int)
Sorting/RadixSort.go:25
↓ 1 callers
Function
createBinarySearchTreeUtil
(arr []int, start int, end int)
Tree/Tree.go:983
↓ 1 callers
Function
createCompleteBinaryTree
(arr []int, start int, size int)
Tree/Tree.go:23
↓ 1 callers
Method
deleteNode
(node *Node, value int)
Tree/Tree.go:386
↓ 1 callers
Method
deleteUtil
(node *Node, key int)
Tree/RBTree.go:219
↓ 1 callers
Method
deleteUtil
(node *Node, data int)
Tree/AVLTree.go:126
↓ 1 callers
Function
editDistUtil
(str1, str2 string, m, n int)
AlgorithmsChapters/DP/EditDist.go:23
↓ 1 callers
Function
fastestWayUtilTD
(f, a, t [][]int, i int)
AlgorithmsChapters/DP/ALS.go:62
↓ 1 callers
Function
fibonacci
(n int)
IntroductoryChapters/Intro.go:568
← previous
next →
701–800 of 1,518, ranked by callers