Make MedianOfRunningArray Generic (#4392)

This commit is contained in:
Ansh Shah
2023-09-24 11:20:43 +05:30
committed by GitHub
parent 8803b1ead5
commit d3a32135dc
7 changed files with 124 additions and 44 deletions

View File

@ -0,0 +1,8 @@
package com.thealgorithms.misc;
public final class MedianOfRunningArrayInteger extends MedianOfRunningArray<Integer> {
@Override
public Integer calculateAverage(final Integer a, final Integer b) {
return (a + b) / 2;
}
}