Question: What is the worst-case time complexity of DFS for a graph represented as an adjacency matrix?
Options:
Correct Answer: O(V^2)
Solution:
In the worst case, DFS will check all entries in the adjacency matrix, leading to a time complexity of O(V^2).