Help in a Grid Problem

Правка en1, от HighHopes, 2020-04-23 12:48:06

Disclaimer: This problem is from a contest on Hackerearth(hiring for intern) held on 13th April.


I was unable to solve this problem, can anyone help how to solve it? Can it be solved greedily or we need to use some graph algo?

Теги #hackerearth

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский HighHopes 2020-04-23 12:48:06 414 Initial revision (published)