Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ circular_kadne.py
File
circular_kadne.py
circular_kadne.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
kadanes_algorithm(arr):
2
""
"Standard Kadane's Algorithm for maximum sum subarray."
""
3
max_ending_here = max_so_far = arr[0]
4
Callers
nothing calls this directly
Calls
2
max_circular_subarray
Function · 0.85
print
Function · 0.50
Tested by
no test coverage detected