noobKunal's blog

By noobKunal, 3 years ago, In English

Undirected unweighted connected graph is given (no self loops or multiple edges). We have to calculate for each node x number of simple paths with minimum distance from node 1 to node N passing through that node x.

Constraints: N <= 1e3 Number of edges, M <= N * (N-1) / 2

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it