Candy
双向爬坡。从左到右爬一边,再从右到左爬一边。再累加所有值即可。
1 | public class Solution { |
双向爬坡。从左到右爬一边,再从右到左爬一边。再累加所有值即可。
1 | public class Solution { |
原文作者: findingsea
原文链接: http://findingsea.github.io/2015/04/24/candy-at-leetcode/
发表日期: April 24th 2015, 9:47:00 am
版权声明: 本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true