首页 > 其他 > 详细

Equal Sides Of An Array

时间:2017-12-08 22:41:23      阅读:209      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!