摘要: Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees ofeverynode never differ by more than 1.[解题思路]检查每个node是否是balanced,大数据集挂掉了 1 /** 2 * Definition for binary tree 3 * public class.. 阅读全文
posted @ 2013-08-16 21:28 feiling 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.Note:Givenm,nsatisfy the following condition:1 = m + 1 && count <= n){36 p.next = pre;37 }38 pre = p;39 ... 阅读全文
posted @ 2013-08-16 20:43 feiling 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1.解决win7 64位[ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序http://wwwu8.wap.blog.163.com/w2/blogDetail.do?hostID=www.u8&blogId=fks_087066084095089071083087095067072081082070081084083075093http://blog.163.com/misfans_001/blog/static/485107392012930105140602/2.本地IIS7.5调试出现500错误解决方法http://lml0414.love.blog.163. 阅读全文
posted @ 2013-08-16 15:12 feiling 阅读(239) 评论(0) 推荐(0) 编辑