摘要: 1.题目描述 Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root 阅读全文
posted @ 2018-02-08 23:25 vlice 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the far 阅读全文
posted @ 2018-02-08 23:15 vlice 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 判断输入的树杈是否是镜像结构 2.题目分析 判断给出的树杈每一级对应的左节点与右节点是否相同 3 阅读全文
posted @ 2018-02-07 22:27 vlice 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurall 阅读全文
posted @ 2018-02-07 22:12 vlice 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given two binary strings, return their sum (also a binary string). 做二进制加法 2.题目分析 这个题偷懒了,直接进行了进制转换 3.解题思路 阅读全文
posted @ 2018-02-06 23:09 vlice 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any 阅读全文
posted @ 2018-02-06 23:03 vlice 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 1.题目描述 Given a sorted array, remove the duplicates in-placesuch that each element appear only once and return the new length.Do not allocate ex 阅读全文
posted @ 2018-02-05 21:45 vlice 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a sorted array, remove the duplicates in-placesuch that each element appear only once and return the new length.Do not allocate extra spa 阅读全文
posted @ 2018-02-05 21:43 vlice 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserte 阅读全文
posted @ 2018-02-05 21:16 vlice 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a sorted linked list, delete all duplicates such that each element appear only once. 给出一个链表,删除重复元素,确保每个元素只出现一次 2.题目分析 链表中的数字按一定顺序排好,所以只需要 阅读全文
posted @ 2018-02-04 21:15 vlice 阅读(76) 评论(0) 推荐(0) 编辑