Skip to content

Feature/new feature: Implement Brute Force Maximum Subarray Sum Algorithm (O(n²)) #596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

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