Skip to content

Commit b5edf8c

Browse files
refactor 643
1 parent b511618 commit b5edf8c

File tree

1 file changed

+0
-12
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-12
lines changed

src/main/java/com/fishercoder/solutions/_643.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 643. Maximum Average Subarray I
5-
* Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value.
6-
* And you need to output the maximum average value.
7-
* Example 1:
8-
* Input: [1,12,-5,-6,50,3], k = 4
9-
* Output: 12.75
10-
* Explanation: Maximum average is (12-5-6+50)/4 = 51/4 = 12.75
11-
* Note:
12-
* 1 <= k <= n <= 30,000.
13-
* Elements of the given array will be in the range [-10,000, 10,000].
14-
*/
153
public class _643 {
164

175
public static class Solution1 {

0 commit comments

Comments
 (0)