摘要:
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 that the arr... 阅读全文
posted @ 2015-04-10 20:06
amazingzoe
阅读(137)
评论(0)
推荐(0)
摘要:
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.Solution1: 1 class Solution {... 阅读全文
posted @ 2015-04-10 18:56
amazingzoe
阅读(156)
评论(0)
推荐(0)
摘要:
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ... 阅读全文
posted @ 2015-04-10 16:22
amazingzoe
阅读(136)
评论(0)
推荐(0)
浙公网安备 33010602011771号