08 2017 档案

摘要:Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2017-08-24 22:45 QuestCode 阅读(147) 评论(0) 推荐(0)
摘要:Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm to us 阅读全文
posted @ 2017-08-24 22:44 QuestCode 阅读(125) 评论(0) 推荐(0)
摘要: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 阅读(127) 评论(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 阅读(110) 评论(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 阅读(109) 评论(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 阅读(159) 评论(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 阅读(160) 评论(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 阅读(1133) 评论(0) 推荐(0)