mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Make MedianOfRunningArray Generic (#4392)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.thealgorithms.misc;
|
||||
|
||||
public final class MedianOfRunningArrayByte extends MedianOfRunningArray<Byte> {
|
||||
@Override
|
||||
public Byte calculateAverage(final Byte a, final Byte b) {
|
||||
return (byte) ((a + b) / 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user