Skip to content

4 12 月, 2022

LeetCode: 2256-Minimum Average Difference 解題紀錄

Last Updated on 2022-12-05 by Clay

題目

You are given a 0-indexed integer array nums of length n.

The average difference of the index i is the absolute difference between the average of the first i + 1 elements of nums and the average of the last n - i - 1 elements. Both averages should be rounded down to the nearest integer.

Read More »LeetCode: 2256-Minimum Average Difference 解題紀錄