摘要: 1.双链表中至多只有一个结点的后继指针为空(是)。 非循环双链表最后一个结点的后继指针为空; 循环双链表没有一个结点的后继指针为空; 综上,至多只有一个。(链表结构,也就是前驱节点,后继指针,以及本节点存储信息。) 2.在用邻接表表示图时,拓扑排序算法时间复杂度为( O(n+e))。//不是O(n* 阅读全文
posted @ 2018-08-12 15:09 lypbendlf 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1040 Longest Symmetric String (25)(25 分) Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given 阅读全文
posted @ 2018-08-12 12:06 lypbendlf 阅读(269) 评论(1) 推荐(0) 编辑
摘要: A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po 阅读全文
posted @ 2018-08-12 12:03 lypbendlf 阅读(294) 评论(0) 推荐(0) 编辑