摘要: Nim Game (E) 题目 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to re 阅读全文
posted @ 2020-06-23 07:31 墨云黑 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Word Pattern (E) 题目 Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijec 阅读全文
posted @ 2020-06-23 04:32 墨云黑 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Peeking Iterator (M) 题目 Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the 阅读全文
posted @ 2020-06-23 03:17 墨云黑 阅读(119) 评论(0) 推荐(0) 编辑