不废话讲解 KMP 算法

Leetcode 28. Find the Index of the First Occurrence in a String KMP 主要用在 pattern 匹配上。 比如给出一个字符串 s 和一个字符串 pattern ,请找出 pattern 第一次在 s 中出现的下标。 最长公共前后缀 前缀是指不包含

Contributing Guide For My Color Schemes

About In this post I’m going to briefly describe how to contribute to my color schemes. All of my color schemes share a very similar code base, so I’m going to take one of these color schemes gruvbox-material for example in this post. Code Structure /.githooks/pre-commit: Pre-commit hook. /autoload/gruvbox_material.vim: Contains helper functions and color palette. /autoload/airline/themes/gruvbox_material.vim: Airline theme. /autoload/lightline/colorscheme/gruvbox_material.vim: Lightline theme. /colors/gruvbox-material.vim: The color scheme file. /doc/gruvbox-material.txt: The help doc.

Recommendation of macOS Apps

In this post, I’m going to introduce some macOS apps that I’m using, all of them are free of charge. FOSSs (Free and Open Source Softwares) are marked by ⭐. MacPorts ⭐ This is a package manager, something like a third-party App Store, but in command line. Many people may prefer homebrew, but I would say even if MacPorts is not to your taste, don’t use homebrew. IT IS UNSAFE!