Garlic Space

LeetCode - Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1-…

2019-05-12 · 1 分钟

LeetCode – Add Two Numbers

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

2019-05-12 · 2 分钟

gethostbyname函数实现分析

DNS是一个分层级 (hierarchical ),分布式(decentralized)的网络数据库,完成主机名称和IP地址之间的相互映射。DNS名称空间包含一个树状结构,树根没有命名, 下面是树的最高层为顶级域名, 顶级域名包括: 顶级域名(gTLD),国家代码顶级域名(ccTLD), 国际化国家设施顶级域名(i

2019-05-11 · 6 分钟

Netflix Blog - Tips for High Availability Spinnaker介绍

Netflix Blog - Tips for High Availability Spinnaker介绍 - 这篇文章Tips for High Availability 是出自 Netflix

2019-05-11 · 1 分钟

shell中的 2>&1

strace跟踪应用程序时,有标准输出和错误输出,需要将程序执行的输出标准输出和错误输出重定向到一个日志文件中。

2019-05-11 · 1 分钟

LeetCode - Design Linked List

Photo by Tim Swaan on Unsplash

2019-04-30 · 2 分钟

编程规范问题导致SIGCLD 屏蔽失效

进程出现状态进程,(zombie process )。对于创建多进程的场景, 子进程状态改变产生此信号, 对SIGCLD信号处理不当,会导致僵尸进程。

2019-04-30 · 1 分钟

linux 使用chage 设置密码永不过期

vmware安装的虚拟机, 今天登录忽然提示“You must change your password now and login again!”, 密码过期了, 我登录设置了ssh免密登录, 输入原始密码,输入新密码后解决。修改成功登录后看了下,密码有效期60天。 通过chage 修改应用用户密码永不过期

2019-04-28 · 1 分钟

ramfs, rootfs and initramfs

查找initramfs资料的时候看到了这篇文章 ramfs-rootfs-initramfs.txt,

2019-04-28 · 2 分钟

LeetCode - Palindrome Linked List

Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: Follow up: Could you do it in O(n) time and O(1) space? 找到中间节点后反转判断节点回文

2019-04-27 · 1 分钟