mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Make MedianOfRunningArray Generic (#4392)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.thealgorithms.misc;
|
||||
|
||||
public final class MedianOfRunningArrayLong extends MedianOfRunningArray<Long> {
|
||||
@Override
|
||||
public Long calculateAverage(final Long a, final Long b) {
|
||||
return (a + b) / 2L;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user