Title Construct a function that uses Queue Structure
Catalog Type SLCItem
Persistent ID https://adapt2.sis.pitt.edu/acos/pitt/jsparsons/jsparsons-python/ps?example-id=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 queue
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://adapt2.sis.pitt.edu/acos/pitt/jsparsons/jsparsons-python/ps?example-id=ps_python_queue&grp=demo&usr=demo&sid=-1&cid=-1
Protocol PITT
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview