随笔分类 -  设计(Design)

摘要:题目:Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (r... 阅读全文
posted @ 2015-11-14 19:47 lasclocker 阅读(1283) 评论(0) 推荐(0)
摘要:题目:Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- i... 阅读全文
posted @ 2015-11-05 10:01 lasclocker 阅读(157) 评论(0) 推荐(0)