Блог пользователя Traktour

Автор Traktour, история, 4 года назад, По-английски

Hello, I have some difficulties with this problem. Given a grid, you are initially in (1,1) and you want to go to (n,m) but you can't step in a cell with '#' you want to check if it is possible and show the lexicographically smallest path ( DDDRL)example of a path I thought of using bfs but it didn't work Thanks

Полный текст и комментарии »

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится