mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +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