Garlic Space

python修改excel文档相关日期信息

工作需要修改excel文件创建内容时间(excel属性非文件属性)和上次修改时间, 用python写了一个脚本处理了一下。 - windows10 - python3.7 + openpyxl Openpyxl Doc python 修改文件的创建时间、修改时间、访问时间 pythondoc-os.utime In…

2020-07-29 · 2 分钟

LeetCode-Construct Binary Tree from Preorder and Inorder Traversal

Given preorder and inorder 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-28 · 2 分钟

LeetCode-Lowest Common Ancestor of a Binary Tree Solution

Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowest common…

2020-07-28 · 1 分钟

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 分钟