07 2017 档案

摘要:``` / Source : https://oj.leetcode.com/problems/string to integer atoi/ Created by lverpeng on 2017/7/4. Implement atoi to convert a string to an inte 阅读全文
posted @ 2017-07-31 22:57 lacker 阅读(167) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/reverse integer/ Created by lverpeng on 2017/7/4. Reverse digits of an integer. Example1: x = 123, ret 阅读全文
posted @ 2017-07-30 22:19 lacker 阅读(171) 评论(0) 推荐(0)
摘要:``` / Source : https://oj.leetcode.com/problems/zigzag conversion/ Created by lverpeng on 2017/6/29. The string "PAYPALISHIRING" is written in a zigza 阅读全文
posted @ 2017-07-29 22:28 lacker 阅读(158) 评论(0) 推荐(0)
摘要:``` import java.util.Arrays; / Source : https://oj.leetcode.com/problems/longest palindromic substring/ Created by lverpeng on 2017/6/28. Given a stri 阅读全文
posted @ 2017-07-28 23:20 lacker 阅读(156) 评论(0) 推荐(0)
摘要:``` import java.util.HashSet; import java.util.Set; / Source : https://oj.leetcode.com/problems/longest substring without repeating characters/ Create 阅读全文
posted @ 2017-07-27 23:40 lacker 阅读(132) 评论(0) 推荐(0)
摘要:``` import java.util.HashSet; import java.util.Set; / Source : https://oj.leetcode.com/problems/longest substring without repeating characters/ Create 阅读全文
posted @ 2017-07-27 00:51 lacker 阅读(124) 评论(0) 推荐(0)
摘要:``` import java.util.ArrayList; import java.util.LinkedList; import java.util.List; /** * Source : https://oj.leetcode.com/problems/add-two-numbers/ * * Created by lverpeng on 2017/6/23. * * Yo... 阅读全文
posted @ 2017-07-25 22:06 lacker 阅读(157) 评论(0) 推荐(0)
摘要:``` import java.util.HashMap; import java.util.Map; /** * Source : https://oj.leetcode.com/problems/two-sum-iii-data-structure-design/ * * Created by lverpeng on 2017/6/23. * * * Design and imp... 阅读全文
posted @ 2017-07-24 07:59 lacker 阅读(179) 评论(0) 推荐(0)
摘要:``` import java.util.Arrays; /** * Source : https://oj.leetcode.com/problems/two-sum-ii-input-array-is-sorted/ * * Created by lverpeng on 2017/6/22. * * Given an array of integers that is alread... 阅读全文
posted @ 2017-07-23 22:58 lacker 阅读(150) 评论(0) 推荐(0)
摘要:``` package org.lep.leetcode.twosum; import java.util.Arrays; import java.util.HashMap; import java.util.Map; / source:https://leetcode.com/problems/t 阅读全文
posted @ 2017-07-19 22:02 lacker 阅读(188) 评论(0) 推荐(0)
摘要:sed stream editor,流编辑器 查找替换 替换每一行第一次出现的pattern,将替换后的文本输出到stdout,'/'是定界符,可以使用任意的定界符,如果在pattern或者replace_stirng中出现定界符的话,使用'\'进行转义 把每一行第一次出现的http替换为https 阅读全文
posted @ 2017-07-10 23:10 lacker 阅读(270) 评论(0) 推荐(0)
摘要:使用文件相关命令 dd 用来生成任意大小的文件 生成一个1m大小的文件,里面全部使用0填充 if: 指定输入文件,如果没有默认从stdin读取 /dev/zero:是一个字符设备,它会不断返回0值字节(\0) of:指定输出文件,如果没有指定默认输出到stdout junk.data:输出文件名称 阅读全文
posted @ 2017-07-07 08:01 lacker 阅读(249) 评论(0) 推荐(0)
摘要:lsof 列出打开的文件 输出 FD: 文件描述符,cwd表示应用程序当前工作目录,txt表示打开的是程序代码(二进制文件或者共享库),0标准输入,1标准输出,2错误流 TYPE:DIR目录,CHR字符设备BLK块设备,UNIX套接字,FIFO先进先出队列,IP套接字 查找某个文件相关进程 查看打开 阅读全文
posted @ 2017-07-05 08:34 lacker 阅读(297) 评论(0) 推荐(0)
摘要:tar 一般用法 c :创建文件 f:指定创建的文件名称, f必须是所有参数的最后一项,比如 cvvf,不能是 cfvv 想归档文件添加文件 r: 向已经存在的tar中添加新的文件 v:查看详细信息 vv:更详细的信息 从归档文件中提取文件 x:提取文件 C:提取文件到指定目录 只提取file1、f 阅读全文
posted @ 2017-07-03 20:57 lacker 阅读(675) 评论(0) 推荐(0)
摘要:wget 下载工具 一般 下载url指定的资源,日志输出到stdout,文件名称和url中指定的资源名称一致 o:指定日志输出到的文件 O:指定下载后的文件名称 t:指定重试次数 限制下载速度 limit rate: 限速,单位有k,m quota:或者 Q,限制占用的磁盘大小 断点续传 镜像整个网 阅读全文
posted @ 2017-07-03 08:31 lacker 阅读(849) 评论(0) 推荐(0)