Stephen.Ri Blog

You are waiting for a train, a train that will take you far away!

[LeetCode]2. Add Two Numbers

  "实现一个基于链表的超大数加法"

Description You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numb...

[LeetCode]1. Two Sum

  "在一个数组中,求和为定值的两个数的下标"

Description Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may n...

[Linux]Linux常用命令

"CentOS command"

硬件 查看端口占用: netstat -ntlp 查看磁盘使用情况: df -hl 文件 查找文件 find folder_name -name "*file_name*" 查找大文件 find . -type f -size +800M -print0 | xargs -0 du -h 修改配置文件 vim .bashrc 实时查看日志 tail -f *.lo...

[Memcached]Memcached-raid

"Memcached RDP"

Memcached命令 存储命令 set/add/replace <key> <flag> <exptime> <bytes> <data block> 读取命令 get <key> 状态命令 stats stats items stats cachedump slab_id limit_num 编译 要配置好...

[HDFS]HDFS

"HDFS记录"

HDFS常用命令 查看磁盘: df -hl 查看大文件: find . -type f -size +800M -print0 | xargs -0 du -h 更新: cdhdfs & svn up 添加文件: svn add 3.mkv 提交: svn commit -m "null" 编译Hadoop: bin/ant 启动Hadoop: bin/start-all.sh ...