上一页 1 ··· 6 7 8 9 10 11 下一页

2014年8月19日

Linux Shell 学习笔记

摘要: 2.return与exit区别return 表示从被调函数返回到主调函数继续执行,返回时可附带一个返回值,由return后面的参数指定,当然如果是在主函数main, 自然也就结束当前进程了,如果不是,那就是退回上一层调用。exit(0)表示正常退出执行程序,如果加其它的数值:1,2,....可以表示... 阅读全文

posted @ 2014-08-19 10:46 BYRHuangQiang 阅读(711) 评论(0) 推荐(0) 编辑

2014年7月10日

HBase学习笔记之HFile格式

摘要: 主要看Roger的文档,这里作为文档的补充HFile的格式-HFile的基本结构Trailer通过指针找到Meta index、Data index、File info。Meta index保存每一个元数据在HFile中的位置、大小、元数据的key值。Data index保存每一个数据块在HFile... 阅读全文

posted @ 2014-07-10 10:43 BYRHuangQiang 阅读(2692) 评论(0) 推荐(0) 编辑

2014年7月4日

Storm on Yarn 安装配置

摘要: 1.背景知识在不修改Storm任何源代码的情况下,让Storm运行在YARN上,最简单的实现方法是将Storm的各个服务组件(包括Nimbus和Supervisor),作为单独的任务运行在YARN上,当前比较有名的“Storm On YARN”实现是由yahoo!开源的,它基本实现了上述描述的功能,... 阅读全文

posted @ 2014-07-04 16:02 BYRHuangQiang 阅读(2029) 评论(0) 推荐(0) 编辑

2014年6月18日

单链表反转的2种常见方法

摘要: 移步看单链表反转总结篇 阅读全文

posted @ 2014-06-18 14:59 BYRHuangQiang 阅读(146) 评论(0) 推荐(0) 编辑

LeetCode解题报告:Reorder List

摘要: Reorder ListGiven 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' val... 阅读全文

posted @ 2014-06-18 14:41 BYRHuangQiang 阅读(227) 评论(0) 推荐(0) 编辑

2014年6月16日

LeetCode解题报告:Binary Tree Postorder Traversal

摘要: Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No... 阅读全文

posted @ 2014-06-16 14:14 BYRHuangQiang 阅读(285) 评论(0) 推荐(0) 编辑

2014年6月13日

LeetCode解题报告:LRU Cache

摘要: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get... 阅读全文

posted @ 2014-06-13 16:27 BYRHuangQiang 阅读(534) 评论(0) 推荐(0) 编辑

2014年6月12日

LeetCode解题报告:Insertion Sort List

摘要: Insertion Sort ListSort a linked list using insertion sort. leetcode subject思路:标准的插入排序。考察一下链表的操作。对链表进行插入排序的正确方法是:新建一个头节点,遍历原来的链表,对原链表的每个节点找到新链表中适合插入位置... 阅读全文

posted @ 2014-06-12 16:38 BYRHuangQiang 阅读(525) 评论(0) 推荐(0) 编辑

2014年4月9日

Java编程杂记

摘要: 13 Java Date 日期的使用方法注意: 月份的设定要-1。0-代表1月;1代表2月,11代表12月。 Calendar cal = new GregorianCalendar(2013,00,11,11,11,0); java.text.SimpleDateFormat format =... 阅读全文

posted @ 2014-04-09 14:27 BYRHuangQiang 阅读(281) 评论(0) 推荐(0) 编辑

如何对一个不断更新的HashMap进行排序

摘要: 如何对一个不断更新的HashMap进行排序?解答:等到HashMap更新稳定后,用ArrayList包装进行排序。或者自己写一个可以类似HashMap的有序Map,每次更新的时候都进行排序,构建自己的put方法,并且可以排序。大屏项目中采用的排序: Map itemCount = new Ha... 阅读全文

posted @ 2014-04-09 13:54 BYRHuangQiang 阅读(344) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 下一页

导航