MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / max_sum_sliding_window.py

File max_sum_sliding_window.py

maths/max_sum_sliding_window.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Given an array of integer elements and an integer 'k', we are required to find the
3maximum sum of 'k' consecutive elements in the array.
4

Callers

nothing calls this directly

Calls 1

max_sum_in_arrayFunction · 0.85

Tested by

no test coverage detected