摘要: 题目描述:(链接)Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume tha... 阅读全文
posted @ 2015-10-21 11:26 skycore 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the fa... 阅读全文
posted @ 2015-10-21 10:54 skycore 阅读(125) 评论(0) 推荐(0) 编辑