- 博客(18)
- 资源 (4)
- 收藏
- 关注
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a pali...
2013-07-29 10:34:04 80
Surrounded Regions
Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region . For example, X X X X X O O X X X ...
2013-07-28 20:11:31 96
原创 IOS媒体层
转自:http://wd397.blog.163.com/blog/static/60860635201281683054319/ 媒体层包含图形技术、音频技术和视频技术,这些技术相互结合就可为移动设备带来最好的多媒体体验,更重要的是,它们让创建外观音效俱佳的应用程序变得更加容易。您可以使用iOS的高级框架更快速地创建高级的图形和动画,也可以通过底层框架访问必要的工具,从而以某种特定的方...
2013-07-28 15:18:21 97
原创 nginx上搭建HLS流媒体服务器
转自:http://blog.csdn.net/cjsafty/article/details/7922849 简介:HTTP Live Streaming(缩写是 HLS)是一个由苹果公司提出的基于HTTP的流媒体 网络传输协议。 是苹果公司QuickTime X和iPhone软件系统的一部分。它的工作原理是把整个流分成一个个小的基于HTTP 的文件来下载,每次只下载一些。当媒体流...
2013-07-28 13:31:20 110
Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNo...
2013-07-27 21:11:25 101
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. // construct tree from preorder and inorder class...
2013-07-27 13:58:36 83
原创 Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s
转自:http://witcheryne.iteye.com/blog/1734706 In the posts, I will show how to use ffmpeg on iOS. This posts is a document for this project: https://github.com/lvjian700/ffmpegc-demo ...
2013-07-23 17:03:40 115
Add Binary
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". class Solution { public: string addBinary(string a, string b) { if(a.s...
2013-07-23 00:59:28 115
Best Time to Buy and Sell Stock I II III(C++实现)
// Best Time to Buy and Sell Stock I class Solution { public: int maxProfit(vector<int> &prices) { if(prices.size() < 2) return 0; int mj = 0, mjIdx = 0; ...
2013-07-20 20:10:41 115
UITableView 修改编辑模式下的切图
把以下代码放在点解 “编辑” 按钮时触发的方法中。 dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.001); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ for (UIView *sv in ...
2013-07-14 21:03:42 103
Merge Sort (C++ 实现)
// Type your C++ code and click the "Run Code" button! // Your code output will be shown on the left. // Click on the "Show input" button to enter input data to be read (from stdin). #include &...
2013-07-14 16:01:31 317
Subsets II(C++实现)
Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain dup...
2013-07-13 23:16:54 114
subsets(C++实现)
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For exampl...
2013-07-13 23:15:47 356
Combinations(c++实现)
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [...
2013-07-10 16:52:29 503
Combination Sum II(c++实现)
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combin...
2013-07-10 16:32:47 142
Combination Sum(c++实现)
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C unlimited number...
2013-07-10 16:20:46 129
原创 iOS平台UDID方案比较
转自:http://www.cocoachina.com/bbs/read.php?tid=144524 苹果在iOS6中禁用了[UIDevice uniqueIdentifier],在iOS7中又把mac地址的获取给堵上了。没办法,毕竟人家是老大,说不让你用,你也没办法。在这边总结一下现有的一部分UDID获取方法(有苹果推荐的,也有第三方的),目的在于抛砖,没有切实的说明哪种方法...
2013-07-09 20:27:30 356
转载 机器学习——深度学习(Deep Learning)
转自:http://blog.csdn.net/abcjennifer/article/details/7826917 Deep Learning是机器学习中一个非常接近AI的领域,其动机在于建立、模拟人脑进行分析学习的神经网络,最近研究了机器学习中一些深度学习的相关知识,本文给出一些很有用的资料和心得。 Key Words:有监督学习与无监督学习,分类
2013-07-01 21:40:55 727
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人