HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Question-4"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanDec.15.2012 at 01:21:55 PM
0You can use stacks to solve this question

imesecanDec.15.2012 at 01:24:42 PM
1Сообщение скрыто

imesecanDec.15.2012 at 01:43:39 PM
2
(1: ArditMeti)
Hope you learn soon :)

imesecanDec.15.2012 at 03:20:22 PM
3Сообщение скрыто

imesecanDec.15.2012 at 04:10:21 PM
4The recursive algorithm is like this.

if any of the four sides of this cell is destination then increment the counter;
Then call this function again for four sides
(For example for left side
If it's an available cell (0) and inborder and not visited yet
make it visited
go to (call this function for) left
make it unvisited;
end;
)

imesecanDec.15.2012 at 04:33:49 PM
5Сообщение скрыто


www.contester.ru