生词本
anagram
字母异位词。把一个单词的字母重新排列,组成另一个单词。两个字符串字符种类和数量完全相同,只是顺序不同。
经典例子:
- listen → silent
- dormitory → dirty room
- cinema → iceman
indices
index 的复数形式。索引。在算法题中常见,如 “return the indices of two elements”(返回两个元素的索引)。
lexicographical
字典序的。按字典排列顺序比较字符串,逐字符从左到右比较。如 “ad” < “ae” < “af” < “bd”。算法题中常见 “return in lexicographical order”(按字典序返回)。
combinations
组合。从一组元素中选取若干个形成的结果。算法题中常见 “letter combinations”(字母组合)、“all possible combinations”(所有可能的组合)。数学符号 C(n,k)。
exceed
超过。算法题中常见 “if the sum exceeds the budget”(如果总和超过预算)、“exceeds the limit”(超过限制)。
bound
边界、界限。算法题中常见 “bounded maximum”(有界最大值)、“upper bound”(上界)、“lower bound”(下界)、“out of bounds”(越界)。
intermediate
中间的、中级的。算法平台上指中等难度,比 Easy 难比 Hard 简单。LeetCode 也用这个词标 Medium。