1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. Which algorithm efficiently computes the maximum subarray…

Added 12 Sep 2025

Which algorithm efficiently computes the maximum subarray sum?

  1. Brute Force
  2. Kadane's Algorithm Correct answer
  3. Divide and Conquer
  4. Dynamic Programming

Correct answer

B. Kadane's Algorithm

17 views

MCQSEXAM

Explanation

Kadane's Algorithm finds the maximum subarray sum in O(n) time.

Reference

Asked in: GATE CS, UGC NET CS

https://www.geeksforgeeks.org/largest-sum-contiguous-subarray/

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs