摘要: #题目概述:Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume tha... 阅读全文
posted @ 2015-01-17 17:25 mrbean 阅读(1726) 评论(0) 推荐(0) 编辑
摘要: #题目简述:You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can y... 阅读全文
posted @ 2015-01-17 16:00 mrbean 阅读(273) 评论(0) 推荐(0) 编辑