Longest Path in a Matrix (Adobe Interview Problem)
Разница между en1 и en2, 14 символ(ов) изменены
A matrix of 0’s and 1’s is given, you have to find largest adjacent string of 1’s, you cannot traverse a cell more than once.  A pair of 1’s is adjacent if they are in immediate up, down, right or left cells.↵

Ex:↵
~~~~~↵
0 0 0 0 0↵
0 0 1 0 0 ↵
1 1 1 0 0 ↵
0 0 1 1 0↵
~~~~~↵

ans-5  ↵
(not 6 as they are not asking size of largest block!) ↵
(2,0 -> 2,1 -> 2,2-> 3,2 -> 3,3)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский gouravkrosx 2021-08-30 19:28:42 4
en2 Английский gouravkrosx 2021-08-30 19:28:02 14
en1 Английский gouravkrosx 2021-08-30 19:27:05 412 Initial revision (published)