摘要: ====================================================================This article came fromhere.Thanks forzhizhihu.====================================... 阅读全文
posted @ 2014-12-02 15:36 代码学习者coding 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: [LeetCode] Candy (分糖果),时间复杂度O(n),空间复杂度为O(1),且只需遍历一次的实现原题:There areNchildren standing in a line. Each child is assigned a rating value.You are giving c... 阅读全文
posted @ 2014-12-02 00:02 代码学习者coding 阅读(380) 评论(0) 推荐(0) 编辑