Given a char to look for, find the smallest rectangle


Given a char to look for, find the smallest rectangle that contains all the occurrences of that char and return the rectangle's area. If there is only a single occurrence of the char, then the rectangle to enclose it is 1x1 and the area is 1. If the character does not appear, return an area of 0. how to do it??

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Given a char to look for, find the smallest rectangle
Reference No:- TGS089317

Expected delivery within 24 Hours