2016年1月22日

Max Tree

摘要: Question:Given an integer array with no duplicates. A max tree building on this array is defined as follow:The root is the maximum number in the array... 阅读全文

posted @ 2016-01-22 15:44 BillZ 阅读(130) 评论(0) 推荐(0) 编辑

Largest Rectangle in Histogram

摘要: Question:Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in t... 阅读全文

posted @ 2016-01-22 13:59 BillZ 阅读(128) 评论(0) 推荐(0) 编辑

Majority Number III

摘要: Question:Given an array of integers and a number k, the majority number is the number that occursmore than 1/kof the size of the array.Find it.Example... 阅读全文

posted @ 2016-01-22 06:57 BillZ 阅读(109) 评论(0) 推荐(0) 编辑

导航