![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
剑指offer题python版
Fear is not real
Stay hungry ,stay foolish.
展开
-
剑指offer:二维数组查找(python实现)
# -*- coding:utf-8 -*- class Solution: # array 二维列表 def Find(self, target, array): # write code here row = len(array) - 1 # array 的行数 col = len(array[0]) - 1 # array的...原创 2019-04-02 20:04:14 · 204 阅读 · 0 评论 -
剑指offer:树的子结构
题目描述 输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构) # -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = Non...原创 2019-04-17 10:31:25 · 78 阅读 · 0 评论