Title Queue Class - Check if Element Exists
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/Queue__6941554cb71cfad9381fb1f2?index=0
Platform Name PCEX
Features
Description In this example, you will use Queue class from queue provided by python. This class contains methods for adding a new element to the end and retrieving the first element of the queue. However it does not contain a method to check if the queue contains an element. We will define a function that will traverse the queue and return True if the queue contains the given element.
Keywords
Author Aditya Joshi
Institution Utrecht University
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/Queue__6941554cb71cfad9381fb1f2?index=0
Protocol SPLICE
Protocol URL
License MIT
Programming Language PYTHON
Natural Language en

Preview

SPLICE Output