About 53,300 results
Open links in new tab
  1. Maximum Subarray Sum - Kadane's Algorithm - GeeksforGeeks

    Jul 22, 2025 · The idea of Kadane's algorithm is to traverse over the array from left to right and for each element, find the maximum sum among all subarrays ending at that element.

  2. Maximum subarray problem - Wikipedia

    Kadane's algorithm, as originally published, is for solving the problem variant which allows empty subarrays. [4][7] In such a variant, the answer is 0 when the input contains no positive elements …

  3. AlgoDaily - Kadane's Algorithm Explained

    Joseph Born Kadane, a renowned statistician, is known for his early support of Bayesian statistics. He introduced Kadane's Algorithm at a seminar at Carnegie Mellon University.

  4. Maximum Subarray - LeetCode

    Maximum Subarray - Given an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: The subarray [4,-1,2,1] …

  5. Kadane's Algorithm: The Ideal Frontier of Subarray Problems

    Jul 31, 2025 · Kadane's Algorithm is a dynamic programming technique used to find the maximum subarray sum within a given array of numbers. Named after its inventor, Jay Kadane, this elegant …

  6. Kadane's Algorithm: Find Maximum Subarray Sum in an Array

    Kadane’s algorithm is a dynamic programming algorithm we use to solve the maximum subarray sum problem in linear time. While using Kadane’s algorithm to find the maximum subarray sum, we …

  7. Kadane Algorithm - LeetCode The Hard Way

    Kadane's 2D Algorithm is a variation of the original Kadane's algorithm that is used to find the maximum sum of a submatrix in a given 2D array. It is a powerful tool for solving problems related to image …