码迷,mamicode.com
首页 > 2014年12月25日 > 全部分享
Android手势监听(GestureDetector类)
public class GestureTest extends Activity implements OnClickListener, OnGestureListener { // 定义手势检测器实例 GestureDetector detector; @Override public void onCreate(Bundle savedInstanceState) { supe...
分类:移动开发   时间:2014-12-25 22:11:34    阅读次数:150
LeetCode[Tree]: Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 这个问题比较简单,用递归是个不错的选择,我的C++代码实现如下: class Solution { public: TreeNode *sortedArrayToBST(vecto...
分类:其他好文   时间:2014-12-25 22:09:34    阅读次数:241
Android NDK开发(一)——环境搭建
Android下的NDK开发是Android开发中不可或缺的一部分,通过Google提供的NDK套件,我们可以使用JNI这座桥梁在Java和C/C++之间建立联系(互相调用)。那么,为什么在Android开发中需要了解NDK开发呢?诚然,这些原因有很多说法,在我总结来是这样的。C/C++是比Java还要古老的编程语言,由于其古老的特性,导致早期有很多优秀的类库出现,譬如处理视频编解码的FFMPEG类库,这些复杂的类库早就被C/C++编写过,我们在处理视频编解码的时候没必要重复“造轮子”,所以能直接拿来用的就...
分类:移动开发   时间:2014-12-25 22:11:52    阅读次数:296
C 数字1、2、3、4用不全相等的数字组成的三位数及其个数
# include int main() { int i,j,k; int x=0,y=0,z=0; for(i=1;i { for(j=1;j { for(k=1;k { if(!(i==j&&j==k&&i==k)) //if(i!=j&&j!=k&&i!=k)注意这段代码的表示的意思! { printf("%d%d%d  ",i,j,k); x++; } ...
分类:其他好文   时间:2014-12-25 22:10:52    阅读次数:145
图像相似度计算之哈希值方法
图像相似度计算之哈希值方法!...
分类:其他好文   时间:2014-12-25 22:10:31    阅读次数:291
Vs2013在Linux开发中的应用(22):模块加载
快乐虾http://blog.csdn.net/lights_joy/欢迎转载,但请保留作者信息当gdb检测到模块的加载时会输出:=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group...
分类:系统相关   时间:2014-12-25 22:11:14    阅读次数:249
android studio添加support.
在build.gradle添加 compile 'com.android.support:appcompat-v7:20.+' 其中20为你的目标版本号...
分类:移动开发   时间:2014-12-25 22:09:02    阅读次数:188
(每日算法)Leetcode --- Maximal Rectangle(最大子矩阵)
求在0-1矩阵中找出面积最大的全1矩阵 Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 首先,想使用遍历两次的暴力方法解决是不靠谱的,先打消这个念头。 这道题的解法灵感来自于 Larg...
分类:编程语言   时间:2014-12-25 22:07:52    阅读次数:259
Partition List leetcode
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of...
分类:其他好文   时间:2014-12-25 22:10:27    阅读次数:180
ZOJ3582---Back to the Past
Back to the Past Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge Recently poet Mr. po encountered a serious problem, rumor said some of his early poems are written by oth...
分类:其他好文   时间:2014-12-25 22:07:37    阅读次数:250
[LeetCode]Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet"...
分类:其他好文   时间:2014-12-25 22:07:37    阅读次数:330
用户体验设计
用户体验设计...
分类:其他好文   时间:2014-12-25 22:07:27    阅读次数:156
HEVC—编码树结构
HEVC中有CU,TU,PU概念就不多说了,这里主要说一下在具体实现时他们之间大小的关系 在HEVC中 亮度 CU 最大为 64*64,最小为8*8    色度CU最大为 32*32,最小为4*4 在编码配置文档之中可以配置初始的LCU的大小也就是初始根节点CTU的大小 假设这里为64*64 在确定是否进行劈分的过程中利用一个CU_split_flag进行标识,同时结合四叉树的深度信息。获...
分类:其他好文   时间:2014-12-25 22:06:59    阅读次数:339
PHP中数组合并的方法
1. array array_merge(array $array1[, array $...]) 合并一个或多个数组的元素,将后面的元素追加到前面的元素后面,并返回结果数组。 当参数只有一个数组并且该数组的key为numeric时,该数组的key会被从0开始重新计算。 如果数组的key是字符串,则当key出现重复时,后面的值会覆盖前面的值。 如果数组的key是整数时,则当key出...
分类:编程语言   时间:2014-12-25 22:08:17    阅读次数:182
python创建快捷方式
有了pywin32是不是就能在Windows上为所欲为了? 是的。...
分类:编程语言   时间:2014-12-25 22:08:34    阅读次数:425
如何使用MATLAB语言读写YUV文件
本文详细介绍了如何使用MATLAB进行读写YUV文件,并给出了详细的代码及其分析。...
分类:编程语言   时间:2014-12-25 22:09:02    阅读次数:207
Merge Two Sorted Lists leetcode
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 题目意思为合并两个链表,不能用额外的空间(新链由两个链拼接而成) 思路: 比较简单,直接定义两个指针,分别...
分类:其他好文   时间:2014-12-25 22:09:16    阅读次数:186
1854条   上一页 1 ... 7 8 9 10 11 12 13 ... 110 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!