Matrix and queries

Правка en1, от ___---___, 2017-02-15 16:50:16

Given an n x m matrix filled with non negative values. Each value in a cell represents a weighted edge to reach each of its adjacent cells. We need to calculate the shortest path from 1,1 to n,m after each of the q queries. They are of two types Type 1 : block cell x,y Type 2 : unblock cell x,y How can we achieve this? n,m <= 1000 q <= 1000

Теги graphs, shortest paths, matrix, queries

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский ___---___ 2017-02-15 16:52:44 0 Tiny change: 'ypes\nType 1 : block' -> 'ypes\nType\n~~~~~\nYour code here...\n~~~~~\n\n 1 : block' (published)
en1 Английский ___---___ 2017-02-15 16:50:16 365 Initial revision (saved to drafts)