##
Maximum area of triangle having different vertex colors
February 11, 2017

Given a matrix of N rows and M columns, consists of three value {r, g, b}. The task is to find the area of the largest triangle that has one side parallel to y-axis i.e vertical and the color of all three vertices are different. Examples: Input : N = 4, M =5 mat[][] =… Read More »