LeetCode

This post is used to log my leetcode problem solving. 2785. Sort Vowels in a String 2025.09.11 Given a 0-indexed string s, permute s to get a new string t such that: All consonants remain in their original places. More formally, if there is an index i with 0 <= i < s.length such that s[i] is a consonant, then t[i] = s[i]. The vowels must be sorted in the nondecreasing order of their ASCII values. More formally, for pairs of indices i, j with 0 <= i < j < s.length such that s[i] and s[j] are vowels, then t[i] must not have a higher ASCII value than t[j]. Return the resulting string. ...

September 11, 2025 · 32 min · 6630 words · CYLiu

Neovim lsp配置

之前一直是vim原教旨主义者,只用官方的vim,但是vim9推出之后看到网上的评价是重新做了一份插件语言,而neovim可以兼容vim还可以用lua配置,其次neovim内置lsp,想起之前配置语言自动补全的失败经历,尝试了下neovim的配置,果然方便太多了。 下面记录配置python lsp的过程。 ...

July 9, 2022 · 1 min · 66 words · CYLiu

Vim Markdown 方案

摸鱼的一天,没怎么看论文,在折腾一些软件。 ...

April 4, 2021 · 1 min · 13 words · CYLiu