Skip to content

feat: Add Kadane's Algorithm for Maximum Subarray #15139

Description

@a18-n03

Description

Adds Kadane's Algorithm implementation for finding the maximum subarray sum.

Changes

  • New file: dynamic_programming/kadanes_algorithm.py
  • Includes docstring, type hints, and test cases
  • Follows existing code style

Checklist

  • Code follows project conventions
  • Added docstring with algorithm explanation
  • Time complexity: O(n)
  • Space complexity: O(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions