time complexity - given a set of edges can I make an adjacency linked list in ascending order in O(v+e)

后端 未结 0 1682
执念已碎
执念已碎 2021-01-24 13:18

I understand how to make an adjacency list in O(v+e). Right now my implementation scans the edges and then pushes them to an adjacency list of the respective vertices. For examp

相关标签:
回答
  • 消灭零回复
提交回复
热议问题