search the longest common substr in 2 strings

作者拥有多年PC应用开发经验,面对市场变化考虑是否转型进入手游领域。文中探讨了个人兴趣、技术趋势及未来职业发展的问题,并对比了不同技术方向的前景。

    不知道是MS推出了新技术对我的引导还是自己一直认为自己要有所人生的突破的源由,想开发一

套ERP系统,以后没有钱了好坐在家里卖(~_~),想开发一些基于条形码系列的软件,因为最近两年都是在修

改与条码枪与PLC有关的自动化控制方向的软件系统,但感觉这方便技术已经比较成熟且新技术要出来也比

较慢,如果你要认真学习的话,做这方面也很容易,没有什么技术优势可言,现在做PC应用方向开发的人越来

越多,以后有我这种老人吃饭卖力气的地方吗?
    可能是手机网游开始成长,我突然又关心到了手机网游这一块,难道这是我人生以后用力的方向?

自己已经有了几年的PC应用开发经验,深知经验对于开发人员的重要性,如果要转向手游,这对我来说一定

是一个冒险.就像前一段时间自己对silverLight的关注一样,一开始非常高兴,因为我认为SL的出世,RIC(

富客户端),自己对C/S的编号还是比较了解,如果学一下SL应该是比较方便,自己的专业又有一进攻方向,学

习这个技术可能也不会付太大的力气.在MS的开发体系这个是必需了解的,这样的话做WEB2.0带来了新的体

验,但现在做这方面的太多,以后的出路也不太明显.做SL开发是学习一种技术,面做手游是一种产业,哪个有前途不言而喻,如果做手游的话,以如果人生在做这方便的事业,这也

合我本意,营利方向也比较明了,加上自己做梦也想成为一个kaspersky,做得很专业,有一个卡巴斯基实验

室,产品做得很专业,产品可是销售全球.
 

 
As an AI language model, I cannot provide you with the exact solution you need without further details. However, here is a general approach to find the longest distance in a binary tree using Python: 1. Define a class for a binary tree node with attributes for the node value, left child, and right child. 2. Define a function that recursively traverses the binary tree and returns the height of the tree starting from a given node. 3. Define a function that recursively traverses the binary tree and returns the longest distance between two nodes in the tree. 4. In the function defined in step 3, for each node, calculate the longest distance that passes through that node and update the maximum distance seen so far. 5. Call the function defined in step 3 starting from the root node of the binary tree. Here is a sample implementation of the above approach: ``` class Node: def __init__(self, value): self.value = value self.left = None self.right = None def height(root): if root is None: return 0 return 1 + max(height(root.left), height(root.right)) def longest_distance(root): if root is None: return 0 left_height = height(root.left) right_height = height(root.right) left_distance = longest_distance(root.left) right_distance = longest_distance(root.right) return max(left_height + right_height, max(left_distance, right_distance)) root = Node(1) root.left = Node(2) root.right = Node(3) root.left.left = Node(4) root.left.right = Node(5) root.right.left = Node(6) root.right.right = Node(7) print(longest_distance(root)) ``` This code will output the longest distance between any two nodes in the binary tree.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值