上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: 1. 对于某一个知识点,如果很熟悉,写进blog中.blog中记载的有:重要知识/易忘点/常用需要查找的资料/里程点2. 定期更新学习点,不停的从资讯中得到有用信息,更新知识库3. 算法题要写模板,特别是经典问题4. 针对问题,要先有自己的想法, 再想办法解决. 最后看别人的解法,是否比自己的好5.... 阅读全文
posted @ 2013-12-23 22:33 海滨银枪小霸王 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 常用YUV转RGB java代码public class YuvToRGB { private static int R = 0; private static int G = 1; private static int B = 2; //I420是yuv420格式,是3个plane,排列方式为(Y... 阅读全文
posted @ 2013-12-23 21:47 海滨银枪小霸王 阅读(430) 评论(0) 推荐(0) 编辑
摘要: Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No... 阅读全文
posted @ 2013-12-22 10:34 海滨银枪小霸王 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.一个小错误... 阅读全文
posted @ 2013-12-22 09:51 海滨银枪小霸王 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam... 阅读全文
posted @ 2013-12-22 07:58 海滨银枪小霸王 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol... 阅读全文
posted @ 2013-12-22 07:12 海滨银枪小霸王 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目描述:输入一个链表,从尾到头打印链表每个节点的值。输入:每个输入文件仅包含一组测试样例。每一组测试案例包含多行,每行一个大于0的整数,代表一个链表的节点。第一行是链表第一个节点的值,依次类推。当输入到-1时代表链表输入完毕。-1本身不属于链表。输出:对应每个测试案例,以从尾到头的顺序输出链表每个... 阅读全文
posted @ 2013-12-21 01:35 海滨银枪小霸王 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 秒内存限制:128 兆特殊判题:否提交:722解决:263题目描述:用两个栈来实现一个队列,完成队列的Push和Pop操作。队列中的元素为int类型。输入:每个输入文件包含一个测试样例。对于每个测试样例,第一行输入一个n(1=0)2. POP 从队列中pop一个数。输出:对应每个测试案例,打印所... 阅读全文
posted @ 2013-12-21 01:02 海滨银枪小霸王 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; struct LinkNode{ int val; LinkNode *next; LinkNode(int x):val(x),next(NULL){};}; LinkNode *initList(int n){ i... 阅读全文
posted @ 2013-12-19 21:57 海滨银枪小霸王 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 之前立帖挖坑搞定leetcode, 现在再挖一坑, 尝试剑指offer两者都是针对找工作的应用习题, 特别注重编程算法之类, 但大都考察基础, 重中之重.主要阵地:http://ac.jobdu.com/hhtproblems.php已开栏 sword_offer应该时常运用. 阅读全文
posted @ 2013-12-19 20:25 海滨银枪小霸王 阅读(99) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页