原题
https://leetcode.com/problems/symmetric-tree/
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
思路
代码
1 | # Definition for a binary tree node. |
https://leetcode.com/problems/symmetric-tree/
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
1 | # Definition for a binary tree node. |
Update your browser to view this website correctly. Update my browser now
原题 https://leetcode.com/problems/remove-nth-node-from-end-of-list/ Given a linked list, remove the n-th node from the end of list and return its head.
原题 https://leetcode.com/problems/next-permutation/ Implement next permutation, which rearranges numbers into the lexicographically next greater permut
原题 https://leetcode.com/problems/generate-parentheses/ Given n pairs of parentheses, write a function to generate all combinations of well-formed pare
原题 https://leetcode.com/problems/two-sum/ Given an array of integers, return indices of the two numbers such that they add up to a specific target. Yo
原题 https://leetcode.com/problems/symmetric-tree/ Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 思路递归判断
这里是嘉维小站,我是王嘉维。在大学时候偶然接触到了腾讯云学生一元优惠主机,便心痒想建一个属于自己的网站,于是在域名主机一条龙以后,这个网站就诞生了。但2016年建站以后随着三分钟热度过去,这个站点也慢慢荒废了。2018年大学毕业,随着学生身份结束,腾讯云立马结束了我的一元主机优惠权限(这头刚刚参加完
Be the first person to leave a comment!