Skip to content

Conversation

kawaho2
Copy link

@kawaho2 kawaho2 commented Mar 5, 2025

This update introduces a brute force approach to finding the maximum subarray sum by iterating over all possible subarrays. It serves as an alternative to Kadane’s Algorithm, with a time complexity of O(n²).

Brief description of what is fixed or changed

This update adds a brute force implementation for finding the maximum subarray sum by iterating over all possible subarrays. Unlike Kadane’s algorithm (O(n)), this method follows an O(n²) complexity, making it useful for understanding naive approaches and verifying correctness in small test cases.

@kawaho2 kawaho2 closed this by deleting the head repository Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant