2016年6月16日

Ugly Number II

摘要: Ugly number is a number that only have factors 2, 3 and 5. Design an algorithm to find the nth ugly number. The first 10 ugly numbers are 1, 2, 3, 4, 阅读全文

posted @ 2016-06-16 19:37 Sheryl Wang 阅读(177) 评论(0) 推荐(0) 编辑

Maximal Rectangle

摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. Subscribe to see which companies 阅读全文

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

Rehashing

摘要: The size of the hash table is not determinate at the very beginning. If the total size of keys is too large (e.g. size >= capacity / 10), we should do 阅读全文

posted @ 2016-06-16 10:53 Sheryl Wang 阅读(202) 评论(0) 推荐(0) 编辑

导航