Title Construct a function that uses Queue Structure
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/jsparsons/jsparsons-python/ps_python_queue
Platform Name jsParsons
Features
Description Construct a function that uses Queue Structure to solve a Josephus problem that removes the kth element in a given list and returns the last left element. All Queue's functions are predefined (is_empty(), enqueue() and dequeue()). Your function should also return a "The list is empty" message if the given list is empty.
Keywords
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/jsparsons/jsparsons-python/ps_python_queue
Protocol SPLICE
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview

SPLICE Output