摘要: Problem: Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not pri 阅读全文
posted @ 2017-01-04 12:42 SillyVicky 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Problem: Count the number of prime numbers less than a non-negative number, n. Summary: 判断小于某非负数n的质数个数。 Solution: 用所谓的“刷质数表”的方式先用HashTable记录小于n的所有数是质数 阅读全文
posted @ 2017-01-04 10:00 SillyVicky 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Problem: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All 阅读全文
posted @ 2017-01-04 08:54 SillyVicky 阅读(118) 评论(0) 推荐(0) 编辑