Comp1005 1405 W17 A1 1 You Have A Large Stack Of White Plates Which Contains A S

COMP1005-1405-W17-A1.1

  1. You have a large stack of white plates, which contains a single red plate. Describe how you can find and remove the red plate from the stack so that afterwards the original stack remains the same, except the one red plate is now removed from the original stack and placed it its own stack. See the image below for an example (note: your solution should work for any stack of plates, not just the stack in the image, you should use pop and puch in this example, and should be pseudocode for python ).
  2. The attachment bellow has the image )
Posted in Uncategorized