数组index

2021-09-10 16:13

阅读:756

标签:ever   col   for   rev   color   rgba   font   ==   eve      (Array.length-1)/ 2      and         Array.length/2 取中值 index Array.length is even * * * * * * ^ (Array.length-1)/2 * * * * * * ^ Array.length/2 当Array.length is even, -1 对中值index有影响 Array.length is odd * * * * * ^ (Array.length-1)/2 == Array.length/2 当Array.length is odd, -1 对中值index无影响 example: 1: reverse Array for(int i=0;i


评论


亲,登录后才可以留言!