Random Queue ADT + Equality + Thread Safety + RLE-backed Comparison

Problem: Random Queue ADT + Equality + Concurrency + RLE-backed Comparison

Design and implement a RandomQueue that behaves like a queue except that removal/return returns a random element ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: