- 博客(11)
- 资源 (7)
- 收藏
- 关注
原创 Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo
2015-11-29 15:53:39 388
转载 redis持久化
官方文章http://redis.io/topics/persistenceredis持久化主要分为两种RDB和AOF Redis支持2种持久化策略:snapshot方式和commandlog方式,前者通过将当前内存数据快照周期性写入RDB文件来实现;后者通过在log中记录Redis进程收到的写操作来实现,下次Redis重启时,回放commandlog来恢复数据状态。
2015-11-26 11:12:06 441
原创 Eclipse下安装Scala插件
scala版本为2.10.4http://scala-ide.org/download/prev-stable.htmlEclipse 3.8-4.3 (Juno and Kepler)For Scala 2.11.2 Install New Software', and paste this URL into the dialog box. Then,
2015-11-25 16:44:14 16553
原创 Generics are not supported at this language level
选择File---->Project Structure 修改Project language level为7
2015-11-23 10:31:13 5441 1
原创 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe
2015-11-16 16:25:11 383
原创 Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link
2015-11-16 16:23:49 347
原创 centos7提示ifconfig command not found解决
安装centos7时,选择了minimal install的话,没有安装网络组件。 yum install net-tools 可以解决问题。
2015-11-14 21:41:23 4211 4
转载 如何免 sudo 使用 docker
1 简介默认安装完 docker 后,每次执行 docker 都需要运行 sudo 命令,非常浪费时间影响效率。如果不跟 sudo,直接执行 docker images 命令会有如下问题:FATA[0000] Get http:///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: permis
2015-11-14 21:07:02 3739
原创 在Centos上面用yum install安装redis
redis包含在第三方的yum源里面,不在centos官方yum源中。1:去下面的网站下载EPEL对应的版本:(epel是fedora维护的yum源,里面软件众多)http://fedoraproject.org/wiki/EPELhttps://dl.fedoraproject.org/pub/epel/6/x86_64/2:我下载的是这个:wget http://d
2015-11-13 15:24:25 2321
转载 Spark算子:RDD行动Action操作(7)–saveAsNewAPIHadoopFile、saveAsNewAPIHadoopDataset
saveAsNewAPIHadoopFiledef saveAsNewAPIHadoopFile[F def saveAsNewAPIHadoopFile(path: String, keyClass: Class[_], valueClass: Class[_], outputFormatClass: Class[_ saveAsNewAPIHadoopFile
2015-11-03 11:24:00 8891
转载 Spark: Transformation和Action
本文提供的是0.7.3版本中的action和transformation接口,RDD提供了两种类型的操作:transformation和action1,transformation是得到一个新的RDD,方式很多,比如从数据源生成一个新的RDD,从RDD生成一个新的RDD2,action是得到一个值,或者一个结果(直接将RDD cache到内存中)所有的transformat
2015-11-03 09:45:54 492
美团-机器学习-实践_最新AI算法实践真知
2018-11-22
elasticsearch-the-definitive-guide-cn
2018-08-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人