- 博客(11)
- 资源 (2)
- 收藏
- 关注
原创 LeetCodes——Best Time to Buy and Sell Stock【系列问题】
Best Time to Buy and Sell Stock系列问题在面试过程中经常遇到,这里将下面几种问题做一个总结。 1.121 Best Time to Buy and Sell Stock 2.122 Best Time to Buy and Sell Stock II 3.123 Best Time to Buy and Sell St...
2018-04-17 15:24:11 3621
原创 LeetCodes——79. Word Search【DFS】
题目要求 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or v...
2018-04-08 17:34:10 186
原创 LeetCodes——81. Search in Rotated Sorted Array II【binary search】
题目要求 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Write a function to determine if a given...
2018-04-08 17:03:59 154
原创 LeetCodes——60. Permutation Sequence【排列问题】
题目要求 The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, We get the following sequence (ie, for n = 3): “123” “132...
2018-04-08 16:50:32 171
原创 LeetCodes——31. Next Permutation
题目要求 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest...
2018-04-03 21:38:56 135
原创 LeetCodes——49. Group Anagrams【MAP】
题目要求 Given an array of strings, group anagrams together. For example, given: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], Return: [ [“ate”, “eat”,”tea”], [“nat”,”tan”], [“b...
2018-04-03 21:26:52 128
原创 LeetCodes——55. Jump Game【DP】
题目要求 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. De...
2018-04-03 20:57:28 194
原创 LeetCodes——56. Merge Intervals
题目要求 Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18] return [1,6],[8,10],[15,18].下面是给定数对interval的结构体,需要将有重叠部分的数对合并起来,将合并...
2018-04-03 20:43:37 157
原创 LeetCodes——695. Max Area of Island【BFS】
题目要求Given a non-empty 2D array grid of 0’s and 1’s, an island is a group of 1’s (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are ...
2018-03-29 17:15:43 202
原创 YUV格式学习笔记
YUV格式学习笔记参考博客:图文详解YUV420数据格式 视频编解码学习(1):YUV格式学习 YUV格式详解YUV(亦称YCrCb)是被欧洲电视系统所采用的一种颜色编码方法(属于PAL),Y代表亮度,uv代表色差,u和v是构成彩色的两个分量。采用YUV色彩空间的重要性是它的亮度信号Y和色度信号U、V是分离的。如果只有 Y信号分量而没有U、V信号分量,那么这样表示的图像就是黑白灰度图像。在D
2016-02-22 13:12:24 473
原创 用nginx搭建http/rtmp/hls协议的MP4/FLV流媒体服务器
前前后后搭建了两三个星期,终于可以告一段落,nginx实在是有点强大。写一篇笔记来记录一下这个过程中的思路和解决方案。一.搭建nginx平台:基本是基于http://blog.csdn.net/xiaoliouc/article/details/8363984 一步步安装nginx搭建流媒体服务器 这篇博客来搭建。我的ubuntu是14.04LTS。各种包的版本是:nginx-1.
2016-01-06 11:56:36 9005
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人