AWS phone screening

find out shortrst path from binary matrix( 0,1) value. 0 is water and 1 is land. we have to go thru land only. i did it with BFS. couldn't finish in time.

Comments (0)