1)spark把数据写入到hbase需要用到:PairRddFunctions的saveAsHadoopDataset方法,这里用到了implicit conversion,需要我们引入import org.apache.spark.SparkContext._2)spark写入hbase,实质是借...
分类:
其他好文 时间:
2015-06-23 14:58:59
阅读次数:
516
key points:1 conversion between different types2 overflow 会有比较多corner cases需要考虑3 iterationrelated questions:Median of Two Sorted ArraysReverse Integer...
分类:
其他好文 时间:
2015-06-23 06:15:12
阅读次数:
150
#6 ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern in a fixed font for better legibility)...
分类:
其他好文 时间:
2015-06-22 22:25:11
阅读次数:
181
android 项目在eclipse 出现Unable to execute dex: Multiple dex files define Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files de...
分类:
移动开发 时间:
2015-06-21 19:45:33
阅读次数:
168
原题链接:https://leetcode.com/problems/zigzag-conversion/
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern i...
分类:
其他好文 时间:
2015-06-21 14:28:48
阅读次数:
153
passport.baidu.com/?business&un=%E5%A4%A7%E8%BF%9E%E5%B0%8F%E5%A7%90%E5%93%AA%E8%A3%A1%E5%8F%AB#0passport.baidu.com/?business&un=%E5%93%AA%E6%89%BE%E9...
分类:
移动开发 时间:
2015-06-20 06:59:49
阅读次数:
221
解题思路:
因为行数为变量,因此我们需要找到每一行的规律。例如:当行数numRows=4时,则ZigZag应该按下列方式排列
不难看出,满数为4的列之间的步数为4,实际上,此时步的规律为:step=2*numRows-2 =2*4-2=6
0 6 12 18
1 5 7 11 13 17 19
2 4 8 10 14 16 20
3 9 15 21
接着我们看非满数的列,不难看出此类...
分类:
其他好文 时间:
2015-06-18 19:54:46
阅读次数:
139
转载:http://blog.csdn.net/aaa2832/article/details/194196791内存泄漏的排查方法Dalvik Debug Monitor Server (DDMS)是ADT插件的一部分,其中有两项功能可用于内存检查:·heap查看堆的分配情况·allocation...
分类:
其他好文 时间:
2015-06-18 13:00:02
阅读次数:
165
Android 4.0|-- Makefile|-- bionic (bionic C库)|-- bootable (启动引导相关代码)|-- build (存放系统编译规则及generic等基础开发包配置)|-- cts (Android兼容性测试套件标准)|-- dalvik (dalvik J...
分类:
移动开发 时间:
2015-06-16 22:33:34
阅读次数:
164
1。Android dvm的进程和Linux的进程, 应用程序的进程是否为同一个概念DVM指dalivk的虚拟机。每一个Android应用程序都在它自己的进程中运行,都拥有一个独立的Dalvik虚拟机实例。而每一个DVM都是在Linux 中的一个进程,所以说可以认为是同一个概念。2.sim卡的EF 文件有何作用sim卡的文件系统有自己规范,主要是为了和手机通讯,sim本身可以有自己的操作系统,EF就...
分类:
移动开发 时间:
2015-06-14 09:38:31
阅读次数:
139