LintCode
zjy997
这个作者很懒,什么都没留下…
展开
-
LintCode 578. 最近公共祖先 III (Lowest Common Ancestor III) Python题解
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes. The lowest common ancestor is the node with largest depth which is the ancestor of both nodes. Ret...原创 2020-03-28 00:35:34 · 217 阅读 · 0 评论 -
LintCode 137 克隆图(Clone Graph) Python题解
描述 Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors. Nodes are labeled uniquely. You need to return a deep copied graph, which has the same structure ...原创 2020-03-05 01:17:54 · 186 阅读 · 0 评论 -
LintCode 615 课程表 Python题解
描述 中文English There are a total of n courses you have to take, labeled from0ton - 1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is ex...原创 2020-02-27 17:30:03 · 158 阅读 · 0 评论 -
LintCode 13. 字符串查找
题目链接:https://www.lintcode.com/problem/implement-strstr/description?_from=ladder&&fromId=1 这是一道简单题。 但是由于自己基础薄弱,还是提交了好些次。 描述 For a given source string and a target string, you should output ...原创 2020-01-28 12:27:55 · 193 阅读 · 0 评论