how to solve rotting orange problem if we have some oranges which take two days to rot.
rotting orange problem-------
we are given a grid of mxn .where 0 indicate rot orange 1 indicate orange which can rot in single day when placed against a cell which contain rott orange and 2 indicate it will take 2 days to rott it.
We have to find the minimum number days required to rott all the oranges