码迷,mamicode.com
首页 > 其他好文 > 详细

Equal Sides Of An Array

时间:2017-12-08 23:09:44      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:his   you   sid   job   int   pen   return   turn   code   

You are going to be given an array of integers. Your job is to take that array and find an index N where the sum of the integers to the left of N is equal to the sum of the integers to the right of N. If there is no index that would make this happen, return -1.
先占坑

Equal Sides Of An Array

标签:his   you   sid   job   int   pen   return   turn   code   

原文地址:http://www.cnblogs.com/renbo/p/8007298.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!