Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ maximum_subsequence.py
File
maximum_subsequence.py
other/maximum_subsequence.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
collections.abc
import
Sequence
2
3
4
def
max_subsequence_sum(nums: Sequence[int] | None = None) -> int:
Callers
nothing calls this directly
Calls
2
max_subsequence_sum
Function · 0.85
split
Method · 0.80
Tested by
no test coverage detected