摘要: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 阅读全文
posted @ 2017-08-24 22:42 QuestCode 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F 阅读全文
posted @ 2017-08-24 22:39 QuestCode 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2017-08-18 23:27 QuestCode 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 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 dept 阅读全文
posted @ 2017-08-18 22:29 QuestCode 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1、内存泄漏定义 sun官方解释:Another common problem with explicit memory management is space leaks. These leaks occur when memory is allocated and no longer refer 阅读全文
posted @ 2017-08-18 00:04 QuestCode 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 阅读全文
posted @ 2017-08-17 22:53 QuestCode 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1、安装nginx依赖包 yum install gcc gcc-c++ openssl-devel zlib-devel pcre pcre-devel yamdi 2.下载解压nginx_mod_h264_streaming,让nginx支持flv,mp4流播放 wget http://h264 阅读全文
posted @ 2017-08-17 22:06 QuestCode 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: Quartz的job中注入的services接口为空的解决办法 阅读全文
posted @ 2017-04-12 18:25 QuestCode 阅读(408) 评论(0) 推荐(0) 编辑