
LeetCode
文章平均质量分 54
小菜鸟_爱树蛙
这个作者很懒,什么都没留下…
展开
-
LeetCode--------Merge Two Sorted Lists
【题目】 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.【答案】1.解法一:最麻烦的有两点:1)l1、l2理解成数据没有意义的头结点还原创 2015-01-07 15:51:45 · 485 阅读 · 0 评论 -
Same Tree
【题目】 Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value.原创 2015-01-02 21:12:58 · 489 阅读 · 0 评论