mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Make MedianOfRunningArray
Generic (#4392)
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user