You are viewing a single comment's thread. Return to all comments →
yes, you should not intialize maximum to zero its better to intialize with a large negative number
why am i getting timeout?
my complexity is O(n^2)(for finding max)and for computing hourglass sum itts O(n)
Not just better, mandatory; initializing to zero is wrong.