cKK

............当你觉得自己很辛苦,说明你正在走上坡路.............坚持做自己懒得做但是正确的事情,你就能得到别人想得到却得不到的东西............

导航

2016年4月12日

摘要: 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 阅读(136) 评论(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 阅读(195) 评论(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 阅读(104) 评论(0) 推荐(0) 编辑