2016年6月15日

Max Tree

摘要: 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 The lef 阅读全文

posted @ 2016-06-15 23:15 Sheryl Wang 阅读(659) 评论(0) 推荐(0) 编辑

Hash Function

摘要: In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zer 阅读全文

posted @ 2016-06-15 22:06 Sheryl Wang 阅读(239) 评论(0) 推荐(0) 编辑

Maximal Square

摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following mat 阅读全文

posted @ 2016-06-15 16:13 Sheryl Wang 阅读(232) 评论(0) 推荐(0) 编辑

导航