排序 是技术面试里最常出现的能力维度之一。建议先掌握基础题型的边界处理,再逐步过渡到模式识别和复杂度 trade-off。
高频考察问题建模、边界条件与口头表达的清晰度。
只背模板不解释为什么,容易在追问里失分。
每轮练 3-5 题,固定复盘复杂度和可替代解法。
基础题感
模式过渡
高强度实战
重排水果
Solve the problem of rearranging fruit baskets by comparing fruit costs and minimizing swaps using array scanning and ha…
最小化连通分量的最大成本
Minimize Maximum Component Cost leverages binary search over edge weights to optimize the cost of graph components after…
数组·哈希·扫描
1 道关联题
二分·搜索·答案·空间