4 ms·
Because, given a common interface shared between stacks and queue types, you can turn a depth-first search algorithm into a breadth-first one, simply by changin
by barrkel 14y ago
Because, given a common interface shared between stacks and queue types, you can turn a depth-first search algorithm into a breadth-first one, simply by changing the parameter from stack to queue.