This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Problem- find the subarray having maximum sum | |
class SubArray | |
attr_reader :start, :end | |
attr_accessor :sum | |
def initialize n | |
@start = 0 | |
@end = 0 |