Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Seanforfun/Algorithm-and-Leetcode
/ functions
Functions
771 in github.com/Seanforfun/Algorithm-and-Leetcode
⨍
Functions
771
◇
Types & classes
203
↓ 75 callers
Method
V
@Description: Get the vertex number. @return
DataStructrue/Graph/Graph.java:10
↓ 70 callers
Method
add
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/bag/Bag.java:4
↓ 29 callers
Method
adj
@Description: Get all vertex adjacent to v. @param v @return
DataStructrue/Graph/Graph.java:28
↓ 29 callers
Method
compareTo
(Edge o)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/mstree/Edge.java:12
↓ 28 callers
Method
height
(AVLNode n)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BalancedBinaryTree.java:22
↓ 26 callers
Method
push
(int v)
Offer/ca/mcmaster/offer/SetOfStack.java:24
↓ 22 callers
Method
print
()
Offer/ca/mcmaster/offer/Question9_2.java:14
↓ 19 callers
Method
isEmpty
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/bag/Bag.java:5
↓ 16 callers
Method
addLeftChild
(TreeNode child)
Offer/ca/mcmaster/offer/OfferTree.java:29
↓ 16 callers
Method
addRightChild
(TreeNode child)
Offer/ca/mcmaster/offer/OfferTree.java:33
↓ 16 callers
Method
toString
()
DataStructrue/Graph/Edge.java:28
↓ 15 callers
Method
offer
(E e)
Offer/ca/mcmaster/offer/MyQueue.java:12
↓ 15 callers
Method
weight
@Description: Return the total weight of the tree. @return
DataStructrue/Graph/MST.java:13
↓ 13 callers
Method
pop
()
Offer/ca/mcmaster/offer/SetOfStack.java:29
↓ 12 callers
Method
poll
()
Offer/ca/mcmaster/offer/MyQueue.java:15
↓ 12 callers
Method
push
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/stack/MyStack.java:4
↓ 11 callers
Method
add
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/bag/ListBag.java:12
↓ 11 callers
Method
contains
@Description: Is key a vertex. @param key @return
DataStructrue/Graph/SymbolGraph.java:9
↓ 11 callers
Method
pop
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/stack/MyStack.java:5
↓ 11 callers
Method
put
(Node node, K k, V v)
DataStructrue/Tree/BinaryTree.java:16
↓ 11 callers
Method
size
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/bag/Bag.java:6
↓ 10 callers
Method
add
(T t)
Offer/ca/mcmaster/offer/OfferList.java:20
↓ 10 callers
Method
connect
(GraphVertex v1, GraphVertex v2)
Offer/ca/mcmaster/offer/OfferGraph.java:51
↓ 10 callers
Method
toString
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/mstree/Edge.java:29
↓ 9 callers
Method
get
(K k)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/SearchSTAbstract.java:14
↓ 9 callers
Method
max
@Description: Return the max value from the priority queue. @return
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/queue/MaxPriorityQueue.java:14
↓ 8 callers
Method
enqueue
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/FIFO/FifoQueue.java:4
↓ 8 callers
Method
get
(int i)
DataStructrue/Tree/CompleteBinaryTree.java:29
↓ 8 callers
Method
less
(Comparable a, Comparable b)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/Sort/SortOld.java:62
↓ 8 callers
Method
push
(Integer v, int index)
Offer/ca/mcmaster/offer/OfferStack.java:18
↓ 8 callers
Method
put
(K k, V v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/rbtree/RedBlackBST.java:55
↓ 7 callers
Method
binarySearch
(K k)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/SearchSTAbstract.java:34
↓ 7 callers
Method
compareTo
(Edge o)
DataStructrue/Graph/Edge.java:12
↓ 7 callers
Method
insert
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/queue/MaxPriorityQueueBinaryStack.java:9
↓ 7 callers
Method
put
(K k, V v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BinaryTreeSymbolTable.java:17
↓ 7 callers
Method
put
(Node node, K k, V v)
Algorithm(4th_Edition)/Notes/Tree/BinaryTree.java:16
↓ 7 callers
Method
size
(Node x)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BinaryTreeSymbolTableAbstract.java:14
↓ 7 callers
Method
size
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/rbtree/RedBlackBST.java:45
↓ 7 callers
Method
swap
(Comparable[] a, int i, int j)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/Sort/SortOld.java:65
↓ 6 callers
Method
connected
(int p, int q)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/unionfind/UnionFind.java:6
↓ 6 callers
Method
get
(K k)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/SequentialSearchST.java:15
↓ 6 callers
Method
hasNext
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/stack/ListStack.java:44
↓ 6 callers
Method
insert
@Description: Insert an element into the priority queue @param t
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/queue/MaxPriorityQueue.java:8
↓ 6 callers
Method
insert
(K k)
Algorithm(4th_Edition)/Notes/Tree/CompleteBinaryTree.java:22
↓ 6 callers
Method
insert
(K k, V v)
DataStructrue/Tree/BlackRedTree.java:73
↓ 6 callers
Method
insert
(K k)
DataStructrue/Tree/CompleteBinaryTree.java:22
↓ 6 callers
Method
isRed
(Node node)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/rbtree/RedBlackBST.java:21
↓ 6 callers
Method
isRed
(Node n)
DataStructrue/Tree/BlackRedTree.java:21
↓ 6 callers
Method
other
(int v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/mstree/Edge.java:24
↓ 6 callers
Method
size
(Node x)
DataStructrue/Tree/BlackRedTree.java:25
↓ 5 callers
Method
delMin
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BinaryTreeSymbolTableAbstract.java:63
↓ 5 callers
Method
insert
(V v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BalancedBinaryTree.java:75
↓ 5 callers
Method
other
(int v)
DataStructrue/Graph/Edge.java:24
↓ 5 callers
Method
pop
(int index)
Offer/ca/mcmaster/offer/OfferStack.java:25
↓ 5 callers
Method
push
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/stack/ListStack.java:12
↓ 5 callers
Method
put
(K k, V v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/SequentialSearchST.java:24
↓ 5 callers
Method
to
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/spt/DirectedEdge.java:14
↓ 5 callers
Method
to
()
DataStructrue/Graph/DirectedEdge.java:14
↓ 4 callers
Method
dequeue
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/FIFO/FifoQueue.java:5
↓ 4 callers
Method
display
@Description: Print a graph.
DataStructrue/Graph/Graph.java:84
↓ 4 callers
Method
enqueue
(Animal animal)
Offer/ca/mcmaster/offer/Question3_7.java:25
↓ 4 callers
Method
find
(int v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/undirected/UFSearch.java:44
↓ 4 callers
Method
find
(int v)
DataStructrue/Graph/UFSearch.java:41
↓ 4 callers
Method
get
(int index)
Offer/ca/mcmaster/offer/OfferList.java:26
↓ 4 callers
Method
getLastStack
()
Offer/ca/mcmaster/offer/SetOfStack.java:42
↓ 4 callers
Method
hasChild
(TreeNode root, TreeNode node)
Offer/ca/mcmaster/offer/OfferTree.java:128
↓ 4 callers
Method
singleRotateLeft
@Description: RR插入造成不平衡,通过单次向左旋转重新平衡树。 @param n @return
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BalancedBinaryTree.java:46
↓ 4 callers
Method
singleRotateRight
@Description: LL插入造成不平衡,通过单次向右旋转重新平衡树。 @param n @return
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BalancedBinaryTree.java:32
↓ 4 callers
Method
size
(Node n)
Algorithm(4th_Edition)/Notes/Tree/BinaryTree.java:10
↓ 4 callers
Method
size
(Node n)
DataStructrue/Tree/BinaryTree.java:10
↓ 4 callers
Method
sort
@Description: Sort the array in a descent order. @param a: array to sort
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/Sort/Sort.java:8
↓ 3 callers
Method
clone
()
Offer/ca/mcmaster/offer/OfferTree.java:217
↓ 3 callers
Method
count
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/unionfind/UnionFind.java:7
↓ 3 callers
Method
either
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/mstree/Edge.java:21
↓ 3 callers
Method
enqueue
(T t)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/FIFO/ListFIFOQueue.java:13
↓ 3 callers
Method
from
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/spt/DirectedEdge.java:13
↓ 3 callers
Method
from
()
DataStructrue/Graph/DirectedEdge.java:13
↓ 3 callers
Method
isEmpty
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/FIFO/ListFIFOQueue.java:30
↓ 3 callers
Method
isEmpty
()
Offer/ca/mcmaster/offer/SetOfStack.java:21
↓ 3 callers
Method
iterator
()
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/bag/ListBag.java:21
↓ 3 callers
Method
less
(int i, int j)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/queue/MaxPriorityQueueBinaryStack.java:25
↓ 3 callers
Method
name
(int v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/undirected/SymbolGraphImpl.java:61
↓ 3 callers
Method
name
(int v)
DataStructrue/Graph/SymbolGraphImpl.java:59
↓ 3 callers
Method
resize
(int capacity)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/stack/ResizingArrayStack.java:23
↓ 3 callers
Method
swap
(int i, int j)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/two/queue/MaxPriorityQueueBinaryStack.java:26
↓ 3 callers
Method
swap
(int i, int j)
Algorithm(4th_Edition)/Notes/Tree/CompleteBinaryTree.java:7
↓ 3 callers
Method
swap
(int i, int j)
DataStructrue/Tree/CompleteBinaryTree.java:7
↓ 3 callers
Method
union
(int p, int q)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/one/unionfind/QuickFind.java:11
↓ 3 callers
Method
visit
(EdgeWeightedGraph g, int v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/mstree/LazyPrimMST.java:41
↓ 3 callers
Method
visit
(EdgeWeightedGraph g, int v)
DataStructrue/Graph/LazyPrimMST.java:41
↓ 2 callers
Method
addEdge
@Description: Create an edge between w and v. @param v @param w
DataStructrue/Graph/Graph.java:22
↓ 2 callers
Method
arrToTree
(Integer[] arr, int low, int high)
Offer/ca/mcmaster/offer/OfferTree.java:38
↓ 2 callers
Method
binarySearch
(K k)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/BinarySearchST.java:7
↓ 2 callers
Method
connected
@Description: If v and w are connected. @param v @param w @return
DataStructrue/Graph/ConnectionComponent.java:10
↓ 2 callers
Method
delete
(V v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/three/bitree/BalancedBinaryTree.java:137
↓ 2 callers
Method
dequeueDog
()
Offer/ca/mcmaster/offer/Question3_7.java:32
↓ 2 callers
Method
dfs
(DigraphImpl g, int v)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/directed/DepthFirstPathDirectedGraph.java:44
↓ 2 callers
Method
dfs
(Digraph g, int s)
Algorithm(4th_Edition)/src/ca/mcmaster/chapter/four/graph/directed/DirectedDFS.java:21
↓ 2 callers
Method
dfs
(DigraphImpl g, int v)
DataStructrue/Graph/DepthFirstPathDirectedGraph.java:44
↓ 2 callers
Method
dfs
(Digraph g, int s)
DataStructrue/Graph/DirectedDFS.java:21
next →
1–100 of 771, ranked by callers