[LeetCode] Candy (分糖果),时间复杂度O(n),空间复杂度为O(1),且只需遍历一次的实现
摘要:
原题:There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following re... 阅读全文
posted @ 2014-03-24 08:13 Felix Fang 阅读(14220) 评论(2) 推荐(0) 编辑