摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. Given an array of size  阅读全文
posted @ 2016-09-26 16:06 账号早已注销 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it. Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without usi 阅读全文
posted @ 2016-09-26 11:48 账号早已注销 阅读(1111) 评论(0) 推荐(0) 编辑