Leetcode 2026

Janvier 1390. Four Divisors 2025.01.04 Given an integer array nums, return the sum of divisors of the integers in that array that have exactly four divisors. If there is no such integer in the array, return 0. Example 1: Input: nums = [21,4,7] Output: 32 Explanation: 21 has 4 divisors: 1, 3, 7, 21 4 has 3 divisors: 1, 2, 4 7 has 2 divisors: 1, 7 The answer is the sum of divisors of 21 only. ...

January 4, 2026 · 2 min · 312 words · CYLiu

LeetCode 2025

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 · 76 min · 16085 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