摘要: 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-07-23 05:53 北叶青藤 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Implement function atoi to convert a string to an integer. If no valid conversion could be performed, a zero value is returned. If the correct value i 阅读全文
posted @ 2016-07-23 05:22 北叶青藤 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Calculate the a^n % b where a, b and n are all 32bit integers. Calculate the a^n % b where a, b and n are all 32bit integers. Calculate the a^n % b wh 阅读全文
posted @ 2016-07-23 04:57 北叶青藤 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Check Power of 2 Using O(1) time to check whether an integer n is a power of 2. Check Power of 2 Using O(1) time to check whether an integer n is a po 阅读全文
posted @ 2016-07-23 02:59 北叶青藤 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Regular Expression Matching Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or 阅读全文
posted @ 2016-07-23 02:51 北叶青藤 阅读(206) 评论(0) 推荐(0) 编辑