Algorithms and data structures
Does this queue need a cached count?
Assume a queue is represented by one immutable OCaml list and every update returns a new queue. Its caller repeatedly asks Li…
Assume a queue is represented by one immutable OCaml list and every update returns a new queue. Its caller repeatedly asks Li…