feat: stuff

This commit is contained in:
2026-04-02 15:43:24 +02:00
parent 3586c94e25
commit 2ca8bb4427
7 changed files with 113 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
package maximum_sliding_window
import (
"git.maximhutz.com/practice/pkg/tools/heap"
)
func MaxSlidingWindow(nums []int, k int) []int {
h := heap.NewBy(heap.More, nums[:k]...)
result := []int{h.Data[0]}
return result
}