Every day a Leetcode
题目来源:1094. 拼车
解法1:差分数组 对于本题,设 a[i] 表示车行驶到位置 i 时车上的人数。我们需要判断是否所有 a[i] 都不超过 capacity。
trips[i] 相当于把 a 中下标从 fromi 到 toi−1 的数都增加 numPassenge…
KDE环境文件夹user-dirs
修改KDE主页文件夹为英文
该文件路径
~/.config/user-dirs.dirs打开后会发现里面的内容如下
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line youre
# interested in. All local …