Skip to content

Instantly share code, notes, and snippets.

View kundankumar's full-sized avatar

Kundan Kumar kundankumar

  • Bangalore
View GitHub Profile
#Problem- find the subarray having maximum sum
class SubArray
attr_reader :start, :end
attr_accessor :sum
def initialize n
@start = 0
@end = 0