砖吐筷筷

Results 1 issues of 砖吐筷筷

9.2.2 基于邻接表的实现中 JS 和 TS 代码片段 `removeEdge` 函数如果传入的两个顶点不为邻接点,那么在对应邻接表 `adjList` 中查找不到对应的顶点,返回 -1,继续执行则会删除顶点的邻接顶点表最后一项,即 `splice(-1, 1)`。 通过添加边界条件判断两顶点是否为邻接点修复此问题。 If this pull request (PR) pertains to **Chinese-to-English translation**, please confirm that you have read the...