Finds the maximum area under the histogram represented by histogram . See below article for details . https : www . geeksforgeeks . org / largest - rectangle - under - histogram /
public static int maxHist ( int R , int C , int [ ] row ) {