recursion

Same Tree(100)

Same Tree Given two binary trees, write a function to check if they are equal orTwo binary trees are considered equal if they are structurallyand the nodes have the same value.思路: recursio

[LeetCode] Remove LinkedList Elements

ProblemRemove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --> 3 --> 4 --> 5Note链表基本的删除操作,最好掌

306. Additive Number

题目:Additive number is a string whose digits can form additive sequence.A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent nu