Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeadCoding/3-weeks-Google-Prep
/ functions
Functions
71 in github.com/LeadCoding/3-weeks-Google-Prep
⨍
Functions
71
◇
Types & classes
10
↓ 12 callers
Function
find
01. Graphs/06. MST/1. Kruskals.cpp:14
↓ 11 callers
Method
find
01. Graphs/07. DSU/1. DSUSnippetClass.cpp:16
↓ 4 callers
Function
dfs
Learnings We made the (DAG) using BFS traversal. then applied DFS to find all (source to destination paths) */
01. Graphs/02. BFS/2. WordLadder2.cpp:6
↓ 3 callers
Function
unite
01. Graphs/06. MST/1. Kruskals.cpp:18
↓ 3 callers
Function
wtMst
01. Graphs/06. MST/1. Kruskals.cpp:33
↓ 2 callers
Function
func
02. Dynamic Programming/3. Digit DP-MagicNumbers.cpp:6
↓ 2 callers
Function
poly_hash
04. Rolling hash/1. Rabin_carp.cpp:9
↓ 2 callers
Function
powr
04. Rolling hash/1. Rabin_carp.cpp:24
↓ 1 callers
Method
build
03. SegmentTree/2. Xenia.cpp:8
↓ 1 callers
Method
buildSegmentTree
03. SegmentTree/1. SegmentTreeSnippetClass.cpp:9
↓ 1 callers
Function
detectCycle
01. Graphs/04. CycleDetection/1. DetectCycleUndirectedGraph.cpp:4
↓ 1 callers
Function
detectCycle
01. Graphs/04. CycleDetection/2. DetectCycleDirectedGraph.cpp:4
↓ 1 callers
Function
dfs
01. Graphs/03. DFS/3. ConnectedComponents.cpp:21
↓ 1 callers
Function
dfs
https://www.hackerrank.com/challenges/journey-to-the-moon/problem the people in 1 component cant go together but thet can go with rest of the peo
01. Graphs/03. DFS/1. JourneyToTheMoon.cpp:8
↓ 1 callers
Function
dfs
01. Graphs/03. DFS/2. DFSwithStoppingCondition.cpp:9
↓ 1 callers
Function
dfs
01. Graphs/03. DFS/4. ReconstructItinerary.cpp:6
↓ 1 callers
Function
dfs
01. Graphs/05. Topological Sort/2. TopologicalDFS.cpp:1
↓ 1 callers
Function
dfs
01. Graphs/05. Topological Sort/4. LargestColorValueInADirectedGraph.cpp:3
↓ 1 callers
Function
dfs
01. Graphs/04. CycleDetection/5. DetectCyclesin2DGrid.cpp:1
↓ 1 callers
Function
dfs
Notes 1-We can easily solve the problem of IsBipartite graph by DFS/BFS alternate colouring 2-Property to be Bipartite ( either no cyle ie Tre
01. Graphs/04. CycleDetection/3. IsBipartite.cpp:11
↓ 1 callers
Function
help
02. Dynamic Programming/1. Barcode.cpp:4
↓ 1 callers
Function
inv
04. Rolling hash/1. Rabin_carp.cpp:38
↓ 1 callers
Method
query
03. SegmentTree/1. SegmentTreeSnippetClass.cpp:22
↓ 1 callers
Function
solve
01. Graphs/02. BFS/1. Boredom.cpp:4
↓ 1 callers
Method
update
03. SegmentTree/1. SegmentTreeSnippetClass.cpp:38
↓ 1 callers
Method
update
03. SegmentTree/2. Xenia.cpp:24
Method
SegmentTree
03. SegmentTree/1. SegmentTreeSnippetClass.cpp:53
Method
SegmentTree
03. SegmentTree/2. Xenia.cpp:57
Method
UnionFind
01. Graphs/07. DSU/1. DSUSnippetClass.cpp:6
Method
_union
01. Graphs/07. DSU/1. DSUSnippetClass.cpp:22
Method
cherryPickup
02. Dynamic Programming/2. CherryPick.cpp:16
Function
containsCycle
01. Graphs/04. CycleDetection/5. DetectCyclesin2DGrid.cpp:16
Function
dfs
01. Graphs/10.Articulation Point and Bridges/1. CutEdges.cpp:1
Function
dfs
01. Graphs/10.Articulation Point and Bridges/2. CutVertex.cpp:1
Method
dfs
Function to find number of strongly connected components in the graph.
01. Graphs/09. StronglyConnected/1. Kosarju.cpp:16
Method
dij
01. Graphs/08. Shortest Paths Algo/1. Dijkstras.cpp:20
Method
find
01. Graphs/07. DSU/2. Redundant Connection II.cpp:17
Function
findCriticalAndPseudoCriticalEdges
01. Graphs/06. MST/1. Kruskals.cpp:61
Function
findItinerary
01. Graphs/03. DFS/4. ReconstructItinerary.cpp:19
Function
findLadders
01. Graphs/02. BFS/2. WordLadder2.cpp:17
Function
findOrder
01. Graphs/05. Topological Sort/2. TopologicalDFS.cpp:16
Method
findOrder
01. Graphs/05. Topological Sort/1. TopologicalBFS.cpp:3
Method
findRedundantDirectedConnection
01. Graphs/07. DSU/2. Redundant Connection II.cpp:33
Function
gameRoutes
01. Graphs/05. Topological Sort/3. GameRoutes.cpp:1
Method
height
01. Graphs/04. CycleDetection/6. Maximum Employees to Be Invited to a Meeting.cpp:15
Method
help1
02. Dynamic Programming/2. CherryPick.cpp:4
Function
isBipartite
01. Graphs/04. CycleDetection/3. IsBipartite.cpp:29
Function
journeyToMoon
01. Graphs/03. DFS/1. JourneyToTheMoon.cpp:17
Method
kosaraju
01. Graphs/09. StronglyConnected/1. Kosarju.cpp:25
Function
largestPathValue
01. Graphs/05. Topological Sort/4. LargestColorValueInADirectedGraph.cpp:25
Function
main
04. Rolling hash/1. Rabin_carp.cpp:42
Function
main
02. Dynamic Programming/3. Digit DP-MagicNumbers.cpp:32
Function
main
02. Dynamic Programming/1. Barcode.cpp:31
Function
main
03. SegmentTree/1. SegmentTreeSnippetClass.cpp:70
Function
main
03. SegmentTree/2. Xenia.cpp:76
Function
main
01. Graphs/02. BFS/4. ValidBFS.cpp:9
Function
main
01. Graphs/02. BFS/1. Boredom.cpp:22
Function
main
01. Graphs/01. Representation/1. List.cpp:4
Function
main
01. Graphs/01. Representation/2. Matrix.cpp:4
Function
maximalPathQuality
01. Graphs/03. DFS/2. DFSwithStoppingCondition.cpp:30
Method
maximumInvitations
01. Graphs/04. CycleDetection/6. Maximum Employees to Be Invited to a Meeting.cpp:24
Function
minCostConnectPoints
01. Graphs/06. MST/2. Prims.cpp:20
Function
minSwapsCouples
01. Graphs/03. DFS/3. ConnectedComponents.cpp:28
Method
minimumWeight
01. Graphs/08. Shortest Paths Algo/1. Dijkstras.cpp:40
Method
networkDelayTime
01. Graphs/08. Shortest Paths Algo/2. BellmanFord.cpp:13
Method
query
03. SegmentTree/2. Xenia.cpp:45
Function
shortestPathLength
01. Graphs/02. BFS/3. MultiSourceBFS.cpp:13
Function
solve
01. Graphs/04. CycleDetection/1. DetectCycleUndirectedGraph.cpp:17
Function
solve
01. Graphs/04. CycleDetection/2. DetectCycleDirectedGraph.cpp:17
Function
solve
01. Graphs/04. CycleDetection/4. LengthOfSmallestCycle.cpp:13
Method
unite
01. Graphs/07. DSU/2. Redundant Connection II.cpp:21