The content of this website is only deployed under the domain
𝙨𝙘𝙤𝙩𝙩𝙮𝙚𝙪𝙣𝙜.𝙩𝙤𝙥(scottyeung[dot]top). Any other domain sites are unauthorized
illegal mirrors.
开始学习想学很久(或者说是说了很久要学的)的 vim 文本编辑器。虽然说接触了很久,好像从大一开始接触 Linux 系统就不得不与其打交道,但是对于其了解程度一直都处在 "存活期"。所以终于想要进一步学习,进入感觉良好期,甚至是更快更好更强的阶段。于是记录一下一些有用的命令,顺便练一下手,没错本篇博客就是用 vim 写的(完全就是瞎折腾,还发现了不少我觉得是 bug 的问题)。
早在大三上系统级程序设计课程的时候,就通过老师的演示了解到 Windows 的新产品—— Windows Subsystem for Linux(WSL), 可以在 Windows 系统下运行 Linux 系统的程序或命令。不过当时我的旧电脑上装了 Ubuntu 的双系统,所以一直没有尝试。现在换了新电脑之后,一直没有装回 Linux 系统,一是怕麻烦不太想折腾,二是不太想划分硬盘空间。于是干脆就装一个 WSL 吧,尽管现在还没实际使用 Linux 系统的需要,不过就暂时当一个玩具吧。
Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C.
Here, a circular array means the end of the array connects to the beginning of the array. (Formally, C[i] = A[i] when 0 <= i < A.length, and C[i+A.length] = C[i] when i >= 0.)
Also, a subarray may only include each element of the fixed buffer A at most once. (Formally, for a subarray $C[i], C[i+1], ..., C[j]$, there does not exist $i <= k_1, k_2 <= j$ with$k_1 mod A.length = k_2 mod A.length $.)