摘要: [抄题]: Given a binary tree where every node has a unique value, and a target key k, find the value of the nearest leaf node to target k in the tree. He 阅读全文
posted @ 2018-09-05 23:08 苗妙苗 阅读(366) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空 阅读全文
posted @ 2018-09-05 04:56 苗妙苗 阅读(257) 评论(0) 推荐(0)