摘要:
Problem 1 : Is it a loop ? (判断链表是否有环?)Assume that wehave a head pointer to a link-list. Also assumethat we know the list is single-linked. Can you come up an algorithm to checkwhether this link list includes a loop by using O(n) time and O(1) space wheren is the length of the list? Furthermore, can 阅读全文
posted @ 2014-02-26 15:08
程序猿猿猿
阅读(225)
评论(0)
推荐(0)

浙公网安备 33010602011771号