Problem Link: http://lightoj.com/volume_showproblem.php?problem=1424
Solution Link: https://ideone.com/2eUIav
Verdict: TLE
Solution Approach: Trying out all possible row combinations and for each row combination finding the maximum area using binary search
Someone please help me out how can I optimize my solution.