Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ functions
Functions
495 in github.com/Jack-Lee-Hiter/AlgorithmsByPython
⨍
Functions
495
◇
Types & classes
172
↓ 1 callers
Function
tripleToSparse
(triple, m, n)
Target Offer/multiSparse.py:25
↓ 1 callers
Method
twoSum
(self, nums, target)
leetcode/1. Two Sum.py:10
↓ 1 callers
Method
widthOfTree
(self, pRoot)
Target Offer/树的宽度.py:13
↓ 1 callers
Method
zigzagLevelOrder
(self, root)
leetcode/103. Binary Tree Zigzag Level Order Traversal.py:26
Method
Add
(self, num1, num2)
Target Offer/不用加减乘除做加法.py:23
Function
Dec2Bin
(decNumber)
Stack.py:83
Method
Deserialize
(self, s)
Target Offer/序列化二叉树.py:28
Method
FindContinuousSequence
(self, tsum)
Target Offer/和为s的连续整数序列.py:6
Method
FindFirstCommonNode
(self, pHead1, pHead2)
Target Offer/两个链表的第一个公共结点.py:11
Method
FindGreatestSumOfSubArray
(self, array)
Target Offer/连续子数组的最大和.py:9
Method
FindNumsAppearOnce
(self, array)
Target Offer/数组中只出现一次的数字.py:37
Method
FirstAppearingOnce
(self)
Target Offer/字符流中第一个不重复的字符.py:13
Method
GetMedian
(self, x)
Target Offer/数据流中的中位数.py:19
Method
GetNext
(self, pNode)
Target Offer/二叉树的下一个结点.py:13
Method
GetNext
(self, pNode)
Target Offer/二叉树的下一个结点.py:32
Method
Insert
(self, num)
Target Offer/数据流中的中位数.py:12
Method
Insert
(self, char)
Target Offer/字符流中第一个不重复的字符.py:20
Method
InversePairs
(self, data)
Target Offer/数组中的逆序对.py:8
Method
IsBalanced_Solution
(self, pRoot)
Target Offer/判断平衡二叉树.py:15
Method
IsBalanced_Solution
(self, pRoot)
Target Offer/判断平衡二叉树.py:34
Method
IsPopOrder
(self, pushV, popV)
Target Offer/栈的压入弹出序列.py:11
Method
KthNode
(self, pRoot, k)
Target Offer/二叉搜索树的第k个结点.py:29
Method
KthNode2
(self, pRoot, k)
Target Offer/二叉搜索树的第k个结点.py:37
Method
LastRemaining_Solution
(self, n, m)
Target Offer/约瑟夫环.py:8
Method
Mirror
(self, root)
Target Offer/二叉树的镜像.py:13
Method
MirrorNoRecursion
(self, root)
Target Offer/二叉树的镜像.py:46
Method
MoreThanHalfNum_Solution
(self, numbers)
Target Offer/数组中出现次数超过一半的数字.py:9
Method
Permutation
(self, ss)
Target Offer/字符串的排列和组合.py:11
Function
Print1ToMaxOfNDigits
(n)
Target Offer/打印1到最大的n位数.py:6
Method
PrintMatrix
(self, matrix)
Target Offer/顺时针打印矩阵.py:53
Method
PrintMinNumber2
(self, numbers)
Target Offer/把数组排成最小的数.py:21
Method
ReverseListRec
(self, pHead)
Target Offer/反转链表.py:28
Method
ReverseSentence
(self, s)
Target Offer/翻转单词顺序.py:12
Method
Serialize
(self, root)
Target Offer/序列化二叉树.py:12
Method
Sum_Solution2
(self, n)
Target Offer/求前n项和.py:21
Method
TreeDepth
(self, pRoot)
Target Offer/二叉树的深度.py:14
Method
TreeDepth2
(self, pRoot)
Target Offer/二叉树的深度.py:20
Method
__contains__
(self, key)
AVL.py:168
Method
__contains__
(self, key)
BinarySearchTree.py:103
Method
__delitem__
(self, key)
AVL.py:188
Method
__delitem__
(self, key)
BinarySearchTree.py:123
Method
__getitem__
(self, key)
AVL.py:165
Method
__getitem__
(self, key)
Hash.py:79
Method
__getitem__
(self, key)
BinarySearchTree.py:100
Method
__init__
(self)
BinaryHeap.py:3
Method
__init__
(self, key, val, left = None, right = None, parent = None)
AVL.py:3
Method
__init__
(self)
AVL.py:45
Method
__init__
(self)
Stack.py:5
Method
__init__
(self)
Hash.py:27
Method
__init__
(self)
Queue.py:2
Method
__init__
(self)
Queue.py:39
Method
__init__
(self, rootObj)
BinaryTree.py:2
Method
__init__
(self, initdata)
Lists.py:2
Method
__init__
(self)
Lists.py:25
Method
__init__
(self, key, val, left = None, right = None, parent = None)
BinarySearchTree.py:3
Method
__init__
(self)
BinarySearchTree.py:45
Method
__init__
(self, x)
Target Offer/递归和非递归实现二叉搜索树的三种遍历.py:7
Method
__init__
(self, aList)
Target Offer/分治法解决最近对问题.py:2
Method
__init__
(self, x=None)
Target Offer/在O(1)时间内删除链表结点.py:5
Method
__init__
(self, x)
Target Offer/对称的二叉树.py:8
Method
__init__
(self, x)
Target Offer/序列化二叉树.py:7
Method
__init__
(self, x)
Target Offer/按之字形顺序打印二叉树.py:8
Method
__init__
(self, x)
Target Offer/两个链表的第一个公共结点.py:7
Method
__init__
(self, x)
Target Offer/链表中环的入口结点.py:7
Method
__init__
(self, x)
Target Offer/二叉搜索树与双向链表.py:8
Method
__init__
(self)
Target Offer/数据流中的中位数.py:8
Method
__init__
(self, x)
Target Offer/合并两个排序的链表.py:6
Method
__init__
(self, x)
Target Offer/二叉树的深度.py:8
Method
__init__
(self, x)
Target Offer/树的子结构.py:8
Method
__init__
(self)
Target Offer/字符流中第一个不重复的字符.py:10
Method
__init__
(self)
Target Offer/包含min函数的栈.py:7
Method
__init__
(self, x)
Target Offer/树的宽度.py:8
Method
__init__
(self, x)
Target Offer/从上往下打印二叉树.py:11
Method
__init__
(self, x)
Target Offer/复杂链表的复制.py:8
Method
__init__
(self, x=None)
Target Offer/反向打印链表.py:5
Method
__init__
(self, x)
Target Offer/二叉树的镜像.py:7
Method
__init__
(self, x)
Target Offer/二叉搜索树的第k个结点.py:13
Method
__init__
(self)
Target Offer/二叉搜索树的第k个结点.py:19
Method
__init__
(self, x)
Target Offer/判断平衡二叉树.py:7
Method
__init__
(self)
Target Offer/判断平衡二叉树.py:12
Method
__init__
(self, x)
Target Offer/反转链表.py:8
Method
__init__
(self)
Target Offer/用两个栈实现队列.py:7
Method
__init__
(self, x)
Target Offer/二叉树中和为某一值的路径.py:7
Method
__init__
(self, x = 0)
Target Offer/Singleton.py:75
Method
__init__
(self, x)
Target Offer/二叉树的下一个结点.py:7
Method
__init__
(self, x)
Target Offer/重建二叉树.py:9
Method
__init__
(self, x)
Target Offer/删除链表中重复的结点.py:9
Method
__init__
(self, x)
Target Offer/二叉搜索树的最低公共祖先.py:7
Method
__init__
(self, x)
Target Offer/链表中倒数第k个结点.py:16
Method
__init__
(self)
Target Offer/用两个队列实现栈.py:6
Method
__init__
(self, val)
Target Offer/二叉树的最低公共祖先.py:6
Method
__init__
(self, x)
Target Offer/把二叉树打印成多行.py:7
Method
__init__
(self, x)
leetcode/21. Merge Two Sorted Lists.py:7
Method
__init__
(self, x)
leetcode/226. Invert Binary Tree.py:20
Method
__init__
(self, x)
leetcode/2. Add Two Numbers.py:7
Method
__init__
(self, x)
leetcode/24. Swap Nodes in Pairs.py:11
Method
__init__
(self, x)
leetcode/19. Remove Nth Node From End of List.py:8
Method
__init__
(self, x)
leetcode/106. Construct Binary Tree from Inorder and Postorder Traversal.py:7
Method
__init__
(self, x)
leetcode/83. Remove Duplicates from Sorted List.py:11
Method
__init__
(self, x)
leetcode/203. Remove Linked List Elements.py:9
← previous
next →
301–400 of 495, ranked by callers