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

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

While I was trying to solve a problem that given a network of people prove that any two people are separated by a distance of 6 or less. I tried pondering on any sub-quadratic solution by finding maximum shortest distance in a graph. Are there any common know methods to find diameter of graph?

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

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

Автор DarkSilver, история, 3 месяца назад, По-английски

I had a problem asked to me recently. Given a 2D matrix where '#' represent blocked cell and '.' represent available cells and exit point E. How would you create a set of instructions (Top, Down, Left, Right) that it is always possible to reach exit cell no matter where you start in matrix(it is always possible to reach exit cell from '.')

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

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