Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JsonChao/Awesome-Algorithm-Study
/ functions
Functions
806 in github.com/JsonChao/Awesome-Algorithm-Study
⨍
Functions
806
◇
Types & classes
394
↓ 89 callers
Method
get
(K key)
data_struct_study/src/map/Map.java:11
↓ 72 callers
Method
add
(K key, V value)
data_struct_study/src/map/Map.java:5
↓ 60 callers
Method
size
()
data_struct_study/src/heap_and_priority_queue/Solution.java:197
↓ 44 callers
Method
compareTo
(Freq anOther)
data_struct_study/src/heap_and_priority_queue/Solution.java:335
↓ 40 callers
Method
put
(int key, int val)
data_struct_study/src/other_problem/Solution146.java:42
↓ 25 callers
Method
equals
(Object o)
data_struct_study/src/hash_table/Student.java:30
↓ 25 callers
Method
push
入栈 @param e 入栈的元素
data_struct_study/src/stack/Stack.java:15
↓ 19 callers
Method
remove
(K key)
data_struct_study/src/map/Map.java:7
↓ 14 callers
Method
getHeight
(Node node)
data_struct_study/src/avl/AVLTree.java:52
↓ 14 callers
Method
pop
出栈 @return e 出栈的元素
data_struct_study/src/stack/Stack.java:22
↓ 14 callers
Method
sort
(T[] nums)
data_struct_study/src/sort_problem/Sort.java:30
↓ 13 callers
Method
getSize
()
data_struct_study/src/heap_and_priority_queue/Solution.java:285
↓ 12 callers
Method
add
(E e)
data_struct_study/src/set/Set.java:5
↓ 12 callers
Method
isEmpty
当前栈是否为空 @return boolean 栈是否为空
data_struct_study/src/stack/Stack.java:43
↓ 12 callers
Method
readFile
(String filename, ArrayList<String> words)
data_struct_study/src/set/FileOperation.java:15
↓ 12 callers
Method
swap
(T[] a, int i, int j)
data_struct_study/src/sort_problem/Sort.java:36
↓ 11 callers
Method
getBalanceFactory
(Node node)
data_struct_study/src/avl/AVLTree.java:60
↓ 10 callers
Method
query
查询数组中指定位置的元素 @return 数组中的元素
data_struct_study/src/queue/Array.java:175
↓ 9 callers
Method
add
在链表指定位置添加元素 @param index 指定位置 @param e E
data_struct_study/src/LinkedList/LinkedList.java:89
↓ 8 callers
Method
contains
(K key)
data_struct_study/src/map/Map.java:9
↓ 8 callers
Method
less
(T v, T w)
data_struct_study/src/sort_problem/Sort.java:32
↓ 7 callers
Method
addLast
在链表最后一个位置添加元素 @param e E
data_struct_study/src/LinkedList/LinkedList.java:123
↓ 7 callers
Method
contains
(K key)
data_struct_study/src/avl/AVLTree.java:247
↓ 7 callers
Method
contains
(K key)
data_struct_study/src/avl/BST.java:74
↓ 7 callers
Method
merge
(E a, E b)
data_struct_study/src/segment_tree/Merger.java:5
↓ 7 callers
Method
peek
查看栈顶的元素 @return e 栈顶的元素
data_struct_study/src/stack/Stack.java:29
↓ 7 callers
Method
toString
()
data_struct_study/src/binary_search_tree/BST.java:472
↓ 6 callers
Method
add
(K key, V value)
data_struct_study/src/avl/AVLTree.java:121
↓ 6 callers
Method
get
(K key)
data_struct_study/src/avl/AVLTree.java:251
↓ 6 callers
Method
get
(K key)
data_struct_study/src/avl/BST.java:78
↓ 6 callers
Method
hash
(K k)
data_struct_study/src/hash_table/HashTable.java:28
↓ 6 callers
Method
isEmpty
判断链表是否为空 @return 链表是否为空
data_struct_study/src/LinkedList/LinkedList.java:79
↓ 6 callers
Method
isEmpty
()
data_struct_study/src/map/Map.java:17
↓ 6 callers
Method
isRed
判断当前节点是否是红色 @param node Node @return 当前节点是否是红色
data_struct_study/src/red_black_tree/RBTree.java:123
↓ 6 callers
Method
leftRotate
RR,为保持平衡,进行左旋转. 对节点 y 进行向左旋转操作,返回旋转后新的根节点 x。 y x / \ / \ T1 x 向左旋转 (y) y
data_struct_study/src/avl/AVLTree.java:187
↓ 6 callers
Method
rightRotate
LL,为保持平衡,进行右旋转。 对节点 y 进行向右旋转操作,返回旋转后新的根节点 x。 y x / \ / \ x T4 向右旋
data_struct_study/src/avl/AVLTree.java:217
↓ 6 callers
Method
swap
(int i, int j)
data_struct_study/src/heap_and_priority_queue/Solution.java:143
↓ 5 callers
Method
add
(K key, V value)
data_struct_study/src/red_black_tree/RBTree.java:201
↓ 5 callers
Method
add
(K key, V value)
data_struct_study/src/avl/BST.java:37
↓ 5 callers
Method
addLast
向数组最后添加一个元素 时间复杂度:O(1)
data_struct_study/src/queue/Array.java:97
↓ 5 callers
Method
addLast
向数组最后添加一个元素 时间复杂度:O(1)
data_struct_study/src/array/Array.java:115
↓ 5 callers
Method
contains
(K key)
data_struct_study/src/red_black_tree/RBTree.java:257
↓ 5 callers
Method
get
(K key)
data_struct_study/src/red_black_tree/RBTree.java:261
↓ 5 callers
Method
getSize
()
data_struct_study/src/map/Map.java:15
↓ 5 callers
Method
print
(TreeNode pRoot)
data_struct_study/src/binary_search_tree_problem/Solution_2.java:26
↓ 5 callers
Method
removeFirst
删除链表头部的元素 @return 链表头部的元素
data_struct_study/src/LinkedList/LinkedList.java:213
↓ 4 callers
Method
delete
删除数组中指定下标的元素 @return 被删除的元素
data_struct_study/src/array/Array.java:280
↓ 4 callers
Method
dfs
(char[][] board, int i, int j)
data_struct_study/src/backstracking_problem/Solution130.java:42
↓ 4 callers
Method
find
(int p)
data_struct_study/src/union_find/UnionFind3.java:35
↓ 4 callers
Method
find
(int p)
data_struct_study/src/union_find/UnionFind1.java:20
↓ 4 callers
Method
find
(int p)
data_struct_study/src/union_find/UnionFind6.java:41
↓ 4 callers
Method
find
(int p)
data_struct_study/src/union_find/UnionFind5.java:37
↓ 4 callers
Method
find
(int p)
data_struct_study/src/union_find/UnionFind4.java:35
↓ 4 callers
Method
find
(int p)
data_struct_study/src/union_find/UnionFind2.java:24
↓ 4 callers
Method
getCapacity
()
data_struct_study/src/queue/LoopQueue.java:29
↓ 4 callers
Method
getNode
(Node node, K key)
data_struct_study/src/red_black_tree/RBTree.java:244
↓ 4 callers
Method
getNode
(K k)
data_struct_study/src/map/LinkedListMap.java:43
↓ 4 callers
Method
getNode
(Node node, K key)
data_struct_study/src/map/BSTMap.java:68
↓ 4 callers
Method
getNode
(Node node, K key)
data_struct_study/src/avl/AVLTree.java:234
↓ 4 callers
Method
getNode
(Node node, K key)
data_struct_study/src/avl/BST.java:61
↓ 4 callers
Method
isEmpty
()
data_struct_study/src/heap_and_priority_queue/Solution.java:286
↓ 4 callers
Method
lengthOfLongestSubstring
(String s)
data_struct_study/src/array_problem/Solution3.java:15
↓ 4 callers
Method
parent
返回完全二叉树的数组表示中,一个节点的索引它所对应的父亲节点的索引 @param index 某一个节点的索引 @return 一个节点的索引它所对应的父亲节点的索引
data_struct_study/src/heap_and_priority_queue/MaxHeap.java:69
↓ 4 callers
Method
parent
(int index)
data_struct_study/src/heap_and_priority_queue/Solution.java:207
↓ 4 callers
Method
query
返回搜索区间 [queryL...queryR] 的值 @param queryL queryLeft @param queryR queryRight @return 搜索区间 [queryL...queryR] 的值
data_struct_study/src/segment_tree/SegmentTree.java:92
↓ 4 callers
Method
remove
删除 {@index} 处的元素 @param index 指定位置 @return E
data_struct_study/src/LinkedList/LinkedList.java:189
↓ 4 callers
Method
removeLast
删除链表尾部的元素 @return 链表尾部的元素
data_struct_study/src/LinkedList/LinkedList.java:222
↓ 4 callers
Method
set
(K key, V newValue)
data_struct_study/src/avl/AVLTree.java:257
↓ 4 callers
Method
set
(K key, V newValue)
data_struct_study/src/avl/BST.java:84
↓ 3 callers
Method
add
(E e)
data_struct_study/src/set/BSTSet.java:13
↓ 3 callers
Method
add
向数组指定位置添加一个元素 时间复杂度:O(n) 数组的添加操作的总体时间复杂度为 O(n),需要考虑最坏的情况
data_struct_study/src/array/Array.java:132
↓ 3 callers
Method
delete
删除数组中指定下标的元素 @return 被删除的元素
data_struct_study/src/queue/Array.java:262
↓ 3 callers
Method
findMax
看堆中的最大元素 @return 堆中的最大元素
data_struct_study/src/heap_and_priority_queue/MaxHeap.java:123
↓ 3 callers
Method
findMax
()
data_struct_study/src/heap_and_priority_queue/Solution.java:238
↓ 3 callers
Method
findTarget
(int[] nums, int a, int b, int target)
data_struct_study/src/array_problem/Solution33.java:34
↓ 3 callers
Method
get
(K key)
data_struct_study/src/map/LinkedListMap.java:92
↓ 3 callers
Method
get
(K key)
data_struct_study/src/map/BSTMap.java:166
↓ 3 callers
Method
getSize
获取栈元素的大小 @return int 栈元素的大小
data_struct_study/src/stack/Stack.java:36
↓ 3 callers
Method
getSize
()
data_struct_study/src/set/Set.java:11
↓ 3 callers
Method
getSize
()
data_struct_study/src/set/BSTSet.java:28
↓ 3 callers
Method
getSize
()
data_struct_study/src/trie/Trie.java:50
↓ 3 callers
Method
leftChild
在一个由完全二叉树表示的数组中,获取当前节点的左孩子的下标 @param index 当前节点的下标 @return 当前节点的左孩子的下标
data_struct_study/src/segment_tree/NumArray.java:176
↓ 3 callers
Method
leftChild
在一个由完全二叉树表示的数组中,获取当前节点的左孩子的下标 @param index 当前节点的下标 @return 当前节点的左孩子的下标
data_struct_study/src/segment_tree/SegmentTree.java:208
↓ 3 callers
Method
next
()
data_struct_study/src/other_problem/Solution_2.java:50
↓ 3 callers
Method
readFile
(String filename, ArrayList<String> words)
data_struct_study/src/avl/FileOperation.java:15
↓ 3 callers
Method
remove
(int index)
data_struct_study/src/heap_and_priority_queue/Solution.java:111
↓ 3 callers
Method
rightChild
在一个由完全二叉树表示的数组中,获取当前节点的右孩子的下标 @param index 当前节点的下标 @return 当前节点的右孩子的下标
data_struct_study/src/segment_tree/NumArray.java:186
↓ 3 callers
Method
rightChild
在一个由完全二叉树表示的数组中,获取当前节点的右孩子的下标 @param index 当前节点的下标 @return 当前节点的右孩子的下标
data_struct_study/src/segment_tree/SegmentTree.java:218
↓ 3 callers
Method
set
(K key, V newValue)
data_struct_study/src/red_black_tree/RBTree.java:267
↓ 3 callers
Method
set
(K key, V newValue)
data_struct_study/src/map/Map.java:13
↓ 3 callers
Method
siftDown
堆中元素的下沉 @param k 要下沉的元素 index 下标
data_struct_study/src/heap_and_priority_queue/MaxHeap.java:157
↓ 3 callers
Method
siftDown
(int k)
data_struct_study/src/heap_and_priority_queue/Solution.java:256
↓ 3 callers
Method
testQueue
(Queue<Integer> q, int opCount)
data_struct_study/src/queue/Main.java:10
↓ 3 callers
Method
toString
()
data_struct_study/src/heap_and_priority_queue/Solution.java:153
↓ 3 callers
Method
toString
()
data_struct_study/src/array/Array.java:314
↓ 2 callers
Method
add
添加元素 @param e E
data_struct_study/src/binary_search_tree/BST.java:115
↓ 2 callers
Method
add
向数组指定位置添加一个元素 时间复杂度:O(n) 数组的添加操作的总体时间复杂度为 O(n),需要考虑最坏的情况
data_struct_study/src/queue/Array.java:114
↓ 2 callers
Method
add
(int index, E e)
data_struct_study/src/heap_and_priority_queue/Solution.java:52
↓ 2 callers
Method
add
(E e)
data_struct_study/src/set/LinkedListSet.java:41
↓ 2 callers
Method
addFirst
在链表头结点添加元素 @param e E @return Node
data_struct_study/src/LinkedList/LinkedList.java:114
next →
1–100 of 806, ranked by callers