Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:
其他好文 时间:
2014-06-21 06:40:07
阅读次数:
172
题目:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.个人思路:1、选...
分类:
其他好文 时间:
2014-06-21 06:37:00
阅读次数:
183
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2014-06-21 06:31:43
阅读次数:
265
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.说明:平衡二叉搜索树,即任何结点的左子树和右子树高度最多相差1的二叉搜索树。二叉搜索树:二叉查找树(Bin...
分类:
其他好文 时间:
2014-06-21 00:47:08
阅读次数:
221
Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,2,3]...
分类:
其他好文 时间:
2014-06-20 19:37:40
阅读次数:
136
题目:Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmet...
分类:
其他好文 时间:
2014-06-20 18:44:41
阅读次数:
279
一、排序 select * from employees order by name; 字符型默认字符顺序(也就是说z永远比a大),不管大小写;如果想按编码值排序(也就是说小写永远大于大写),则使用 select * from employees order by binary name;二、...
分类:
数据库 时间:
2014-06-20 18:00:44
阅读次数:
278
Every now and then, I come across various newbies Java developers who are found to get stuck with some of the following common exceptions where I need...
分类:
编程语言 时间:
2014-06-20 17:19:52
阅读次数:
325
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-06-20 15:30:19
阅读次数:
227
1. loadsloads [ off ]通过串口,下载S-Rec文件到off位置loads命令可以通过串口线下载S-Record格式文件。2. loadbloadb [ off ] [ baud ]通过串口,以baud速率,下载binary到off位置(即:kermit protocol)load...
分类:
数据库 时间:
2014-06-20 14:11:51
阅读次数:
607