LeetCode – Construct Binary Tree from Inorder and Postorder Traversal

Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. For example, given…

2020-07-25 · 2 分钟

Why mmap is faster than system calls

原文链接 作者 Alexandra Sasha Fedorova

2020-07-24 · 2 分钟

mmap相关API

mmap调用进程的虚拟进程空间中一段新的内存映射。

2020-07-22 · 4 分钟

centos7 升级 glibc && gcc

cenos7X86_64

2020-07-18 · 2 分钟

cenos7+openssh 修改SSH服务端口

环境: - cenos7(X86\_64) + openssh - ssh端口配置 - 修改端口 例如8888 文件 /etc/ssh/sshd\_config - 重启服务 - 防火墙配置: 我这里配置比较简单仅zone配置了一个public - 重启服务

2020-07-13 · 1 分钟

LeetCode – Path Sum Solution

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Note: A…

2020-07-12 · 1 分钟

LeetCode – Symmetric Tree Solution

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric: But…

2020-07-12 · 1 分钟

Linux slob/slab/slub

Linux初始化通过bootmem/memblock引导内存分配进行内存管理,支持buddy system完成相关初始化后,将物理内存分配的功能转交给buddy system,buddy system是以page为单位分配方式。 对于内核要经常创建的对象, 如task_struct,

2020-07-11 · 9 分钟

为什么x86无法生存-Why x86 won’t survive

前不久, 评估CEO 库克在其全球开发者大宣布,Mac笔记本以及个人电脑将会改用苹果自家的ARM架构处理器。这将是自2006年从PowerPC处理器改用英特尔x86处理器后,又一次CPU架构的调整。下面这篇文章是Medium推送的,不过文章贬低X86中提到的漏洞, 我查

2020-06-29 · 3 分钟

通过alternatives进行多版本间切换

上周在学习单点登录安装CAS Overlay Template要使用指定版本,当时机器上安装了多个版本的jdk使用alternatives命令进行了切换

2020-06-28 · 2 分钟