Embercode
✕
Stacks and QueuesQuick quiz

Stack growth and multi-source BFS

8 questions. Covers Multi-source BFS on grids in Python.

Questions 1 to 5 of 8

  1. 1. What is the amortised cost of one push on a stack that doubles its array when the array is full?
  2. 2. What is the cost of one push on the linked stack from the first part of the lesson?
  3. 3. What is the time complexity of multi-source BFS on an R by C grid?
  4. 4. Why does the rotting oranges code set a cell to ROTTEN as soon as it is added to the queue?
  5. 5. What does stack.pop() do when stack is an empty Python list?

5 question(s) left on this page.