Consider an algorithm that performs a breadth-first search on a graph. Its space complexity is:
O(n)
O(log n)
O(1)
O(n^2)

Advanced Data Structures Übungen werden geladen ...