├── .gitignore ├── LICENSE ├── README.md ├── __init__.py ├── binary_search.py ├── binary_tree.py ├── merge_list.py ├── sort.py ├── target_offer ├── 003-数组中重复的数字 │ ├── duplicationInArrary2.py │ └── duplicationInArray.py ├── 004-二维数组中查找 │ └── findInPartiallySortedMatrix.py ├── 005-替换空格 │ └── ReplaceSpaces.py ├── 006-从尾到头打印链表 │ └── PrintListInReversedOrder.py ├── 007-重建二叉树 │ └── ConstructBinaryTree.py ├── 008-二叉树的下一个节点 │ └── NextNodeInBinaryTrees.py ├── 009-用两个栈实现队列(两个队列实现栈) │ ├── QueueWithTwoStacks.py │ └── StackWithTwoQueues.py ├── 010-斐波那契数列 │ ├── Fibonacci.py │ ├── 变态青蛙跳.py │ └── 青蛙跳.py ├── 011-旋转数组中最小数字 │ ├── MinNumberInRotatedArray.py │ └── 快速排序.py ├── 012-矩阵中的路径 │ └── StringPathInMatrix.py ├── 013-机器人运动范围 │ └── RobotMove.py ├── 014-剪绳子 │ ├── CuttingRope.py │ └── CuttingRope2.py ├── 015-二进制中一的个数 │ ├── NumberOf1InBinary.py │ ├── relevant1.py │ └── relevant2.py ├── 016-数值的整数次方 │ └── power.py ├── 017-打印从1到最大的n位数 │ └── print_max.py ├── 018-删除链表节点 │ ├── delete_duplicate_node.py │ └── delete_node.py ├── 019-正则表达式匹配 │ └── re_fullmatch.py ├── 020-表示数值的字符串 │ └── is_numeric.py ├── 021-使数组中奇数位于偶数前面 │ └── resort.py ├── 022-链表中倒数第k个节点 │ └── knode.py ├── 023-链表中环的入口节点 │ └── meeting_node.py ├── 024-反转链表 │ ├── reverse_node.py │ └── reverse_node2.py ├── 025-合并两个排序的链表 │ └── merge_sorted_node.py ├── 026-树的子结构 │ └── sub_structure_tree.py ├── 027-二叉树的镜像 │ └── mirror_of_binary_tree.py ├── 028-对称的二叉树 │ └── is_symmetrical.py ├── 029-顺时针打印矩阵 │ └── print_metrix.py ├── 030-包含min函数的栈 │ └── min_stack.py ├── 031-栈的压入弹出序列 │ └── stack_pop_push_order.py ├── 032_print_tree.py ├── 033_squence_bst.py ├── __init__.py └── singleton │ ├── __init__.py │ ├── singleton1_def.py │ ├── singleton1_use.py │ ├── singleton2.py │ ├── singleton3.py │ └── singleton4.py └── yang_matrix_search.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /binary_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/binary_search.py -------------------------------------------------------------------------------- /binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/binary_tree.py -------------------------------------------------------------------------------- /merge_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/merge_list.py -------------------------------------------------------------------------------- /sort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/sort.py -------------------------------------------------------------------------------- /target_offer/003-数组中重复的数字/duplicationInArrary2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/003-数组中重复的数字/duplicationInArrary2.py -------------------------------------------------------------------------------- /target_offer/003-数组中重复的数字/duplicationInArray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/003-数组中重复的数字/duplicationInArray.py -------------------------------------------------------------------------------- /target_offer/004-二维数组中查找/findInPartiallySortedMatrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/004-二维数组中查找/findInPartiallySortedMatrix.py -------------------------------------------------------------------------------- /target_offer/005-替换空格/ReplaceSpaces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/005-替换空格/ReplaceSpaces.py -------------------------------------------------------------------------------- /target_offer/006-从尾到头打印链表/PrintListInReversedOrder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/006-从尾到头打印链表/PrintListInReversedOrder.py -------------------------------------------------------------------------------- /target_offer/007-重建二叉树/ConstructBinaryTree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/007-重建二叉树/ConstructBinaryTree.py -------------------------------------------------------------------------------- /target_offer/008-二叉树的下一个节点/NextNodeInBinaryTrees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/008-二叉树的下一个节点/NextNodeInBinaryTrees.py -------------------------------------------------------------------------------- /target_offer/009-用两个栈实现队列(两个队列实现栈)/QueueWithTwoStacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/009-用两个栈实现队列(两个队列实现栈)/QueueWithTwoStacks.py -------------------------------------------------------------------------------- /target_offer/009-用两个栈实现队列(两个队列实现栈)/StackWithTwoQueues.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/009-用两个栈实现队列(两个队列实现栈)/StackWithTwoQueues.py -------------------------------------------------------------------------------- /target_offer/010-斐波那契数列/Fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/010-斐波那契数列/Fibonacci.py -------------------------------------------------------------------------------- /target_offer/010-斐波那契数列/变态青蛙跳.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/010-斐波那契数列/变态青蛙跳.py -------------------------------------------------------------------------------- /target_offer/010-斐波那契数列/青蛙跳.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/010-斐波那契数列/青蛙跳.py -------------------------------------------------------------------------------- /target_offer/011-旋转数组中最小数字/MinNumberInRotatedArray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/011-旋转数组中最小数字/MinNumberInRotatedArray.py -------------------------------------------------------------------------------- /target_offer/011-旋转数组中最小数字/快速排序.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/011-旋转数组中最小数字/快速排序.py -------------------------------------------------------------------------------- /target_offer/012-矩阵中的路径/StringPathInMatrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/012-矩阵中的路径/StringPathInMatrix.py -------------------------------------------------------------------------------- /target_offer/013-机器人运动范围/RobotMove.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/013-机器人运动范围/RobotMove.py -------------------------------------------------------------------------------- /target_offer/014-剪绳子/CuttingRope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/014-剪绳子/CuttingRope.py -------------------------------------------------------------------------------- /target_offer/014-剪绳子/CuttingRope2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/014-剪绳子/CuttingRope2.py -------------------------------------------------------------------------------- /target_offer/015-二进制中一的个数/NumberOf1InBinary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/015-二进制中一的个数/NumberOf1InBinary.py -------------------------------------------------------------------------------- /target_offer/015-二进制中一的个数/relevant1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/015-二进制中一的个数/relevant1.py -------------------------------------------------------------------------------- /target_offer/015-二进制中一的个数/relevant2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/015-二进制中一的个数/relevant2.py -------------------------------------------------------------------------------- /target_offer/016-数值的整数次方/power.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/016-数值的整数次方/power.py -------------------------------------------------------------------------------- /target_offer/017-打印从1到最大的n位数/print_max.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/017-打印从1到最大的n位数/print_max.py -------------------------------------------------------------------------------- /target_offer/018-删除链表节点/delete_duplicate_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/018-删除链表节点/delete_duplicate_node.py -------------------------------------------------------------------------------- /target_offer/018-删除链表节点/delete_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/018-删除链表节点/delete_node.py -------------------------------------------------------------------------------- /target_offer/019-正则表达式匹配/re_fullmatch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/019-正则表达式匹配/re_fullmatch.py -------------------------------------------------------------------------------- /target_offer/020-表示数值的字符串/is_numeric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/020-表示数值的字符串/is_numeric.py -------------------------------------------------------------------------------- /target_offer/021-使数组中奇数位于偶数前面/resort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/021-使数组中奇数位于偶数前面/resort.py -------------------------------------------------------------------------------- /target_offer/022-链表中倒数第k个节点/knode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/022-链表中倒数第k个节点/knode.py -------------------------------------------------------------------------------- /target_offer/023-链表中环的入口节点/meeting_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/023-链表中环的入口节点/meeting_node.py -------------------------------------------------------------------------------- /target_offer/024-反转链表/reverse_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/024-反转链表/reverse_node.py -------------------------------------------------------------------------------- /target_offer/024-反转链表/reverse_node2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/024-反转链表/reverse_node2.py -------------------------------------------------------------------------------- /target_offer/025-合并两个排序的链表/merge_sorted_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/025-合并两个排序的链表/merge_sorted_node.py -------------------------------------------------------------------------------- /target_offer/026-树的子结构/sub_structure_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/026-树的子结构/sub_structure_tree.py -------------------------------------------------------------------------------- /target_offer/027-二叉树的镜像/mirror_of_binary_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/027-二叉树的镜像/mirror_of_binary_tree.py -------------------------------------------------------------------------------- /target_offer/028-对称的二叉树/is_symmetrical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/028-对称的二叉树/is_symmetrical.py -------------------------------------------------------------------------------- /target_offer/029-顺时针打印矩阵/print_metrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/029-顺时针打印矩阵/print_metrix.py -------------------------------------------------------------------------------- /target_offer/030-包含min函数的栈/min_stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/030-包含min函数的栈/min_stack.py -------------------------------------------------------------------------------- /target_offer/031-栈的压入弹出序列/stack_pop_push_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/031-栈的压入弹出序列/stack_pop_push_order.py -------------------------------------------------------------------------------- /target_offer/032_print_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/032_print_tree.py -------------------------------------------------------------------------------- /target_offer/033_squence_bst.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/033_squence_bst.py -------------------------------------------------------------------------------- /target_offer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /target_offer/singleton/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /target_offer/singleton/singleton1_def.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/singleton/singleton1_def.py -------------------------------------------------------------------------------- /target_offer/singleton/singleton1_use.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/singleton/singleton1_use.py -------------------------------------------------------------------------------- /target_offer/singleton/singleton2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/singleton/singleton2.py -------------------------------------------------------------------------------- /target_offer/singleton/singleton3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/singleton/singleton3.py -------------------------------------------------------------------------------- /target_offer/singleton/singleton4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/target_offer/singleton/singleton4.py -------------------------------------------------------------------------------- /yang_matrix_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lesywix/oh-my-python/HEAD/yang_matrix_search.py --------------------------------------------------------------------------------