Garlic Space

LeetCode – Implement Queue using Stacks

Implement the following operations of a queue using stacks. - push(x) -- Push element x to the back of queue. - pop() -- Removes the element from in front of…

2019-09-08 · 2 分钟

Graph-Easy ascii图片绘制

环境: - cenos7, X86\_64 - kernel: 3.10.0-862.el7.x86\_64 - 依赖安装包 1) graphviz, perl-ExtUtils-MakeMaker 2) 通过cpan进行安装 - perl-CPAN.noarch 3) 运行cpan - 下载安装包安装 1) 通过 验…

2019-09-07 · 1 分钟

Linux内核参数sysctl_sched_child_runs_first

Linux2.6.23版本引入了CFS调度器,通过sched_child_runs_first设置是否子进程优先运行, 下面是 SUSE Documentation

2019-09-06 · 5 分钟

Linuxjournal-The Linux Scheduler

这篇文章 The Linux Scheduler作者Moshe Bar发表在linuxjournal, 是一篇2000年的文章.从L

2019-09-04 · 12 分钟

Linux 与 Windows 文本文件格式转换

由于Windows与Linux对换行的定义不同,导致Windows应用不能正常按行显示Linux文本,Linux显示Windows文本时会带有^M

2019-09-01 · 1 分钟

awk中的'数组'

awk中的'数组'是一种关联数组,又称作maps、字典,他的索引不需要连续, 可以使用字符串、数字做为索引, 此外,不需要事先声明数组的大小 - 数组可以在运行时扩展/收缩。 - 赋值: - 删除: - 多维数组(使用字符串模拟) - 遍历: 数据:Iplogs.txt total.awk: _注意下END后的{需要和…

2019-08-31 · 3 分钟

FTP ASCII上传下载

近期在进行AIX到Linux迁移,发现从windows终端ftp时,客户端设置ASCII传输模式, 服务端并不能自动转换换行符号,脚本出现^M,需要手工删除。 Linux环境为RedHat7.3+vsftpd3.0.2,vsftpd.conf中ascii_download_enable/ascii_u

2019-08-31 · 4 分钟

LeetCode – Binary Tree Inorder Traversal

Given a binary tree, return the _inorder_ traversal of its nodes\\' values. Example: Input: Output: Follow up: Recursive solution is trivial, could you do it…

2019-08-31 · 2 分钟

linux kernel documentation-CFS Scheduler

这篇文章 CFS Scheduler是Linux Kernel文档

2019-08-29 · 8 分钟

LeetCode – Target Sum

You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have symbols + and -. For each integer, you should choose one from + …

2019-08-20 · 2 分钟