Comments
+10

yes got it, thank you.

0

problem D : if a linear chain of size > k is connected to a k length cycle then how is possible to generate a pattern to get array B?

i think current bio section is simple and perfect, I would have my stats speak for itself rather than explaining myself (which sometimes make me feel like m on a dating/job_hunting site), and contacts and work relations are already present for anyone to find ones personal side.

+27

Personally, whenever these people give contest I feel very happy cause I know I can learn alot from their code after contest, at present almost all of them actively give contest.

you are doing dijkstra for each node considering you are using new visited array for each each node to it looks like $$$n^2logn$$$ solution might not work for the constraint given.