05 2022 档案
摘要:题目 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each
阅读全文
摘要:源码分析 代码结构 cloud-init的代码结构如下: cloud-init ├── bash_completion # bash自动补全文件 │ └── cloud-init ├── ChangeLog # 更新日志 ├── cloudinit │ ├── cloud.py # Cloud类 │
阅读全文
摘要:项目简介 cloud-init是一款用于初始化云服务器的工具,它拥有丰富的模块,能够为云服务器提供的能力有:初始化密码、扩容根分区、设置主机名、注入公钥、执行自定义脚本等等,功能十分强大。 目前为止cloud-init是云服务器初始化工具中的事实标准,它几乎适用于所有主流的Linux发行版,也是各大
阅读全文
摘要:题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray
阅读全文
摘要:题目 Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. Example 1
阅读全文
摘要:前言 在使用云服务器产品时,由于问题修复、功能添加、软件更新等原因,往往需要对已有系统镜像进行二次修改。 这种情况下,最为简单的做法是:使用原镜像创建实例,在实例中进行修改,修改完毕后再转镜像。这种做法比较粗暴,系统启动的过程可能会为原本干净的系统镜像带来一些不必要的残留数据,而且也无法执行硬盘分区
阅读全文