摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2016-11-29 23:57 Grandyang 阅读(1261) 评论(0) 推荐(0)
摘要: Given a linked list, determine if it has a cycle in it. ExampleGiven -21->10->4->5, tail connects to node index 1, return true Challenge Follow up:Can 阅读全文
posted @ 2016-11-29 23:50 Grandyang 阅读(506) 评论(0) 推荐(0)
Fork me on GitHub