摘要:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: But the fol 阅读全文
posted @ 2016-04-12 21:06 cKK 阅读(139) 评论(0) 推荐(0)
|
||
|
摘要:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: But the fol 阅读全文
posted @ 2016-04-12 21:06 cKK 阅读(139) 评论(0) 推荐(0)
摘要:
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 bijection between a lette 阅读全文
posted @ 2016-04-12 15:26 cKK 阅读(196) 评论(0) 推荐(0)
摘要:
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2016-04-12 02:14 cKK 阅读(107) 评论(0) 推荐(0) |
||