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

Fortran

0 Some basic properties Fortran code is case insensitive Fortran code must be written in a program, similar to the main() function in C Example 1 Hello World 1 2 3 program hello_world print *,'Hello World' end program hello_world ...

November 19, 2022 · 5 min · 1027 words · CYLiu

Neovim lsp配置

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

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

内网穿透与vnc

内网穿透 最简单的方案为ssh端口转发,但是ssh断掉之后不会自动重连,我们需要autossh,它可以监控本地端口状态自动重连 ...

September 28, 2021 · 1 min · 69 words · CYLiu

阿里云服务器安装Arch并配置

前天把阿里云服务器的Ubuntu重装成了ArchLinux ...

April 19, 2021 · 1 min · 135 words · CYLiu