SyntaxFix
Write A Post
Hire A Developer
Questions
Short but simple explanation:
I the worst case you would need to visit all the vertex and edge hence the time complexity in the worst case is O(V+E)